diff options
author | Huang Rui <ray.huang@amd.com> | 2017-07-20 03:32:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-25 16:37:00 -0400 |
commit | c5c3579082bc03811e438771ceac4b26e8f33c93 (patch) | |
tree | 6de0bc1bfc5c11c938ede0c09a57d883a7fb01f5 /drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | |
parent | ae4d71e59fc830ef3ed91fadc7b1da81c6ef56e6 (diff) |
drm/amdgpu: fix the incorrect scratch reg number on gfx v6
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/gfx_v6_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c index 5173ca1fd159..4ac85f47f287 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) | |||
1573 | 1573 | ||
1574 | static void gfx_v6_0_scratch_init(struct amdgpu_device *adev) | 1574 | static void gfx_v6_0_scratch_init(struct amdgpu_device *adev) |
1575 | { | 1575 | { |
1576 | adev->gfx.scratch.num_reg = 7; | 1576 | adev->gfx.scratch.num_reg = 8; |
1577 | adev->gfx.scratch.reg_base = mmSCRATCH_REG0; | 1577 | adev->gfx.scratch.reg_base = mmSCRATCH_REG0; |
1578 | adev->gfx.scratch.free_mask = (1u << adev->gfx.scratch.num_reg) - 1; | 1578 | adev->gfx.scratch.free_mask = (1u << adev->gfx.scratch.num_reg) - 1; |
1579 | } | 1579 | } |