drm/amdgpu: Add callback to fill xcp memory id
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 3 Feb 2023 11:42:10 +0000 (17:12 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:57:08 +0000 (09:57 -0400)
commitda539b213d7952741499283636f70406383b9570
treef3742bc00f81460f045ba125e930d65d97294431
parenta433f1f59484fba7a7743a3c5a5f320d9e828b3a
drm/amdgpu: Add callback to fill xcp memory id

Add callback in xcp interface to fill xcp memory id information. Memory
id is used to identify the range/partition of an XCP from the available
memory partitions in device. Also, fill the id information.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h