drm/amdgpu: Use transient mode during xcp switch
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 20 Jan 2023 10:23:47 +0000 (15:53 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:55:31 +0000 (09:55 -0400)
commit46d79cbf9ac64a5e63f0c85f256ba6400a1f2024
tree7e87c84f3c975d2b98c7f9671c700d94cadc5a7b
parentded7d99eb5b78931cec30dd49cd4097d0ac770e1
drm/amdgpu: Use transient mode during xcp switch

During partition switch, keep the state as transient mode. Fetch the
latest state if switch fails.

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/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h