Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ian Ray" <ian.ray@gehealthcare.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org,
	Frank.Li@kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH v1 3/3] ARM: dts: imx: bx50v3: ignore HDMI rxsense
Date: Wed, 02 Sep 2026 13:18:03 +0000	[thread overview]
Message-ID: <20260902131803.8A4381F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260902130117.2731-3-ian.ray@gehealthcare.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The `ignore-rxsense` property masks the `RX_SENSE` bit too late in the interrupt handler, causing the PHY to remain powered on and failing to invalidate the CEC physical address on cable unplug.
--

commit c6070e883038c9a4fefc26add73992b31945db06
Author: Ian Ray <ian.ray@gehealthcare.com>

ARM: dts: imx: bx50v3: ignore HDMI rxsense
    
HDMI is converted to DP in the B450, B650, and B850 boards; as such the
rxsense must be ignored for hotplug detect to work.

> diff --git a/arch/arm/boot/dts/nxp/imx/imx6q-bx50v3.dtsi b/arch/arm/boot/dts/nxp/imx/imx6q-bx50v3.dtsi
> index 2c8d2ab8cda13..8e129b1bdbbfc 100644
> --- a/arch/arm/boot/dts/nxp/imx/imx6q-bx50v3.dtsi
> +++ b/arch/arm/boot/dts/nxp/imx/imx6q-bx50v3.dtsi
> @@ -174,6 +174,11 @@ m25_eeprom: eeprom@0 {
>  	};
>  };
>  
> +&hdmi {
> +	/* converted to DP using STDP2600 */
> +	ignore-rxsense;
> +};

[Severity: High]
Does adding this property expose a logic error in dw_hdmi_irq()?

Looking at drivers/gpu/drm/bridge/synopsys/dw-hdmi.c, the masking for
ignore_rxsense is applied after the critical state machine functions have
already evaluated the raw phy_stat:

drivers/gpu/drm/bridge/synopsys/dw-hdmi.c:dw_hdmi_irq() {
...
		dw_hdmi_setup_rx_sense(hdmi,
				       phy_stat & HDMI_PHY_HPD,
				       phy_stat & HDMI_PHY_RX_SENSE);

		if ((phy_stat & (HDMI_PHY_RX_SENSE | HDMI_PHY_HPD)) == 0) {
			mutex_lock(&hdmi->cec_notifier_mutex);
...
		if (hdmi->ignore_rxsense)
			phy_stat &= ~HDMI_PHY_RX_SENSE;
...
}

Because RX_SENSE is permanently asserted on boards with this property,
phy_stat & HDMI_PHY_RX_SENSE evaluates to true during an unplug event.

Since dw_hdmi_setup_rx_sense() is called before the mask is applied, it will
receive rx_sense = true, which skips clearing hdmi->rxsense and leaves the
PHY powered on indefinitely.

Additionally, the CEC invalidation condition evaluates to false, failing to
invalidate the CEC physical address when the cable is unplugged.

Should the masking of HDMI_PHY_RX_SENSE occur earlier in the interrupt
handler, before evaluating phy_stat for these state machine operations?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260902130117.2731-1-ian.ray@gehealthcare.com?part=3

  reply	other threads:[~2026-09-02 13:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02 13:01 [PATCH v1 1/3] dt-bindings: display: synopsys,dw-hdmi: add ignore-rxsense Ian Ray
2026-09-02 13:01 ` [PATCH v1 3/3] ARM: dts: imx: bx50v3: ignore HDMI rxsense Ian Ray
2026-09-02 13:18   ` sashiko-bot [this message]
2026-09-02 17:32 ` [PATCH v1 1/3] dt-bindings: display: synopsys,dw-hdmi: add ignore-rxsense Conor Dooley

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=20260902131803.8A4381F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=ian.ray@gehealthcare.com \
    --cc=imx@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox