diff options
author | Huang Rui <ray.huang@amd.com> | 2017-07-20 03:03:56 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-25 16:36:47 -0400 |
commit | 6a41f981cdae1f5dde400b8b1c7f657a154db0b3 (patch) | |
tree | 16080bb39063f1d0a30b2fce23d74baf1da8c6df /drivers/gpu/drm/amd/amdgpu | |
parent | 6a05148f48509a7ee3e4bc35b3f86c73260f7682 (diff) |
drm/amdgpu: fix the incorrect scratch reg number on gfx v8
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 3fbc7b22446c..05436b8730b4 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) | |||
750 | 750 | ||
751 | static void gfx_v8_0_scratch_init(struct amdgpu_device *adev) | 751 | static void gfx_v8_0_scratch_init(struct amdgpu_device *adev) |
752 | { | 752 | { |
753 | adev->gfx.scratch.num_reg = 7; | 753 | adev->gfx.scratch.num_reg = 8; |
754 | adev->gfx.scratch.reg_base = mmSCRATCH_REG0; | 754 | adev->gfx.scratch.reg_base = mmSCRATCH_REG0; |
755 | adev->gfx.scratch.free_mask = (1u << adev->gfx.scratch.num_reg) - 1; | 755 | adev->gfx.scratch.free_mask = (1u << adev->gfx.scratch.num_reg) - 1; |
756 | } | 756 | } |