* [PATCH 0/2] drm, drm/xe: Fix xe SVM configs
@ 2026-01-20 11:33 Thomas Hellström
2026-01-20 11:33 ` [PATCH 1/2] drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE Thomas Hellström
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thomas Hellström @ 2026-01-20 11:33 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Matthew Auld, Himal Prasad Ghimiray,
Dafna Hirschfeld, Matthew Brost, Rodrigo Vivi, dri-devel
The first patch fixes the problem of xe userptr not being enabled if
CONFIG_DEVICE_PRIVATE is missing.
Second patch explicitly selects CONFIG_DEVICE_PRIVATE if DRM_XE_GPUSVM
is enabled, which is probably what most distros want. This patch is
not Fixes: tags since some configurations may actively exclude
CONFIG_DEVICE_PRIVATE and it's undesirable if a stable update breaks
those.
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Dafna Hirschfeld <dafna.hirschfeld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: dri-devel@lists.freedesktop.org
Thomas Hellström (2):
drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE
drm/xe: Select CONFIG_DEVICE_PRIVATE when DRM_XE_GPUSVM is selected
drivers/gpu/drm/Kconfig | 2 +-
drivers/gpu/drm/xe/Kconfig | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--
2.52.0
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE
2026-01-20 11:33 [PATCH 0/2] drm, drm/xe: Fix xe SVM configs Thomas Hellström
@ 2026-01-20 11:33 ` Thomas Hellström
2026-01-20 11:33 ` [PATCH 2/2] drm/xe: Select CONFIG_DEVICE_PRIVATE when DRM_XE_GPUSVM is selected Thomas Hellström
2026-01-20 13:49 ` [PATCH 0/2] drm, drm/xe: Fix xe SVM configs Thomas Hellström
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Hellström @ 2026-01-20 11:33 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Matthew Auld, Himal Prasad Ghimiray,
Dafna Hirschfeld, Matthew Brost, Rodrigo Vivi, dri-devel, stable
CONFIG_DEVICE_PRIVATE is not selected by default by some distros,
for example Fedora, and that leads to a regression in the xe driver
since userptr support gets compiled out.
It turns out that DRM_GPUSVM, which is needed for xe userptr support
compiles also without CONFIG_DEVICE_PRIVATE, so remove that
dependency from CONFIG_DRM_GPUSVM and the xe driver's selection of
it, re-enabling xe userptr for those configs.
Fixes: 9e9787414882 ("drm/xe/userptr: replace xe_hmm with gpusvm")
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Dafna Hirschfeld <dafna.hirschfeld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v6.18+
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
drivers/gpu/drm/Kconfig | 2 +-
drivers/gpu/drm/xe/Kconfig | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index a33b90251530..d3d52310c9cc 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -210,7 +210,7 @@ config DRM_GPUVM
config DRM_GPUSVM
tristate
- depends on DRM && DEVICE_PRIVATE
+ depends on DRM
select HMM_MIRROR
select MMU_NOTIFIER
help
diff --git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig
index 4b288eb3f5b0..c34be1be155b 100644
--- a/drivers/gpu/drm/xe/Kconfig
+++ b/drivers/gpu/drm/xe/Kconfig
@@ -39,7 +39,7 @@ config DRM_XE
select DRM_TTM
select DRM_TTM_HELPER
select DRM_EXEC
- select DRM_GPUSVM if !UML && DEVICE_PRIVATE
+ select DRM_GPUSVM if !UML
select DRM_GPUVM
select DRM_SCHED
select MMU_NOTIFIER
--
2.52.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 2/2] drm/xe: Select CONFIG_DEVICE_PRIVATE when DRM_XE_GPUSVM is selected
2026-01-20 11:33 [PATCH 0/2] drm, drm/xe: Fix xe SVM configs Thomas Hellström
2026-01-20 11:33 ` [PATCH 1/2] drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE Thomas Hellström
@ 2026-01-20 11:33 ` Thomas Hellström
2026-01-20 13:49 ` [PATCH 0/2] drm, drm/xe: Fix xe SVM configs Thomas Hellström
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Hellström @ 2026-01-20 11:33 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Matthew Auld, Matthew Brost, Rodrigo Vivi,
dri-devel
CONFIG_DEVICE_PRIVATE is a prerequisite for DRM_XE_GPUSVM.
Explicitly select it so that DRM_XE_GPUSVM is not unintentionally
left out from distro configs not explicitly enabling
CONFIG_DEVICE_PRIVATE.
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: <dri-devel@lists.freedesktop.org>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
drivers/gpu/drm/xe/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig
index c34be1be155b..c510f47f7a16 100644
--- a/drivers/gpu/drm/xe/Kconfig
+++ b/drivers/gpu/drm/xe/Kconfig
@@ -80,8 +80,8 @@ config DRM_XE_GPUSVM
bool "Enable CPU to GPU address mirroring"
depends on DRM_XE
depends on !UML
- depends on DEVICE_PRIVATE
default y
+ select DEVICE_PRIVATE
select DRM_GPUSVM
help
Enable this option if you want support for CPU to GPU address
--
2.52.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] drm, drm/xe: Fix xe SVM configs
2026-01-20 11:33 [PATCH 0/2] drm, drm/xe: Fix xe SVM configs Thomas Hellström
2026-01-20 11:33 ` [PATCH 1/2] drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE Thomas Hellström
2026-01-20 11:33 ` [PATCH 2/2] drm/xe: Select CONFIG_DEVICE_PRIVATE when DRM_XE_GPUSVM is selected Thomas Hellström
@ 2026-01-20 13:49 ` Thomas Hellström
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Hellström @ 2026-01-20 13:49 UTC (permalink / raw)
To: intel-xe
Cc: Matthew Auld, Himal Prasad Ghimiray, Dafna Hirschfeld,
Matthew Brost, Rodrigo Vivi, dri-devel
On 1/20/26 12:33, Thomas Hellström wrote:
> The first patch fixes the problem of xe userptr not being enabled if
> CONFIG_DEVICE_PRIVATE is missing.
>
> Second patch explicitly selects CONFIG_DEVICE_PRIVATE if DRM_XE_GPUSVM
> is enabled, which is probably what most distros want. This patch is
> not Fixes: tags since some configurations may actively exclude
> CONFIG_DEVICE_PRIVATE and it's undesirable if a stable update breaks
> those.
Hmm. Need to take also CONFIG_ZONE_DEVICE into account. Will respin.
>
> Cc: Matthew Auld <matthew.auld@intel.com>
> Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Dafna Hirschfeld <dafna.hirschfeld@intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: dri-devel@lists.freedesktop.org
>
> Thomas Hellström (2):
> drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE
> drm/xe: Select CONFIG_DEVICE_PRIVATE when DRM_XE_GPUSVM is selected
>
> drivers/gpu/drm/Kconfig | 2 +-
> drivers/gpu/drm/xe/Kconfig | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-20 13:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-20 11:33 [PATCH 0/2] drm, drm/xe: Fix xe SVM configs Thomas Hellström
2026-01-20 11:33 ` [PATCH 1/2] drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE Thomas Hellström
2026-01-20 11:33 ` [PATCH 2/2] drm/xe: Select CONFIG_DEVICE_PRIVATE when DRM_XE_GPUSVM is selected Thomas Hellström
2026-01-20 13:49 ` [PATCH 0/2] drm, drm/xe: Fix xe SVM configs Thomas Hellström
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox