From: Huang Rui Date: Thu, 20 Jul 2017 07:32:31 +0000 (+0800) Subject: drm/amdgpu: fix the incorrect scratch reg number on gfx v6 X-Git-Tag: v4.14-rc1~8^2~44^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5c3579082bc03811e438771ceac4b26e8f33c93;p=platform%2Fkernel%2Flinux-rpi3.git drm/amdgpu: fix the incorrect scratch reg number on gfx v6 Signed-off-by: Huang Rui Reviewed-by: Alex Deucher Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c index 5173ca1..4ac85f4 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c @@ -1573,7 +1573,7 @@ static void gfx_v6_0_gpu_init(struct amdgpu_device *adev) static void gfx_v6_0_scratch_init(struct amdgpu_device *adev) { - adev->gfx.scratch.num_reg = 7; + adev->gfx.scratch.num_reg = 8; adev->gfx.scratch.reg_base = mmSCRATCH_REG0; adev->gfx.scratch.free_mask = (1u << adev->gfx.scratch.num_reg) - 1; }