drm/amdgpu: Use SPX as default in partition config
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 14 Oct 2024 07:40:13 +0000 (13:10 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Oct 2024 21:50:37 +0000 (17:50 -0400)
commit785504dd7fa108c15d87278fa426d55086c8babf
treef0e795f51af315670d177e6b8f8d442a44977f37
parent278b8fbf06c8572c6d82f9b60f6c43debb0e0dc8
drm/amdgpu: Use SPX as default in partition config

In certain cases - ex: when a reset is required on initialization - XCP
manager won't have a valid partition mode. In such cases, use SPX as the
default selected mode for which partition configuration details are
populated.

Fixes: 4ae86dc87850 ("drm/amdgpu: Add sysfs nodes to get xcp details")
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reported-by: Hao Zhou <hao.zhou@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c