From afa44809a44151ee55f36fa502d5a452a51054e3 Mon Sep 17 00:00:00 2001 From: Tao Zhou Date: Tue, 17 Sep 2019 11:36:05 +0800 Subject: [PATCH] drm/amdgpu: use GPU PAGE SHIFT for umc retired page umc retired page belongs to vram and it should be aligned to gpu page size Signed-off-by: Tao Zhou Reviewed-by: Guchun Chen Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/umc_v6_1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v6_1.c b/drivers/gpu/drm/amd/amdgpu/umc_v6_1.c index 1c0da32..47c4b96 100644 --- a/drivers/gpu/drm/amd/amdgpu/umc_v6_1.c +++ b/drivers/gpu/drm/amd/amdgpu/umc_v6_1.c @@ -213,7 +213,7 @@ static void umc_v6_1_query_error_address(struct amdgpu_device *adev, == 1) { err_rec->address = err_addr; /* page frame address is saved */ - err_rec->retired_page = retired_page >> PAGE_SHIFT; + err_rec->retired_page = retired_page >> AMDGPU_GPU_PAGE_SHIFT; err_rec->ts = (uint64_t)ktime_get_real_seconds(); err_rec->err_type = AMDGPU_RAS_EEPROM_ERR_NON_RECOVERABLE; err_rec->cu = 0; -- 2.7.4