From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:60885 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753981AbcHRLqz (ORCPT ); Thu, 18 Aug 2016 07:46:55 -0400 Subject: Patch "drm/amdgpu: add a delay after ATPX dGPU power off" has been added to the 4.7-stable tree To: alexander.deucher@amd.com, Hawking.Zhang@amd.com, christian.koenig@amd.com, gregkh@linuxfoundation.org Cc: , From: Date: Thu, 18 Aug 2016 13:38:41 +0200 Message-ID: <1471520321105160@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled drm/amdgpu: add a delay after ATPX dGPU power off to the 4.7-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-amdgpu-add-a-delay-after-atpx-dgpu-power-off.patch and it can be found in the queue-4.7 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From f81eb1a349d47694fe1e688336ca1b40ea3e248a Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 1 Jun 2016 12:54:33 -0400 Subject: drm/amdgpu: 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 commit f81eb1a349d47694fe1e688336ca1b40ea3e248a upstream. ATPX dGPU power control requires a 200ms delay between power off and on. This should fix dGPU failures on resume from power off. Reviewed-by: Hawking Zhang Acked-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "amd_acpi.h" @@ -259,6 +260,10 @@ static int amdgpu_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 alexander.deucher@amd.com are queue-4.7/drm-amdgpu-support-backlight-control-for-uniphy3.patch queue-4.7/drm-amdgpu-fix-firmware-info-version-checks.patch queue-4.7/drm-radeon-add-a-delay-after-atpx-dgpu-power-off.patch queue-4.7/drm-amdgpu-add-a-delay-after-atpx-dgpu-power-off.patch queue-4.7/drm-amdgpu-poll-for-both-connect-disconnect-on-analog-connectors.patch queue-4.7/drm-radeon-support-backlight-control-for-uniphy3.patch queue-4.7/drm-radeon-poll-for-both-connect-disconnect-on-analog-connectors.patch queue-4.7/drm-radeon-fix-firmware-info-version-checks.patch queue-4.7/drm-amdgpu-gmc7-add-missing-mullins-case.patch queue-4.7/drm-amdgpu-disable-rpm-helpers-while-reprobing-connectors-on-resume.patch