tree:
git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head: 14054f2afcd6fcef8270a32cbd7570b4992994c5
commit: 3abc66706385e08f7003ca746be005e4c2152b09 [5/9] drm: Implement drm_need_swiotlb()
in drm_cache.c
config: riscv-randconfig-p002-20210113 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.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-drm-misc
git://anongit.freedesktop.org/drm/drm-misc
git fetch --no-tags drm-drm-misc drm-misc-next
git checkout 3abc66706385e08f7003ca746be005e4c2152b09
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/drm_cache.c: In function 'drm_need_swiotlb':
> drivers/gpu/drm/drm_cache.c:202:6: error: implicit declaration of
function 'mem_encrypt_active' [-Werror=implicit-function-declaration]
202 | if (mem_encrypt_active())
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/mem_encrypt_active +202 drivers/gpu/drm/drm_cache.c
180
181 bool drm_need_swiotlb(int dma_bits)
182 {
183 struct resource *tmp;
184 resource_size_t max_iomem = 0;
185
186 /*
187 * Xen paravirtual hosts require swiotlb regardless of requested dma
188 * transfer size.
189 *
190 * NOTE: Really, what it requires is use of the dma_alloc_coherent
191 * allocator used in ttm_dma_populate() instead of
192 * ttm_populate_and_map_pages(), which bounce buffers so much in
193 * Xen it leads to swiotlb buffer exhaustion.
194 */
195 if (xen_pv_domain())
196 return true;
197
198 /*
199 * Enforce dma_alloc_coherent when memory encryption is active as well
200 * for the same reasons as for Xen paravirtual hosts.
201 */
202 if (mem_encrypt_active())
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org