drm/amdgpu: Fix programming of initial XCP mode
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 6 Oct 2022 09:55:08 +0000 (15:25 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:47:03 +0000 (09:47 -0400)
commit955220b04d42c41050158fec0f53957f320b96f9
tree16152ea7e74af0402a33799b5c6daf510588e2d5
parentf5fe7edfd6ce62cd23fbd707e7f9fe0f56a45e94
drm/amdgpu: Fix programming of initial XCP mode

On initialization set the partition mode correctly to SPX (default) or
any other user specified partition mode. Use switch_compute_partition
API so that all settings are initialized correctly.

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/gfx_v9_4_3.c