drm/amdgpu: Add callback get xcp resource info
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 9 Sep 2024 12:08:24 +0000 (17:38 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Sep 2024 21:06:18 +0000 (17:06 -0400)
commitf501057aff3357d6973a09036fc78fd6efb1b1ae
treeee4578a80c6eb72b0399f25834e9f4c4ffe18400
parent1bc0b339153638ce018b743d6cf07596327d2c71
drm/amdgpu: Add callback get xcp resource info

Add a callback interface to get the resource information of a partition
mode. Presently the information has number of resources and number of
entities sharing the resource.

Add the implementation for aquavanjaram SOCs.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c