From: Praneeth Balasubramanian <praneethb2002@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: "Matthew Brost" <matthew.brost@intel.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
"Himal Prasad Ghimiray" <himal.prasad.ghimiray@intel.com>,
"Honglei Huang" <honghuan@amd.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] drm/gpusvm: reject device pages not owned by the caller
Date: Sat, 5 Dec 2026 00:21:23 -0800 [thread overview]
Message-ID: <20261205082123.2597400-1-praneethb2002@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-251184@kernel.org>
On Sat, 05 Dec 2026 07:03:31 +0000, sashiko-bot@kernel.org wrote:
> [Severity: High]
> Can returning -EOPNOTSUPP here livelock Xe GPU page fault handling on
> foreign device coherent pages?
Yes. __xe_svm_handle_pagefault() retries -EOPNOTSUPP, -EFAULT and -EPERM
without a bound when devmem_only is not set, and
drm_gpusvm_range_evict() leaves a present device coherent page where it
is. So v2 returns -EINVAL for a foreign page, which ends the fault. The
userptr path returns it to the caller as before.
> Should this include:
>
> Fixes: 99624bdff867 ("drm/gpusvm: Add support for GPU Shared Virtual Memory")
Yes, that commit already read zone_device_data as a zdd without an
owner check. Added in v2.
For the DRM SVM folks: is failing the mapping what you want here, or
should foreign device coherent pages be mapped like system memory? And
if failing is right, is -EINVAL the code you prefer?
prev parent reply other threads:[~2026-12-05 8:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 6:42 [RFC PATCH] drm/gpusvm: reject device pages not owned by the caller Praneeth Balasubramanian
2026-12-05 7:03 ` sashiko-bot
2026-12-05 8:21 ` Praneeth Balasubramanian [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=20261205082123.2597400-1-praneethb2002@gmail.com \
--to=praneethb2002@gmail.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=himal.prasad.ghimiray@intel.com \
--cc=honghuan@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matthew.brost@intel.com \
--cc=mripard@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=simona@ffwll.ch \
--cc=thomas.hellstrom@linux.intel.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.