mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/amdgpu: Skip SDMA suspend during mode-2 reset
For SDMA IP versions >= v4.4.2, firmware will take care of quiescing SDMA before mode-2 reset. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -88,6 +88,10 @@ static int aldebaran_mode2_suspend_ip(struct amdgpu_device *adev)
|
||||
uint32_t ip_block;
|
||||
int r, i;
|
||||
|
||||
/* Skip suspend of SDMA IP versions >= 4.4.2. They are multi-aid */
|
||||
if (adev->aid_mask)
|
||||
ip_block_mask &= ~BIT(AMD_IP_BLOCK_TYPE_SDMA);
|
||||
|
||||
amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
|
||||
amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user