On Thu, Mar 06, 2025 at 08:15:13PM +0800, Andy Yan wrote: > Hi Piotr, > > 在 2025-03-06 19:47:31,"Piotr Oniszczuk" <piotr.oniszc...@gmail.com> 写道: > > > >> Wiadomość napisana przez Andy Yan <andys...@163.com> w dniu 6 mar 2025, o > >> godz. 09:53: > >> > >> > >> Hi, > >> > >> 在 2025-03-06 16:42:00,"Piotr Oniszczuk" <piotr.oniszc...@gmail.com> 写道: > >>> > >>> > >>>> Wiadomość napisana przez Andy Yan <andys...@163.com> w dniu 6 mar 2025, > >>>> o godz. 01:59: > >>>> > >>>> > >>>> > >>>> > >>>> Both of the two config options should be enabled. > >>>> andy@Pro480:~/WorkSpace/linux-next$ rg DW_DP .config > >>>> 4044:CONFIG_ROCKCHIP_DW_DP=y > >>> > >>> here i’m a bit lost…. > >>> greping on full kernel sources (with applied > >>> https://patchwork.kernel.org/project/linux-rockchip/list/?series=936784) > >>> gives me no single appearance of ROCKCHIP_DW_DP… > >>> Do i miss something? > >> > >> see PATCH 3/6: > >> > >> > >> diff --git a/drivers/gpu/drm/rockchip/Kconfig > >> b/drivers/gpu/drm/rockchip/Kconfig > >> index 26c4410b2407..c8638baf9641 100644 > >> --- a/drivers/gpu/drm/rockchip/Kconfig > >> +++ b/drivers/gpu/drm/rockchip/Kconfig > >> @@ -8,6 +8,7 @@ config DRM_ROCKCHIP > >> select DRM_PANEL > >> select VIDEOMODE_HELPERS > >> select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP > >> + select DRM_DW_DP if ROCKCHIP_DW_DP > >> select DRM_DW_HDMI if ROCKCHIP_DW_HDMI > >> select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP > >> select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI > >> @@ -58,6 +59,12 @@ config ROCKCHIP_CDN_DP > >> RK3399 based SoC, you should select this > >> option. > >> > >> +config ROCKCHIP_DW_DP > >> + bool "Rockchip specific extensions for Synopsys DW DP" > >> + help > >> + Choose this option for Synopsys DesignWare Cores DisplayPort > >> + transmit controller support on Rockchip SoC. > >> > >> https://lore.kernel.org/linux-rockchip/047eecfc-7e55-44ec-896f-13fe04333...@gmail.com/T/#m178a325ea0ebc64187aae474d77c3f7a9e0bc93d > >>> > > > > > >Ah my bad! > >One patch patch was commented - so not all dp code was applied. > > > >Now it is much better: > > > >root@myth-frontend-56b0f018b5e0:~ # dmesg | grep drm > >[ 9.795380] panthor fb000000.gpu: [drm] clock rate = 198000000 > >[ 9.796257] panthor fb000000.gpu: [drm] mali-g610 id 0xa867 major 0x0 > >minor 0x0 status 0x5 > >[ 9.796262] panthor fb000000.gpu: [drm] Features: L2:0x7120306 > >Tiler:0x809 Mem:0x301 MMU:0x2830 AS:0xff > >[ 9.796265] panthor fb000000.gpu: [drm] shader_present=0x50005 > >l2_present=0x1 tiler_present=0x1 > >[ 9.851869] panthor fb000000.gpu: [drm] Firmware protected mode entry not > >be supported, ignoring > >[ 9.851921] panthor fb000000.gpu: [drm] Firmware git sha: > >814b47b551159067b67a37c4e9adda458ad9d852 > >[ 9.852127] panthor fb000000.gpu: [drm] CSF FW using interface v1.1.0, > >Features 0x0 Instrumentation features 0x71 > >[ 9.852436] [drm] Initialized panthor 1.3.0 for fb000000.gpu on minor 0 > >[ 10.003108] rockchip-drm display-subsystem: bound fdd90000.vop (ops > >vop2_component_ops) > >[ 10.004705] rockchip-drm display-subsystem: bound fde60000.dp (ops > >dw_dp_rockchip_component_ops) > >[ 10.006085] rockchip-drm display-subsystem: bound fdea0000.hdmi (ops > >dw_hdmi_qp_rockchip_ops) > >[ 10.006679] [drm] Initialized rockchip 1.0.0 for display-subsystem on > >minor 1 > >[ 10.006737] rockchip-drm display-subsystem: [drm] Cannot find any crtc or > >sizes > >[ 10.007663] rockchip-drm display-subsystem: [drm] Cannot find any crtc or > >sizes > > > >Unfortunately still nothing on screen > > > >dri state: https://gist.github.com/warpme/5e971dfd2e9fd52fae76641831cebe46 > > > >and kernel dmesg https://termbin.com/r0m3 > > > >i’m not sure what is missing (some dts enablement or….) > > From your dts, I find you use gpio for hpd, I'm not sure how to handle it > with upstream code now. > > > &dp1 { > status = "okay"; > pinctrl-names = "default"; > pinctrl-0 = <&dp1_hpd>; > hpd-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
If this GPIO is handled by the DP controller itself, it should be a part of DP's node. Otherwise please move it to the correctponding dp-connector node. > }; > > I suggest a change like this: > > &dp1 { > status = "okay"; > pinctrl-names = "default"; > pinctrl-0 = <&dp1m0_pins>; > > }; > > And also remove dp1_hpd pinctrl in your dts. > > Then when you DP cable plugin, you can run command as bellow to see if the > driver detects the HPD: > > # cat /sys/class/drm/card0-DP-1/status > connected > # -- With best wishes Dmitry