[PATCH] drm/xe: Remove references to CONFIG_DRM_XE_DEVMEM_MIRROR
Lucas De Marchi
lucas.demarchi at intel.com
Mon Jul 14 15:52:05 UTC 2025
On Thu, Jul 10, 2025 at 02:22:41PM -0700, Matthew Brost wrote:
>On Thu, Jul 10, 2025 at 03:19:03PM -0600, Cavitt, Jonathan wrote:
>> -----Original Message-----
>> From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Matthew Brost
>> Sent: Thursday, July 10, 2025 1:54 PM
>> To: intel-xe at lists.freedesktop.org
>> Subject: [PATCH] drm/xe: Remove references to CONFIG_DRM_XE_DEVMEM_MIRROR
>> >
>> > The prefetch code was referencing CONFIG_DRM_XE_DEVMEM_MIRROR, which has
>> > been replaced by CONFIG_DRM_XE_PAGEMAP. As a result, prefetches were
>> > limited to SRAM. Update the code to use CONFIG_DRM_XE_PAGEMAP instead of
>> > the deprecated option.
>> >
>> > Fixes: f86ad0ed620c ("drm/gpusvm, drm/pagemap: Move migration functionality to drm_pagemap")
>> > Signed-off-by: Matthew Brost <matthew.brost at intel.com>
>>
>> LGTM, though I will admit it's a bit weird this didn't cause the kernel to fail to compile
>> before, as CONFIG_DRM_XE_DEVMEM_MIRROR doesn't seem to have an official
>> declaration in the code to be referenced.
>>
>
>IS_ENABLED just checks if CONFIG_DRM_XE_DEVMEM_MIRROR was defined, which it is not.
yeah... so I did a quick and dirty grep:
sed -n "s/.*ENABLED(CONFIG_\([A-Z_0-9]\+\).*/\1/p" -- drivers/gpu/drm/xe/*.[ch] | sort -u
CONFIGFS_FS
DEBUG_FS
DRM_XE_DEBUG
DRM_XE_DEBUG_GUC
DRM_XE_DEBUG_MEM
DRM_XE_DEBUG_SRIOV
DRM_XE_DEBUG_VM
DRM_XE_DISPLAY
DRM_XE_ENABLE_SCHEDTIMEOUT_LIMIT
DRM_XE_GPUSVM
DRM_XE_KUNIT_TEST
DRM_XE_LMTT_2L_128GB
DRM_XE_PAGEMAP
DRM_XE_USERPTR_INVAL_INJECT
I2C
INTEL_MEI_GSC_PROXY
LOCKDEP
PERF_EVENTS
PROVE_LOCKING
TRACE_GPU_MEM
X86
Checking for them:
$ git grep "config $foo\$" -- '**/Kconfig*'
It seems we are also doing something weird with
DRM_XE_LMTT_2L_128GB coming from commit b1d204058218 ("drm/xe/pf:
Introduce Local Memory Translation Table")
+Michal
Lucas De Marchi
More information about the Intel-xe
mailing list