Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5547637pxb; Mon, 14 Feb 2022 01:31:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9dfbG8vynVD7fT9XbWnn3jptmJZfMrmwEvLTlqRakkfYakYzJPpXl1aGpH0AGg2c/15OB X-Received: by 2002:a05:6402:1d4b:: with SMTP id dz11mr14510406edb.202.1644831107995; Mon, 14 Feb 2022 01:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644831107; cv=none; d=google.com; s=arc-20160816; b=Dm7AZnXSpwst98t+DLmnyDdb7yEWpmavkne2cdc7P3INF9OlnSlbolWGTJ6pKuJf39 jV6ophzUC7zsikw+fHuvZfECCHIeg1RKI3Ex5BkZOy9d7rcxZ956gmjhdbuJCViU6NIA /b1jC3LGFnfDuEHEV4VlFMpe0HndjIfU8ZXoSfQHcTmOX0a1hk774yDy+0YXSP/wSzA2 +rr8VsT4ZTdIP3BtTUKOt5PWAL/lz/iZc/vSEZCl+RsXaiy4lSvA5dkxuNd/NiClWLEm FR+HY0Ar6eQ3pUNLRYa5yFTWHv6aQMcOKoiGFTmMArmxqt7MlRkq3z5etd9mOpyrzo4X ZDtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=uScMw/NrmobgGrAMajVZGmkp1pg8dt7f4/4mf5YThIs=; b=kQswfm7TNMhkub6mYL+tsHz+rvoX87GWMPDHQEpMRlIDAwFVwyqDeo3tIpxqR/EBjC 4NIlk6762A6yrER57RpeDlMGQ1CzHJBcUW0rRUOj1TjoTe5CrxnE0nIeGOnZC0FSbCdc Ru3L87aVps4SiV8/1WCupeGiZ5y8w4rzMfKjAixcx4YgZCxxS2S6/xbxb++GVwxkVMDF Uh+jVL+85JMkNfmb+Rp7SOZ831JoEgzu+U46s45j5n6XJXdch8MVASTLbM4ayVxfQLBD s76VzAb+7V7fE4ZRIv6QnKLFg5mnFgDCdzKc3lsYXCDt19At0/c2ajpwxdi9xLYLkETb ycxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18si23250997edd.179.2022.02.14.01.31.25; Mon, 14 Feb 2022 01:31:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235926AbiBNIHw (ORCPT + 99 others); Mon, 14 Feb 2022 03:07:52 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbiBNIHv (ORCPT ); Mon, 14 Feb 2022 03:07:51 -0500 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D65755F27B; Mon, 14 Feb 2022 00:07:42 -0800 (PST) Received: from [192.168.0.2] (ip5f5aebfe.dynamic.kabel-deutschland.de [95.90.235.254]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id A6BA961EA1924; Mon, 14 Feb 2022 09:07:39 +0100 (CET) Message-ID: <960946b8-8f73-9f81-735a-64e5cc555a9c@molgen.mpg.de> Date: Mon, 14 Feb 2022 09:07:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH 1/2] ahci: Add Green Sardine vendor ID as board_ahci_mobile Content-Language: en-US To: Mario Limonciello Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Damien Le Moal , Nehal-bakulchandra Shah References: <20211112201539.17377-1-mario.limonciello@amd.com> From: Paul Menzel In-Reply-To: <20211112201539.17377-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Mario, (For the records, is part of Linux since 5.16-rc2 (commit 1527f69204fe).) Am 12.11.21 um 21:15 schrieb Mario Limonciello: > 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 > --- > drivers/ata/ahci.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c > index d60f34718b5d..1e1167e725a4 100644 > --- a/drivers/ata/ahci.c > +++ b/drivers/ata/ahci.c > @@ -438,6 +438,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 */ Aren’t 0x7900 and 0x7901 the same device only in different modes? I wonder, why different boards and different comments are used. Additionally, the device 0x7901 is also present in desktop systems like Dell OptiPlex 5055 and MSI B350 MORTAR. Is `board_ahci_mobile` the right board then? Or should the flag `AHCI_HFLAG_IS_MOBILE` be renamed to avoid confusion? > /* 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 }, Kind regards, Paul