Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Petri Latvala <petri.latvala@intel.com>
Cc: igt-dev@lists.freedesktop.org,
	Mark Yacoub <markyacoub@chromium.org>,
	seanpaul@chromium.org, Mark Yacoub <markyacoub@google.com>
Subject: Re: [igt-dev] [PATCH v2] tests/kms_atomic_transition: Enable Primary Plane on Enabling CRTC.
Date: Thu, 22 Apr 2021 17:24:46 +0300	[thread overview]
Message-ID: <YIGHLlwvjmxsryra@intel.com> (raw)
In-Reply-To: <YIET+VN+JnRrbuja@platvala-desk.ger.corp.intel.com>

On Thu, Apr 22, 2021 at 09:13:13AM +0300, Petri Latvala wrote:
> On Fri, Apr 16, 2021 at 01:27:24PM -0400, Mark Yacoub wrote:
> > From: Mark Yacoub <markyacoub@google.com>
> > 
> > Setup all plane params before committing anything.
> > Do not disable Primary Plane whenever a CRTC is getting enabled.
> > 
> > AMD Driver requires the primary plane to be enabled whenever the CRTC is, otherwise
> > drm_mode_cursor_universal may end up trying to enable the cursor plane while all other
> > planes are disabled, which is not supported by the hardware.
> > 
> > === Changes from v1 ===
> > Remove product names from commit message
> > 
> > Cc: Nicholas.Kazlauskas@amd.com
> > ---
> >  tests/kms_atomic_transition.c | 7 +++----
> >  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> 
> I've asked Intel display folks to chime in whether i915 needs any of
> this flow needs to be unchanged with is_i915_device(), no response
> yet.

Dunno if anyone but Maarten knows what the test does exactly.

In general I'd prefer there was some generic way to handle the
"primary plane can't be disabled" thing so that we wouldn't need
special logic/always forcing the primary plane on in all tests.
But I'm not sure if we could easily add some kind TEST_ONLY probe
into igt_display_require()+make igt_kms just automagically enable
the plane when needed for this...

I'm slightly tempted to even suggest that maybe the kernel driver
should just handle this by always keeping the plane on but force
it to scan out black when it's logically disabled...

-- 
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2021-04-22 14:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-16 17:27 [igt-dev] [PATCH v2] tests/kms_atomic_transition: Enable Primary Plane on Enabling CRTC Mark Yacoub
2021-04-16 18:21 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic_transition: Enable Primary Plane on Enabling CRTC. (rev4) Patchwork
2021-04-16 19:31 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-04-22  6:13 ` [igt-dev] [PATCH v2] tests/kms_atomic_transition: Enable Primary Plane on Enabling CRTC Petri Latvala
2021-04-22 14:08   ` Kazlauskas, Nicholas
2021-04-22 14:24   ` Ville Syrjälä [this message]
2021-04-23 17:26     ` Mark Yacoub
  -- strict thread matches above, loose matches on Subject: below --
2021-04-13 16:35 Mark Yacoub

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=YIGHLlwvjmxsryra@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=markyacoub@chromium.org \
    --cc=markyacoub@google.com \
    --cc=petri.latvala@intel.com \
    --cc=seanpaul@chromium.org \
    /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