From: Alessio Belle <Alessio.Belle@imgtec.com>
To: Luigi Santivetti <Luigi.Santivetti@imgtec.com>
Cc: "imagination@lists.freedesktop.org"
<imagination@lists.freedesktop.org>,
"tzimmermann@suse.de" <tzimmermann@suse.de>,
"simona@ffwll.ch" <simona@ffwll.ch>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Frank Binns <Frank.Binns@imgtec.com>,
"maarten.lankhorst@linux.intel.com"
<maarten.lankhorst@linux.intel.com>,
Brajesh Gupta <Brajesh.Gupta@imgtec.com>,
"mripard@kernel.org" <mripard@kernel.org>,
"airlied@gmail.com" <airlied@gmail.com>
Subject: Re: [PATCH v2 0/2] drm/imagination: improve UAPI heap and static areas query ioctls
Date: Mon, 16 Nov 2026 12:56:24 +0000 [thread overview]
Message-ID: <d912450f4bd5aac9577851e0173d66d37246c089.camel@imgtec.com> (raw)
In-Reply-To: <20261109-ioctl-query-count-stride-fixes-v2-0-228ea0e28dc3@imgtec.com>
On Mon, 2026-11-09 at 20:35 +0000, Luigi Santivetti wrote:
> This series is about better protecting userspace when either one of the
> heap or the static data areas query IOCTL is made as we go forward and
> extend the UAPI introducing new heaps or new fields to their related
> data types.
>
> Please refer to each patch commit message which describes in some detail
> the nature of the issue and the solution for it.
>
> In general terms this series makes the UAPI more flexible, introducing a
> distinction between a legacy (or minimum) and a current (or maximum) value
> for both the stride and the count that is returned to userspace.
>
> With the new pattern in place, an older[*] version of userspace defaults
> to requesting and to obtaining the legacy (or minimum) value of both stride
> and count and this makes safe to update their maximum value going forward.
>
> [*] before https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44456
>
> Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
For the series,
Reviewed-by: Alessio Belle <alessio.belle@imgtec.com>
Thanks,
Alessio
> ---
> Changes in v2:
> - Rebase on drm-misc-next only
> - Link to v1: https://patch.msgid.link/20261104-ioctl-query-count-stride-fixes-v1-0-2bf86dd7cf29@imgtec.com
>
> ---
> Luigi Santivetti (2):
> drm/imagination: clamp stride of heaps and static areas for legacy UM
> drm/imagination: clamp count of heaps and static areas for legacy UM
>
> drivers/gpu/drm/imagination/pvr_drv.h | 33 ++++++++++++++++++++++
> drivers/gpu/drm/imagination/pvr_vm.c | 32 ++++++++++++++++++---
> include/uapi/drm/pvr_drm.h | 53 +++++++++++++++++++++++++++++++----
> 3 files changed, 108 insertions(+), 10 deletions(-)
> ---
> base-commit: 8deaade4a5a4ff635df91e246e42139ab2b33f6d
> change-id: 20261104-ioctl-query-count-stride-fixes-43b4df2c2fc8
>
> Best regards,
> --
> Luigi Santivetti <luigi.santivetti@imgtec.com>
>
prev parent reply other threads:[~2026-11-16 12:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 20:35 Luigi Santivetti
2026-11-09 20:35 ` [PATCH v2 1/2] drm/imagination: clamp stride of heaps and static areas for legacy UM Luigi Santivetti
2026-11-09 20:35 ` [PATCH v2 2/2] drm/imagination: clamp count " Luigi Santivetti
2026-11-16 12:56 ` Alessio Belle [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=d912450f4bd5aac9577851e0173d66d37246c089.camel@imgtec.com \
--to=alessio.belle@imgtec.com \
--cc=Brajesh.Gupta@imgtec.com \
--cc=Frank.Binns@imgtec.com \
--cc=Luigi.Santivetti@imgtec.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=imagination@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--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®