From: Alessio Belle <Alessio.Belle@imgtec.com>
To: "shyckless@gmail.com" <shyckless@gmail.com>
Cc: Luigi Santivetti <Luigi.Santivetti@imgtec.com>,
"tzimmermann@suse.de" <tzimmermann@suse.de>,
"imagination@lists.freedesktop.org"
<imagination@lists.freedesktop.org>,
"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>,
"airlied@gmail.com" <airlied@gmail.com>,
"maarten.lankhorst@linux.intel.com"
<maarten.lankhorst@linux.intel.com>,
"mripard@kernel.org" <mripard@kernel.org>
Subject: Re: [PATCH v2 0/2] drm/imagination: Fix leaks in HWRT data set handling
Date: Thu, 3 Dec 2026 09:23:05 +0000 [thread overview]
Message-ID: <b47718362d8a95ee13cbdcbbdb540b189597398c.camel@imgtec.com> (raw)
In-Reply-To: <CA+X8Sdhk57Mb+iazzBZinyzXeb3JupLWnim=3FCK097-PuBKpg@mail.gmail.com>
Hi,
On Fri, 2026-11-27 at 19:08 +0800, Wong Steve wrote:
> Hi Luigi,
>
> On Thu, 2026-11-26, Luigi Santivetti wrote:
> > this series looks okay to me - thank you! I believe patch 2/2 might need to be
> > rebased, the line you are changing got recently refactored.
>
> Thanks for the review.
>
> I checked this again. Both patches apply cleanly on the current
> drm-misc-next, which already has your "drm/imagination: switch to
> inline init of rogue_fwif_rta_ctl", and also on drm-misc-fixes (1/2
> with a 4-line offset). 1/2 was already based on top of your change.
>
> 2/2 only changes the type of hwrt->max_rts in pvr_hwrt.h, from u16 to
> u32. It doesn't touch the rta_ctl initialisation that your patch
> reworked, so I don't think a rebase is needed. If you see a conflict
> on a particular branch, tell me which one and I'll resend on top of
> it with your Reviewed-by.
I can confirm that both patches apply cleanly to either branch, or after merging
one into the other. I'll apply them to drm-misc-fixes today.
Thanks,
Alessio
>
> Thanks,
> Suyuan
>
> Luigi Santivetti <luigi.santivetti@imgtec.com> 于2026年11月26日周四 23:51写道:
> >
> > Hi Suyuan,
> >
> > this series looks okay to me - thank you! I believe patch 2/2 might need to be
> > rebased, the line you are changing got recently refactored.
> >
> > Refer to:
> >
> > https://patch.msgid.link/20261104-minor-improvements-v1-1-cc976128538e@imgtec.com
> >
> >
> > This series is:
> >
> > Reviewed-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
> >
> > On Sat, 2026-11-21 at 15:47 +0000, Suyuan Wang via B4 Relay wrote:
> > > Patch 1 is v1 with the Fixes tag corrected: the error path that skips
> > > hwrt_fini_common_fw_structure() came with f1f55ed3ffe4, not with the
> > > commit that added the ioctl (thanks to the Sashiko review).
> > >
> > > Patch 2 fixes the other leak that review pointed out: the 32-bit layer
> > > count is truncated into the 16-bit max_rts, so the SRTC and RAA objects
> > > allocated for layers > 1 can be skipped on destroy.
> > >
> > > Found with a static analysis tool and checked by hand. Compile tested on
> > > arm64 (W=1, all files that include pvr_hwrt.h); I don't have the
> > > hardware.
> > >
> > > Changes in v2:
> > > - 1/2: Fixes tag now points to f1f55ed3ffe4. No code change.
> > > - 2/2: new.
> > >
> > > v1: https://lore.kernel.org/all/20261121-pvr-hwrt-common-v1-1-784ce45b782a@gmail.com/
> > > ---
> > > Suyuan Wang (2):
> > > drm/imagination: Destroy the common FW object when HWRT data setup fails
> > > drm/imagination: Don't truncate the layer count in max_rts
> > >
> > > drivers/gpu/drm/imagination/pvr_hwrt.c | 2 ++
> > > drivers/gpu/drm/imagination/pvr_hwrt.h | 2 +-
> > > 2 files changed, 3 insertions(+), 1 deletion(-)
> > >
> > >
> >
next prev parent reply other threads:[~2026-12-03 9:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 15:47 Suyuan Wang via B4 Relay
2026-11-21 15:47 ` [PATCH v2 1/2] drm/imagination: Destroy the common FW object when HWRT data setup fails Suyuan Wang via B4 Relay
2026-11-21 15:47 ` [PATCH v2 2/2] drm/imagination: Don't truncate the layer count in max_rts Suyuan Wang via B4 Relay
2026-11-26 15:51 ` [PATCH v2 0/2] drm/imagination: Fix leaks in HWRT data set handling Luigi Santivetti
2026-11-27 11:08 ` Wong Steve
2026-12-03 9:23 ` Alessio Belle [this message]
2026-12-03 15:03 ` Alessio Belle
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=b47718362d8a95ee13cbdcbbdb540b189597398c.camel@imgtec.com \
--to=alessio.belle@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=shyckless@gmail.com \
--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®