mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Maxime Ripard <mripard@kernel.org>, Harikrishna Shenoy <h-shenoy@ti.com>
Cc: Laurent.pinchart@ideasonboard.com, airlied@gmail.com,
	andrzej.hajda@intel.com, andy.yan@rock-chips.com,
	aradhya.bhatia@linux.dev, devarsht@ti.com, dianders@chromium.org,
	dri-devel@lists.freedesktop.org, javierm@redhat.com,
	jernej.skrabec@gmail.com, jonas@kwiboo.se,
	linux-kernel@vger.kernel.org, linux@treblig.org,
	luca.ceresoli@bootlin.com, lumag@kernel.org, lyude@redhat.com,
	maarten.lankhorst@linux.intel.com, mordan@ispras.ru,
	neil.armstrong@linaro.org, rfoss@kernel.org, s-jain1@ti.com,
	simona@ffwll.ch, tzimmermann@suse.de, u-kumar1@ti.com
Subject: Re: [PATCH v9 0/6] MHDP8546 fixes related to DBANC usecase
Date: Tue, 18 Nov 2025 16:52:49 +0200	[thread overview]
Message-ID: <821dff40-28f2-48e1-8821-795527d396c0@ideasonboard.com> (raw)
In-Reply-To: <i7byagpaadjjhc6rbqvejsxezn2eeomtw2ddpxirwjuezfdf3x@tez2ooxn76dv>

Hi,

On 18/11/2025 14:40, Maxime Ripard wrote:
> Hi,
> 
> On Tue, Nov 18, 2025 at 05:22:49PM +0530, Harikrishna Shenoy wrote:
>> With the DBANC framework, the connector is no longer initialized in 
>> bridge_attach() when the display controller sets the 
>> DRM_BRIDGE_ATTACH_NO_CONNECTOR flag. 
>> This causes a null pointer dereference in cdns_mhdp_modeset_retry_fn() 
>> when trying to access &conn->dev->mode_config.mutex. 
>> Observed on a board where EDID read failed. 
>> (log: https://gist.github.com/Jayesh2000/233f87f9becdf1e66f1da6fd53f77429)
>>
>> Patch 1 adds a connector_ptr which takes care of both 
>> DBANC and !DBANC case by setting the pointer in appropriate hooks
>> and checking for pointer validity before accessing the connector.
>> Patch 2 adds mode validation hook to bridge fucntions.
>> Patch 3 fixes HDCP to work with both DBANC and !DBANC case by
>> moving HDCP state handling into the bridge atomic check in line with 
>> the DBANC model.
>> Patches 4,5 do necessary cleanup and alignment for using
>> connector pointer.
> 
> It's mentioned several times in your series, and it might be obvious to
> you, but documenting what is the "DBANC framework" is would be helpful.
> I have no idea what it's about, and it appears that Google doesn't know
> either.
Yes, I was a bit baffled initially. DRM_BRIDGE_ATTACH_NO_CONNECTOR.

I think it makes sense to only use "DBANC" if it's first introduced in
that patch. So don't have a patch that just uses "DBANC", even if the
previous patch did explain what it means. And if there's just one or two
"DBANC"s, just spell it out "DRM_BRIDGE_ATTACH_NO_CONNECTOR".

 Tomi


  reply	other threads:[~2025-11-18 14:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-18 11:52 Harikrishna Shenoy
2025-11-18 11:52 ` [PATCH v9 1/6] drm/bridge: cadence: cdns-mhdp8546-core: Set the mhdp connector earlier in atomic_enable() Harikrishna Shenoy
2025-11-18 11:52 ` [PATCH v9 2/6] drm/bridge: cadence: cdns-mhdp8546-core: Add mode_valid hook to drm_bridge_funcs Harikrishna Shenoy
2025-11-18 11:52 ` [PATCH v9 3/6] drm/bridge: cadence: cdns-mhdp8546-core: Handle HDCP state in bridge atomic check Harikrishna Shenoy
2025-11-18 11:52 ` [PATCH v9 4/6] drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge Harikrishna Shenoy
2025-11-18 11:52 ` [PATCH v9 5/6] cadence: cdns-mhdp8546*: Change drm_connector from structure to pointer Harikrishna Shenoy
2025-11-18 11:52 ` [PATCH v9 6/6] drm/bridge: cadence: cdns-mhdp8546-core: Reduce log level for DPCD read/write Harikrishna Shenoy
2025-11-18 12:40 ` [PATCH v9 0/6] MHDP8546 fixes related to DBANC usecase Maxime Ripard
2025-11-18 14:52   ` Tomi Valkeinen [this message]
2025-11-18 16:20     ` Maxime Ripard
2025-11-20  7:48       ` Harikrishna shenoy

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=821dff40-28f2-48e1-8821-795527d396c0@ideasonboard.com \
    --to=tomi.valkeinen@ideasonboard.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=andy.yan@rock-chips.com \
    --cc=aradhya.bhatia@linux.dev \
    --cc=devarsht@ti.com \
    --cc=dianders@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=h-shenoy@ti.com \
    --cc=javierm@redhat.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@treblig.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=lumag@kernel.org \
    --cc=lyude@redhat.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mordan@ispras.ru \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=s-jain1@ti.com \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    --cc=u-kumar1@ti.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 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®