drm/amdgpu: update IP count INFO query
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Wed, 13 Sep 2023 04:06:21 +0000 (09:36 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Sep 2023 20:24:09 +0000 (16:24 -0400)
commit5aba51233be866e2d53898cc8867cee87edf5521
tree7a6bee9a7581676074a6b9f828ba5721cd7779ee
parenta83f2bf1f4d95582cadb0136f0e1bd5b398b5c90
drm/amdgpu: update IP count INFO query

update the query to return the number of functional
instances where there is more than an instance of the requested
type and for others continue to return one.

v2: count must reflect the actual number of engines (Alex)
v3: fix wrong number of engines for vcn (Alex)

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c