From: Igor Paunovic <royalnet026@gmail.com>
To: Sebastian Reichel <sebastian.reichel@collabora.com>,
Vinod Koul <vkoul@kernel.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Heiko Stuebner <heiko@sntech.de>,
Frank Wang <frank.wang@rock-chips.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: Igor Paunovic <royalnet026@gmail.com>,
Andy Yan <andy.yan@rock-chips.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Yubing Zhang <yubing.zhang@rock-chips.com>,
Alexey Charkov <alchark@flipper.net>,
William Wu <william.wu@rock-chips.com>,
linux-phy@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
kernel@collabora.com
Subject: Re: [PATCH v14 00/38] phy: rockchip: usbdp: Clean up the mess
Date: Sat, 15 Aug 2026 14:16:01 +0200 [thread overview]
Message-ID: <20260815121608.64818-1-royalnet026@gmail.com> (raw)
In-Reply-To: <20260813-rockchip-usbdp-cleanup-v14-0-b5ad9c68fa11@collabora.com>
Hi Sebastian,
I retested v14 on my Orange Pi 5 Plus, this time covering the phy-core
notifier patch and the new dwc3 glue patches (28/38-31/38), which do not
carry my tag yet.
Test kernel: 7.2.0-rc7, built from your rockchip-devel branch at
ea51774c5c42 ("usb: typec: mux: initialize mux switch array"), which
already contains the whole v14 series (I checked that 1/38 and 28/38-32/38
are in that history, plus all 32 "phy: rockchip: usbdp:" commits are
ancestors of it).
On top of that base I carry 50 local commits - display, GPU, media and
platform work. None of them touch drivers/usb/, drivers/usb/typec/ or
phy-rockchip-usbdp.c, but two are worth naming so you know exactly what
was under test:
- drivers/phy/rockchip/phy-rockchip-snps-pcie3.c: a one-line fix to the
PCIe combo PHY SRAM-init check. Unrelated to this series.
- arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts: in mainline
this board still has the old single-"port" graph for usbdp_phy0 and no
altmodes node on the usb-c-connector, so there is no DP alt mode to
exercise at all. I carry a local DT patch that converts usbdp_phy0 to
the four-port "ports" graph and usb_host0_xhci to the two-port graph
your bindings describe, and adds an altmodes/displayport node
(svid 0xff01) to the connector. That DT change is mine, it is not in
mainline and not part of v14 - so everything below is your v14 code,
unmodified, driven by that DT.
The USB-C link runs through an Epico EC65 "UltraLink 8K/60Hz HDMI to
USB-C" cable - an active DP alt-mode to HDMI converter (GsCooLink chip,
USB VID 0x3679) - into the HDMI input of a Samsung Odyssey G70B. So the
DP link partner your code negotiates with is that converter, not a
monitor directly.
What I actually exercised, running this kernel as my daily driver since it
booted on 2026-08-14 at 20:09 local time (17+ hours of continuous uptime
when I ran these checks):
- The new glue driver is bound to both controllers:
/sys/bus/platform/drivers/dwc3-rockchip/fc000000.usb
/sys/bus/platform/drivers/dwc3-rockchip/fc400000.usb
- DisplayPort alt mode is active at the Type-C layer:
/sys/class/typec/port0-partner/port0-partner.0/svid = ff01
/sys/class/typec/port0-partner/port0-partner.0/mode = 1
/sys/class/typec/port0-partner/port0-partner.0/active = yes
driving DP-1 at 3840x2160@120 with HDR, simultaneously with two HDMI
outputs: HDMI-A-1 to a Sony TV at 3840x2160@60 and HDMI-A-2 to a second
Odyssey G70B at 3840x2160@120, both with HDR.
Two caveats about DP-1, both pre-existing on my setup and unrelated to
your series: the converter emits a broken Y420VDB block, so I feed the
connector a corrected EDID through edid_override, and after the EDK2
firmware hand-off DP-1 comes up "disconnected" with the cable present,
so a boot script does one unbind/bind of the fusb302 i2c device to kick
it. Neither workaround was touched during the hotplug test below.
- Hot unplug/replug of the USB-C cable. The xHCI host controller was
re-registered and the DisplayPort output came back on its own, with no
manual intervention:
13:00:56 kernel: xhci-hcd xhci-hcd.6.auto: USB bus 4 deregistered
13:00:57 kwin_wayland_drm: Removing output
13:01:26 kernel: xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
13:01:26 kernel: xhci-hcd xhci-hcd.6.auto: Host supports USB 3.0 SuperSpeed
13:01:29 kwin_wayland_drm: New output on GPU /dev/dri/card0: Odyssey G70B
(kernel and compositor lines interleaved, abridged.) Note the ~30 s
between disconnect and re-registration - PD/alt-mode negotiation with
this converter is slow. After the replug the connector is back at
3840x2160@120 with HDR.
- No messages at all from dwc3, dwc3-rockchip or the usbdp PHY for the
whole uptime, before or after the replug.
For completeness, the DP controller does print a burst of 32
"dw-dp fde50000.dp: timeout waiting for AUX reply" right after the cable
is pulled - that is the DRM side probing a dead link, it clears on
replug and is not from your code. The converter's billboard device also
logs one "cdc_acm 3-1:1.1: probe with driver cdc_acm failed with error
-22" per connect - a converter quirk, seen daily on this setup since
long before this kernel.
One thing I should not hide: I do get a WARN from tcpm, but I trigger it
myself and it is not from this series:
WARNING: drivers/base/devres.c:1184 at devm_kfree+0xb8/0xd0
Call trace:
devm_kfree
tcpm_port_unregister_pd [tcpm]
tcpm_unregister_port [tcpm]
devm_tcpm_unregister_port [tcpm]
devm_action_release / release_nodes / devres_release_group
i2c_device_remove / device_release_driver_internal / unbind_store
(trace abridged.) It fires when the boot script mentioned above explicitly
unbinds fusb302 (i2c 6-0022), i.e. on the devres teardown path introduced
by 48bf0f5f9ec8
("usb: typec: tcpm: add device managed port registration") and fcdd23c1984e
("usb: typec: fusb302: Switch to device managed resources") in
rockchip-devel. Those are not part of v14 and I have not root-caused this,
but since they are in the branch I tested I thought you would rather know.
It does not fire on a normal cable unplug/replug, only on an explicit
driver unbind.
I am sending the Tested-by tags as separate replies to 28/38, 29/38, 30/38
and 31/38, so that they land on exactly those patches.
I am deliberately not tagging 32/38 ("fix USB-C reconnect in gadget mode").
I have never used this board in gadget mode, so I cannot claim to have
tested that path.
One build issue to report, starting at 31/38
============================================
The new glue driver cannot be built as a module once 31/38 is applied.
29/38 alone is fine - the glue it introduces only pulls in module.h,
platform_device.h, pm_runtime.h and glue.h. It is 31/38 that adds
#include "io.h" and the dwc3_readl()/dwc3_writel() calls.
Reproducer: ea51774c5c42, arm64 defconfig plus CONFIG_USB_DWC3=y,
CONFIG_USB_DWC3_ROCKCHIP=m, CONFIG_TRACEPOINTS=y. The build then fails at
modpost:
ERROR: modpost: "__tracepoint_dwc3_readl" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__traceiter_dwc3_readl" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__tracepoint_dwc3_writel" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__traceiter_dwc3_writel" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:147: Module.symvers] Error 1
[...]
dwc3_readl()/dwc3_writel() call trace_dwc3_readl()/trace_dwc3_writel(),
and the dwc3 tracepoints are not exported - there is no
EXPORT_TRACEPOINT_SYMBOL* anywhere in drivers/usb/dwc3/ - so a separate
module cannot reference them. With CONFIG_TRACEPOINTS=n the trace_* calls
become empty inlines and this should not trigger; I only tested
CONFIG_TRACEPOINTS=y.
dwc3-rockchip.c is the only glue driver in drivers/usb/dwc3/ that calls
the core's dwc3_readl()/dwc3_writel(). dwc3-st.c also includes io.h, but
it reads through its own st_dwc3_readl()/st_dwc3_writel(), and e.g.
dwc3-keystone.c defines kdwc3_readl()/kdwc3_writel() - though those all
access their own glue registers, not the core register block.
Two ways to fix it, whichever you prefer:
- EXPORT_TRACEPOINT_SYMBOL_GPL(dwc3_readl) and (dwc3_writel) in
drivers/usb/dwc3/trace.c, or
- open-code the access in the glue, e.g.
readl(dwc->regs + DWC3_GUSB3PIPECTL(port) - DWC3_GLOBALS_REGS_START),
at the cost of losing the dwc3_readl/dwc3_writel trace events.
I worked around it locally with CONFIG_USB_DWC3_ROCKCHIP=y, which is how
the kernel I tested above was built. Note that "default USB_DWC3" means
the glue follows the core: with CONFIG_USB_DWC3=y the default is =y and
the problem stays hidden, but with CONFIG_USB_DWC3=m the default would be
=m. I have not build-tested the CONFIG_USB_DWC3=m case. The Kconfig entry
added by 29/38 does promise "Say 'Y' or 'M' if you have such device."
This reply was prepared with the help of Claude (Anthropic). The board,
the tests and the measurements are mine, and I checked every claim above
before sending.
Best regards,
Igor
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
WARNING: multiple messages have this Message-ID (diff)
From: Igor Paunovic <royalnet026@gmail.com>
To: Sebastian Reichel <sebastian.reichel@collabora.com>,
Vinod Koul <vkoul@kernel.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Heiko Stuebner <heiko@sntech.de>,
Frank Wang <frank.wang@rock-chips.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: Igor Paunovic <royalnet026@gmail.com>,
Andy Yan <andy.yan@rock-chips.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Yubing Zhang <yubing.zhang@rock-chips.com>,
Alexey Charkov <alchark@flipper.net>,
William Wu <william.wu@rock-chips.com>,
linux-phy@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
kernel@collabora.com
Subject: Re: [PATCH v14 00/38] phy: rockchip: usbdp: Clean up the mess
Date: Sat, 15 Aug 2026 14:16:01 +0200 [thread overview]
Message-ID: <20260815121608.64818-1-royalnet026@gmail.com> (raw)
In-Reply-To: <20260813-rockchip-usbdp-cleanup-v14-0-b5ad9c68fa11@collabora.com>
Hi Sebastian,
I retested v14 on my Orange Pi 5 Plus, this time covering the phy-core
notifier patch and the new dwc3 glue patches (28/38-31/38), which do not
carry my tag yet.
Test kernel: 7.2.0-rc7, built from your rockchip-devel branch at
ea51774c5c42 ("usb: typec: mux: initialize mux switch array"), which
already contains the whole v14 series (I checked that 1/38 and 28/38-32/38
are in that history, plus all 32 "phy: rockchip: usbdp:" commits are
ancestors of it).
On top of that base I carry 50 local commits - display, GPU, media and
platform work. None of them touch drivers/usb/, drivers/usb/typec/ or
phy-rockchip-usbdp.c, but two are worth naming so you know exactly what
was under test:
- drivers/phy/rockchip/phy-rockchip-snps-pcie3.c: a one-line fix to the
PCIe combo PHY SRAM-init check. Unrelated to this series.
- arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts: in mainline
this board still has the old single-"port" graph for usbdp_phy0 and no
altmodes node on the usb-c-connector, so there is no DP alt mode to
exercise at all. I carry a local DT patch that converts usbdp_phy0 to
the four-port "ports" graph and usb_host0_xhci to the two-port graph
your bindings describe, and adds an altmodes/displayport node
(svid 0xff01) to the connector. That DT change is mine, it is not in
mainline and not part of v14 - so everything below is your v14 code,
unmodified, driven by that DT.
The USB-C link runs through an Epico EC65 "UltraLink 8K/60Hz HDMI to
USB-C" cable - an active DP alt-mode to HDMI converter (GsCooLink chip,
USB VID 0x3679) - into the HDMI input of a Samsung Odyssey G70B. So the
DP link partner your code negotiates with is that converter, not a
monitor directly.
What I actually exercised, running this kernel as my daily driver since it
booted on 2026-08-14 at 20:09 local time (17+ hours of continuous uptime
when I ran these checks):
- The new glue driver is bound to both controllers:
/sys/bus/platform/drivers/dwc3-rockchip/fc000000.usb
/sys/bus/platform/drivers/dwc3-rockchip/fc400000.usb
- DisplayPort alt mode is active at the Type-C layer:
/sys/class/typec/port0-partner/port0-partner.0/svid = ff01
/sys/class/typec/port0-partner/port0-partner.0/mode = 1
/sys/class/typec/port0-partner/port0-partner.0/active = yes
driving DP-1 at 3840x2160@120 with HDR, simultaneously with two HDMI
outputs: HDMI-A-1 to a Sony TV at 3840x2160@60 and HDMI-A-2 to a second
Odyssey G70B at 3840x2160@120, both with HDR.
Two caveats about DP-1, both pre-existing on my setup and unrelated to
your series: the converter emits a broken Y420VDB block, so I feed the
connector a corrected EDID through edid_override, and after the EDK2
firmware hand-off DP-1 comes up "disconnected" with the cable present,
so a boot script does one unbind/bind of the fusb302 i2c device to kick
it. Neither workaround was touched during the hotplug test below.
- Hot unplug/replug of the USB-C cable. The xHCI host controller was
re-registered and the DisplayPort output came back on its own, with no
manual intervention:
13:00:56 kernel: xhci-hcd xhci-hcd.6.auto: USB bus 4 deregistered
13:00:57 kwin_wayland_drm: Removing output
13:01:26 kernel: xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
13:01:26 kernel: xhci-hcd xhci-hcd.6.auto: Host supports USB 3.0 SuperSpeed
13:01:29 kwin_wayland_drm: New output on GPU /dev/dri/card0: Odyssey G70B
(kernel and compositor lines interleaved, abridged.) Note the ~30 s
between disconnect and re-registration - PD/alt-mode negotiation with
this converter is slow. After the replug the connector is back at
3840x2160@120 with HDR.
- No messages at all from dwc3, dwc3-rockchip or the usbdp PHY for the
whole uptime, before or after the replug.
For completeness, the DP controller does print a burst of 32
"dw-dp fde50000.dp: timeout waiting for AUX reply" right after the cable
is pulled - that is the DRM side probing a dead link, it clears on
replug and is not from your code. The converter's billboard device also
logs one "cdc_acm 3-1:1.1: probe with driver cdc_acm failed with error
-22" per connect - a converter quirk, seen daily on this setup since
long before this kernel.
One thing I should not hide: I do get a WARN from tcpm, but I trigger it
myself and it is not from this series:
WARNING: drivers/base/devres.c:1184 at devm_kfree+0xb8/0xd0
Call trace:
devm_kfree
tcpm_port_unregister_pd [tcpm]
tcpm_unregister_port [tcpm]
devm_tcpm_unregister_port [tcpm]
devm_action_release / release_nodes / devres_release_group
i2c_device_remove / device_release_driver_internal / unbind_store
(trace abridged.) It fires when the boot script mentioned above explicitly
unbinds fusb302 (i2c 6-0022), i.e. on the devres teardown path introduced
by 48bf0f5f9ec8
("usb: typec: tcpm: add device managed port registration") and fcdd23c1984e
("usb: typec: fusb302: Switch to device managed resources") in
rockchip-devel. Those are not part of v14 and I have not root-caused this,
but since they are in the branch I tested I thought you would rather know.
It does not fire on a normal cable unplug/replug, only on an explicit
driver unbind.
I am sending the Tested-by tags as separate replies to 28/38, 29/38, 30/38
and 31/38, so that they land on exactly those patches.
I am deliberately not tagging 32/38 ("fix USB-C reconnect in gadget mode").
I have never used this board in gadget mode, so I cannot claim to have
tested that path.
One build issue to report, starting at 31/38
============================================
The new glue driver cannot be built as a module once 31/38 is applied.
29/38 alone is fine - the glue it introduces only pulls in module.h,
platform_device.h, pm_runtime.h and glue.h. It is 31/38 that adds
#include "io.h" and the dwc3_readl()/dwc3_writel() calls.
Reproducer: ea51774c5c42, arm64 defconfig plus CONFIG_USB_DWC3=y,
CONFIG_USB_DWC3_ROCKCHIP=m, CONFIG_TRACEPOINTS=y. The build then fails at
modpost:
ERROR: modpost: "__tracepoint_dwc3_readl" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__traceiter_dwc3_readl" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__tracepoint_dwc3_writel" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__traceiter_dwc3_writel" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:147: Module.symvers] Error 1
[...]
dwc3_readl()/dwc3_writel() call trace_dwc3_readl()/trace_dwc3_writel(),
and the dwc3 tracepoints are not exported - there is no
EXPORT_TRACEPOINT_SYMBOL* anywhere in drivers/usb/dwc3/ - so a separate
module cannot reference them. With CONFIG_TRACEPOINTS=n the trace_* calls
become empty inlines and this should not trigger; I only tested
CONFIG_TRACEPOINTS=y.
dwc3-rockchip.c is the only glue driver in drivers/usb/dwc3/ that calls
the core's dwc3_readl()/dwc3_writel(). dwc3-st.c also includes io.h, but
it reads through its own st_dwc3_readl()/st_dwc3_writel(), and e.g.
dwc3-keystone.c defines kdwc3_readl()/kdwc3_writel() - though those all
access their own glue registers, not the core register block.
Two ways to fix it, whichever you prefer:
- EXPORT_TRACEPOINT_SYMBOL_GPL(dwc3_readl) and (dwc3_writel) in
drivers/usb/dwc3/trace.c, or
- open-code the access in the glue, e.g.
readl(dwc->regs + DWC3_GUSB3PIPECTL(port) - DWC3_GLOBALS_REGS_START),
at the cost of losing the dwc3_readl/dwc3_writel trace events.
I worked around it locally with CONFIG_USB_DWC3_ROCKCHIP=y, which is how
the kernel I tested above was built. Note that "default USB_DWC3" means
the glue follows the core: with CONFIG_USB_DWC3=y the default is =y and
the problem stays hidden, but with CONFIG_USB_DWC3=m the default would be
=m. I have not build-tested the CONFIG_USB_DWC3=m case. The Kconfig entry
added by 29/38 does promise "Say 'Y' or 'M' if you have such device."
This reply was prepared with the help of Claude (Anthropic). The board,
the tests and the measurements are mine, and I checked every claim above
before sending.
Best regards,
Igor
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
WARNING: multiple messages have this Message-ID (diff)
From: Igor Paunovic <royalnet026@gmail.com>
To: Sebastian Reichel <sebastian.reichel@collabora.com>,
Vinod Koul <vkoul@kernel.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Heiko Stuebner <heiko@sntech.de>,
Frank Wang <frank.wang@rock-chips.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: Igor Paunovic <royalnet026@gmail.com>,
Andy Yan <andy.yan@rock-chips.com>,
Dmitry Baryshkov <lumag@kernel.org>,
Yubing Zhang <yubing.zhang@rock-chips.com>,
Alexey Charkov <alchark@flipper.net>,
William Wu <william.wu@rock-chips.com>,
linux-phy@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
kernel@collabora.com
Subject: Re: [PATCH v14 00/38] phy: rockchip: usbdp: Clean up the mess
Date: Sat, 15 Aug 2026 14:16:01 +0200 [thread overview]
Message-ID: <20260815121608.64818-1-royalnet026@gmail.com> (raw)
In-Reply-To: <20260813-rockchip-usbdp-cleanup-v14-0-b5ad9c68fa11@collabora.com>
Hi Sebastian,
I retested v14 on my Orange Pi 5 Plus, this time covering the phy-core
notifier patch and the new dwc3 glue patches (28/38-31/38), which do not
carry my tag yet.
Test kernel: 7.2.0-rc7, built from your rockchip-devel branch at
ea51774c5c42 ("usb: typec: mux: initialize mux switch array"), which
already contains the whole v14 series (I checked that 1/38 and 28/38-32/38
are in that history, plus all 32 "phy: rockchip: usbdp:" commits are
ancestors of it).
On top of that base I carry 50 local commits - display, GPU, media and
platform work. None of them touch drivers/usb/, drivers/usb/typec/ or
phy-rockchip-usbdp.c, but two are worth naming so you know exactly what
was under test:
- drivers/phy/rockchip/phy-rockchip-snps-pcie3.c: a one-line fix to the
PCIe combo PHY SRAM-init check. Unrelated to this series.
- arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts: in mainline
this board still has the old single-"port" graph for usbdp_phy0 and no
altmodes node on the usb-c-connector, so there is no DP alt mode to
exercise at all. I carry a local DT patch that converts usbdp_phy0 to
the four-port "ports" graph and usb_host0_xhci to the two-port graph
your bindings describe, and adds an altmodes/displayport node
(svid 0xff01) to the connector. That DT change is mine, it is not in
mainline and not part of v14 - so everything below is your v14 code,
unmodified, driven by that DT.
The USB-C link runs through an Epico EC65 "UltraLink 8K/60Hz HDMI to
USB-C" cable - an active DP alt-mode to HDMI converter (GsCooLink chip,
USB VID 0x3679) - into the HDMI input of a Samsung Odyssey G70B. So the
DP link partner your code negotiates with is that converter, not a
monitor directly.
What I actually exercised, running this kernel as my daily driver since it
booted on 2026-08-14 at 20:09 local time (17+ hours of continuous uptime
when I ran these checks):
- The new glue driver is bound to both controllers:
/sys/bus/platform/drivers/dwc3-rockchip/fc000000.usb
/sys/bus/platform/drivers/dwc3-rockchip/fc400000.usb
- DisplayPort alt mode is active at the Type-C layer:
/sys/class/typec/port0-partner/port0-partner.0/svid = ff01
/sys/class/typec/port0-partner/port0-partner.0/mode = 1
/sys/class/typec/port0-partner/port0-partner.0/active = yes
driving DP-1 at 3840x2160@120 with HDR, simultaneously with two HDMI
outputs: HDMI-A-1 to a Sony TV at 3840x2160@60 and HDMI-A-2 to a second
Odyssey G70B at 3840x2160@120, both with HDR.
Two caveats about DP-1, both pre-existing on my setup and unrelated to
your series: the converter emits a broken Y420VDB block, so I feed the
connector a corrected EDID through edid_override, and after the EDK2
firmware hand-off DP-1 comes up "disconnected" with the cable present,
so a boot script does one unbind/bind of the fusb302 i2c device to kick
it. Neither workaround was touched during the hotplug test below.
- Hot unplug/replug of the USB-C cable. The xHCI host controller was
re-registered and the DisplayPort output came back on its own, with no
manual intervention:
13:00:56 kernel: xhci-hcd xhci-hcd.6.auto: USB bus 4 deregistered
13:00:57 kwin_wayland_drm: Removing output
13:01:26 kernel: xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
13:01:26 kernel: xhci-hcd xhci-hcd.6.auto: Host supports USB 3.0 SuperSpeed
13:01:29 kwin_wayland_drm: New output on GPU /dev/dri/card0: Odyssey G70B
(kernel and compositor lines interleaved, abridged.) Note the ~30 s
between disconnect and re-registration - PD/alt-mode negotiation with
this converter is slow. After the replug the connector is back at
3840x2160@120 with HDR.
- No messages at all from dwc3, dwc3-rockchip or the usbdp PHY for the
whole uptime, before or after the replug.
For completeness, the DP controller does print a burst of 32
"dw-dp fde50000.dp: timeout waiting for AUX reply" right after the cable
is pulled - that is the DRM side probing a dead link, it clears on
replug and is not from your code. The converter's billboard device also
logs one "cdc_acm 3-1:1.1: probe with driver cdc_acm failed with error
-22" per connect - a converter quirk, seen daily on this setup since
long before this kernel.
One thing I should not hide: I do get a WARN from tcpm, but I trigger it
myself and it is not from this series:
WARNING: drivers/base/devres.c:1184 at devm_kfree+0xb8/0xd0
Call trace:
devm_kfree
tcpm_port_unregister_pd [tcpm]
tcpm_unregister_port [tcpm]
devm_tcpm_unregister_port [tcpm]
devm_action_release / release_nodes / devres_release_group
i2c_device_remove / device_release_driver_internal / unbind_store
(trace abridged.) It fires when the boot script mentioned above explicitly
unbinds fusb302 (i2c 6-0022), i.e. on the devres teardown path introduced
by 48bf0f5f9ec8
("usb: typec: tcpm: add device managed port registration") and fcdd23c1984e
("usb: typec: fusb302: Switch to device managed resources") in
rockchip-devel. Those are not part of v14 and I have not root-caused this,
but since they are in the branch I tested I thought you would rather know.
It does not fire on a normal cable unplug/replug, only on an explicit
driver unbind.
I am sending the Tested-by tags as separate replies to 28/38, 29/38, 30/38
and 31/38, so that they land on exactly those patches.
I am deliberately not tagging 32/38 ("fix USB-C reconnect in gadget mode").
I have never used this board in gadget mode, so I cannot claim to have
tested that path.
One build issue to report, starting at 31/38
============================================
The new glue driver cannot be built as a module once 31/38 is applied.
29/38 alone is fine - the glue it introduces only pulls in module.h,
platform_device.h, pm_runtime.h and glue.h. It is 31/38 that adds
#include "io.h" and the dwc3_readl()/dwc3_writel() calls.
Reproducer: ea51774c5c42, arm64 defconfig plus CONFIG_USB_DWC3=y,
CONFIG_USB_DWC3_ROCKCHIP=m, CONFIG_TRACEPOINTS=y. The build then fails at
modpost:
ERROR: modpost: "__tracepoint_dwc3_readl" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__traceiter_dwc3_readl" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__tracepoint_dwc3_writel" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
ERROR: modpost: "__traceiter_dwc3_writel" [drivers/usb/dwc3/dwc3-rockchip.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:147: Module.symvers] Error 1
[...]
dwc3_readl()/dwc3_writel() call trace_dwc3_readl()/trace_dwc3_writel(),
and the dwc3 tracepoints are not exported - there is no
EXPORT_TRACEPOINT_SYMBOL* anywhere in drivers/usb/dwc3/ - so a separate
module cannot reference them. With CONFIG_TRACEPOINTS=n the trace_* calls
become empty inlines and this should not trigger; I only tested
CONFIG_TRACEPOINTS=y.
dwc3-rockchip.c is the only glue driver in drivers/usb/dwc3/ that calls
the core's dwc3_readl()/dwc3_writel(). dwc3-st.c also includes io.h, but
it reads through its own st_dwc3_readl()/st_dwc3_writel(), and e.g.
dwc3-keystone.c defines kdwc3_readl()/kdwc3_writel() - though those all
access their own glue registers, not the core register block.
Two ways to fix it, whichever you prefer:
- EXPORT_TRACEPOINT_SYMBOL_GPL(dwc3_readl) and (dwc3_writel) in
drivers/usb/dwc3/trace.c, or
- open-code the access in the glue, e.g.
readl(dwc->regs + DWC3_GUSB3PIPECTL(port) - DWC3_GLOBALS_REGS_START),
at the cost of losing the dwc3_readl/dwc3_writel trace events.
I worked around it locally with CONFIG_USB_DWC3_ROCKCHIP=y, which is how
the kernel I tested above was built. Note that "default USB_DWC3" means
the glue follows the core: with CONFIG_USB_DWC3=y the default is =y and
the problem stays hidden, but with CONFIG_USB_DWC3=m the default would be
=m. I have not build-tested the CONFIG_USB_DWC3=m case. The Kconfig entry
added by 29/38 does promise "Say 'Y' or 'M' if you have such device."
This reply was prepared with the help of Claude (Anthropic). The board,
the tests and the measurements are mine, and I checked every claim above
before sending.
Best regards,
Igor
next prev parent reply other threads:[~2026-08-15 12:16 UTC|newest]
Thread overview: 170+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 20:51 [PATCH v14 00/38] phy: rockchip: usbdp: Clean up the mess Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` [PATCH v14 01/38] dt-bindings: phy: rockchip-usbdp: add improved ports scheme Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` [PATCH v14 02/38] phy: rockchip: usbdp: Update mode_change after error handling Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 1:19 ` sashiko-bot
2026-08-14 1:19 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 03/38] phy: rockchip: usbdp: Do not lose USB3 PHY status Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 1:33 ` sashiko-bot
2026-08-14 1:33 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 04/38] phy: rockchip: usbdp: Fix devm_clk_bulk_get_all check Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 1:41 ` sashiko-bot
2026-08-14 1:41 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 05/38] phy: rockchip: usbdp: Handle missing clock-names DT property gracefully Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 1:53 ` sashiko-bot
2026-08-14 1:53 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 06/38] phy: rockchip: usbdp: Drop seamless DP takeover Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 2:06 ` sashiko-bot
2026-08-14 2:06 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 07/38] phy: rockchip: usbdp: Keep clocks running on PHY re-init Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 2:16 ` sashiko-bot
2026-08-14 2:16 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 08/38] phy: rockchip: usbdp: Amend SSC modulation deviation Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` [PATCH v14 09/38] phy: rockchip: usbdp: Fix LFPS detect threshold control Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` [PATCH v14 10/38] phy: rockchip: usbdp: Add missing mode_change update Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 2:41 ` sashiko-bot
2026-08-14 2:41 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 11/38] phy: rockchip: usbdp: Support single-lane DP Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 2:55 ` sashiko-bot
2026-08-14 2:55 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 12/38] phy: rockchip: usbdp: Limit DP lane count to muxed lanes Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-14 3:07 ` sashiko-bot
2026-08-14 3:07 ` sashiko-bot
2026-08-13 20:51 ` [PATCH v14 13/38] phy: rockchip: usbdp: Rename DP lane functions Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` [PATCH v14 14/38] phy: rockchip: usbdp: Use FIELD_PREP_WM16_CONST Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` [PATCH v14 15/38] phy: rockchip: usbdp: Cleanup DP lane selection function Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` [PATCH v14 16/38] phy: rockchip: usbdp: Register DP aux bridge Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:51 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 17/38] phy: rockchip: usbdp: Drop DP HPD handling Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 18/38] phy: rockchip: usbdp: Rename mode_change to phy_needs_reinit Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 19/38] phy: rockchip: usbdp: Re-init the PHY on orientation change Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 3:57 ` sashiko-bot
2026-08-14 3:57 ` sashiko-bot
2026-08-13 20:52 ` [PATCH v14 20/38] phy: rockchip: usbdp: Factor out lane_mux_sel setup Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 4:10 ` sashiko-bot
2026-08-14 4:10 ` sashiko-bot
2026-08-13 20:52 ` [PATCH v14 21/38] phy: rockchip: usbdp: Properly handle TYPEC_STATE_SAFE and TYPEC_STATE_USB Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 4:23 ` sashiko-bot
2026-08-14 4:23 ` sashiko-bot
2026-08-13 20:52 ` [PATCH v14 22/38] phy: rockchip: usbdp: Use guard functions for mutex Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 23/38] phy: rockchip: usbdp: Hold mutex in DP PHY configure Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 24/38] phy: rockchip: usbdp: Add some extra debug messages Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 25/38] phy: rockchip: usbdp: Avoid xHCI SErrors Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 4:52 ` sashiko-bot
2026-08-14 4:52 ` sashiko-bot
2026-08-13 20:52 ` [PATCH v14 26/38] phy: rockchip: usbdp: Handle rk_udphy_reset_deassert errors Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 27/38] phy: rockchip: usbdp: Only enable USB3 when not in high-speed mode Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 28/38] phy: core: add notifier infrastructure Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 5:14 ` sashiko-bot
2026-08-14 5:14 ` sashiko-bot
2026-08-15 12:22 ` Igor Paunovic
2026-08-15 12:22 ` Igor Paunovic
2026-08-15 12:22 ` Igor Paunovic
2026-08-13 20:52 ` [PATCH v14 29/38] usb: dwc3: rockchip: introduce glue driver Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 5:22 ` sashiko-bot
2026-08-14 5:22 ` sashiko-bot
2026-08-15 12:22 ` Igor Paunovic
2026-08-15 12:22 ` Igor Paunovic
2026-08-15 12:22 ` Igor Paunovic
2026-08-13 20:52 ` [PATCH v14 30/38] usb: dwc3: core: add post PHY registration hook for platform glue Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-15 12:22 ` Igor Paunovic
2026-08-15 12:22 ` Igor Paunovic
2026-08-15 12:22 ` Igor Paunovic
2026-08-13 20:52 ` [PATCH v14 31/38] usb: dwc3: rockchip: support PHY reset notifications Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 5:43 ` sashiko-bot
2026-08-14 5:43 ` sashiko-bot
2026-08-15 12:22 ` Igor Paunovic
2026-08-15 12:22 ` Igor Paunovic
2026-08-15 12:22 ` Igor Paunovic
2026-08-13 20:52 ` [PATCH v14 32/38] usb: dwc3: rockchip: fix USB-C reconnect in gadget mode Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 5:59 ` sashiko-bot
2026-08-14 5:59 ` sashiko-bot
2026-08-13 20:52 ` [PATCH v14 33/38] phy: rockchip: usbdp: Add phy reset notification support Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 6:12 ` sashiko-bot
2026-08-14 6:12 ` sashiko-bot
2026-08-13 20:52 ` [PATCH v14 34/38] phy: rockchip: usbdp: Drop -EPROBE_DEFER hack Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 35/38] phy: rockchip: usbdp: Rename mode to hw_mode Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 36/38] phy: rockchip: usbdp: Fix power state handling Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` [PATCH v14 37/38] phy: rockchip: usbdp: Re-init PHY on mux change Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-14 6:49 ` sashiko-bot
2026-08-14 6:49 ` sashiko-bot
2026-08-13 20:52 ` [PATCH v14 38/38] phy: rockchip: usbdp: Add USB-C state without DP enabled Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-13 20:52 ` Sebastian Reichel
2026-08-15 12:16 ` Igor Paunovic [this message]
2026-08-15 12:16 ` [PATCH v14 00/38] phy: rockchip: usbdp: Clean up the mess Igor Paunovic
2026-08-15 12:16 ` Igor Paunovic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260815121608.64818-1-royalnet026@gmail.com \
--to=royalnet026@gmail.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=alchark@flipper.net \
--cc=andy.yan@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frank.wang@rock-chips.com \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sntech.de \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=mani@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
--cc=vkoul@kernel.org \
--cc=william.wu@rock-chips.com \
--cc=yubing.zhang@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.