From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.11.138.130 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795971295; b=KQfhQTE8kkn60bK8aEBAuUd/m1Hyd23gPLCPfbv6bl9TwYFN5Okdk+1CZiKhgeLMk/Mj V51bFLiQlNatPouA4omdVlsOOlf+8RAj7o3q4TERMEBb5NFwL11gSHAkrGrLvBIXosBVu YyzFgPap1zWlVuh61E+pZgB/cFwoZbwMIdtJhVyqWOTqObJSQW+6P/DL+5CSDz/etPP9+ l06wd9qbNHYURVbjwiX3NQ3HDk3BQjVswE8PeUG1zEiKQyEVrdLqiCIQ+8yPeRjBJINlN HAvCyLWinT1i3QooR8Uyf5Xa1IASh3eEhGIIVDCqrMFLew4KrSbzaKLGwwToEqBr+8w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795971295; h=DMARC-Filter:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: Content-Type; bh=zV16NxxNtVOwmiqfXutQLchwAEIXfi/lWXDeZxU4bmg=; b=AqexplUZ9rGOBz8SmoG7McdtPoHMOq854AaCtlZC0PehV+gTTmwYBMQRMVKrTwWKXsEf EOLRxkk5dTSqdL2sbZOIFUBT3CgIKOV1rdVRxJu4oB4RuRste/XWXdV+2JAxI1k1PmlTv 4x5vYszV6a3HwR+7lDItiszrP9OZxanZQ9s4pilypRScKGnFXGwulOC+Zns1Jp9d/VLpD QokWSpAOVT56CtGBODcigNwJDhTDM9DqdxKhDrp+9r58lUJbIQw89nGOUhNcycLN8ZJNv N7U8zeOoaRJVgFurBk/GknCQLZaq6dvmYv2nFLMnkguDTZ5vDmmnjJskLpNwoL3RL2Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass header.d=sntech.de header.i=@sntech.de header.a=rsa-sha256 header.s=gloria202408 header.b=IDjUkv8t; arc=none smtp.remote-ip=185.11.138.130 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0477606A323; Sun, 29 Nov 2026 16:54:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A0477606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; 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=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-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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