From: Thomas Zimmermann <tzimmermann@suse.de>
To: Icenowy Zheng <zhengxingda@iscas.ac.cn>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] drm/dumb-buffers: reference the ioctl interface for its constraints
Date: Thu, 26 Feb 2026 17:06:13 +0100 [thread overview]
Message-ID: <491b6234-6d07-4981-8329-3a349c497c4a@suse.de> (raw)
In-Reply-To: <20260226063740.2872016-1-zhengxingda@iscas.ac.cn>
Hi
Am 26.02.26 um 07:37 schrieb Icenowy Zheng:
> The current design of the DRM_IOCTL_MODE_CREATE_DUMB interface can only
> promise linear RGB buffers to be properly working.
>
> Add a reference to the interface from the document snippet for dumb
> objects (which is included by drm-kms.rst document and will end up in
> the built kernel documentation).
>
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
with a comment on wording below
> ---
> drivers/gpu/drm/drm_dumb_buffers.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_dumb_buffers.c b/drivers/gpu/drm/drm_dumb_buffers.c
> index e2b62e5fb891b..5d535b230aad3 100644
> --- a/drivers/gpu/drm/drm_dumb_buffers.c
> +++ b/drivers/gpu/drm/drm_dumb_buffers.c
> @@ -57,7 +57,10 @@
> *
> * Note that dumb objects may not be used for gpu acceleration, as has been
> * attempted on some ARM embedded platforms. Such drivers really must have
> - * a hardware-specific ioctl to allocate suitable buffer objects.
> + * a hardware-specific ioctl to allocate suitable buffer objects. The current
> + * userspace API also includes some constraints on the format and modifier to
Rather 'on the pixel format and framebuffer layout'. The term modifier
seems out of place here.
Best regards
Thomas
> + * be used with buffers backed by dumb objects, see &struct
> + * drm_mode_create_dumb for more details.
> */
>
> static int drm_mode_align_dumb(struct drm_mode_create_dumb *args,
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
prev parent reply other threads:[~2026-02-26 16:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 6:37 Icenowy Zheng
2026-02-26 6:37 ` [PATCH 2/2] drm/dumb-buffers: document abuses in the UAPI document Icenowy Zheng
2026-02-26 16:01 ` Thomas Zimmermann
2026-02-26 16:06 ` Icenowy Zheng
2026-02-26 16:28 ` Thomas Zimmermann
2026-02-26 16:06 ` Thomas Zimmermann [this message]
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=491b6234-6d07-4981-8329-3a349c497c4a@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=zhengxingda@iscas.ac.cn \
/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®