]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Skip SDMA suspend during mode-2 reset
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 8 Oct 2025 04:56:47 +0000 (10:26 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:33 +0000 (14:14 -0400)
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>
drivers/gpu/drm/amd/amdgpu/aldebaran.c

index 9569dc16dd3dac6a6a558c923f01ff2a355f69e0..daa7b23bc77504c297279786dae8debb9a7fcd7a 100644 (file)
@@ -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);