drm/amdgpu: disable runtime pm on several sienna cichlid cards
Subsystems (2)
PATCH 1/1 drm/amdgpu: disable runtime pm on several sienna cichlid cards
Disable runtime power management on several sienna cichlid cards, otherwise SMU will possibly fail to be resumed from runtime suspend. Will drop this after a clean solution between kernel driver and SMU FW is available.
amdgpu 0000:63:00.0: amdgpu: GECC is enabled
amdgpu 0000:63:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
amdgpu 0000:63:00.0: amdgpu: SMU is resuming...
amdgpu 0000:63:00.0: amdgpu: SMU: I'm not done with your command: SMN_C2PMSG_66:0x0000000E SMN_C2PMSG_82:0x00000080 amdgpu 0000:63:00.0: amdgpu: Failed to SetDriverDramAddr!
amdgpu 0000:63:00.0: amdgpu: Failed to setup smc hw!
[drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <smu> failed -62
amdgpu 0000:63:00.0: amdgpu: amdgpu_device_ip_resume failed (-62)
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +9 -0
@@ -180,6 +180,15 @@ int amdgpu_driver_load_kms(struct amdgpu_device *adev, unsigned long flags)*/ if (adev->is_fw_fb) adev->runpm = false; + +/* +* Add below quirk on several sienna_cichlid cards to disable +* runtime pm to fix EMI failures. +*/ +if (((adev->pdev->device ==0x73A1 ) && (adev->pdev->revision ==0x00 )) || + ((adev->pdev->device ==0x73BF ) && (adev->pdev->revision ==0xCF ))) + adev->runpm = false; +if (adev->runpm)dev_info (adev->dev,"Using BACO for runtime pm\n" ); }
Signature · 1 line
2.17.1
Quoted 26 lines · Guchun Chen
Disable runtime power management on several sienna cichlid cards, otherwise SMU will possibly fail to be resumed from runtime suspend. Will drop this after a clean solution between kernel driver and SMU FW is available.
amdgpu 0000:63:00.0: amdgpu: GECC is enabled
amdgpu 0000:63:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
amdgpu 0000:63:00.0: amdgpu: SMU is resuming...
amdgpu 0000:63:00.0: amdgpu: SMU: I'm not done with your command: SMN_C2PMSG_66:0x0000000E SMN_C2PMSG_82:0x00000080 amdgpu 0000:63:00.0: amdgpu: Failed to SetDriverDramAddr!
amdgpu 0000:63:00.0: amdgpu: Failed to setup smc hw!
[drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <smu> failed -62
amdgpu 0000:63:00.0: amdgpu:amdgpu_device_ip_resumefailed (-62)Signed-off-by Guchun Chen <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0
-0@@ -180,6 +180,15 @@ int amdgpu_driver_load_kms(struct amdgpu_device *adev, unsigned long flags)*/ if (adev->is_fw_fb)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c int amdgpu_driver_load_kms(struct amdgpu_device *adev, unsigned long flags) · line 191
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +9
-0adev->runpm = false; + +/* +* Add below quirk on several sienna_cichlid cards to disable +* runtime pm to fix EMI failures. +*/ +if (((adev->pdev->device ==0x73A1 ) && (adev->pdev->revision ==0x00 )) || + ((adev->pdev->device ==0x73BF ) && (adev->pdev->revision ==0xCF ))) + adev->runpm = false; +
Separate to amdgpu_runtime_pm_quirk()?
Thanks,
Lijo
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0
-0if (adev->runpm)dev_info (adev->dev,"Using BACO for runtime pm\n" ); }
Sure, will update it in v2.
Regards,
Guchun
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Wednesday, April 27, 2022 6:16 PM
To: Chen, Guchun <[email protected]>; [email protected]; Koenig, Christian <[email protected]>; Zhang, Hawking <[email protected]>; Deucher, Alexander <[email protected]>; Quan, Evan <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable runtime pm on several sienna cichlid cards
Quoted 28 lines · Guchun Chen
Disable runtime power management on several sienna cichlid cards, otherwise SMU will possibly fail to be resumed from runtime suspend. Will drop this after a clean solution between kernel driver and SMU FW is available.
amdgpu 0000:63:00.0: amdgpu: GECC is enabled amdgpu 0000:63:00.0:
amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available amdgpu
0000:63:00.0: amdgpu: SMU is resuming...
amdgpu 0000:63:00.0: amdgpu: SMU: I'm not done with your command:
SMN_C2PMSG_66:0x0000000E SMN_C2PMSG_82:0x00000080 amdgpu 0000:63:00.0: amdgpu: Failed to SetDriverDramAddr! amdgpu 0000:63:00.0: amdgpu: Failed to setup smc hw!
[drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP
block <smu> failed -62 amdgpu 0000:63:00.0: amdgpu:amdgpu_device_ip_resumefailed (-62)Signed-off-by Guchun Chen <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0
-0@@ -180,6 +180,15 @@ int amdgpu_driver_load_kms(struct amdgpu_device *adev, unsigned long flags)*/ if (adev->is_fw_fb)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c int amdgpu_driver_load_kms(struct amdgpu_device *adev, unsigned long flags) · line 191
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +9
-0adev->runpm = false; + +/* +* Add below quirk on several sienna_cichlid cards to disable +* runtime pm to fix EMI failures. +*/ +if (((adev->pdev->device ==0x73A1 ) && (adev->pdev->revision ==0x00 )) || + ((adev->pdev->device ==0x73BF ) && (adev->pdev->revision ==0xCF ))) + adev->runpm = false; +
Separate to amdgpu_runtime_pm_quirk()?
Thanks,
Lijo
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0
-0if (adev->runpm)dev_info (adev->dev,"Using BACO for runtime pm\n" ); }