CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Kefeng Wang <wangkefeng.w...@huawei.com> CC: Palmer Dabbelt <palmerdabb...@google.com>
Hi Kefeng, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e49d033bddf5b565044e2abe4241353959bc9120 commit: ed1ed4c0da5447c5e322481ce2ef9f03336c6ffb riscv: mmiowb: Fix implicit declaration of function 'smp_processor_id' date: 11 months ago :::::: branch date: 8 hours ago :::::: commit date: 11 months ago config: riscv-randconfig-m031-20210405 (attached as .config) compiler: riscv32-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> Reported-by: Dan Carpenter <dan.carpen...@oracle.com> New smatch warnings: drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:440 amdgpu_move_blit() warn: should 'new_mem->num_pages << (12)' be a 64 bit type? drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:723 amdgpu_gem_op_ioctl() warn: should 'robj->tbo.mem.page_alignment << (12)' be a 64 bit type? drivers/gpu/drm/nouveau/nouveau_gem.c:244 nouveau_gem_info() warn: should 'nvbo->bo.mem.num_pages << (12)' be a 64 bit type? drivers/gpu/drm/nouveau/nouveau_mem.c:125 nouveau_mem_host() warn: should 'reg->num_pages << (12)' be a 64 bit type? drivers/gpu/drm/nouveau/nouveau_ttm.c:139 nv04_gart_manager_new() warn: should 'reg->num_pages << (12)' be a 64 bit type? drivers/gpu/drm/nouveau/nouveau_bo.c:1329 nouveau_bo_vm_bind() warn: should 'new_reg->start << (12)' be a 64 bit type? mm/shmem.c:1745 shmem_getpage_gfp() warn: impossible condition '(index > (((~0) << (12)) >> (12))) => (0-4294967295 > 4294967295)' mm/shmem.c:1884 shmem_getpage_gfp() warn: should '(((1) << (12)) / 512) << compound_order(page)' be a 64 bit type? arch/riscv/kernel/perf_event.c:160 riscv_map_cache_event() warn: inconsistent indenting Old smatch warnings: drivers/gpu/drm/nouveau/nouveau_bo.c:947 nv50_bo_move_m2mf() warn: should 'new_reg->num_pages << (12)' be a 64 bit type? vim +440 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 415 50da51744f005f Tom St Denis 2018-05-09 416 /** 50da51744f005f Tom St Denis 2018-05-09 417 * amdgpu_move_blit - Copy an entire buffer to another buffer 50da51744f005f Tom St Denis 2018-05-09 418 * 2e603d0429a4e7 Huang Rui 2018-07-26 419 * This is a helper called by amdgpu_bo_move() and amdgpu_move_vram_ram() to 2e603d0429a4e7 Huang Rui 2018-07-26 420 * help move buffers to and from VRAM. 50da51744f005f Tom St Denis 2018-05-09 421 */ 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 422 static int amdgpu_move_blit(struct ttm_buffer_object *bo, 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 423 bool evict, bool no_wait_gpu, 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 424 struct ttm_mem_reg *new_mem, 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 425 struct ttm_mem_reg *old_mem) 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 426 { 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 427 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->bdev); 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 428 struct amdgpu_copy_mem src, dst; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 429 struct dma_fence *fence = NULL; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 430 int r; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 431 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 432 src.bo = bo; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 433 dst.bo = bo; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 434 src.mem = old_mem; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 435 dst.mem = new_mem; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 436 src.offset = 0; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 437 dst.offset = 0; 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 438 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 439 r = amdgpu_ttm_copy_mem_to_mem(adev, &src, &dst, 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 @440 new_mem->num_pages << PAGE_SHIFT, 5a5011a7248954 Gerd Hoffmann 2019-08-05 441 bo->base.resv, &fence); 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 442 if (r) 1eca5a530dc3ac Harish Kasiviswanathan 2017-10-03 443 goto error; ce64bc25ef2542 Christian König 2016-06-15 444 ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 445 /* clear the space being freed */ ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 446 if (old_mem->mem_type == TTM_PL_VRAM && ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 447 (ttm_to_amdgpu_bo(bo)->flags & ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 448 AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE)) { ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 449 struct dma_fence *wipe_fence = NULL; ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 450 ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 451 r = amdgpu_fill_buffer(ttm_to_amdgpu_bo(bo), AMDGPU_POISON, ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 452 NULL, &wipe_fence); ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 453 if (r) { ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 454 goto error; ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 455 } else if (wipe_fence) { ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 456 dma_fence_put(fence); ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 457 fence = wipe_fence; ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 458 } ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 459 } ab2f7a5c18b5c1 Felix Kuehling 2019-07-09 460 4947b2f248f867 Christian König 2018-09-11 461 /* Always block for VM page tables before committing the new location */ 4947b2f248f867 Christian König 2018-09-11 462 if (bo->type == ttm_bo_type_kernel) 4947b2f248f867 Christian König 2018-09-11 463 r = ttm_bo_move_accel_cleanup(bo, fence, true, new_mem); 4947b2f248f867 Christian König 2018-09-11 464 else ce64bc25ef2542 Christian König 2016-06-15 465 r = ttm_bo_pipeline_move(bo, fence, evict, new_mem); f54d1867005c33 Chris Wilson 2016-10-25 466 dma_fence_put(fence); d38ceaf99ed015 Alex Deucher 2015-04-20 467 return r; 8892f153c83e52 Christian König 2016-08-17 468 8892f153c83e52 Christian König 2016-08-17 469 error: 8892f153c83e52 Christian König 2016-08-17 470 if (fence) 220196b38483be Dave Airlie 2016-10-28 471 dma_fence_wait(fence, false); 220196b38483be Dave Airlie 2016-10-28 472 dma_fence_put(fence); 8892f153c83e52 Christian König 2016-08-17 473 return r; d38ceaf99ed015 Alex Deucher 2015-04-20 474 } d38ceaf99ed015 Alex Deucher 2015-04-20 475 :::::: The code at line 440 was first introduced by commit :::::: 1eca5a530dc3ac0a2fadd21da1c9e6c729a4a2a1 drm/amdgpu: Refactor amdgpu_move_blit :::::: TO: Harish Kasiviswanathan <harish.kasiviswanat...@amd.com> :::::: CC: Alex Deucher <alexander.deuc...@amd.com> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org