summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorXiaojie Yuan <xiaojie.yuan@amd.com>2018-12-25 14:44:23 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-07-18 14:17:58 -0500
commitc8ff09bf41f851e6e9bb2a9f8353f6c78f80f3c1 (patch)
treeb056c3854606fa6d2d83aa3176e6adc7821f224b /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentc20697674d3264f1cb2094eeec41c36d8f3f6320 (diff)
drm/amdgpu: increase max instance number for hw ip
max instance number is 6 for navi10 and 7 for navi14, and we increase the reg_offset array size to avoid out-of-bound access Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 8199d201b43a..ca82fef421e1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -731,7 +731,7 @@ enum amd_hw_ip_block_type {
MAX_HWIP
};
-#define HWIP_MAX_INSTANCE 6
+#define HWIP_MAX_INSTANCE 7
struct amd_powerplay {
void *pp_handle;