[PATCH] drm/amdgpu: use GPU PAGE SHIFT for umc retired page

Christian König ckoenig.leichtzumerken at gmail.com
Tue Sep 17 08:14:11 UTC 2019


Am 17.09.19 um 08:22 schrieb Zhou1, Tao:
> umc retired page belongs to vram and it should be aligned to gpu page
> size
>
> Signed-off-by: Tao Zhou <tao.zhou1 at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   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 1c0da32c1561..47c4b96b14d1 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;



More information about the amd-gfx mailing list