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 <YiPeng.Chai@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 7f11a83 commit bcc0934

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)