Skip to content

Commit bcc0934

Browse files
YiPeng Chaialexdeucher
authored andcommitted
drm/amdgpu: Fix address translation defect
retired_page is page frame and should be expanded to the full address when querying status. Signed-off-by: YiPeng Chai <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7f11a83 commit bcc0934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ static int amdgpu_ras_badpages_read(struct amdgpu_device *adev,
23992399
.flags = AMDGPU_RAS_RETIRE_PAGE_RESERVED,
24002400
};
24012401
status = amdgpu_vram_mgr_query_page_status(&adev->mman.vram_mgr,
2402-
data->bps[i].retired_page);
2402+
data->bps[i].retired_page << AMDGPU_GPU_PAGE_SHIFT);
24032403
if (status == -EBUSY)
24042404
(*bps)[i].flags = AMDGPU_RAS_RETIRE_PAGE_PENDING;
24052405
else if (status == -ENOENT)

0 commit comments

Comments
 (0)