From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2063606A323 for ; Sun, 29 Nov 2026 16:55:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=1++EpsfB; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.a=rsa-sha256 header.s=gloria202408 header.b=IDjUkv8t DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=zV16NxxNtVOwmiqfXutQLchwAEIXfi/lWXDeZxU4bmg=; b=1++EpsfBBqXVZ85KfpJMDHWVGH JqMdCvzAW2erBFRDMZ7te18FYHxTUV3okvooiKjWzEBn6g8ORzYlIuf+dy6yowvkOuR+cLOJC7PK7 2TQCvA1Y+Y39CXq6uzA+tS5iM8yuMXFl6ZS3EB1nl2vozfPoMSt0ihvV/aq8/MZVgljOAcXCL9D6o VMKcVYK6i8QSbj1eBOekILPMT+CSPmp77d0m4b3Zh4EFEH94njX9rZ5conUXR2lqTlgiS4B1SYGHP Y8XObRHzDImQEaZJXaSjp0JCGOjkSb2/LXOeYN8jOjoxFhm5mCbKiAxlov1HhWsjA36r3yO0//H3B 4RohI67A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXiAv-00000002Gso-0AbE; Sun, 29 Nov 2026 16:54:53 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXiAt-00000002GsC-0UWB; Sun, 29 Nov 2026 16:54:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Type:Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To; bh=zV16NxxNtVOwmiqfXutQLchwAEIXfi/lWXDeZxU4bmg=; b=IDjUkv8tL4iXd823rkkgbWsrYH r3Y5LRHH4yHrVsb5tmaHLwKu2YgGtdrAPfeME3l/0FEc9t6BDxYYuLr6zGC2t6mVHt30b8ey56NgU OWZJfF5jZzRTdeZGjzv6aKCWW9ZbipF6EqI85Y2l6wFLITZXu3IwxTGDjk9p2dTMo6R26iSwqXfWd BSN9SRVviYfAbeBejmkdW0NEXqXJvnDPczxJka4cDNdRL0plQJpRvpZXX3zBUlgmAGj1RqUUNWV0A xXH019c2qOp81ZOCyApXlcWVN27I2Sl9K+G9l3q3mcgX+wOJJ7PyuU9VD0kTkEWrtdpOxKzXc7LLG ADhhOvPA==; From: Heiko Stuebner To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , ricardo@pardini.net Cc: Lucas Tanure , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Yifeng Zhao , stable@vger.kernel.org, Sebastian Reichel , Ricardo Pardini Subject: Re: [PATCH v2] phy: rockchip: naneng-combphy: fix RK3588 SATA pipe_con1 register offset Date: Sun, 29 Nov 2026 17:54:45 +0100 Message-ID: In-Reply-To: <20261115-rk3588-combphy-sata2-6g-v2-1-778e0e8011fe@pardini.net> References: <20261115-rk3588-combphy-sata2-6g-v2-1-778e0e8011fe@pardini.net> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_085451_159072_E83EFE83 X-CRM114-Status: GOOD ( 13.18 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Am Sonntag, 15. November 2026, 16:48:11 Mitteleurop=C3=A4ische Normalzeit s= chrieb Ricardo Pardini via B4 Relay: > From: Yifeng Zhao >=20 > On RK3588, the sata2 PHY speed is selected by sata2_phy_spdmode in > PHP_GRF_PHP_CON1[1:0] (offset 0x0004), with sata2_phy_rx_err in bit 2. > rk3588_combphy_grfcfgs has pipe_con1_for_sata at offset 0x0000 though, > so the value 0x2 (6.0 Gb/s, rx_err cleared) ends up in PHP_GRF_PHP_CON0 > and CON1 is never written. >=20 > This leaves sata2 at its 1.5 Gb/s reset value, so the link only trains > at 1.5 Gb/s, even with a 6 Gb/s capable disk and no SControl speed > limit. sata0 and sata1 are not affected: their speed fields are in > PHP_GRF_PHP_CON0 and are set by pipe_con0_for_sata. >=20 > The misplaced write also lands in PHP_GRF_PHP_CON0[2:0], which are the > PCIe link reset grant bits, and turns on the one for pcie3x2 whenever a > combphy is put in SATA mode. No effect from that is known, but this > stops it too. >=20 > The register layout is described in the RK3588 TRM V1.0 Part1, section > 6.17 "PHP_GRF Register Description". >=20 > Tested with an mSATA SSD on sata2 (combphy2_psu). Before: >=20 > ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300) > Timing O_DIRECT disk reads: 374 MB in 3.01 seconds =3D 124.45 MB/sec >=20 > After: >=20 > ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300) > Timing O_DIRECT disk reads: 1266 MB in 3.00 seconds =3D 421.78 MB/sec >=20 > Fixes: a03c44277253 ("phy: rockchip: Add naneng combo phy support for RK3= 588") > Cc: stable@vger.kernel.org > Signed-off-by: Yifeng Zhao > [rewrite commit message] > Reviewed-by: Sebastian Reichel > Signed-off-by: Ricardo Pardini Reviewed-by: Heiko Stuebner