linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Matthew Auld <matthew.auld@intel.com>
Subject: [linux-next:master 4021/10581] drivers/gpu/drm/i915/i915_gem.c:1182:2: error: implicit declaration of function 'wbinvd_on_all_cpus'
Date: Fri, 12 Feb 2021 01:16:33 +0800	[thread overview]
Message-ID: <202102120128.sOMxi6ex-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2711 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33261 bytes --]

                 reply	other threads:[~2021-02-11 17:17 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=202102120128.sOMxi6ex-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=matthew.auld@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).