drm/amdgpu: fix ip count query for xcp partitions
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Wed, 20 Sep 2023 14:49:44 +0000 (20:19 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Oct 2023 21:59:35 +0000 (17:59 -0400)
commitcbad0dd13ac9976a66f197a8f8d00f7bd534bc1a
tree7e0ba732c368267c41ce2683ca6c5c67c7f081e9
parentc207c36544ee71cbcf8672c85d7b898e1f22379c
drm/amdgpu: fix ip count query for xcp partitions

fix wrong ip count INFO on spatial partitions. update the query
to return the instance count corresponding to the partition id.

v2:
 initialize variables only when required to be (Christian)
 move variable declarations to the beginning of function (Christian)

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