From: Javier Martinez Canillas <javierm@redhat.com>
To: Thomas Zimmermann <tzimmermann@suse.de>, linux-kernel@vger.kernel.org
Cc: Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@linux.ie>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm/simpledrm: Do not call drm_atomic_add_affected_planes()
Date: Tue, 11 Oct 2022 15:09:45 +0200 [thread overview]
Message-ID: <e3e0b130-03b9-0fcc-a42c-2bd7b035c7e4@redhat.com> (raw)
In-Reply-To: <fc9a8b09-4b41-291e-d235-bb71eeb95f3c@suse.de>
Hello Thomas,
On 10/11/22 15:06, Thomas Zimmermann wrote:
> Hi
>
> Am 10.10.22 um 19:02 schrieb Javier Martinez Canillas:
>> There's no need to add planes to the atomic state. Remove the call
>> to drm_atomic_add_affected_planes() from simpledrm.
>>
>> On full modesets, the DRM helpers already add a CRTC's planes to the
>> atomic state; see drm_atomic_helper_check_modeset(). There's no reason
>> to call drm_atomic_add_affected_planes() unconditionally in the CRTC's
>> atomic_check() in simpledrm. It's also too late, as the atomic_check()
>> of the added planes will not be called before the commit.
>>
>> Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
>> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
>
> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
>
Thanks.
> There's also drm_atomic_add_affected_planes() in mgag200. Since you're
> at it, I'd appreciate a patch.
>
Sure, I'll include in v2. I noticed that but didn't feel like posting
a patch because I'm not familiar with that device nor have HW to test.
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
next prev parent reply other threads:[~2022-10-11 13:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-10 17:02 [PATCH 0/3] Add a drm_crtc_helper_atomic_check() helper Javier Martinez Canillas
2022-10-10 17:02 ` [PATCH 1/3] drm/simpledrm: Do not call drm_atomic_add_affected_planes() Javier Martinez Canillas
2022-10-11 13:06 ` Thomas Zimmermann
2022-10-11 13:09 ` Javier Martinez Canillas [this message]
2022-10-10 17:02 ` [PATCH 2/3] drm/ssd130x: " Javier Martinez Canillas
2022-10-11 13:09 ` Thomas Zimmermann
2022-10-10 17:02 ` [PATCH 3/3] drm/crtc-helper: Add a drm_crtc_helper_atomic_check() helper Javier Martinez Canillas
2022-10-11 13:21 ` Thomas Zimmermann
2022-10-11 13:26 ` Javier Martinez Canillas
2022-10-11 15:01 ` 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=e3e0b130-03b9-0fcc-a42c-2bd7b035c7e4@redhat.com \
--to=javierm@redhat.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tzimmermann@suse.de \
/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®