Skip to contentSkip to conversation

Patch "drm/radeon: add a delay after ATPX dGPU power off" has been added to the 3.14-stable tree

PATCH [email protected] 1 participant 1 message Aug 18, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm/radeon: add a delay after ATPX dGPU power off

to the 3.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drm-radeon-add-a-delay-after-atpx-dgpu-power-off.patch
and it can be found in the queue-3.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From d814b24fb74cb9797d70cb8053961447c5879a5c Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Wed, 1 Jun 2016 12:58:36 -0400
Subject: drm/radeon: add a delay after ATPX dGPU power off
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Alex Deucher <[email protected]>

commit d814b24fb74cb9797d70cb8053961447c5879a5c upstream.

ATPX dGPU power control requires a 200ms delay between power off and on. This should fix dGPU failures on resume from power off.

---
 drivers/gpu/drm/radeon/radeon_atpx_handler.c |    5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/radeon/radeon_atpx_handler.c +5 -0
@@ -10,6 +10,7 @@
 #include <linux/slab.h>
 #include <linux/acpi.h>
 #include <linux/pci.h>
+#include <linux/delay.h>
 
 #include "radeon_acpi.h"
 
@@ -256,6 +257,10 @@ static int radeon_atpx_set_discrete_stat
 		if (!info)
 			return -EIO;
 		kfree(info);
+
+		/* 200ms delay is required after off */
+		if (state == 0)
+			msleep(200);
 	}
 	return 0;
 }

Patches currently in stable-queue which might be from [email protected] are

queue-3.14/drm-radeon-add-a-delay-after-atpx-dgpu-power-off.patch queue-3.14/drm-radeon-support-backlight-control-for-uniphy3.patch queue-3.14/drm-radeon-poll-for-both-connect-disconnect-on-analog-connectors.patch queue-3.14/drm-radeon-fix-firmware-info-version-checks.patch