Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp700645pxm; Thu, 3 Mar 2022 02:54:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCG6iwI7+ukbZHHboaTqNOJ2XE2to/El4CJrxfkD3uSENSrxT3+8rHvQJzxOPyVDbDZruH X-Received: by 2002:a17:906:3a18:b0:6cd:ba45:995f with SMTP id z24-20020a1709063a1800b006cdba45995fmr27344310eje.328.1646304881099; Thu, 03 Mar 2022 02:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646304881; cv=none; d=google.com; s=arc-20160816; b=Wuwx8NfsaLo9TLuD2lSxWsphEmplu7VaQIOQGPLemx1V86d+fC3k26xL3Pzpy9GM+e vEjhRauKUAW9Ekvrg+e2PXVqeSfYyFLEuEm54KyHSekULIySZBz+UlghqMmh/xuNdPnV x5jBoGVYOyvOLJt9I5GJcBM6tBNxQ5RtY2+Oyzdqb28PVZJNisGjvVSQq8drVHL2d2bi Utrd20jBcPG8VPmjNILR0a1wRM0EC74HOQZoypB9gcV0yrIBswk0YIIz7d1e31ily6GW vtpoRCYQ4w9nuQt8oLujwdu9yo+/fzGoFzQE029nxXZ7FVnNxoR9pyxOSiXWf9bbwjyo AJFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=o4+M/nmmqyUuF3a12oW6APzxngRU0oJoUSmQCeRCnlM=; b=VXcDXijUKRgKzr5ylabJ7YFJ0Dnt/LtbDn7f9O5ktcctA3Gc3wpIBG4DRDPAzo4bzz +CnRG0OMG1yQahYNA06WPOcBbiaLCsYJRNsOyRH5/ZOIbvs0u5+irbdZudDjgKFHBeg4 kFSqWBjwubHPBiwRZ9b5Vc+y46HdMTK8weydzUd1AiUCsAZtn4Lw3+zS/8JaRvYzsu3r ZxoIFvj+2ZjmSjSpTSc73gQ53vbzG7J6S5tyPjR6T7R9KWO5npV/HmyELzCP3rPF/SGF 33PEN8IQRF0JzrT+iImP+h5tZbrMmRWtEHPFFfCSaCo3d1rVwYDIatnp/JVfrmUwFIlx C8aA== 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 z7-20020a056402274700b00415b1c624e8si1267291edd.516.2022.03.03.02.54.18; Thu, 03 Mar 2022 02:54:41 -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 S231394AbiCCKHL (ORCPT + 99 others); Thu, 3 Mar 2022 05:07:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiCCKHK (ORCPT ); Thu, 3 Mar 2022 05:07:10 -0500 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC9B1795DE; Thu, 3 Mar 2022 02:06:24 -0800 (PST) Received: from handsomejack.molgen.mpg.de (handsomejack.molgen.mpg.de [141.14.17.248]) by mx.molgen.mpg.de (Postfix) with ESMTP id 1F11261EA192A; Thu, 3 Mar 2022 11:06:23 +0100 (CET) From: Paul Menzel To: Damien Le Moal Cc: Paul Menzel , Hans de Goede , Mario Limonciello , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] [RFC] ata: ahci: Skip debounce delay for AMD FCH SATA Controller Date: Thu, 3 Mar 2022 11:04:53 +0100 Message-Id: <20220303100453.30018-2-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220303100453.30018-1-pmenzel@molgen.mpg.de> References: <20220303100453.30018-1-pmenzel@molgen.mpg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT,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 AMD devices with the FCH SATA Controller 0x1022:0x7901 do not need the default debounce delay of 200 ms. 07:00.2 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51) So skip it, by mapping it to the board with no debounce delay. Tested on the MSI MS-7A37/B350M MORTAR (MS-7A37). To-do: Add test details and results. 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’d be great, if the desktop and AMD folks could also give this a try. drivers/ata/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] = { { PCI_VDEVICE(AMD, 0x7800), board_ahci }, /* AMD Hudson-2 */ { PCI_VDEVICE(AMD, 0x7801), board_ahci_no_debounce_delay }, /* AMD Hudson-2 (AHCI mode) */ { PCI_VDEVICE(AMD, 0x7900), board_ahci }, /* AMD CZ */ - { PCI_VDEVICE(AMD, 0x7901), board_ahci_low_power }, /* AMD Green Sardine */ + { PCI_VDEVICE(AMD, 0x7901), board_ahci_low_power_no_debounce_delay }, /* 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.30.2