]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use MAX_HWIP instead of HW_ID_MAX
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 26 Nov 2021 06:32:37 +0000 (14:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:04:10 +0000 (16:04 -0500)
commit9a0aeaab7e921f9f69b7f09b125d140cb1512237
tree99b4ac770468a60de97f01fa00e7eb0078499fd6
parent1fc0c9109437ba98b2dd3744c442d74337907d78
drm/amdgpu: Use MAX_HWIP instead of HW_ID_MAX

HW_ID_MAX considers HWID of all IPs, far more than what amdgpu uses.
amdgpu tracks only the IPs defined by amd_hw_ip_block_type whose max
is MAX_HWIP.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h