drm/amdgpu: Disallow partition query during reset
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 16 Apr 2025 06:53:44 +0000 (12:23 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Apr 2025 22:03:02 +0000 (18:03 -0400)
commit75f138db48c5c493f0ac198c2579d52fc6a4c4a0
tree3751c7303e570b082ad586957f2036933fa30d2c
parentaf0819755c8cf746930627b7f88b34566240815a
drm/amdgpu: Disallow partition query during reset

Reject queries to get current partition modes during reset. Also, don't
accept sysfs interface requests to switch compute partition mode while
in reset.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@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_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c