[PATCH v3 6/7] drm/xe/userptr: replace xe_hmm with gpusvm
kernel test robot
lkp at intel.com
Thu Apr 24 14:21:16 UTC 2025
Hi Matthew,
kernel test robot noticed the following build errors:
[auto build test ERROR on drm-xe/drm-xe-next]
[also build test ERROR on next-20250424]
[cannot apply to drm-exynos/exynos-drm-next linus/master drm/drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip v6.15-rc3]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Auld/drm-gpusvm-fix-hmm_pfn_to_map_order-usage/20250424-202128
base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
patch link: https://lore.kernel.org/r/20250424121827.862729-15-matthew.auld%40intel.com
patch subject: [PATCH v3 6/7] drm/xe/userptr: replace xe_hmm with gpusvm
config: csky-randconfig-001-20250424 (https://download.01.org/0day-ci/archive/20250424/202504242229.drmSYxrH-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250424/202504242229.drmSYxrH-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504242229.drmSYxrH-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/drm_gpusvm.c: In function 'drm_gpusvm_get_devmem_page':
>> drivers/gpu/drm/drm_gpusvm.c:1709:9: error: implicit declaration of function 'zone_device_page_init' [-Werror=implicit-function-declaration]
1709 | zone_device_page_init(page);
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from drivers/gpu/drm/xe/xe_tile.c:16:
drivers/gpu/drm/xe/xe_svm.h: In function 'xe_svm_init':
>> drivers/gpu/drm/xe/xe_svm.h:137:16: error: implicit declaration of function 'drm_gpusvm_init'; did you mean 'drm_mm_init'? [-Werror=implicit-function-declaration]
137 | return drm_gpusvm_init(&vm->svm.gpusvm, "Xe SVM (simple)", &vm->xe->drm,
| ^~~~~~~~~~~~~~~
| drm_mm_init
>> drivers/gpu/drm/xe/xe_svm.h:137:35: error: invalid use of undefined type 'struct xe_vm'
137 | return drm_gpusvm_init(&vm->svm.gpusvm, "Xe SVM (simple)", &vm->xe->drm,
| ^~
drivers/gpu/drm/xe/xe_svm.h:137:71: error: invalid use of undefined type 'struct xe_vm'
137 | return drm_gpusvm_init(&vm->svm.gpusvm, "Xe SVM (simple)", &vm->xe->drm,
| ^~
In file included from drivers/gpu/drm/xe/xe_sriov.h:9,
from drivers/gpu/drm/xe/xe_device.h:13,
from drivers/gpu/drm/xe/xe_tile.c:10:
drivers/gpu/drm/xe/xe_svm.h: In function 'xe_svm_fini':
drivers/gpu/drm/xe/xe_svm.h:144:21: error: invalid use of undefined type 'struct xe_vm'
144 | xe_assert(vm->xe, xe_vm_is_closed(vm));
| ^~
drivers/gpu/drm/xe/xe_assert.h:110:41: note: in definition of macro 'xe_assert_msg'
110 | const struct xe_device *__xe = (xe); \
| ^~
drivers/gpu/drm/xe/xe_svm.h:144:9: note: in expansion of macro 'xe_assert'
144 | xe_assert(vm->xe, xe_vm_is_closed(vm));
| ^~~~~~~~~
In file included from include/linux/bits.h:22,
from include/linux/gfp_types.h:5,
from include/linux/gfp.h:5,
from include/drm/drm_managed.h:6,
from drivers/gpu/drm/xe/xe_tile.c:8:
>> drivers/gpu/drm/xe/xe_svm.h:144:27: error: implicit declaration of function 'xe_vm_is_closed' [-Werror=implicit-function-declaration]
144 | xe_assert(vm->xe, xe_vm_is_closed(vm));
| ^~~~~~~~~~~~~~~
include/linux/build_bug.h:30:63: note: in definition of macro 'BUILD_BUG_ON_INVALID'
30 | #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))
| ^
drivers/gpu/drm/xe/xe_assert.h:111:9: note: in expansion of macro '__xe_assert_msg'
111 | __xe_assert_msg(__xe, condition, \
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/xe/xe_assert.h:108:34: note: in expansion of macro 'xe_assert_msg'
108 | #define xe_assert(xe, condition) xe_assert_msg((xe), condition, "")
| ^~~~~~~~~~~~~
drivers/gpu/drm/xe/xe_svm.h:144:9: note: in expansion of macro 'xe_assert'
144 | xe_assert(vm->xe, xe_vm_is_closed(vm));
| ^~~~~~~~~
>> drivers/gpu/drm/xe/xe_svm.h:146:9: error: implicit declaration of function 'drm_gpusvm_fini'; did you mean 'drm_buddy_fini'? [-Werror=implicit-function-declaration]
146 | drm_gpusvm_fini(&vm->svm.gpusvm);
| ^~~~~~~~~~~~~~~
| drm_buddy_fini
drivers/gpu/drm/xe/xe_svm.h:146:28: error: invalid use of undefined type 'struct xe_vm'
146 | drm_gpusvm_fini(&vm->svm.gpusvm);
| ^~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_GPUSVM
Depends on [n]: HAS_IOMEM [=y] && DRM [=y] && DEVICE_PRIVATE [=n]
Selected by [m]:
- DRM_XE [=m] && HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && MMU [=y] && (m [=m] && MODULES [=y] || KUNIT [=n]=y [=y])
vim +137 drivers/gpu/drm/xe/xe_svm.h
133
134 static inline
135 int xe_svm_init(struct xe_vm *vm)
136 {
> 137 return drm_gpusvm_init(&vm->svm.gpusvm, "Xe SVM (simple)", &vm->xe->drm,
138 NULL, NULL, 0, 0, 0, NULL, NULL, 0);
139 }
140
141 static inline
142 void xe_svm_fini(struct xe_vm *vm)
143 {
> 144 xe_assert(vm->xe, xe_vm_is_closed(vm));
145
> 146 drm_gpusvm_fini(&vm->svm.gpusvm);
147 }
148
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Intel-xe
mailing list