• Tim Huang's avatar
    drm/amdgpu: skip ASIC reset for APUs when go to S4 · b5896266
    Tim Huang authored
    For GC IP v11.0.4/11, PSP TMR need to be reserved
    for ASIC mode2 reset. But for S4, when psp suspend,
    it will destroy the TMR that fails the ASIC reset.
    
    [  96.006101] amdgpu 0000:62:00.0: amdgpu: MODE2 reset
    [  100.409717] amdgpu 0000:62:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x00000011 SMN_C2PMSG_82:0x00000002
    [  100.411593] amdgpu 0000:62:00.0: amdgpu: Mode2 reset failed!
    [  100.412470] amdgpu 0000:62:00.0: PM: pci_pm_freeze(): amdgpu_pmops_freeze+0x0/0x50 [amdgpu] returns -62
    [  100.414020] amdgpu 0000:62:00.0: PM: dpm_run_callback(): pci_pm_freeze+0x0/0xd0 returns -62
    [  100.415311] amdgpu 0000:62:00.0: PM: pci_pm_freeze+0x0/0xd0 returned -62 after 4623202 usecs
    [  100.416608] amdgpu 0000:62:00.0: PM: failed to freeze async: error -62
    
    We can skip the reset on APUs, assuming we can resume them
    properly. Verified on some GFX11, GFX10 and old GFX9 APUs.
    Signed-off-by: default avatarTim Huang <tim.huang@amd.com>
    Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org # 6.1.x
    b5896266
amdgpu_drv.c 90.2 KB