[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202301181758.unmrQYLa-lkp@intel.com>
Date: Wed, 18 Jan 2023 17:37:59 +0800
From: kernel test robot <lkp@...el.com>
To: Danilo Krummrich <dakr@...hat.com>, daniel@...ll.ch,
airlied@...hat.com, christian.koenig@....com, bskeggs@...hat.com,
jason@...kstrand.net, tzimmermann@...e.de, mripard@...nel.org,
corbet@....net
Cc: oe-kbuild-all@...ts.linux.dev, nouveau@...ts.freedesktop.org,
Danilo Krummrich <dakr@...hat.com>,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-doc@...r.kernel.org
Subject: Re: [PATCH drm-next 11/14] drm/nouveau: nvkm/vmm: implement raw ops
to manage uvmm
Hi Danilo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 0b45ac1170ea6416bc1d36798414c04870cd356d]
url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552
base: 0b45ac1170ea6416bc1d36798414c04870cd356d
patch link: https://lore.kernel.org/r/20230118061256.2689-12-dakr%40redhat.com
patch subject: [PATCH drm-next 11/14] drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm
config: arc-allyesconfig
compiler: arceb-elf-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/5fca471110e52d7c8db10f9ff483134a546174a1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552
git checkout 5fca471110e52d7c8db10f9ff483134a546174a1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c: In function 'nvkm_uvmm_mthd_raw_unmap':
>> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c:413:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
413 | vma = (struct nvkm_vma *)args->handle;
| ^
vim +413 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
406
407 static int
408 nvkm_uvmm_mthd_raw_unmap(struct nvkm_uvmm *uvmm, struct nvif_vmm_raw_v0 *args)
409 {
410 struct nvkm_vmm *vmm = uvmm->vmm;
411 struct nvkm_vma *vma;
412
> 413 vma = (struct nvkm_vma *)args->handle;
414 if (!vma)
415 return -EINVAL;
416
417 mutex_lock(&vmm->mutex);
418 if (vma->busy) {
419 VMM_DEBUG(vmm, "denied %016llx: %d", vma->addr, vma->busy);
420 mutex_unlock(&vmm->mutex);
421 return -ENOENT;
422 }
423 vma->sparse = args->sparse;
424 nvkm_vmm_raw_unmap_locked(vmm, vma);
425 mutex_unlock(&vmm->mutex);
426
427 args->handle = 0;
428 kfree(vma);
429 return 0;
430 }
431
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
View attachment "config" of type "text/plain" (319819 bytes)
Powered by blists - more mailing lists