[linux-next:master 4021/10581] drivers/gpu/drm/i915/i915_gem.c:1182:2: error: implicit declaration of function 'wbinvd_on_all_cpus'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   671176b0016c80b3943cb5387312c886aba3308d
commit: 30d2bfd093839cf6eef93f9c2cbdc347c7bf8b20 [4021/10581] drm/i915/gem: Almagamate clflushes on freeze
config: x86_64-randconfig-a005-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=30d2bfd093839cf6eef93f9c2cbdc347c7bf8b20
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 30d2bfd093839cf6eef93f9c2cbdc347c7bf8b20
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

Note: the linux-next/master HEAD 671176b0016c80b3943cb5387312c886aba3308d builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/i915_gem.c: In function 'i915_gem_freeze_late':
>> drivers/gpu/drm/i915/i915_gem.c:1182:2: error: implicit declaration of function 'wbinvd_on_all_cpus' [-Werror=implicit-function-declaration]
    1182 |  wbinvd_on_all_cpus();
         |  ^~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/wbinvd_on_all_cpus +1182 drivers/gpu/drm/i915/i915_gem.c

  1157	
  1158	int i915_gem_freeze_late(struct drm_i915_private *i915)
  1159	{
  1160		struct drm_i915_gem_object *obj;
  1161		intel_wakeref_t wakeref;
  1162	
  1163		/*
  1164		 * Called just before we write the hibernation image.
  1165		 *
  1166		 * We need to update the domain tracking to reflect that the CPU
  1167		 * will be accessing all the pages to create and restore from the
  1168		 * hibernation, and so upon restoration those pages will be in the
  1169		 * CPU domain.
  1170		 *
  1171		 * To make sure the hibernation image contains the latest state,
  1172		 * we update that state just before writing out the image.
  1173		 *
  1174		 * To try and reduce the hibernation image, we manually shrink
  1175		 * the objects as well, see i915_gem_freeze()
  1176		 */
  1177	
  1178		with_intel_runtime_pm(&i915->runtime_pm, wakeref)
  1179			i915_gem_shrink(i915, -1UL, NULL, ~0);
  1180		i915_gem_drain_freed_objects(i915);
  1181	
> 1182		wbinvd_on_all_cpus();
  1183		list_for_each_entry(obj, &i915->mm.shrink_list, mm.link)
  1184			__start_cpu_write(obj);
  1185	
  1186		return 0;
  1187	}
  1188	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux