[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110131243.JqxZsGvJ-lkp@intel.com>
Date: Wed, 13 Oct 2021 12:42:52 +0800
From: kernel test robot <lkp@...el.com>
To: Luo penghao <luo.penghao@....com.cn>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Karol Herbst <kherbst@...hat.com>
Subject: [drm-misc:drm-misc-next 3/5]
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c:491:13: error: unused
variable 'inst'
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head: f30946db159feddf8c89bdeeb79ff893d949d480
commit: 404046cf48050167bc068bd12fdd2cbce61022c3 [3/5] drm/nouveau/mmu/gp100-: drop unneeded assignment in the if condition.
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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
git remote add drm-misc git://anongit.freedesktop.org/drm/drm-misc
git fetch --no-tags drm-misc drm-misc-next
git checkout 404046cf48050167bc068bd12fdd2cbce61022c3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
Note: the drm-misc/drm-misc-next HEAD 381ba6a6baf104b572379c6b2deab884555104d4 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c: In function 'gp100_vmm_fault_cancel':
>> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c:491:13: error: unused variable 'inst' [-Werror=unused-variable]
491 | u32 inst, aper;
| ^~~~
cc1: all warnings being treated as errors
vim +/inst +491 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c
f9400afb1e11c33 Ben Skeggs 2017-11-01 482
71871aa6df5009e Ben Skeggs 2018-07-09 483 static int
71871aa6df5009e Ben Skeggs 2018-07-09 484 gp100_vmm_fault_cancel(struct nvkm_vmm *vmm, void *argv, u32 argc)
71871aa6df5009e Ben Skeggs 2018-07-09 485 {
71871aa6df5009e Ben Skeggs 2018-07-09 486 struct nvkm_device *device = vmm->mmu->subdev.device;
71871aa6df5009e Ben Skeggs 2018-07-09 487 union {
71871aa6df5009e Ben Skeggs 2018-07-09 488 struct gp100_vmm_fault_cancel_v0 v0;
71871aa6df5009e Ben Skeggs 2018-07-09 489 } *args = argv;
71871aa6df5009e Ben Skeggs 2018-07-09 490 int ret = -ENOSYS;
71871aa6df5009e Ben Skeggs 2018-07-09 @491 u32 inst, aper;
71871aa6df5009e Ben Skeggs 2018-07-09 492
71871aa6df5009e Ben Skeggs 2018-07-09 493 if ((ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false)))
71871aa6df5009e Ben Skeggs 2018-07-09 494 return ret;
71871aa6df5009e Ben Skeggs 2018-07-09 495
71871aa6df5009e Ben Skeggs 2018-07-09 496 /* Translate MaxwellFaultBufferA instance pointer to the same
71871aa6df5009e Ben Skeggs 2018-07-09 497 * format as the NV_GR_FECS_CURRENT_CTX register.
71871aa6df5009e Ben Skeggs 2018-07-09 498 */
71871aa6df5009e Ben Skeggs 2018-07-09 499 aper = (args->v0.inst >> 8) & 3;
71871aa6df5009e Ben Skeggs 2018-07-09 500 args->v0.inst >>= 12;
71871aa6df5009e Ben Skeggs 2018-07-09 501 args->v0.inst |= aper << 28;
71871aa6df5009e Ben Skeggs 2018-07-09 502 args->v0.inst |= 0x80000000;
71871aa6df5009e Ben Skeggs 2018-07-09 503
71871aa6df5009e Ben Skeggs 2018-07-09 504 if (!WARN_ON(nvkm_gr_ctxsw_pause(device))) {
404046cf4805016 Luo penghao 2021-08-20 505 if (nvkm_gr_ctxsw_inst(device) == args->v0.inst) {
71871aa6df5009e Ben Skeggs 2018-07-09 506 gf100_vmm_invalidate(vmm, 0x0000001b
71871aa6df5009e Ben Skeggs 2018-07-09 507 /* CANCEL_TARGETED. */ |
71871aa6df5009e Ben Skeggs 2018-07-09 508 (args->v0.hub << 20) |
71871aa6df5009e Ben Skeggs 2018-07-09 509 (args->v0.gpc << 15) |
71871aa6df5009e Ben Skeggs 2018-07-09 510 (args->v0.client << 9));
71871aa6df5009e Ben Skeggs 2018-07-09 511 }
71871aa6df5009e Ben Skeggs 2018-07-09 512 WARN_ON(nvkm_gr_ctxsw_resume(device));
71871aa6df5009e Ben Skeggs 2018-07-09 513 }
71871aa6df5009e Ben Skeggs 2018-07-09 514
71871aa6df5009e Ben Skeggs 2018-07-09 515 return 0;
71871aa6df5009e Ben Skeggs 2018-07-09 516 }
71871aa6df5009e Ben Skeggs 2018-07-09 517
:::::: The code at line 491 was first introduced by commit
:::::: 71871aa6df5009ebf39ae94d15d0e9836bf91c03 drm/nouveau/mmu/gp100-: add privileged methods for fault replay/cancel
:::::: TO: Ben Skeggs <bskeggs@...hat.com>
:::::: CC: Ben Skeggs <bskeggs@...hat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (69270 bytes)
Powered by blists - more mailing lists