From: Xiaojie Yuan Date: Tue, 25 Dec 2018 06:44:23 +0000 (+0800) Subject: drm/amdgpu: increase max instance number for hw ip X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c8ff09bf41f851e6e9bb2a9f8353f6c78f80f3c1;p=linux.git 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 Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 8199d201b43a4..ca82fef421e17 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;