From: Javier Martinez Canillas <javierm@redhat.com>
To: Thomas Zimmermann <tzimmermann@suse.de>,
jfalempe@redhat.com, daniel@ffwll.ch, airlied@gmail.com,
ville.syrjala@linux.intel.com, daniel@fooishbar.org,
mripard@kernel.org, maarten.lankhorst@linux.intel.com
Cc: David Airlie <airlied@linux.ie>, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v4 1/2] drm/atomic-helper: Don't allocated plane state in CRTC check
Date: Thu, 6 Oct 2022 22:18:20 +0200 [thread overview]
Message-ID: <24dfef10-da19-1dc2-4dec-7d0231a920c2@redhat.com> (raw)
In-Reply-To: <20221005114002.3715-2-tzimmermann@suse.de>
Hello Thomas,
On 10/5/22 13:40, Thomas Zimmermann wrote:
> In drm_atomic_helper_check_crtc_state(), do not add a new plane state
> to the global state if it does not exist already. Adding a new plane
> state will result in overhead for the plane during the atomic-commit
> step.
>
> For the test in drm_atomic_helper_check_crtc_state() to succeed, it
> is important that the CRTC has an enabled primary plane after the
> commit. Simply testing the CRTC state's plane_mask for a primary plane
> is sufficient.
>
> Note that the helper still only tests for an attached primary plane.
> Drivers have to ensure that the plane contains valid pixel information.
>
> v3:
> * test for a primary plane in plane_mask (Ville)
> v2:
> * remove unnecessary test for plane->crtc (Ville)
> * inline drm_atomic_get_next_plane_state() (Ville)
> * acquire plane lock before accessing plane->state (Ville)
>
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Fixes: d6b9af1097fe ("drm/atomic-helper: Add helper drm_atomic_helper_check_crtc_state()")
This patch makes sense to me.
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
but I've a hard time parsing the subject line. Did you mean instead:
"drm/atomic-helper: Don't allocate new plane state in CRTC check" ?
or "drm/atomic-helper: Don't add a new plane state in CRTC check" ?
In any case you can fix that while applying so no need to resend IMO.
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
next prev parent reply other threads:[~2022-10-06 20:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-05 11:40 [PATCH v4 0/2] drm/atomic-helpers: Fix CRTC primary-plane test Thomas Zimmermann
2022-10-05 11:40 ` [PATCH v4 1/2] drm/atomic-helper: Don't allocated plane state in CRTC check Thomas Zimmermann
2022-10-06 20:18 ` Javier Martinez Canillas [this message]
2022-10-07 6:55 ` Thomas Zimmermann
2022-10-05 11:40 ` [PATCH v4 2/2] drm/atomic-helper: Replace drm_atomic_helper_check_crtc_state() Thomas Zimmermann
2022-10-06 20:28 ` Javier Martinez Canillas
2022-10-07 7:07 ` Ville Syrjälä
2022-10-07 7:17 ` Javier Martinez Canillas
2022-10-07 7:29 ` Ville Syrjälä
2022-10-07 7:41 ` Javier Martinez Canillas
2022-10-07 8:06 ` Thomas Zimmermann
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=24dfef10-da19-1dc2-4dec-7d0231a920c2@redhat.com \
--to=javierm@redhat.com \
--cc=airlied@gmail.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=daniel@fooishbar.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jfalempe@redhat.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=tzimmermann@suse.de \
--cc=ville.syrjala@linux.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;
as well as URLs for NNTP newsgroup(s).