From: Alistair Popple <apopple@nvidia.com>
To: Karl Mehltretter <kmehltretter@gmail.com>
Cc: "Jason Gunthorpe" <jgg@nvidia.com>,
"Kevin Tian" <kevin.tian@intel.com>,
"Joerg Roedel" <joro@8bytes.org>, "Will Deacon" <will@kernel.org>,
"Robin Murphy" <robin.murphy@arm.com>,
"Shuah Khan" <shuah@kernel.org>,
"Christian König" <christian.koenig@amd.com>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Thomas Hellstrom" <thomas.hellstrom@linux.intel.com>,
"Vivek Kasireddy" <vivek.kasireddy@intel.com>,
dri-devel@lists.freedesktop.org, iommu@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org
Subject: Re: [RFC PATCH 0/6] iommufd: harden DMA-BUF PAL setup and release
Date: Wed, 21 Oct 2026 16:19:37 +1100 [thread overview]
Message-ID: <athLCINDCSUbRHiC@nvdebian.thelocal> (raw)
In-Reply-To: <atgWXLYKOFj5cZ0F@gmail.com>
On 2026-10-21 at 12:45 +1100, Karl Mehltretter <kmehltretter@gmail.com> wrote...
> On Tue, Oct 20, 2026 at 03:20:29PM +0100, Jason Gunthorpe wrote:
> > On Tue, Oct 20, 2026 at 10:16:26PM +1100, Alistair Popple wrote:
> >
> > > I haven't had a chance to look at these patches yet, but if some of them are
> > > fixing bugs in Jason's series it might be best for us to fold them into that
> > > series, with correct attribution of course. Anyway I will take a closer look in
> > > the morning.
> >
> > Are any fixing bugs in tree right now? I think one of them is already
> > applied from someone else..
> >
>
> Good catch. None of these fixes a bug in the current mainline tree. I
> based the series on the stale c37cf2824740d topic and missed two fixes
> that landed in mainline afterward:
>
> - patch 4 is already covered more broadly by f2d70dbd3dce
> ("iommufd: Destroy the pages content after detaching from dmabuf");
> - patch 5 duplicates Ankit Soni's e745cd2c749e
> ("iommufd: Take dma_resv lock before dma_buf_unpin() in release path").
>
> Patches 1-3 address lifecycle issues introduced by the PAL conversion,
> and patch 6 tests those paths.
>
> My main goal with this RFC was to put the concrete lifecycle issues and
> tests on the table and get the discussion moving.
>
> I am not concerned about preserving these as separate commits for
> attribution purposes. Please fold or rework any useful pieces into the
> mapping-type series as makes sense.
Will do. I hope to post a v2 later this week so will fold them into that.
Thanks.
- Alistair
> Thanks,
> Karl
prev parent reply other threads:[~2026-10-21 5:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 6:37 [RFC PATCH 0/6] iommufd: harden DMA-BUF PAL setup and release Karl Mehltretter
2026-10-20 6:37 ` [RFC PATCH 1/6] iommufd: Preserve DMA-buf pin errors Karl Mehltretter
2026-10-20 6:37 ` [RFC PATCH 2/6] iommufd: Publish successful PAL mappings under resv Karl Mehltretter
2026-10-20 6:37 ` [RFC PATCH 3/6] iommufd: Clear the PAL list before dropping resv Karl Mehltretter
2026-10-20 6:37 ` [RFC PATCH 4/6] iommufd: Keep the pages mutex alive until DMA-buf detach Karl Mehltretter
2026-10-20 6:37 ` [RFC PATCH 5/6] iommufd: Unpin the DMA-buf while holding resv Karl Mehltretter
2026-10-20 6:37 ` [RFC PATCH 6/6] iommufd/selftest: Check DMA-buf pin and map failure cleanup Karl Mehltretter
2026-10-20 11:16 ` [RFC PATCH 0/6] iommufd: harden DMA-BUF PAL setup and release Alistair Popple
2026-10-20 18:20 ` Jason Gunthorpe
2026-10-21 1:45 ` Karl Mehltretter
2026-10-21 5:19 ` Alistair Popple [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=athLCINDCSUbRHiC@nvdebian.thelocal \
--to=apopple@nvidia.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=iommu@lists.linux.dev \
--cc=jgg@nvidia.com \
--cc=joro@8bytes.org \
--cc=kevin.tian@intel.com \
--cc=kmehltretter@gmail.com \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=shuah@kernel.org \
--cc=sumit.semwal@linaro.org \
--cc=thomas.hellstrom@linux.intel.com \
--cc=vivek.kasireddy@intel.com \
--cc=will@kernel.org \
/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