]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Avoid accessing HW when suspending SW state
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 29 Jul 2020 17:10:29 +0000 (13:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:24:39 +0000 (17:24 -0400)
commit823cfd7ab8f28aee4e49d3caafb7954dbd5dc2c8
tree6885f6ea592c9dc01a37bead6ed43ea8021c63fd
parent780ebddd5881e9bda16eb6177c400a34f26a6cef
drm/amdgpu: Avoid accessing HW when suspending SW state

At this point the ASIC is already post reset by the HW/PSP
so the HW not in proper state to be configured for suspension,
some blocks might be even gated and so best is to avoid touching it.

v2: Rename in_dpc to more meaningful name

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c