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 F3751C433EF for ; Fri, 26 Nov 2021 02:36:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358090AbhKZCjj (ORCPT ); Thu, 25 Nov 2021 21:39:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:47710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358009AbhKZChW (ORCPT ); Thu, 25 Nov 2021 21:37:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 204C4611EF; Fri, 26 Nov 2021 02:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637893976; bh=QWMHff///cdpgVezASIjBFZWNqsaaffX51zkOArCCt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uh17NDIMSFUIm2rU0O87/NCvXyIHAOLlfnZEu7ZMmEZrK5N49YGfphjsakA2OKL1O RtEpk3L08i6XstX3s5ayzNBhEJKe1+4xNjscD6/6798ha2/27XYrvq7XuMPjmD1WE4 YcjWzXIfGZRbzLI6x8Ezw6KF1yO7dSy1J/1mLcNfa9DTZVaJjOqPJKYTV9iAHEjDf7 M7xnPxne69OJo6CDYdZcrA5eno4q1IP0yBJgdO4mSvajuDP9oE+ORLb/A5jMhnmYzH 6pHh5qjqK5uHaGz/olZvMnRkfPu2CxT4mkH6xBVnLYOP8tTLoqHpUfvywsuD96leGa r8Yz1bnHabFDg== 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 5.15 27/39] ata: ahci: Add Green Sardine vendor ID as board_ahci_mobile Date: Thu, 25 Nov 2021 21:31:44 -0500 Message-Id: <20211126023156.441292-27-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211126023156.441292-1-sashal@kernel.org> References: <20211126023156.441292-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-kernel@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 186cbf90c8ead..812731e80f8e0 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -442,6 +442,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