Skip to contentSkip to conversation

drm/amdgpu: disable runtime pm on several sienna cichlid cards

PATCH In review Guchun Chen 2 participants 3 messages Apr 27, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 262938f0dfdb..9c483787c0ca 100644
@@ -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
#1 lore raw
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_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 +0 -0
index 262938f0dfdb..9c483787c0ca 100644
@@ -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 -0
  			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;
+

Separate to amdgpu_runtime_pm_quirk()?

Thanks,
Lijo

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0 -0
  		if (adev->runpm)
  			dev_info(adev->dev, "Using BACO for runtime pm\n");
  	}
#2 lore raw

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_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 +0 -0
index 262938f0dfdb..9c483787c0ca 100644
@@ -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 -0
  			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;
+

Separate to amdgpu_runtime_pm_quirk()?

Thanks,
Lijo

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0 -0
  		if (adev->runpm)
  			dev_info(adev->dev, "Using BACO for runtime pm\n");
  	}