Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2356246pxb; Sun, 30 Jan 2022 13:25:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcx7rWKqQ3VlqzhdPQ7MFSJ63w4Ycs5zMN2iaVjMaZA2KAlwewoCsgTfjHOdIR88pp4Kjp X-Received: by 2002:a63:85c1:: with SMTP id u184mr14395575pgd.115.1643577944246; Sun, 30 Jan 2022 13:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643577944; cv=none; d=google.com; s=arc-20160816; b=Hs3a/EG6ihWhf5wqTZKARcDvQenxGHm5cBkNGQH2RbC3sV4BTnhiLJYkhQPa2q+d98 otKzhykeynmsXaInRuHSqSNSOxPh8UpAdccdy4/3CKEcDCtwJf11kGltXhtjq8OG5HI8 PfLw1rugiWcq1kj+2ySocjvQAkY2hU8yJXIR+UNQXdbCBxAjAXwwlkx+igPnUDAUWr0o iSKBWm688cAmo1btJBN7WuaVtM1AY/7ULbm4s97e8Lt2AxKgY2+Wt+lKNUP253Vm5mcu X1mMGPQ5U2dOf8oU22ayVGLYfRz1WPuCQa+ufixO4x8fb+6XHojQqZGqNQDfCpwvBssB qmMg== 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=rmuArAxafNaCi4kFAXQDu7kJ81AEYUQRQrYlcHCXtzQ=; b=LziyooB7JfgyoyObyIqwUI06JKur0aYz2c5HfipXFU4/SkrEt8Un+2+H9S+YpWllIX KnVHU5Q7DSpgBIyFchDDNHo84IDBKJQab1+8s+tliTbhOSg9Dwhw/9ekLbi7R8I5MD24 T5rtA6gNhwKMoHzu2V+X/x3Q5C6Ft1Jy0t8yirZcZnR/a239wfXlgqSgaLgK9fOu3WNM wQGeXFdSKZ9ZNYVhltvz+Xlke8TLqnFeOdmFEnlidVHmv/svCS5N86CxXi/HRMBXZq6Z xgsYdxAVFxxfqNoh/D17il3R209rwa6eIAkx7kI4tjIaW6IBz7qWZWbml6CGvTCPucDB YEBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si11672425pgb.289.2022.01.30.13.25.33; Sun, 30 Jan 2022 13:25:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242014AbiA1J6u (ORCPT + 99 others); Fri, 28 Jan 2022 04:58:50 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:41003 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237775AbiA1J6t (ORCPT ); Fri, 28 Jan 2022 04:58:49 -0500 Received: from [192.168.0.2] (ip5f5aecde.dynamic.kabel-deutschland.de [95.90.236.222]) (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 64FCE61EA1923; Fri, 28 Jan 2022 10:58:46 +0100 (CET) Message-ID: Date: Fri, 28 Jan 2022 10:58:45 +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] 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: <20220127233527.445659-1-pmenzel@molgen.mpg.de> <1ef3e995-3f61-ef53-0d5e-03bb41a52624@opensource.wdc.com> From: Paul Menzel In-Reply-To: <1ef3e995-3f61-ef53-0d5e-03bb41a52624@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, Thank you for the quick reply. Am 28.01.22 um 00:40 schrieb Damien Le Moal: > On 1/28/22 08:35, 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: >> >> Without this patch (with 200 ms delay): >> >> [ 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 patch (no delay): >> >> [ 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 >> --- >> 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 */ > > Looks good. But for the commit message, instead of the dmesg copy-paste, > could you simply write the gains in terms of shortened scan time ? That > would make it easier to understand the benefits of the patch. I can do: > Tested on IBM S822LC with current Linux 5.17-rc1, and the 200 ms is > gone, and the drives are still detected. I would still like to keep the Linux logs, as then it’s clear what I tested with (drives), and what ports were populated. > Also, there is no need for the lspci output. In my opinion, it prooves I used the correct PCI vendor and device codes, and also shows the revision number of the device I tested with. Kind regards, Paul