mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: cix: sky1: fix RCSU strap/status reg of pcie_x2_rc node
@ 2026-09-22  3:34 Jianfeng Liu
  2026-11-03  1:59 ` Gary Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Jianfeng Liu @ 2026-09-22  3:34 UTC (permalink / raw)
  To: cix-kernel-upstream
  Cc: Jianfeng Liu, Fugang.duan, Conor Dooley, Gary Yang, Hans Zhang,
	Krzysztof Kozlowski, Manivannan Sadhasivam, Peter Chen,
	Rob Herring, devicetree, linux-arm-kernel, linux-kernel

The "rcsu_strap" and "rcsu_status" reg entries of the pcie_x2_rc node
contain a spurious "0", yielding 9-digit addresses 0x0a0600340 and
0x0a0600440 instead of 0x0a060340 and 0x0a060440.

The other Sky1 PCIe controllers use a 0x20 stride within the 0x0a060000
RCSU block:

	pcie_x8_rc:   0x0a060300 / 0x0a060400
	pcie_x2_rc:   0x0a060340 / 0x0a060440  (fixed)
	pcie_x1_0_rc: 0x0a060360 / 0x0a060460
	pcie_x1_1_rc: 0x0a060380 / 0x0a060480

With the typo the driver reads the strap/status registers 0x1000 bytes
off, landing in the neighbouring controller's RCSU bank. Fix the
addresses so the correct registers are accessed.

Fixes: 0b014cd8f15e ("arm64: dts: cix: Add PCIe Root Complex on sky1")
Signed-off-by: Jianfeng Liu <Jianfeng.Liu@cixtech.com>
Reviewed-by: Fugang.duan <fugang.duan@cixtech.com>
---

 arch/arm64/boot/dts/cix/sky1.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/cix/sky1.dtsi b/arch/arm64/boot/dts/cix/sky1.dtsi
index 0a820f45feb9..d64cd935970e 100644
--- a/arch/arm64/boot/dts/cix/sky1.dtsi
+++ b/arch/arm64/boot/dts/cix/sky1.dtsi
@@ -661,8 +661,8 @@ pcie_x2_rc: pcie@a0c0000 {
 			compatible = "cix,sky1-pcie-host";
 			reg = <0x00 0x0a0c0000 0x00 0x10000>,
 			      <0x00 0x26000000 0x00 0x3000000>,
-			      <0x00 0x0a0600340 0x00 0x20>,
-			      <0x00 0x0a0600440 0x00 0x20>,
+			      <0x00 0x0a060340 0x00 0x20>,
+			      <0x00 0x0a060440 0x00 0x20>,
 			      <0x00 0x40000000 0x00 0x00100000>;
 			reg-names = "reg", "cfg", "rcsu_strap", "rcsu_status", "msg";
 			ranges = <0x01000000 0x0 0x40100000 0x0 0x40100000 0x0 0x00100000>,
---
base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
branch: fix-mainline-pcie-x2

-- 
2.55.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: cix: sky1: fix RCSU strap/status reg of pcie_x2_rc node
  2026-09-22  3:34 [PATCH] arm64: dts: cix: sky1: fix RCSU strap/status reg of pcie_x2_rc node Jianfeng Liu
@ 2026-11-03  1:59 ` Gary Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Yang @ 2026-11-03  1:59 UTC (permalink / raw)
  To: Jianfeng Liu
  Cc: cix-kernel-upstream, Fugang.duan, Conor Dooley, Hans Zhang,
	Krzysztof Kozlowski, Manivannan Sadhasivam, Peter Chen,
	Rob Herring, devicetree, linux-arm-kernel, linux-kernel

Applied, thanks!

On 2026-09-22 11:34, Jianfeng Liu wrote:

> [Some people who received this message don't often get email from jianfeng.liu@cixtech.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> The "rcsu_strap" and "rcsu_status" reg entries of the pcie_x2_rc node
> contain a spurious "0", yielding 9-digit addresses 0x0a0600340 and
> 0x0a0600440 instead of 0x0a060340 and 0x0a060440.
> 
> The other Sky1 PCIe controllers use a 0x20 stride within the 0x0a060000
> RCSU block:
> 
>         pcie_x8_rc:   0x0a060300 / 0x0a060400
>         pcie_x2_rc:   0x0a060340 / 0x0a060440  (fixed)
>         pcie_x1_0_rc: 0x0a060360 / 0x0a060460
>         pcie_x1_1_rc: 0x0a060380 / 0x0a060480
> 
> With the typo the driver reads the strap/status registers 0x1000 bytes
> off, landing in the neighbouring controller's RCSU bank. Fix the
> addresses so the correct registers are accessed.
> 
> Fixes: 0b014cd8f15e ("arm64: dts: cix: Add PCIe Root Complex on sky1")
> Signed-off-by: Jianfeng Liu <Jianfeng.Liu@cixtech.com>
> Reviewed-by: Fugang.duan <fugang.duan@cixtech.com>
> ---
> 
>  arch/arm64/boot/dts/cix/sky1.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/cix/sky1.dtsi b/arch/arm64/boot/dts/cix/sky1.dtsi
> index 0a820f45feb9..d64cd935970e 100644
> --- a/arch/arm64/boot/dts/cix/sky1.dtsi
> +++ b/arch/arm64/boot/dts/cix/sky1.dtsi
> @@ -661,8 +661,8 @@ pcie_x2_rc: pcie@a0c0000 {
>                         compatible = "cix,sky1-pcie-host";
>                         reg = <0x00 0x0a0c0000 0x00 0x10000>,
>                               <0x00 0x26000000 0x00 0x3000000>,
> -                             <0x00 0x0a0600340 0x00 0x20>,
> -                             <0x00 0x0a0600440 0x00 0x20>,
> +                             <0x00 0x0a060340 0x00 0x20>,
> +                             <0x00 0x0a060440 0x00 0x20>,
>                               <0x00 0x40000000 0x00 0x00100000>;
>                         reg-names = "reg", "cfg", "rcsu_strap", "rcsu_status", "msg";
>                         ranges = <0x01000000 0x0 0x40100000 0x0 0x40100000 0x0 0x00100000>,
> ---
> base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
> branch: fix-mainline-pcie-x2
> 
> --
> 2.55.0
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-03  1:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22  3:34 [PATCH] arm64: dts: cix: sky1: fix RCSU strap/status reg of pcie_x2_rc node Jianfeng Liu
2026-11-03  1:59 ` Gary Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®