[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202511020901.GlNgowuw-lkp@intel.com>
Date: Sun, 2 Nov 2025 09:36:22 +0800
From: kernel test robot <lkp@...el.com>
To: LiangCheng Wang <zaq14760@...il.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Thomas Zimmermann <tzimmermann@...e.de>
Subject: drivers/gpu/drm/drm_gem_shmem_helper.c:560:undefined reference to
`vmf_insert_pfn'
Hi LiangCheng,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 691d401c7e0e5ea34ac6f8151bc0696db1b2500a
commit: 0c4932f6ddf815618fa34f7403df682aed7862b5 drm/tiny: pixpaper: Fix missing dependency on DRM_GEM_SHMEM_HELPER
date: 6 weeks ago
config: arm-randconfig-004-20251102 (https://download.01.org/0day-ci/archive/20251102/202511020901.GlNgowuw-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251102/202511020901.GlNgowuw-lkp@intel.com/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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511020901.GlNgowuw-lkp@intel.com/
All errors (new ones prefixed by >>):
arm-linux-gnueabi-ld: drivers/gpu/drm/drm_gem_shmem_helper.o: in function `drm_gem_shmem_fault':
>> drivers/gpu/drm/drm_gem_shmem_helper.c:560:(.text+0x1a2): undefined reference to `vmf_insert_pfn'
arm-linux-gnueabi-ld: (vmf_insert_pfn): Unknown destination type (ARM/Thumb) in drivers/gpu/drm/drm_gem_shmem_helper.o
>> drivers/gpu/drm/drm_gem_shmem_helper.c:560:(.text+0x1a2): dangerous relocation: unsupported relocation
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_GEM_SHMEM_HELPER
Depends on [n]: HAS_IOMEM [=y] && DRM [=y] && MMU [=n]
Selected by [y]:
- DRM_PIXPAPER [=y] && HAS_IOMEM [=y] && DRM [=y] && SPI [=y]
vim +560 drivers/gpu/drm/drm_gem_shmem_helper.c
2194a63a818db71 Noralf Trønnes 2019-03-12 537
2194a63a818db71 Noralf Trønnes 2019-03-12 538 static vm_fault_t drm_gem_shmem_fault(struct vm_fault *vmf)
2194a63a818db71 Noralf Trønnes 2019-03-12 539 {
2194a63a818db71 Noralf Trønnes 2019-03-12 540 struct vm_area_struct *vma = vmf->vma;
2194a63a818db71 Noralf Trønnes 2019-03-12 541 struct drm_gem_object *obj = vma->vm_private_data;
2194a63a818db71 Noralf Trønnes 2019-03-12 542 struct drm_gem_shmem_object *shmem = to_drm_gem_shmem_obj(obj);
2194a63a818db71 Noralf Trønnes 2019-03-12 543 loff_t num_pages = obj->size >> PAGE_SHIFT;
d611b4a0907cece Neil Roberts 2021-02-23 544 vm_fault_t ret;
2194a63a818db71 Noralf Trønnes 2019-03-12 545 struct page *page;
11d5a4745e00e73 Neil Roberts 2021-02-23 546 pgoff_t page_offset;
11d5a4745e00e73 Neil Roberts 2021-02-23 547
11d5a4745e00e73 Neil Roberts 2021-02-23 548 /* We don't use vmf->pgoff since that has the fake offset */
11d5a4745e00e73 Neil Roberts 2021-02-23 549 page_offset = (vmf->address - vma->vm_start) >> PAGE_SHIFT;
2194a63a818db71 Noralf Trønnes 2019-03-12 550
21aa27ddc582693 Dmitry Osipenko 2023-05-30 551 dma_resv_lock(shmem->base.resv, NULL);
2194a63a818db71 Noralf Trønnes 2019-03-12 552
11d5a4745e00e73 Neil Roberts 2021-02-23 553 if (page_offset >= num_pages ||
3f6a1e22fae95a5 Dmitry Osipenko 2022-11-16 554 drm_WARN_ON_ONCE(obj->dev, !shmem->pages) ||
d611b4a0907cece Neil Roberts 2021-02-23 555 shmem->madv < 0) {
d611b4a0907cece Neil Roberts 2021-02-23 556 ret = VM_FAULT_SIGBUS;
d611b4a0907cece Neil Roberts 2021-02-23 557 } else {
11d5a4745e00e73 Neil Roberts 2021-02-23 558 page = shmem->pages[page_offset];
2194a63a818db71 Noralf Trønnes 2019-03-12 559
8b93d1d7dbd578f Simona Vetter 2021-08-12 @560 ret = vmf_insert_pfn(vma, vmf->address, page_to_pfn(page));
d611b4a0907cece Neil Roberts 2021-02-23 561 }
d611b4a0907cece Neil Roberts 2021-02-23 562
21aa27ddc582693 Dmitry Osipenko 2023-05-30 563 dma_resv_unlock(shmem->base.resv);
d611b4a0907cece Neil Roberts 2021-02-23 564
d611b4a0907cece Neil Roberts 2021-02-23 565 return ret;
2194a63a818db71 Noralf Trønnes 2019-03-12 566 }
2194a63a818db71 Noralf Trønnes 2019-03-12 567
:::::: The code at line 560 was first introduced by commit
:::::: 8b93d1d7dbd578fd296e70008b29c0f62d09d7cb drm/shmem-helper: Switch to vmf_insert_pfn
:::::: TO: Daniel Vetter <daniel.vetter@...ll.ch>
:::::: CC: Daniel Vetter <daniel.vetter@...ll.ch>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists