diff options
author | Huang Rui <ray.huang@amd.com> | 2017-07-20 03:31:21 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-25 16:36:53 -0400 |
commit | ae4d71e59fc830ef3ed91fadc7b1da81c6ef56e6 (patch) | |
tree | b14acae1f506ed1808cdf459ccdc010ac1d348eb /drivers/gpu/drm/amd | |
parent | 6a41f981cdae1f5dde400b8b1c7f657a154db0b3 (diff) |
drm/amdgpu: fix the incorrect scratch reg number on gfx v7
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')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c index 37b45e4403d1..17b7c6934b0a 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | |||
@@ -2021,7 +2021,7 @@ static void gfx_v7_0_gpu_init(struct amdgpu_device *adev) | |||
2021 | */ | 2021 | */ |
2022 | static void gfx_v7_0_scratch_init(struct amdgpu_device *adev) | 2022 | static void gfx_v7_0_scratch_init(struct amdgpu_device *adev) |
2023 | { | 2023 | { |
2024 | adev->gfx.scratch.num_reg = 7; | 2024 | adev->gfx.scratch.num_reg = 8; |
2025 | adev->gfx.scratch.reg_base = mmSCRATCH_REG0; | 2025 | adev->gfx.scratch.reg_base = mmSCRATCH_REG0; |
2026 | adev->gfx.scratch.free_mask = (1u << adev->gfx.scratch.num_reg) - 1; | 2026 | adev->gfx.scratch.free_mask = (1u << adev->gfx.scratch.num_reg) - 1; |
2027 | } | 2027 | } |