drm/amdgpu: get VCN and SDMA instances from IP discovery table
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Aug 2021 15:50:23 +0000 (11:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 19:23:01 +0000 (15:23 -0400)
commit5c3720be7d46581181782f5cf9585b532feed947
tree122f9d6c14340b25d1db59a9e417f33439c771a0
parentde309ab3263e457ebb078fa41b2ff5db26353160
drm/amdgpu: get VCN and SDMA instances from IP discovery table

Rather than hardcoding it.  We already have the number of VCN
instances from a previous patch, so just update the VCN
instances for chips with static tables.

v2: squash in checks for SDMA3,4 (Guchun)
v3: clarify VCN changes

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c