HDMI HPD

We use our own carrier board. HDMI can already display, but HPD is not working. We cannot see the HPD interrupt node in /proc/interrupts. The connector status does not change during hot plug/unplug. Our current pin configuration is as follows: please help confirm what else needs to be configured. The version is 36.4.4 JetPack 6.2.1 [[L4T 36.4.4]
The PINMUX configuration is as follows:

dp_aux_ch0_hpd_pm0 {
nvidia,pins = “dp_aux_ch0_hpd_pm0”;
nvidia,function = “rsvd1”;
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_ENABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};

The GPIO configuration is as follows:

gpio-input = <TEGRA234_MAIN_GPIO(B, 0)TEGRA234_MAIN_GPIO(Y, 3)TEGRA234_MAIN_GPIO(Y, 4)TEGRA234_MAIN_GPIO(Z, 1)TEGRA234_MAIN_GPIO(Z, 2)TEGRA234_MAIN_GPIO(Z, 3)TEGRA234_MAIN_GPIO(Z, 4)TEGRA234_MAIN_GPIO(Z, 5)TEGRA234_MAIN_GPIO(Z, 6)TEGRA234_MAIN_GPIO(Z, 7)TEGRA234_MAIN_GPIO(P, 6)TEGRA234_MAIN_GPIO(Q, 6)TEGRA234_MAIN_GPIO(Q, 7)TEGRA234_MAIN_GPIO(R, 1)TEGRA234_MAIN_GPIO(M, 0)

The conf configuration is as follows: PINMUX_CONFIG=“Orin-jetson_agx_orin_64g-pinmux.dtsi”;PMC_CONFIG=“Orin-jetson_agx_orin_64g-padvoltage-default.dtsi”;OVERLAY_DTB_FILE=“L4TConfiguration.dtbo,tegra234-p3737-0000+p3701-0000-dynamic.dtbo,tegra234-carveouts.dtbo,tegra-optee.dtbo,tegra234-dcb-p3767-0000-hdmi.dtbo”;DCE_OVERLAY_DTB_FILE=“tegra234-dcb-p3767-0000-hdmi.dtbo”;

The DTS configuration is as follows:

display@13800000 {/* os_gpio_hotplug_a is used for hotplug */os_gpio_hotplug_a = <&gpio TEGRA234_MAIN_GPIO(M, 0) GPIO_ACTIVE_HIGH>;status = “okay”;};

Make sure you did a full flash and above files really taking effect in your flash log.

Yes. A full flash was indeed performed. Currently, there is still no hdmi-hpd under cat /proc/interrupts.

but after hot plug/unplug, there is a status change in /var/log/Xorg. The status of the node cat /sys/class/drm/card1-HDMI-A-1/status in the system does not change. It only changes after manually running echo detect | sudo tee /sys/class/drm/card1-HDMI-A-1/status
detect.

Is it possible that this hot-plug detection is not done through the hdmi-hpd interrupt?

Hi,

Want to clarify. So the monitor is fine but just DRM could not give you the correct status?

Yes. The monitor is fine. DRM cannot give the correct status, but the status in Xorg is correct. Below are the status changes for plug in, unplug, and plug in again. the whole hot-plug function appears to be working normally.

It looks like there is a problem somewhere in the kernel DRM? And hot plug is also not using interrupts?

24.331] (II) Unloading glamoregl

[ 24.331] xf86: found device 1
[ 25.226] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 25.226] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 25.226] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 25.226] (–) NVIDIA(GPU-0):
[ 28.017] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 28.017] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 28.017] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 28.017] (–) NVIDIA(GPU-0):
[ 28.070] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 28.070] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 28.070] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 28.070] (–) NVIDIA(GPU-0):
[ 105.205] (–) NVIDIA(GPU-0): DFP-0: disconnected
[ 105.205] (–) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 105.205] (–) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[ 105.205] (–) NVIDIA(GPU-0):
[ 105.216] (–) NVIDIA(GPU-0): DFP-0: disconnected
[ 105.216] (–) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 105.217] (–) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[ 105.217] (–) NVIDIA(GPU-0):
[ 105.217] (–) NVIDIA(GPU-0): DFP-0: disconnected
[ 105.217] (–) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 105.217] (–) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[ 105.217] (–) NVIDIA(GPU-0):
[ 105.338] (II) NVIDIA(0): Setting mode “NULL”
[ 105.400] (–) NVIDIA(GPU-0): DFP-0: disconnected
[ 105.400] (–) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 105.400] (–) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[ 105.400] (–) NVIDIA(GPU-0):
[ 105.434] (–) NVIDIA(GPU-0): DFP-0: disconnected
[ 105.434] (–) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 105.434] (–) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[ 105.434] (–) NVIDIA(GPU-0):
[ 119.130] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 119.130] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 119.130] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 119.130] (–) NVIDIA(GPU-0):
[ 119.179] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 119.179] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 119.179] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 119.179] (–) NVIDIA(GPU-0):
[ 119.230] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 119.230] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 119.230] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 119.230] (–) NVIDIA(GPU-0):
[ 119.353] (II) NVIDIA(0): Setting mode “HDMI-0: nvidia-auto-select @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}”
[ 119.512] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 119.512] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 119.512] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 119.512] (–) NVIDIA(GPU-0):
[ 119.605] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 119.605] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 119.605] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 119.605] (–) NVIDIA(GPU-0):
[ 119.822] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 119.822] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 119.822] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock
[ 119.822] (–) NVIDIA(GPU-0):
[ 119.872] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): connected
[ 119.872] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): Internal TMDS
[ 119.872] (–) NVIDIA(GPU-0): Samsung S24D300 (DFP-0): 600.0 MHz maximum pixel clock

Hi,

Based on our R36.4.4 tests and source review, we consider this expected behavior.

When X11 takes over display control from nvidia-drm, nvidia-drm pauses its display-event processing until X11 returns control. During this time, HDMI hotplug is handled by X11, while the DRM sysfs status may retain its previous value.

Writing detect requests an explicit connection check without relying on nvidia-drm’s hotplug event callback.
Linux DRM then queries the current connection state through the NVIDIA display driver and updates its cached status.

Once X11 releases control, nvidia-drm resumes event handling and the status updates automatically.

Thanks.

OK. So in that case, this is normal. Then we won’t worry about it. It’s just that this differs somewhat from other SoCs.

Thanks