Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2414806pxb; Thu, 3 Feb 2022 06:15:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTmGGwSs/8Dyzl+nE4pcP+tSebUN4IIO8irZ77dsoPkWT8K2FZuNuzIQJhohbPo0WbcDU+ X-Received: by 2002:a17:907:1690:: with SMTP id hc16mr30815799ejc.333.1643897710825; Thu, 03 Feb 2022 06:15:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643897710; cv=none; d=google.com; s=arc-20160816; b=z05n4N8xHSKySUPicScS1uaguGQlHSpgZdV+9TR4YvUzL8CKj/yp2b6SW7hFnrbuOC FOYNjUDRIudzQ6rMIJhM+BEziZ4mTce84XkReIdHLMkoUh61akXRKMscijh0MJGIk5tL 0AK3w+arnSZ7HgE5cNWJKy6n778bPYnOml7TXOaasAE7RqBFb+UqCod66CBvzj43Djp8 tMI5TAM1okd3rqdlXZZSehvn7vKyhkD3NEqZ2MqRfKhdy2ViEMW3YGb+BP5j6TgopWwl 2vFO4pNyGGCkkbC3mbLwuvhidqUXECJYda3EuzkPebL2SD6l3ZPZv1xgKFfsNIsvuzQz 0lnQ== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=kHFZt5ExAMgoEYkZFLG6QwlbWlZPlvx8CSZ6ctiCXPw=; b=eZruThs1cUJrACJ1CgYzx5DBVdKqwlyNYipDRrDDaWb0fkB+Yr112Pn7tCjqlEeojE ZLRSG3hmEUd4kuElmCK883y8oTg1euqHaiTVSVc0xeuHUAlO4knSNPiSo287uOrWE/xu yGQal/K9X0Jmak8IuwRg1dm+cLoB7ZAZFTCX4/AZ0d9T20Obi3nNB0S1Htqkj/+s8Hi7 NjoKzFu/nwgxlMaB63PJmWsE6VhINA31Nvp7/Qa+yxRQXATRXokbj58uY0fF5avphlVO oL/p0+s14KtCufUK3aoeExfZgQuP61p9rv7sDIG25PmxVPtShlqDM7VhGj2A4DeAmeoZ u3zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=Zwz6qYgy; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=io0QARvZ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=opensource.wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n23si13041864ejl.220.2022.02.03.06.14.45; Thu, 03 Feb 2022 06:15:10 -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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=Zwz6qYgy; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=io0QARvZ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=opensource.wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235510AbiBAI1x (ORCPT + 99 others); Tue, 1 Feb 2022 03:27:53 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:35292 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235487AbiBAI1x (ORCPT ); Tue, 1 Feb 2022 03:27:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1643704072; x=1675240072; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=D4M53Zuz/HgDGQqLCLLEoLL3kiq5QIWQEo0Ih1LbUWk=; b=Zwz6qYgyUto7UqPYiH295bHPP3jpEqxa6ipYjgKRvSAfMaGp1L1H8qOz sEP549PCRaYoZwnTSiey6tGd8dKjv1/HwKjPAp+RIllqTj2eJHq/I5oDc 93Flqe9vZujgWKAqOzt+puEeJsRYX/MFOc61aBR1ilbUeJk5vWeAysbsq 57nBp4wh0UT0vH7nSHaBZ6KaWybfP0lCjlajnI7lgeQgoteMFcH9rBVug 7KevSnNSRfQ1YNWGjxzGGm0+6WehZv4nG7tf8fhHXKvCdqF4tpXZuHkME pumbKfv186qO1EcKqgJk4yz1pSA+IifyzaK8HW4Lhla31yd0Kl2BxVMSp w==; X-IronPort-AV: E=Sophos;i="5.88,333,1635177600"; d="scan'208";a="190815639" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 01 Feb 2022 16:27:52 +0800 IronPort-SDR: k5ooF0xUOYoA1gd2TcZvEGVHFYeRoUPQSrQPbRbbn0F0L6jU07qhis1jDhbiJb/BeoL4jbgsaV 586nZ5E8P7MGpqvDku2kOULNREU9Oh93PScfNXI+eDKKkAKU0DND+U/q4lTBbr5MLKSu1fyYuH aPpFo742oJlscPWBBMOfux/fAwOjrQM3Qn5Bd2caDeXxyLoEKJBw0yq//wzJU6QdzNChzj0zsw jJTed7t2z+PiwNgw1arTV8tCmDsm8P9qOl/DcEHyfV0EWw5tGqHpc3uA8T45f4DngH6mxrRgW3 XtxhG+X2ixjVC1qfsbqAeknR 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; 31 Jan 2022 23:59:50 -0800 IronPort-SDR: UcW+cg1jN8G95hpTLmluxZBN3of91R4QPrSG8F5fegC5EFYVw3xbnAbTLy6dnwLRmxmTIQAsMp CyKzZ89GEbjLA4eRdUF/BCUZb5Z8AhY87fbzkBoXNumvQNaacpIm4qB4dIFSlmttSmMlftPgFq FOhBp5pT4ZyuPrHgN0C25gzEyBjjATW7DSqYqhlPseKf1PEiycIncS11VDAYLZJCx30Dc9lTU8 5Ti2yBrwHhN2qn+MmCekvFcevHdz350qwUIu3CU24mUoGQ94iXJAMxhomAboIacyvx1tU8u3LU zgk= 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; 01 Feb 2022 00:27:53 -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 4Jnyjh30l7z1Rwrw for ; Tue, 1 Feb 2022 00:27:52 -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= 1643704072; x=1646296073; bh=D4M53Zuz/HgDGQqLCLLEoLL3kiq5QIWQEo0 Ih1LbUWk=; b=io0QARvZTKXc2Vmm/e+1Ki8rjhaZTy/6cW+ipL08IVKGGIfs8VW t2SHQMpZsJ80oXsCl9kt+Uw9eiMX6aZeJlB0pqKI8YMEzITF+BDPuzvrh/NXA+cF FbyWIxdM49OGsFjtWAGfjiCrZklvOu8acnXa/s00OqkUI+fT0fFaCTRtseSjIfT5 coCkeew0FRjw1EwyTlappBj3qG7g/ELgHJ7dtadbiWZvNFjPCSyMlcqZJHi5ahg6 lRcnwvtHYJfNc2lb92lO7A0aq1aolMcpoGcFWI+FmeC4U3JRX7T0rQvRWYrX0Crz 9JRv5NwFS4R7kkm4tDYV/pfjYsY7e7u8m1g== 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 ACOQsQvgBRET for ; Tue, 1 Feb 2022 00:27:52 -0800 (PST) Received: from [10.225.54.48] (unknown [10.225.54.48]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4Jnyjg4Dwjz1RvlN; Tue, 1 Feb 2022 00:27:51 -0800 (PST) Message-ID: Date: Tue, 1 Feb 2022 17:27:50 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; 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: Paul Menzel Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220201071229.6418-1-pmenzel@molgen.mpg.de> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20220201071229.6418-1-pmenzel@molgen.mpg.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/02/01 16:12, Paul Menzel wrote: > The 200 ms delay before debouncing the PHY in `sata_link_resume()` is > not needed for the Marvell 88SE9235. >=20 > $ 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) >=20 > So, remove it. Tested on IBM S822LC with current Linux 5.17-rc1: >=20 > Currently, without this patch (with 200 ms delay), device probe for ata= 1 > takes 485 ms: >=20 > [ 3.358158] ata1: SATA max UDMA/133 abar m2048@0x3fe881000000 po= rt 0x3fe881000100 irq 39 > [ 3.358175] ata2: SATA max UDMA/133 abar m2048@0x3fe881000000 po= rt 0x3fe881000180 irq 39 > [ 3.358191] ata3: SATA max UDMA/133 abar m2048@0x3fe881000000 po= rt 0x3fe881000200 irq 39 > [ 3.358207] ata4: SATA max UDMA/133 abar m2048@0x3fe881000000 po= rt 0x3fe881000280 irq 39 > [=E2=80=A6] > [ 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 30= 0) > [ 3.839828] ata2.00: ATA-10: ST1000NX0313 00LY266 00LY26= 5IBM, BE33, max UDMA/133 > [ 3.840029] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (dep= th 32), AA > [ 3.841796] ata2.00: configured for UDMA/133 > [ 3.843231] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 30= 0) > [ 3.844083] ata1.00: ATA-10: ST1000NX0313 00LY266 00LY26= 5IBM, BE33, max UDMA/133 > [ 3.844313] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (dep= th 32), AA > [ 3.846043] ata1.00: configured for UDMA/133 >=20 > With this patch (no delay) device probe for ata1 takes 273 ms: >=20 > [ 3.624259] ata1: SATA max UDMA/133 abar m2048@0x3fe881000000 po= rt 0x3f e881000100 irq 39 > [ 3.624436] ata2: SATA max UDMA/133 abar m2048@0x3fe881000000 po= rt 0x3f e881000180 irq 39 > [ 3.624452] ata3: SATA max UDMA/133 abar m2048@0x3fe881000000 po= rt 0x3f e881000200 irq 39 > [ 3.624468] ata4: SATA max UDMA/133 abar m2048@0x3fe881000000 po= rt 0x3f e881000280 irq 39 > [=E2=80=A6] > [ 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 30= 0) > [ 3.897678] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 30= 0) > [ 3.898140] ata1.00: ATA-10: ST1000NX0313 00LY266 00LY26= 5IBM, BE33, max UDMA/133 > [ 3.898175] ata2.00: ATA-10: ST1000NX0313 00LY266 00LY26= 5IBM, BE33, max UDMA/133 > [ 3.898287] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (dep= th 32), AA > [ 3.898349] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (dep= th 32), AA > [ 3.900070] ata1.00: configured for UDMA/133 > [ 3.900166] ata2.00: configured for UDMA/133 >=20 > 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 >=20 > drivers/ata/ahci.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > 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[] =3D= { > .driver_data =3D board_ahci_yes_fbs }, > { PCI_DEVICE(PCI_VENDOR_ID_MARVELL_EXT, 0x9230), > .driver_data =3D board_ahci_yes_fbs }, > + { PCI_DEVICE(PCI_VENDOR_ID_MARVELL_EXT, 0x9235), > + .driver_data =3D board_ahci_no_debounce_delay }, > { PCI_DEVICE(PCI_VENDOR_ID_TTI, 0x0642), /* highpoint rocketraid 642L= */ > .driver_data =3D board_ahci_yes_fbs }, > { PCI_DEVICE(PCI_VENDOR_ID_TTI, 0x0645), /* highpoint rocketraid 644L= */ Looks good. Will apply to for-5.18. --=20 Damien Le Moal Western Digital Research