Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Kahola, Mika" <mika.kahola@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915/display: Allow forcing the joiner on eDP
Date: Fri, 25 Sep 2026 11:08:33 +0000	[thread overview]
Message-ID: <f94341a4104e06687779fcb833294883f1aa6cf7.camel@intel.com> (raw)
In-Reply-To: <20260923115941.746934-6-mika.kahola@intel.com>

On Wed, 2026-09-23 at 11:59 +0000, Mika Kahola wrote:
> intel_dp_has_joiner() rejects eDP unless the VBT enables the pipe
> joiner, and the debugfs file is only created when that returns true,
> so
> i915_joiner_force_enable can never turn it on.
> 
> Always create the file for DP and eDP, and let a forced pipe count
> above one override the VBT.
> 
> Assisted-by: Copilot:claude-opus-5
> Signed-off-by: Mika Kahola <mika.kahola@intel.com>

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_display_debugfs.c |  5 ++---
>  drivers/gpu/drm/i915/display/intel_dp.c              | 12 +++++++++-
> --
>  2 files changed, 11 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> index 3e302f23f247..e55fa01addb5 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> @@ -1352,9 +1352,8 @@ void intel_connector_debugfs_add(struct
> intel_connector *connector)
>  				    connector,
> &i915_dsc_fractional_bpp_fops);
>  	}
>  
> -	if ((connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
> -	     connector_type == DRM_MODE_CONNECTOR_eDP) &&
> -	    intel_dp_has_joiner(intel_attached_dp(connector))) {
> +	if (connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
> +	    connector_type == DRM_MODE_CONNECTOR_eDP) {
>  		debugfs_create_file("i915_joiner_force_enable",
> 0644, root,
>  				    connector, &i915_joiner_fops);
>  	}
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c
> b/drivers/gpu/drm/i915/display/intel_dp.c
> index 2480b8ce3bec..80ce71ce4c20 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -473,9 +473,15 @@ bool intel_dp_has_joiner(struct intel_dp
> *intel_dp)
>  	if (intel_dp->mso_link_count)
>  		return false;
>  
> -	if (intel_dp_is_edp(intel_dp) &&
> -	    !connector->panel.vbt.edp.pipe_joiner_enable)
> -		return false;
> +	if (intel_dp_is_edp(intel_dp)) {
> +		bool pipe_joiner_enable = connector-
> >panel.vbt.edp.pipe_joiner_enable;
> +
> +		if (connector->force_joined_pipes > 1)
> +			pipe_joiner_enable = true;
> +
> +		if (!pipe_joiner_enable)
> +			return false;
> +	}
>  
>  	return DISPLAY_VER(display) >= 12 ||
>  		(DISPLAY_VER(display) == 11 &&


  reply	other threads:[~2026-09-25 11:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23 11:59 [PATCH 0/5] drm/i915/psr: Panel Replay and PSR2 with the joiner Mika Kahola
2026-09-23 11:59 ` [PATCH] drm/i915/psr: Track all joined pipes for frontbuffer tracking Mika Kahola
2026-09-24 13:02   ` Hogander, Jouni
2026-09-25  7:17     ` Kahola, Mika
2026-09-23 11:59 ` [PATCH] drm/i915/psr: Take the selective fetch area from pipe_src Mika Kahola
2026-09-24  9:45   ` Hogander, Jouni
2026-09-25  7:00     ` Kahola, Mika
2026-09-23 11:59 ` [PATCH] drm/i915/psr: Merge the selective fetch area across joined pipes Mika Kahola
2026-10-07 10:25   ` Hogander, Jouni
2026-10-09  6:50     ` Kahola, Mika
2026-09-23 11:59 ` [PATCH] drm/i915/psr: Allow Panel Replay and PSR2 with joiner Mika Kahola
2026-09-25 11:06   ` Hogander, Jouni
2026-09-25 12:32     ` Kahola, Mika
2026-09-23 11:59 ` [PATCH] drm/i915/display: Allow forcing the joiner on eDP Mika Kahola
2026-09-25 11:08   ` Hogander, Jouni [this message]
2026-09-23 12:08 ` ✓ CI.KUnit: success for " Patchwork
2026-09-23 12:59 ` ✓ Xe.CI.BAT: " Patchwork
2026-09-24  2:10 ` ✗ Xe.CI.FULL: failure " Patchwork

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=f94341a4104e06687779fcb833294883f1aa6cf7.camel@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mika.kahola@intel.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