]> 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)
commit9e5ea6036611fc70115f1804358f7bee0bff87db
tree6885f6ea592c9dc01a37bead6ed43ea8021c63fd
parent88ce90c18cd5a66504f475bee2c49257a009c9e1
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