drm/amdgpu/ras: use GPU page size for page retirement
Subsystems (2)
PATCH 1/1 drm/amdgpu/ras: use GPU page size for page retirement
Bad pages are stored in GPU page size since they are VRAM pages.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -2
@@ -1408,8 +1408,8 @@ int amdgpu_ras_reserve_bad_pages(struct amdgpu_device *adev)for (i = data->last_reserved; i < data->count; i++) { bp = data->bps[i].bp; -if (amdgpu_ras_reserve_vram (adev, bp <<PAGE_SHIFT , -PAGE_SIZE , &bo)) +if (amdgpu_ras_reserve_vram (adev, bp <<AMDGPU_GPU_PAGE_SHIFT , +AMDGPU_GPU_PAGE_SIZE , &bo))DRM_ERROR ("RAS ERROR: reserve vram %llx fail\n" , bp); data->bps[i].bo = bo;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx