Commit 48fa9071 authored by YiPeng Chai's avatar YiPeng Chai Committed by Alex Deucher
Browse files

drm/amdgpu: Use new interface to reserve bad page



Use new interface to reserve bad page.

Signed-off-by: default avatarYiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: default avatarTao Zhou <tao.zhou1@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bcc09348
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2558,9 +2558,7 @@ int amdgpu_ras_add_bad_pages(struct amdgpu_device *adev,
			goto out;
		}

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

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