From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f195.google.com ([209.85.223.195]:34679 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863AbcFAUxg (ORCPT ); Wed, 1 Jun 2016 16:53:36 -0400 Received: by mail-io0-f195.google.com with SMTP id l9so4081418ioe.1 for ; Wed, 01 Jun 2016 13:53:35 -0700 (PDT) From: Alex Deucher To: dri-devel@lists.freedesktop.org Cc: Alex Deucher , stable@vger.kernel.org Subject: [PATCH 03/12] drm/amdgpu: add a delay after ATPX dGPU power off Date: Wed, 1 Jun 2016 16:53:16 -0400 Message-Id: <1464814405-19729-4-git-send-email-alexander.deucher@amd.com> In-Reply-To: <1464814405-19729-1-git-send-email-alexander.deucher@amd.com> References: <1464814405-19729-1-git-send-email-alexander.deucher@amd.com> Sender: stable-owner@vger.kernel.org List-ID: ATPX dGPU power control requires a 200ms delay between power off and on. This should fix dGPU failures on resume from power off. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c index 1be2ce4..c5d280c 100644 --- 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" @@ -271,6 +272,10 @@ static int amdgpu_atpx_set_discrete_state(struct amdgpu_atpx *atpx, u8 state) if (!info) return -EIO; kfree(info); + + /* 200ms delay is required after off */ + if (state == 0) + msleep(200); } return 0; } -- 2.5.5