[PATCH 2/3] drm/amdgpu: Adding amdgpu CRIU ioctl
Dan Carpenter
dan.carpenter at linaro.org
Fri May 23 09:15:52 UTC 2025
Hi David,
kernel test robot noticed the following build warnings:
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/David-Francis/drm-amdgpu-Adding-amdgpu-CRIU-ioctl/20250521-230706
base: git://anongit.freedesktop.org/drm/drm drm-next
patch link: https://lore.kernel.org/r/20250521140649.4058526-3-David.Francis%40amd.com
patch subject: [PATCH 2/3] drm/amdgpu: Adding amdgpu CRIU ioctl
config: loongarch-randconfig-r073-20250522 (https://download.01.org/0day-ci/archive/20250523/202505230705.6EOoxLbq-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 15.1.0
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>
| Reported-by: Dan Carpenter <dan.carpenter at linaro.org>
| Closes: https://lore.kernel.org/r/202505230705.6EOoxLbq-lkp@intel.com/
smatch warnings:
drivers/gpu/drm/amd/amdgpu/amdgpu_criu.c:160 amdgpu_criu_checkpoint() warn: potential ! vs ~ typo
vim +160 drivers/gpu/drm/amd/amdgpu/amdgpu_criu.c
d970da5c8545bbc David Francis 2025-05-21 145 vm_buckets = kvzalloc(args->num_vms * sizeof(*vm_buckets), GFP_KERNEL);
d970da5c8545bbc David Francis 2025-05-21 146 if (!vm_buckets) {
d970da5c8545bbc David Francis 2025-05-21 147 ret = -ENOMEM;
d970da5c8545bbc David Francis 2025-05-21 148 goto free_vms;
d970da5c8545bbc David Francis 2025-05-21 149 }
d970da5c8545bbc David Francis 2025-05-21 150
d970da5c8545bbc David Francis 2025-05-21 151 idr_for_each_entry(&data->object_idr, gobj, id) {
d970da5c8545bbc David Francis 2025-05-21 152 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj);
d970da5c8545bbc David Francis 2025-05-21 153 struct drm_amdgpu_criu_bo_bucket *bo_bucket;
d970da5c8545bbc David Francis 2025-05-21 154 struct amdgpu_vm_bo_base *vm_bo_base;
d970da5c8545bbc David Francis 2025-05-21 155
d970da5c8545bbc David Francis 2025-05-21 156 bo_bucket = &bo_buckets[bo_index];
d970da5c8545bbc David Francis 2025-05-21 157
d970da5c8545bbc David Francis 2025-05-21 158 bo_bucket->size = amdgpu_bo_size(bo);
d970da5c8545bbc David Francis 2025-05-21 159 bo_bucket->offset = amdgpu_bo_mmap_offset(bo);
d970da5c8545bbc David Francis 2025-05-21 @160 bo_bucket->alloc_flags = bo->flags & (!AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE);
This looks like it was supposed to clear the AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE
bit.
bo_bucket->alloc_flags = bo->flags & ~AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE;
Currently it just sets "bo_bucket->alloc_flags = 0;"
d970da5c8545bbc David Francis 2025-05-21 161 bo_bucket->preferred_domains = bo->preferred_domains;
d970da5c8545bbc David Francis 2025-05-21 162
d970da5c8545bbc David Francis 2025-05-21 163 if (is_import(bo))
d970da5c8545bbc David Francis 2025-05-21 164 bo_bucket->flags |= AMDGPU_CRIU_BO_FLAG_IS_IMPORT;
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the dri-devel
mailing list