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 <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent bcc0934 commit 48fa907

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)