drm/amdgpu: Add initial version of XCP routines
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 16 Sep 2022 07:13:35 +0000 (12:43 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:49:31 +0000 (09:49 -0400)
commit75d1692393cb78b510ff18733457f91d002452f7
treeec0bf216cde1b8075c8e2e3320ba2a174395fca7
parent527c670e5323414dbef8f4719dc9b348a50ac1c8
drm/amdgpu: Add initial version of XCP routines

Within a device, an accelerator core partition can be constituted with
different IP instances. These partitions are spatial in nature. Number
of partitions which can exist at the same time depends on the 'partition
mode'. Add a manager entity which is responsible for switching between
different partition modes and maintaining partitions. It is also
responsible for suspend/resume of different partitions.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h [new file with mode: 0644]