Hi Thomas, kernel test robot noticed the following build errors:
[auto build test ERROR on drm-xe/drm-xe-next] [also build test ERROR on next-20251112] [cannot apply to linus/master v6.18-rc5] [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/Thomas-Hellstr-m/drm-xe-svm-Fix-a-debug-printout/20251112-004643 base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next patch link: https://lore.kernel.org/r/20251111164408.113070-12-thomas.hellstrom%40linux.intel.com patch subject: [PATCH v2 11/17] drm/xe: Use the vma attibute drm_pagemap to select where to migrate config: arm-randconfig-002-20251112 (https://download.01.org/0day-ci/archive/20251112/[email protected]/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 996639d6ebb86ff15a8c99b67f1c2e2117636ae7) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251112/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/xe/xe_vm.c:2914:58: error: incompatible pointer to integer >> conversion passing 'struct drm_pagemap *' to parameter of type 'u32' (aka >> 'unsigned int') [-Wint-conversion] 2914 | if (xe_svm_range_needs_migrate_to_vram(svm_range, vma, dpagemap)) { | ^~~~~~~~ drivers/gpu/drm/xe/xe_svm.h:321:10: note: passing argument to parameter 'region' here 321 | u32 region) | ^ 1 error generated. vim +2914 drivers/gpu/drm/xe/xe_vm.c 2889 2890 static int prefetch_ranges(struct xe_vm *vm, struct xe_vma_op *op) 2891 { 2892 bool devmem_possible = IS_DGFX(vm->xe) && IS_ENABLED(CONFIG_DRM_XE_PAGEMAP); 2893 struct xe_vma *vma = gpuva_to_vma(op->base.prefetch.va); 2894 struct drm_pagemap *dpagemap = op->prefetch_range.dpagemap; 2895 int err = 0; 2896 2897 struct xe_svm_range *svm_range; 2898 struct drm_gpusvm_ctx ctx = {}; 2899 unsigned long i; 2900 2901 if (!xe_vma_is_cpu_addr_mirror(vma)) 2902 return 0; 2903 2904 ctx.read_only = xe_vma_read_only(vma); 2905 ctx.devmem_possible = devmem_possible; 2906 ctx.check_pages_threshold = devmem_possible ? SZ_64K : 0; 2907 ctx.device_private_page_owner = xe_svm_private_page_owner(vm, !dpagemap); 2908 2909 /* TODO: Threading the migration */ 2910 xa_for_each(&op->prefetch_range.range, i, svm_range) { 2911 if (!dpagemap) 2912 xe_svm_range_migrate_to_smem(vm, svm_range); 2913 > 2914 if (xe_svm_range_needs_migrate_to_vram(svm_range, vma, > dpagemap)) { 2915 err = xe_svm_alloc_vram(svm_range, &ctx, dpagemap); 2916 if (err) { 2917 drm_dbg(&vm->xe->drm, "VRAM allocation failed, retry from userspace, asid=%u, gpusvm=%p, errno=%pe\n", 2918 vm->usm.asid, &vm->svm.gpusvm, ERR_PTR(err)); 2919 return -ENODATA; 2920 } 2921 xe_svm_range_debug(svm_range, "PREFETCH - RANGE MIGRATED TO VRAM"); 2922 } 2923 2924 err = xe_svm_range_get_pages(vm, svm_range, &ctx); 2925 if (err) { 2926 drm_dbg(&vm->xe->drm, "Get pages failed, asid=%u, gpusvm=%p, errno=%pe\n", 2927 vm->usm.asid, &vm->svm.gpusvm, ERR_PTR(err)); 2928 if (err == -EOPNOTSUPP || err == -EFAULT || err == -EPERM) 2929 err = -ENODATA; 2930 return err; 2931 } 2932 xe_svm_range_debug(svm_range, "PREFETCH - RANGE GET PAGES DONE"); 2933 } 2934 2935 return err; 2936 } 2937 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
