From: Matthew Brost <matthew.brost@intel.com>
To: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
Matthew Auld <matthew.auld@intel.com>,
Oak Zeng <oak.zeng@intel.com>
Subject: Re: [PATCH v3 0/3] drm/xe: Userptr invalid page access fixes
Date: Tue, 4 Mar 2025 22:11:31 -0800 [thread overview]
Message-ID: <Z8frE6L2styWTD2R@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20250304173342.22009-1-thomas.hellstrom@linux.intel.com>
On Tue, Mar 04, 2025 at 06:33:39PM +0100, Thomas Hellström wrote:
> Fix a number of potential invalid page-accesses by the userptr code.
>
> Patch 1:
> - Some coding style fixes.
> Patch 2:
> - Avoids invalid struct page accesses during userptr pinning.
> Patch 3:
> - Block xe device accesses on mmu_invalidation on the iommu level.
>
For the series:
Acked-by: Matthew Brost <matthew.brost@intel.com>
In the long term, I believe it would be beneficial if we could unify Xe userptr
with the DRM common GPU SVM get_pages/notifiers. This is really hard to get
right, and I think everything we have fixed here has already been correctly
handled in GPU SVM. It would also help other drivers getting userptr correct
going forward.
Matt
> v2:
> - Address review comments by Matt Auld
>
> Cc: Matthew Auld <matthew.auld@intel.com>
> Cc: Oak Zeng <oak.zeng@intel.com>
>
> Thomas Hellström (3):
> drm/xe/hmm: Style- and include fixes
> drm/xe/hmm: Don't dereference struct page pointers without notifier
> lock
> drm/xe/userptr: Unmap userptrs in the mmu notifier
>
> drivers/gpu/drm/xe/xe_hmm.c | 170 +++++++++++++++++++++++--------
> drivers/gpu/drm/xe/xe_hmm.h | 7 ++
> drivers/gpu/drm/xe/xe_vm.c | 4 +
> drivers/gpu/drm/xe/xe_vm_types.h | 4 +
> 4 files changed, 145 insertions(+), 40 deletions(-)
>
> --
> 2.48.1
>
next prev parent reply other threads:[~2025-03-05 6:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 17:33 [PATCH v3 0/3] drm/xe: Userptr invalid page access fixes Thomas Hellström
2025-03-04 17:33 ` [PATCH v3 1/3] drm/xe/hmm: Style- and include fixes Thomas Hellström
2025-03-04 17:33 ` [PATCH v3 2/3] drm/xe/hmm: Don't dereference struct page pointers without notifier lock Thomas Hellström
2025-03-04 17:33 ` [PATCH v3 3/3] drm/xe/userptr: Unmap userptrs in the mmu notifier Thomas Hellström
2025-03-04 19:03 ` ✗ CI.Patch_applied: failure for drm/xe: Userptr invalid page access fixes (rev3) Patchwork
2025-03-05 6:11 ` Matthew Brost [this message]
2025-03-05 12:51 ` [PATCH v3 0/3] drm/xe: Userptr invalid page access fixes Thomas Hellström
2025-03-05 10:24 ` ✓ CI.Patch_applied: success for drm/xe: Userptr invalid page access fixes (rev4) Patchwork
2025-03-05 10:25 ` ✓ CI.checkpatch: " Patchwork
2025-03-05 10:26 ` ✓ CI.KUnit: " Patchwork
2025-03-05 10:42 ` ✓ CI.Build: " Patchwork
2025-03-05 10:45 ` ✓ CI.Hooks: " Patchwork
2025-03-05 10:46 ` ✓ CI.checksparse: " Patchwork
2025-03-05 11:07 ` ✓ Xe.CI.BAT: " Patchwork
2025-03-05 12:56 ` ✗ Xe.CI.Full: failure " Patchwork
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=Z8frE6L2styWTD2R@lstrano-desk.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
--cc=oak.zeng@intel.com \
--cc=thomas.hellstrom@linux.intel.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