From: "André Almeida" <andrealmeid@igalia.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
linux-kernel@vger.kernel.org, kernel-dev@igalia.com,
alexander.deucher@amd.com, christian.koenig@amd.com,
"Simon Ser" <contact@emersion.fr>,
"Pekka Paalanen" <ppaalanen@gmail.com>,
daniel@ffwll.ch, "Daniel Stone" <daniel@fooishbar.org>,
"'Marek Olšák'" <maraeo@gmail.com>,
"Dave Airlie" <airlied@gmail.com>,
ville.syrjala@linux.intel.com,
"Xaver Hugl" <xaver.hugl@gmail.com>,
"Joshua Ashton" <joshua@froggi.es>,
"Michel Dänzer" <michel.daenzer@mailbox.org>
Subject: Re: [PATCH v5 2/3] drm: Allow drivers to choose plane types to async flip
Date: Thu, 13 Jun 2024 12:59:39 -0300 [thread overview]
Message-ID: <2a0cd195-b64a-40b5-ba46-364f6f6e0d0f@igalia.com> (raw)
In-Reply-To: <pu4nawhvy52imqgpib4lx3s5lsbatmfrq3e7aa4zxfmewt6xrn@ki7woraegakt>
Hi Dmitry,
Em 12/06/2024 17:45, Dmitry Baryshkov escreveu:
> On Wed, Jun 12, 2024 at 04:37:12PM -0300, André Almeida wrote:
>> Different planes may have different capabilities of doing async flips,
>> so create a field to let drivers allow async flip per plane type.
>>
>> Signed-off-by: André Almeida <andrealmeid@igalia.com>
>> ---
>> drivers/gpu/drm/drm_atomic_uapi.c | 4 ++--
>> drivers/gpu/drm/drm_plane.c | 3 +++
>> include/drm/drm_plane.h | 5 +++++
>> 3 files changed, 10 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c
>> index 57662a1fd345..bbcec3940636 100644
>> --- a/drivers/gpu/drm/drm_plane.c
>> +++ b/drivers/gpu/drm/drm_plane.c
>> @@ -385,6 +385,9 @@ static int __drm_universal_plane_init(struct drm_device *dev,
>>
>> drm_modeset_lock_init(&plane->mutex);
>>
>> + if (type == DRM_PLANE_TYPE_PRIMARY)
>> + plane->async_flip = true;
>> +
>
> Why? Also note that the commit message writes about adding the field,
> not about enabling it for the primary planes.
>
This is not meant to have any function change actually, just to enable
per-plane configuration. Currently, any driver that supports async page
flip in atomic API supports flipping the primary plane.
But as Ville pointed out, that belongs to driver code, so I'll move
there, hope that it makes more clear
>> plane->base.properties = &plane->properties;
>> plane->dev = dev;
>> plane->funcs = funcs;
>
>
next prev parent reply other threads:[~2024-06-13 15:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 19:37 [PATCH v5 0/3] drm/atomic: Allow drivers to write their own plane check for async André Almeida
2024-06-12 19:37 ` [PATCH v5 1/3] drm/atomic: Allow userspace to use explicit sync with atomic async flips André Almeida
2024-06-12 19:37 ` [PATCH v5 2/3] drm: Allow drivers to choose plane types to async flip André Almeida
2024-06-12 19:55 ` Ville Syrjälä
2024-06-12 20:45 ` Dmitry Baryshkov
2024-06-13 15:59 ` André Almeida [this message]
2024-06-12 19:37 ` [PATCH v5 3/3] drm/amdgpu: Make it possible to async flip overlay planes André Almeida
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=2a0cd195-b64a-40b5-ba46-364f6f6e0d0f@igalia.com \
--to=andrealmeid@igalia.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=contact@emersion.fr \
--cc=daniel@ffwll.ch \
--cc=daniel@fooishbar.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=joshua@froggi.es \
--cc=kernel-dev@igalia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maraeo@gmail.com \
--cc=michel.daenzer@mailbox.org \
--cc=ppaalanen@gmail.com \
--cc=ville.syrjala@linux.intel.com \
--cc=xaver.hugl@gmail.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
all inboxes | Powered by JetHome®