Received: by 10.213.65.68 with SMTP id h4csp464808imn; Fri, 16 Mar 2018 08:33:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELsmNeE/X7T/oc0+4x7btieFv1gJUmckoUC0e4Gw+Zz+nOx6rSRAKWotNVJFHHDKiDm2Xz13 X-Received: by 2002:a17:902:20c9:: with SMTP id v9-v6mr2672763plg.41.1521214399170; Fri, 16 Mar 2018 08:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521214399; cv=none; d=google.com; s=arc-20160816; b=XyDPIcPGUDrbBujOBU5uB7fAXwf8jlwS5CDKfZs+deSnmDyV7k0AmII74uKopY4kR4 6r1u/550C2GALLeZN8bGgFV+mqXRC2cziLKTdx8W5vv2pkDuc2uYdG35zzWGgwi63U2x F0iMPX+fcMEeTUohICPmydzjpT2y4wlPVX62+r5CzxQbnrvaDcIGIFO+BMkoyjAUnbmo tAYVEi8c95TcRM8DD9NZJqVzSlzxyisyV2KRrtZxA8jnF2ON6J3jjVIerOJ9/+I1jZ7L rJon2BwSBIlChlDePoJ+p6DQmgmKoZ3bN1v1pNTQexU77sT6+qnT9OsUHdh2t/KQCJOA 1Onw== 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=sj3nTBJbWXbaDhfr5fbTPGQ3dqgVDD9ZQNpdNGcZx4E=; b=TtxBymyd0j0uzNBuc2ZtPKiDn5OJXTq8W6StfUr+JPVcceK9XayG7aeO4PNNKvR1JM ttXM47cFt9AVyunZ9UPbSvq3GadArmpttbTU+CD9svi930i/2He4ymKQJn0rNNG25w1b olN156DQhfGPkWCH1P6Pa1NzoMDqDDdh8nn7x/XUO7dd7hhnqXtRVysBYBVHaUFqTUiO 13VFjrRd9Ow1sKZ5KWuTg955WSz8cXklpoZpMQKFxw27cCOextEelrfcQ8wevse38dbs Fu4FPohFyAwZtUIfhy6mXI+W4l/AwO/arpSn16ZriiQfs5Q64uTCBGCX0nANnxBSFhws +mJA== 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 f20-v6si4476946plj.748.2018.03.16.08.33.03; Fri, 16 Mar 2018 08:33:19 -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 S933424AbeCPPbj (ORCPT + 99 others); Fri, 16 Mar 2018 11:31:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37606 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933410AbeCPPbh (ORCPT ); Fri, 16 Mar 2018 11:31:37 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7254711AA; Fri, 16 Mar 2018 15:31:36 +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.9 12/86] drm/amdgpu: Notify sbios device ready before send request Date: Fri, 16 Mar 2018 16:22:35 +0100 Message-Id: <20180316152318.128741687@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@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.9-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)