Received: by 10.213.65.68 with SMTP id h4csp434591imn; Tue, 13 Mar 2018 08:57:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELtd00EccnukefOeZKxjwIx9dpB8q3FodsrVwJ3GViAokznU2mW/hNjlXZu2pGT+fxev8GoW X-Received: by 10.99.164.25 with SMTP id c25mr882672pgf.235.1520956679744; Tue, 13 Mar 2018 08:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520956679; cv=none; d=google.com; s=arc-20160816; b=V5vXaGIGWLPG2nhkMjJp1MjoW6JonmVg+LMqTSDeHu0nEtHDlaiEO6JNTfiPNCK+0k T7zcfTll2FL8RGAt7WuZ/64ezYFMCEimsoWpQbuePweTvQ+RBp8+q5myAsVPQZj0K/OZ jeEjY/e1RqF9/SV3xPwh/D91D4mhUo1/HTFfOvOoA61E7gSjVQD4G3d2b1+dFQDVME0p Occ9tb1ShZ7EKmGBgzBFVc6A57XpYpxZaeVcGuTcAupszOWIMtCbwQa7KlxRii40Jt/p mkgyecHqyLnZ3p0V4xM0c1DR4rtSWHemQEIj8kOlDaqy5UUT9iRAgHDHOjoR8xg6LWZG gtmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=dKqaGho5QKyKOMKZxo19NL170uYea5LCvxNn+Gsl4h8=; b=ZjgQsUtQkCoLE6rsmHNsNHybWOtnTib0D4By32DukBTyWa5meiT6rL382aKpIA/9B7 fcQUqg+Rw8v5XojTwkGiyQY73/dxYEwwDKrB/LHI+6zfN6gVfL9T0thS5aQUn6unPM5W ctj5V42g46B2WcuzZLuoxAnN1iEur3FiO2tNfSXYeat9kGZZHsOkuASAufXH2ZEwZZX1 kBRHqTeBQqFaadegyBkZOr4EySCeYJHe7xc6jrs69lxUZHpiYSrwoRTa+VVt5L+Ak6lU BDB2+ABr4xlwvTDbiX6rhE2atT45yle0Zeim6KKQOez6mxoUI+XAI0lzr/Nwn7fx24ct Sdzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p18si265957pgu.147.2018.03.13.08.57.45; Tue, 13 Mar 2018 08:57:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934579AbeCMPin (ORCPT + 99 others); Tue, 13 Mar 2018 11:38:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34960 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbeCMPil (ORCPT ); Tue, 13 Mar 2018 11:38:41 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 97877E06; Tue, 13 Mar 2018 15:38:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alex Deucher , Rex Zhu Subject: [PATCH 4.14 073/140] drm/amdgpu: Notify sbios device ready before send request Date: Tue, 13 Mar 2018 16:24:36 +0100 Message-Id: <20180313152503.081983970@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rex Zhu commit 1bced75f4ab04bec55aecb57d99435dc6d0ae5a0 upstream. it is required if a platform supports PCIe root complex core voltage reduction. After receiving this notification, SBIOS can apply default PCIe root complex power policy. Reviewed-by: Alex Deucher Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c @@ -540,6 +540,9 @@ int amdgpu_acpi_pcie_performance_request size_t size; u32 retry = 3; + if (amdgpu_acpi_pcie_notify_device_ready(adev)) + return -EINVAL; + /* Get the device handle */ handle = ACPI_HANDLE(&adev->pdev->dev); if (!handle)