From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84E9AC433F5 for ; Fri, 26 Nov 2021 02:43:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357658AbhKZCqM (ORCPT ); Thu, 25 Nov 2021 21:46:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:50354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358056AbhKZCoL (ORCPT ); Thu, 25 Nov 2021 21:44:11 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C23C66128E; Fri, 26 Nov 2021 02:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637894152; bh=Y/aMfI/u6HPzLgwpCSxDxrK5kYFbVC6ohyEyOEWm0zE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AkXkESMLj6/GC9pXQMrmA5BYGeb3RE8E8ii0eXzt+JDQNvRkdKE5iQXSnRTTeGjTV JcMDyMvTRG7lUnxPbu8e1UrIjKgD9UswyK+tYXgKIwchXcpmm02V92S/Fh8JzfI5wz PSFQkkBwjvvo6N3se3N6KotdvweyYRMsMePGLbd6eqYIoxF3xxAAOTWYdXY3cSzqmC NJHGGHJrAx8X8kmoY+s2QO4c51VOO0kB0LXGKjgILojmx/qA6CDeeFfSg2b4vfPa/0 E/E2ROqM/7TM9uAAhENWOzw+E+GXp4VhCwJMQUJwLRDSbvsMQTzWYueA1Fhc5ETFbC RlUVq94aoxqUQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mario Limonciello , Nehal-bakulchandra Shah , Damien Le Moal , Sasha Levin , linux-ide@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 11/15] ata: ahci: Add Green Sardine vendor ID as board_ahci_mobile Date: Thu, 25 Nov 2021 21:35:29 -0500 Message-Id: <20211126023533.442895-11-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211126023533.442895-1-sashal@kernel.org> References: <20211126023533.442895-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Mario Limonciello [ Upstream commit 1527f69204fe35f341cb599f1cb01bd02daf4374 ] AMD requires that the SATA controller be configured for devsleep in order for S0i3 entry to work properly. commit b1a9585cc396 ("ata: ahci: Enable DEVSLP by default on x86 with SLP_S0") sets up a kernel policy to enable devsleep on Intel mobile platforms that are using s0ix. Add the PCI ID for the SATA controller in Green Sardine platforms to extend this policy by default for AMD based systems using s0i3 as well. Cc: Nehal-bakulchandra Shah BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214091 Signed-off-by: Mario Limonciello Signed-off-by: Damien Le Moal Signed-off-by: Sasha Levin --- drivers/ata/ahci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 8df0ec85cc7b9..505920d4530f8 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -436,6 +436,7 @@ static const struct pci_device_id ahci_pci_tbl[] = { /* AMD */ { PCI_VDEVICE(AMD, 0x7800), board_ahci }, /* AMD Hudson-2 */ { PCI_VDEVICE(AMD, 0x7900), board_ahci }, /* AMD CZ */ + { PCI_VDEVICE(AMD, 0x7901), board_ahci_mobile }, /* AMD Green Sardine */ /* AMD is using RAID class only for ahci controllers */ { PCI_VENDOR_ID_AMD, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_RAID << 8, 0xffffff, board_ahci }, -- 2.33.0