Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2749039pxb; Thu, 3 Feb 2022 13:27:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxB06dsDvbqWqeuIbdbPddWMel40asG6N1epq1SwLMjZHKn0HdtigWM7tqU0/qQV/IZ1cFn X-Received: by 2002:a05:6402:3514:: with SMTP id b20mr71782edd.65.1643923631347; Thu, 03 Feb 2022 13:27:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643923631; cv=none; d=google.com; s=arc-20160816; b=eDJiTaDhlUpxG2Nf4jkeyr4NncV+DMVZ7lENa9pOIgBxLb2cLcOJ03eQS9FUxdCYkf FPODHV1euNoXFgcACXLEdZ2qs+u0Q4u9ETdtuz+LZT3Ba80VievJMY6oP2zgV0HRgW/H RWfr+GGADcKtKLqbOA4rK+km7DmUPDu0EGmw4QnkdPUtSbFoaI8HuSK0QA7R9IIA6Ght wYfyWQna1XKhTcSzc0gwZbRv/NmAIlem55P8KDn5k0UIuScHoyrUA/CrXYY2qYvPCN70 JirAQHXtMLFNh//w7pZhVFyL9Um9wsXHtE2RhRIvDtGPRl8DF07b2vI2hqFYM2LOvy4i 15tA== 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=wWSfw3SO2nwNGIsPUHIVi6rLc+bCxBRj5cTV5e0HiqE=; b=GTZXjvfVKDm8NMB20hxOfRB1A6KWaHJKMdW5YcVPgybs3QXX6jR9qFYOzubqHTQ0sg 6pHPhNicDVNwSpO1KxysPV7gGkd1H1o22bGqaQRiebPd0BwPzNtMIojVcN1TryC9mqvO RZj07r14GpWf1m9ZnGYEWX1kyzkygoLGfPgCuUd309YJAD57+o8JO2iAvfVcNG7eu0ky iFcZOWWVJq9ogbfyh/ERjRU4joSb294bjWwyMvy75eBRbqysjuGBa4KXc/eJsz0Xm8Vj mjdMoSRj8HSR5e9oFF1j+uyRtZxPGRyfn9dBFHHGnmT6HBRdSNMmwfSDFSqp3VCp9BuD FTKw== 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 nd8si13306584ejc.2.2022.02.03.13.26.44; Thu, 03 Feb 2022 13:27:11 -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 S230186AbiBBO3b (ORCPT + 99 others); Wed, 2 Feb 2022 09:29:31 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:59937 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1344966AbiBBO3a (ORCPT ); Wed, 2 Feb 2022 09:29:30 -0500 Received: from [10.59.106.37] (unknown [77.235.169.38]) (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 13FD361EA1924; Wed, 2 Feb 2022 15:29:27 +0100 (CET) Message-ID: <1378dd0a-52d2-c998-5713-e6875c601194@molgen.mpg.de> Date: Wed, 2 Feb 2022 15:29:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v3] ata: ahci: Skip 200 ms debounce delay for Marvell 88SE9235 Content-Language: en-US To: Damien Le Moal Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220201071229.6418-1-pmenzel@molgen.mpg.de> <3437ffcb-68b5-04e5-acd5-b3857fbf1be7@opensource.wdc.com> From: Paul Menzel In-Reply-To: <3437ffcb-68b5-04e5-acd5-b3857fbf1be7@opensource.wdc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Damien, Am 02.02.22 um 09:14 schrieb Damien Le Moal: > On 2/1/22 16:12, Paul Menzel wrote: >> The 200 ms delay before debouncing the PHY in `sata_link_resume()` is >> not needed for the Marvell 88SE9235. >> >> $ lspci -nn -s 0021:0e:00.0 >> 0021:0e:00.0 SATA controller [0106]: Marvell Technology Group Ltd. 88SE9235 PCIe 2.0 x2 4-port SATA 6 Gb/s Controller [1b4b:9235] (rev 11) >> >> So, remove it. Tested on IBM S822LC with current Linux 5.17-rc1: >> >> Currently, without this patch (with 200 ms delay), device probe for ata1 >> takes 485 ms: >> >> [ 3.358158] ata1: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3fe881000100 irq 39 >> [ 3.358175] ata2: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3fe881000180 irq 39 >> [ 3.358191] ata3: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3fe881000200 irq 39 >> [ 3.358207] ata4: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3fe881000280 irq 39 >> […] >> [ 3.677542] ata3: SATA link down (SStatus 0 SControl 300) >> [ 3.677719] ata4: SATA link down (SStatus 0 SControl 300) >> [ 3.839242] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300) >> [ 3.839828] ata2.00: ATA-10: ST1000NX0313 00LY266 00LY265IBM, BE33, max UDMA/133 >> [ 3.840029] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA >> [ 3.841796] ata2.00: configured for UDMA/133 >> [ 3.843231] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) >> [ 3.844083] ata1.00: ATA-10: ST1000NX0313 00LY266 00LY265IBM, BE33, max UDMA/133 >> [ 3.844313] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA >> [ 3.846043] ata1.00: configured for UDMA/133 >> >> With this patch (no delay) device probe for ata1 takes 273 ms: >> >> [ 3.624259] ata1: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3f e881000100 irq 39 >> [ 3.624436] ata2: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3f e881000180 irq 39 >> [ 3.624452] ata3: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3f e881000200 irq 39 >> [ 3.624468] ata4: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3f e881000280 irq 39 >> […] >> [ 3.731966] ata3: SATA link down (SStatus 0 SControl 300) >> [ 3.732069] ata4: SATA link down (SStatus 0 SControl 300) >> [ 3.897448] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) >> [ 3.897678] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300) >> [ 3.898140] ata1.00: ATA-10: ST1000NX0313 00LY266 00LY265IBM, BE33, max UDMA/133 >> [ 3.898175] ata2.00: ATA-10: ST1000NX0313 00LY266 00LY265IBM, BE33, max UDMA/133 >> [ 3.898287] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA >> [ 3.898349] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA >> [ 3.900070] ata1.00: configured for UDMA/133 >> [ 3.900166] ata2.00: configured for UDMA/133 >> >> Signed-off-by: Paul Menzel >> --- >> v2: address comments for commit message (but forgot v2 tag) >> v3: resend with v3 tag in subject line/commit message summary >> >> drivers/ata/ahci.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c >> index ab5811ef5a53..edca4e8fd44e 100644 >> --- a/drivers/ata/ahci.c >> +++ b/drivers/ata/ahci.c >> @@ -582,6 +582,8 @@ static const struct pci_device_id ahci_pci_tbl[] = { >> .driver_data = board_ahci_yes_fbs }, >> { PCI_DEVICE(PCI_VENDOR_ID_MARVELL_EXT, 0x9230), >> .driver_data = board_ahci_yes_fbs }, >> + { PCI_DEVICE(PCI_VENDOR_ID_MARVELL_EXT, 0x9235), >> + .driver_data = board_ahci_no_debounce_delay }, >> { PCI_DEVICE(PCI_VENDOR_ID_TTI, 0x0642), /* highpoint rocketraid 642L */ >> .driver_data = board_ahci_yes_fbs }, >> { PCI_DEVICE(PCI_VENDOR_ID_TTI, 0x0645), /* highpoint rocketraid 644L */ > > Applied to for-5.18 with commit title and message changes. The title is now: > > ata: ahci: Add support for Marvell 88SE9235 adapter > > Since it is exactly what this patch is doing by adding a PCI ID. Thank you for applying the patch. I saw the summary/title change also with the other patch. I am sorry, but I totally disagree. Reading that summary/title in `git log --oneline`, it’s not clear at all, what the patch does, and the full description or diff has to be read. “Add support” for me means, that it was unsupported before, which is not true at all as the defaults were used. > The comments about the 200ms debounce delay not being needed is kept as > a description of how this new adapter support is defined, using the > board_ahci_no_debounce_delay board definition. Kind regards, Paul