From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2] drm/i915/display: change pipe order for platforms with big joiner
Date: Tue, 18 Nov 2025 21:34:03 +0200 [thread overview]
Message-ID: <aRzKK_fxBHnpjp-w@intel.com> (raw)
In-Reply-To: <aRyvdsdmuS7LvI1F@intel.com>
On Tue, Nov 18, 2025 at 07:40:06PM +0200, Ville Syrjälä wrote:
> On Tue, Nov 18, 2025 at 03:43:35PM +0200, Jani Nikula wrote:
> > On Tue, 18 Nov 2025, Jani Nikula <jani.nikula@intel.com> wrote:
> > > When big joiner is enabled, it reserves the adjacent pipe as the
> > > secondary pipe. This happens without the user space knowing, and
> > > subsequent attempts at using the CRTC with that pipe will fail. If the
> > > user space does not have a coping mechanism, i.e. trying another pipe,
> > > this leads to a black screen.
> > >
> > > If the platform allows joining A+B, map the CRTCs to pipes in order A,
> > > C, B, and D to trick userspace to using pipes that are more likely to be
> > > available for joining.
> > >
> > > Although there are currently no platforms with more than four pipes, add
> > > a fallback for initializing the rest of the pipes to not miss them.
> > >
> > > v2: Also remove WARN_ON()
> >
> > There's still this in intel_atomic_check_joiner():
> >
> > /*
> > * The state copy logic assumes the primary crtc gets processed
> > * before the secondary crtc during the main compute_config loop.
> > * This works because the crtcs are created in pipe order,
> > * and the hardware requires primary pipe < secondary pipe as well.
> > * Should that change we need to rethink the logic.
> > */
> > if (WARN_ON(drm_crtc_index(&primary_crtc->base) >
> > drm_crtc_index(&secondary_crtc->base)))
> > return -EINVAL;
> >
> > This still works for A+B and C+D joining, but will fail loudly for B+C
> > joining.
> >
> > Ideas?
>
> Hmm, I think I got rid of that requirement semi-accidentally in
> commit 3a5e09d82f97 ("drm/i915: Fix intel_modeset_pipe_config_late() for
> bigjoiner")
>
> So it looks to me like we can just drop that check entirely.
After some pondering we might have a bit of problem with
the for_each_intel_crtc*() stuff. At least during
the hardware programming phase we'd like those to walk the
crtcs in pipe order but currently they use the crtc index
order.
Say we have a commit with pipes A+B,C. Currently we do
everything in the C->B->A or A->B->C order. Thus the joined
pipe A+B are always updated back-to-back, giving us the best
chance to get an atomic update across them. With the shuffling
pipe C will now sneak in between A and B, making it less likely
that the updates on A and B will happen on the same frame.
So I'm thinking we probably want to change all the
for_each_intel_crtc*() macros to use the pipe order as well.
Either that or we need to review each use case and rewrite
the important ones to use the pipe order.
for_each_pipe_crtc_modeset_{disable,enable}() are fortunately
already immune to crtc shuffling. Those absolutely have to use
the correct pipe order or else we'd completely screw up the
joiner programming sequence during modesets.
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2025-11-18 19:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 9:58 [PATCH] drm/i915/display: change pipe order for platforms with big joiner Jani Nikula
2025-11-18 13:28 ` ✗ i915.CI.BAT: failure for " Patchwork
2025-11-18 13:37 ` [PATCH v2] " Jani Nikula
2025-11-18 13:43 ` Jani Nikula
2025-11-18 17:40 ` Ville Syrjälä
2025-11-18 19:34 ` Ville Syrjälä [this message]
2025-11-19 13:09 ` Jani Nikula
2025-11-19 18:36 ` Ville Syrjälä
2025-11-18 15:44 ` ✓ CI.KUnit: success for drm/i915/display: change pipe order for platforms with big joiner (rev2) Patchwork
2025-11-18 16:32 ` ✗ i915.CI.BAT: failure " Patchwork
2025-11-19 8:05 ` ✓ CI.KUnit: success " Patchwork
2025-11-19 8:35 ` ✗ Xe.CI.Full: failure " Patchwork
2025-11-19 8:59 ` ✗ Xe.CI.BAT: " 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=aRzKK_fxBHnpjp-w@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.