From: Huang Rui Date: Thu, 20 Jul 2017 07:03:56 +0000 (+0800) Subject: drm/amdgpu: fix the incorrect scratch reg number on gfx v8 X-Git-Tag: v4.14-rc1~179^2~43^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a41f981cdae1f5dde400b8b1c7f657a154db0b3;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: fix the incorrect scratch reg number on gfx v8 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_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 3fbc7b22446c4..05436b8730b41 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c @@ -750,7 +750,7 @@ static void gfx_v8_0_init_golden_registers(struct amdgpu_device *adev) static void gfx_v8_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; }