All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Zhipeng Gong <zhipeng.gong@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, "Pan, Kris" <kris.pan@intel.com>,
	"He, Min" <min.he@intel.com>, Zhao Yakui <yakui.zhao@intel.com>
Subject: [intel-lts:4.19/android_t 3688/30000] drivers/gpu/drm/i915/i915_gem_gtt.c:1022:39: sparse: sparse: incorrect type in argument 2 (different address spaces)
Date: Sat, 11 Nov 2023 01:14:44 +0800	[thread overview]
Message-ID: <202311110130.RA4NPMiH-lkp@intel.com> (raw)

tree:   https://github.com/intel/linux-intel-lts.git 4.19/android_t
head:   247bc655e03e4ac3632b21081ca56b813a644dcf
commit: f1964915364c169131ec07afef206ecaa773843b [3688/30000] drm/i915/gvt: notify ppgtt update through g2v
config: x86_64-randconfig-121-20230910 (https://download.01.org/0day-ci/archive/20231111/202311110130.RA4NPMiH-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231111/202311110130.RA4NPMiH-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/202311110130.RA4NPMiH-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/i915_gem_gtt.c:1022:39: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1022:39: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1022:39: sparse:     got unsigned long long *
   drivers/gpu/drm/i915/i915_gem_gtt.c:1023:37: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1023:37: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1023:37: sparse:     got unsigned long long *
   drivers/gpu/drm/i915/i915_gem_gtt.c:1024:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1024:38: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1024:38: sparse:     got unsigned long long *
   drivers/gpu/drm/i915/i915_gem_gtt.c:1271:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1271:55: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1271:55: sparse:     got unsigned long long *
   drivers/gpu/drm/i915/i915_gem_gtt.c:1272:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1272:50: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1272:50: sparse:     got unsigned long long *
   drivers/gpu/drm/i915/i915_gem_gtt.c:1273:49: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1273:49: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1273:49: sparse:     got unsigned long long *
>> drivers/gpu/drm/i915/i915_gem_gtt.c:1274:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned int * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1274:46: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1274:46: sparse:     got unsigned int *
   drivers/gpu/drm/i915/i915_gem_gtt.c:1549:39: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1549:39: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1549:39: sparse:     got unsigned long long *
   drivers/gpu/drm/i915/i915_gem_gtt.c:1550:37: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1550:37: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1550:37: sparse:     got unsigned long long *
   drivers/gpu/drm/i915/i915_gem_gtt.c:1551:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned long long * @@
   drivers/gpu/drm/i915/i915_gem_gtt.c:1551:38: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/gpu/drm/i915/i915_gem_gtt.c:1551:38: sparse:     got unsigned long long *
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: cleanup_scratch_page()+0x3e: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: bdw_private_pat_update_hw()+0xb9: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: pot_hole()+0xf9: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: __shrink_hole()+0x8d: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: drunk_hole()+0x15c: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: igt_ggtt_page()+0x690: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: lowlevel_hole()+0x194: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: pd_vma_unbind()+0xa9: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: gen8_ppgtt_insert_huge_entries()+0x773: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: gen8_ppgtt_insert_4lvl()+0x638: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: vm_alloc_page.constprop.0()+0x412: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: gen8_ppgtt_alloc_pdp()+0x301: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: gen8_ppgtt_clear_4lvl()+0x220: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: gen8_ppgtt_alloc_4lvl()+0x289: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: gen8_ppgtt_cleanup()+0x72: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: gen8_ppgtt_create()+0x1ba: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: igt_gtt_reserve()+0x9f6: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: intel_sanitize_enable_ppgtt()+0xf0: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: i915_ppgtt_create()+0xd0: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: i915_ppgtt_release()+0x9f: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: igt_ppgtt_alloc()+0x2ce: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: i915_gem_gtt_finish_pages()+0xa0: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: i915_gem_init_ggtt()+0xcf: sibling call from callable instruction with modified stack frame
   drivers/gpu/drm/i915/i915_gem_gtt.o: warning: objtool: igt_gtt_insert()+0x737: sibling call from callable instruction with modified stack frame

vim +1022 drivers/gpu/drm/i915/i915_gem_gtt.c

   989	
   990	/* Removes entries from a single pml4.
   991	 * This is the top-level structure in 4-level page tables used on gen8+.
   992	 * Empty entries are always scratch pml4e.
   993	 */
   994	static void gen8_ppgtt_clear_4lvl(struct i915_address_space *vm,
   995					  u64 start, u64 length)
   996	{
   997		struct i915_hw_ppgtt *ppgtt = i915_vm_to_ppgtt(vm);
   998		struct i915_pml4 *pml4 = &ppgtt->pml4;
   999		struct i915_page_directory_pointer *pdp;
  1000		unsigned int pml4e;
  1001		u64 orig_start = start;
  1002		u64 orig_length = length;
  1003	
  1004		GEM_BUG_ON(!use_4lvl(vm));
  1005	
  1006		gen8_for_each_pml4e(pdp, pml4, start, length, pml4e) {
  1007			GEM_BUG_ON(pdp == vm->scratch_pdp);
  1008	
  1009			if (!gen8_ppgtt_clear_pdp(vm, pdp, start, length))
  1010				continue;
  1011	
  1012			gen8_ppgtt_set_pml4e(pml4, vm->scratch_pdp, pml4e);
  1013	
  1014			free_pdp(vm, pdp);
  1015		}
  1016	
  1017		if (PVMMIO_LEVEL(vm->i915, PVMMIO_PPGTT_UPDATE)) {
  1018			struct drm_i915_private *dev_priv = vm->i915;
  1019			struct pv_ppgtt_update *pv_ppgtt =
  1020						&dev_priv->shared_page->pv_ppgtt;
  1021	
> 1022			writeq(px_dma(pml4), &pv_ppgtt->pdp);
  1023			writeq(orig_start, &pv_ppgtt->start);
  1024			writeq(orig_length, &pv_ppgtt->length);
  1025			I915_WRITE(vgtif_reg(g2v_notify), VGT_G2V_PPGTT_L4_CLEAR);
  1026		}
  1027	}
  1028	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2023-11-10 17:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-10 17:14 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-11  8:05 [intel-lts:4.19/android_t 3688/30000] drivers/gpu/drm/i915/i915_gem_gtt.c:1022:39: sparse: sparse: incorrect type in argument 2 (different address spaces) kernel test robot

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=202311110130.RA4NPMiH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kris.pan@intel.com \
    --cc=min.he@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yakui.zhao@intel.com \
    --cc=zhipeng.gong@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 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.