Skip to contentSkip to conversation

drm/radeon: Fix GPU lockups for the R7 M270

PATCH In review Umang Raghuvanshi 2 participants 4 messages Mar 11, 2017 – Mar 14, 2017

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

PATCH 1/1 drm/radeon: Fix GPU lockups for the R7 M270

Commit 3a69adfe5617 ("drm/radeon: drop oland quirks") removed quirks for Oland but also caused a regression where M270 GPUs would go into a lock-up when OpenGL intensive applications were used. This reverts the change only for the M270 and fixes the lock-ups.

---
 drivers/gpu/drm/radeon/si_dpm.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/radeon/si_dpm.c +5 -0
index d12b8978142f..c2c129eef3c4 100644
@@ -2984,6 +2984,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
 		    (rdev->pdev->device == 0x6667)) {
 			max_sclk = 75000;
 		}
+	} else if (rdev->family == CHIP_OLAND && rdev->pdev->device == 0x6604 &&
+		   rdev->pdev->revision == 0) {
+		// Fix max_sclk and max_mclk for the Radeon R7 M270
+		max_sclk = 75000;
+		max_mclk = 80000;
 	}
 
 	if (rps->vce_active) {
Signature · 1 line
2.12.0
#1 lore raw
Quoted 4 lines · Umang Raghuvanshi

Commit 3a69adfe5617 ("drm/radeon: drop oland quirks") removed quirks for Oland but also caused a regression where M270 GPUs would go into a lock-up when OpenGL intensive applications were used. This reverts the change only for the M270 and fixes the lock-ups.

Does your kernel have this patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef736d394e85b1bf1fd65ba5e5257b85f6c82325

Alex

Quoted 26 lines
---
 drivers/gpu/drm/radeon/si_dpm.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/radeon/si_dpm.c +5 -1
index d12b8978142f..c2c129eef3c4 100644
@@ -2984,6 +2984,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
                    (rdev->pdev->device == 0x6667)) {
                        max_sclk = 75000;
                }
+       } else if (rdev->family == CHIP_OLAND && rdev->pdev->device == 0x6604 &&
+                  rdev->pdev->revision == 0) {
+               // Fix max_sclk and max_mclk for the Radeon R7 M270
+               max_sclk = 75000;
+               max_mclk = 80000;
        }
 
        if (rps->vce_active) {
--

2.12.0

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#3 lore raw
Quoted 8 lines · Umang Raghuvanshi
Quoted 2 lines · Alex Deucher

Does your kernel have this patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef736d394e85b1bf1fd65ba5e5257b85f6c82325

Yes, my kernel has this patch (this issue first occurred in v4.10).

Can you send me the dmesg output from your system?

Thanks,

Alex

Quoted 5 lines

--
Cheers,
Umang Raghuvanshi.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx