From: kernel test robot <lkp@intel.com>
To: Eileen Yoon <eyn@gmx.com>
Cc: oe-kbuild-all@lists.linux.dev, Janne Grunau <j@jannau.net>
Subject: [asahilinux:bits/240-isp 39/104] drivers/media/platform/apple/isp/isp-drv.c:131:undefined reference to `drm_mm_takedown'
Date: Mon, 30 Nov 2026 11:12:00 +0100 [thread overview]
Message-ID: <20261130110958.Lt7M2eLm-lkp@intel.com> (raw)
tree: https://github.com/AsahiLinux/linux bits/240-isp
head: a8d695c590dce32e51a585ee96711819849e01be
commit: 678610a51b7c8e6c54ee4568d97c0b7cff1049d4 [39/104] media: apple: Add Apple ISP driver
config: um-randconfig-r2111-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130110958.Lt7M2eLm-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130110958.Lt7M2eLm-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261130110958.Lt7M2eLm-lkp@intel.com/
All errors (new ones prefixed by >>):
/usr/bin/ld: warning: .tmp_vmlinux1 has a LOAD segment with RWX permissions
/usr/bin/ld: drivers/media/platform/apple/isp/isp-drv.o: in function `apple_isp_free_iommu':
>> drivers/media/platform/apple/isp/isp-drv.c:131:(.text+0x6ce): undefined reference to `drm_mm_takedown'
/usr/bin/ld: drivers/media/platform/apple/isp/isp-drv.o: in function `apple_isp_init_iommu':
>> drivers/media/platform/apple/isp/isp-drv.c:113:(.text+0x866): undefined reference to `drm_mm_init'
>> /usr/bin/ld: drivers/media/platform/apple/isp/isp-drv.c:118:(.text+0x8b2): undefined reference to `drm_mm_takedown'
/usr/bin/ld: drivers/media/platform/apple/isp/isp-drv.o: in function `apple_isp_free_iommu':
drivers/media/platform/apple/isp/isp-drv.c:131:(.text+0x974): undefined reference to `drm_mm_takedown'
/usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.o: in function `isp_surf_unreserve_iova':
>> drivers/media/platform/apple/isp/isp-iommu.c:78:(.text+0x4b8): undefined reference to `drm_mm_remove_node'
/usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.o: in function `drm_mm_insert_node_generic':
>> include/drm/drm_mm.h:439:(.text+0x69b): undefined reference to `drm_mm_insert_node_in_range'
/usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.o: in function `isp_surf_unreserve_iova':
drivers/media/platform/apple/isp/isp-iommu.c:78:(.text+0x8f7): undefined reference to `drm_mm_remove_node'
>> /usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.c:78:(.text+0xb7d): undefined reference to `drm_mm_remove_node'
/usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.c:78:(.text+0xc26): undefined reference to `drm_mm_remove_node'
>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
vim +131 drivers/media/platform/apple/isp/isp-drv.c
78
79 static int apple_isp_init_iommu(struct apple_isp *isp)
80 {
81 struct device *dev = isp->dev;
82 struct isp_firmware *fw = &isp->fw;
83 u64 heap_base, heap_size, vm_size;
84 int err;
85 int i = 0;
86
87 isp->domain = iommu_get_domain_for_dev(isp->dev);
88 if (!isp->domain)
89 return -EPROBE_DEFER;
90 isp->shift = __ffs(isp->domain->pgsize_bitmap);
91
92 err = of_property_read_u64(dev->of_node, "apple,isp-heap-base",
93 &heap_base);
94 if (err) {
95 dev_err(dev, "failed to read 'apple,isp-heap-base': %d\n", err);
96 return err;
97 }
98
99 err = of_property_read_u64(dev->of_node, "apple,isp-heap-size",
100 &heap_size);
101 if (err) {
102 dev_err(dev, "failed to read 'apple,isp-heap-size': %d\n", err);
103 return err;
104 }
105
106 err = of_property_read_u64(dev->of_node, "apple,dart-vm-size",
107 &vm_size);
108 if (err) {
109 dev_err(dev, "failed to read 'apple,dart-vm-size': %d\n", err);
110 return err;
111 }
112
> 113 drm_mm_init(&isp->iovad, heap_base, vm_size - heap_base);
114
115 /* Allocate read-only coprocessor private heap */
116 fw->heap = isp_alloc_surface(isp, heap_size);
117 if (!fw->heap) {
> 118 drm_mm_takedown(&isp->iovad);
119 err = -ENOMEM;
120 return err;
121 }
122
123 apple_isp_iommu_sync_ttbr(isp);
124
125 return 0;
126 }
127
128 static void apple_isp_free_iommu(struct apple_isp *isp)
129 {
130 isp_free_surface(isp, isp->fw.heap);
> 131 drm_mm_takedown(&isp->iovad);
132 }
133
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-11-30 10:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130110958.Lt7M2eLm-lkp@intel.com \
--to=lkp@intel.com \
--cc=eyn@gmx.com \
--cc=j@jannau.net \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.