]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: put the SMC into the proper state on reset/unload
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jul 2019 16:44:59 +0000 (11:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:24:44 +0000 (23:24 -0500)
commitda22dfb21df75e4667a10cc36fcc575ab180b52e
treeb1d57ef098667061c24fb2c26e0bf667a3d5df9a
parent183bfb3a3e68bf814666638b544d9b265cefe505
drm/amdgpu: put the SMC into the proper state on reset/unload

When doing a GPU reset or unloading the driver, we need to
put the SMU into the apprpriate state for the re-init after
the reset or unload to reliably work.

I don't think this is necessary for BACO because the SMU actually
controls the BACO state to it needs to be active.

For suspend (S3), the asic is put into D3 so the SMU would be
powered down so I don't think we need to put the SMU into
any special state.

Reviewed-by: Evan Quan <evan.quan@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_drv.c