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 24A65C433EF for ; Thu, 3 Mar 2022 12:23:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233006AbiCCMXz (ORCPT ); Thu, 3 Mar 2022 07:23:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbiCCMXy (ORCPT ); Thu, 3 Mar 2022 07:23:54 -0500 Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C041D3ED18 for ; Thu, 3 Mar 2022 04:23:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1646310187; x=1677846187; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=4ytR077ROdCEvm8uXoeYExz5DphYoqhERw4ias0FZyY=; b=SWDasRBeJlYK7A5GqJ1EvoWnmAEdsTVAZLh1yfWzzKyAYptP2/k5vKuA bDgrvSEGO5Mpf58c2f62Ejx6RXY4NZVv1LKyrACKnFPfiacJz+ejUi1MH wM6Q3iH0saNCnyJw1RA+LwFA0enSUi0OPeCECW6ELIBsyRIQGuYsFdwK2 5o5y4QOTux11fsYKXApAaSHbnFAyZkTXHg60VNXKgjNRHklNbNvcd3UK4 3xDp6wxbMwdUgERhrtT4UhEy39Sw/fplkLG6JztOpVKvAqpQDT2uo5D45 7l4q0yFejOraFLpoYfB9lTzvKT63DuhVcvWab5at0QjmZK5L7MuHFSA/6 g==; X-IronPort-AV: E=Sophos;i="5.90,151,1643644800"; d="scan'208";a="298511902" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 03 Mar 2022 20:23:06 +0800 IronPort-SDR: w1CDgKxoGeQjI9Akc12lG7PjdZk7rza91saqMKs3PE4LpFupT5ovO29i2fvNAAMkZuYnnhW5wV U4m7RNtxUpHQyJa2sXt2fuquwU1FRjIaEx6TGGOs6KxpKYPku5UpD+GWl5t8EaD7xxihTMxZvo VJiVOqtaZToUiHQiNdNq/Ij0fJ/uivAs9PghzMN7nT1weIKtvo/Mz0FoX11ewooNPpgCohN77w 5GNcgCmgU2WAFrnkw0e5alCo3ZWP2mewKWM2KCB7PJHObj2sLtPEjKWQIDiKYjh83AYO8JaO07 Nb7hT3Fbxbs0ZSCeHBs5cEQl Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 03:54:28 -0800 IronPort-SDR: GOMf8kSOXZwd4Kq6oXxyThCJ1wqe/iLUidWLvIYDuDtlI7sZhPLzhPfgv1Op8IhusDVvACQdm/ 8PCwb7JCf1S2hGRTHpDebcIHOcgWsDc3oyTQ+L2bMlboHHgVfelf2oaynRAjGvLsruKHtH928b 3l1SD4FTdf2ISHW6hMxIm1rwMGPayPCg4X1RpNUix7tcA034MC3Swa9bi2L3HxUT0hA/+eozuu O0lv1hYNu+rkZNXgK7u6fm+vbGA0RfELVMo31eqhd28gNsw1I+eq4SYwd0UFCiI/gm1zOqsbbJ yPM= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 04:23:06 -0800 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4K8VWG0Pzbz1SHwl for ; Thu, 3 Mar 2022 04:23:06 -0800 (PST) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1646310185; x=1648902186; bh=4ytR077ROdCEvm8uXoeYExz5DphYoqhERw4 ias0FZyY=; b=JyEuOrwamXKsh+W4+k0zPCZFYK9548wacidSsF43Q/jL+k1wnGm hOFKoZpahEzZk5kFFMIVQXIwnqIUC3/rwO2WGaLQPs2WCbNnZRNRyesdwmc1jon6 tpTqtyKHL7cn91vdLuXLnUxKEnqU+qIqB574WpL7VM1fqjbBY8NOHbpPZ1AGLqLy S4qj2cbdXJRe5AehEhIuPrqmU5FlQpn/jKTB/ek9jYrQZuGfcqnp34zNo7CSpR5Y X3Qq+0DuMVgg1PvTwWE5ZN2vU9IKtDguQLlypRbQcTDi8gJtNPeppmlFutLa8nyW Pn2fGcH2qowRe7wyxuDMk+sXOGNDE4ixsYg== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UBByTtQ2SKnF for ; Thu, 3 Mar 2022 04:23:05 -0800 (PST) Received: from [10.225.33.67] (unknown [10.225.33.67]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4K8VWD0Nfxz1Rvlx; Thu, 3 Mar 2022 04:23:03 -0800 (PST) Message-ID: <0a7c8ee9-1e09-75a4-3241-883fc8540561@opensource.wdc.com> Date: Thu, 3 Mar 2022 14:23:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 2/2] [RFC] ata: ahci: Skip debounce delay for AMD FCH SATA Controller Content-Language: en-US To: Paul Menzel Cc: Hans de Goede , Mario Limonciello , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220303100453.30018-1-pmenzel@molgen.mpg.de> <20220303100453.30018-2-pmenzel@molgen.mpg.de> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20220303100453.30018-2-pmenzel@molgen.mpg.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 2022/03/03 12:04, Paul Menzel wrote: > AMD devices with the FCH SATA Controller 0x1022:0x7901 do not need the > default debounce delay of 200 ms. >=20 > 07:00.2 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] = FCH SATA Controller [AHCI mode] [1022:7901] (rev 51) >=20 > So skip it, by mapping it to the board with no debounce delay. >=20 > Tested on the MSI MS-7A37/B350M MORTAR (MS-7A37). >=20 > To-do: Add test details and results. Please squash this patch together with patch 1. Since you are adding a ne= w board entry definition, it is better to have a user for it in the same patch (t= his avoids reverts to leave unused code behind). >=20 > Signed-off-by: Paul Menzel > Cc: Hans de Goede > Cc: Mario Limonciello > --- > I am travelling so could not test this exact patch just yet, but I ran > something similar for several weeks already. It=E2=80=99d be great, if = the > desktop and AMD folks could also give this a try. >=20 > drivers/ata/ahci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c > index 0fc09b86a559..44b79fe43d13 100644 > --- a/drivers/ata/ahci.c > +++ b/drivers/ata/ahci.c > @@ -456,7 +456,7 @@ static const struct pci_device_id ahci_pci_tbl[] =3D= { > { PCI_VDEVICE(AMD, 0x7800), board_ahci }, /* AMD Hudson-2 */ > { PCI_VDEVICE(AMD, 0x7801), board_ahci_no_debounce_delay }, /* AMD Hu= dson-2 (AHCI mode) */ > { PCI_VDEVICE(AMD, 0x7900), board_ahci }, /* AMD CZ */ > - { PCI_VDEVICE(AMD, 0x7901), board_ahci_low_power }, /* AMD Green Sard= ine */ > + { PCI_VDEVICE(AMD, 0x7901), board_ahci_low_power_no_debounce_delay },= /* AMD Green Sardine */ Really long name, but I cannot think of anything better... > /* 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 }, --=20 Damien Le Moal Western Digital Research