Skip to content

Commit 48fa907

Browse files
YiPeng Chaialexdeucher
authored andcommitted
drm/amdgpu: Use new interface to reserve bad page
Use new interface to reserve bad page. 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 bcc0934 commit 48fa907

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,9 +2558,7 @@ int amdgpu_ras_add_bad_pages(struct amdgpu_device *adev,
25582558
goto out;
25592559
}
25602560

2561-
amdgpu_vram_mgr_reserve_range(&adev->mman.vram_mgr,
2562-
bps[i].retired_page << AMDGPU_GPU_PAGE_SHIFT,
2563-
AMDGPU_GPU_PAGE_SIZE);
2561+
amdgpu_ras_reserve_page(adev, bps[i].retired_page);
25642562

25652563
memcpy(&data->bps[data->count], &bps[i], sizeof(*data->bps));
25662564
data->count++;

0 commit comments

Comments
 (0)