OSDN Git Service

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)
commitfe9c5c9affc9103686aed15966b4b54acd1f30f8
tree99b4ac770468a60de97f01fa00e7eb0078499fd6
parent3700169886659e678fe37629ffcaacd6e559655a
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