oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [ls-zhu:test 49/294] arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2023-12-31 11:08 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-12-31 11:08 UTC (permalink / raw)
  To: Kai Huang
  Cc: oe-kbuild-all, Zhu Lingshan, Isaku Yamahata, Kirill A. Shutemov,
	Yuan Yao

tree:   https://github.com/ls-zhu/linux test
head:   62a15ffb17f55ec915aedff138ef7dd490f44532
commit: d111994fe80fd5a91e4677d6e7e624b10de7b66e [49/294] x86/virt/tdx: Configure global KeyID on all packages
config: x86_64-randconfig-123-20231229 (https://download.01.org/0day-ci/archive/20231231/202312311924.tGjsBIQD-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/20231231/202312311924.tGjsBIQD-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/202312311924.tGjsBIQD-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *dst @@     got void * @@
   arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse:     expected void [noderef] __iomem *dst
   arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse:     got void *
   arch/x86/virt/vmx/tdx/tdx.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
   include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false
   arch/x86/virt/vmx/tdx/tdx.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...):
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +663 arch/x86/virt/vmx/tdx/tdx.c

   650	
   651	/*
   652	 * Convert TDX private pages back to normal by using MOVDIR64B to
   653	 * clear these pages.  Note this function doesn't flush cache of
   654	 * these TDX private pages.  The caller should make sure of that.
   655	 */
   656	static void reset_tdx_pages(unsigned long base, unsigned long size)
   657	{
   658		const void *zero_page = (const void *)page_address(ZERO_PAGE(0));
   659		unsigned long phys, end;
   660	
   661		end = base + size;
   662		for (phys = base; phys < end; phys += 64)
 > 663			movdir64b(__va(phys), zero_page);
   664	
   665		/*
   666		 * MOVDIR64B uses WC protocol.  Use memory barrier to
   667		 * make sure any later user of these pages sees the
   668		 * updated data.
   669		 */
   670		mb();
   671	}
   672	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ls-zhu:test 49/294] arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-01-04  5:20 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-01-04  5:20 UTC (permalink / raw)
  To: Kai Huang
  Cc: oe-kbuild-all, Zhu Lingshan, Isaku Yamahata, Kirill A. Shutemov,
	Yuan Yao

tree:   https://github.com/ls-zhu/linux test
head:   62a15ffb17f55ec915aedff138ef7dd490f44532
commit: d111994fe80fd5a91e4677d6e7e624b10de7b66e [49/294] x86/virt/tdx: Configure global KeyID on all packages
config: x86_64-randconfig-123-20231229 (https://download.01.org/0day-ci/archive/20240104/202401041358.t9lMogsI-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/20240104/202401041358.t9lMogsI-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/202401041358.t9lMogsI-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *dst @@     got void * @@
   arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse:     expected void [noderef] __iomem *dst
   arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse:     got void *
   arch/x86/virt/vmx/tdx/tdx.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
   include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false
   arch/x86/virt/vmx/tdx/tdx.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...):
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +663 arch/x86/virt/vmx/tdx/tdx.c

   650	
   651	/*
   652	 * Convert TDX private pages back to normal by using MOVDIR64B to
   653	 * clear these pages.  Note this function doesn't flush cache of
   654	 * these TDX private pages.  The caller should make sure of that.
   655	 */
   656	static void reset_tdx_pages(unsigned long base, unsigned long size)
   657	{
   658		const void *zero_page = (const void *)page_address(ZERO_PAGE(0));
   659		unsigned long phys, end;
   660	
   661		end = base + size;
   662		for (phys = base; phys < end; phys += 64)
 > 663			movdir64b(__va(phys), zero_page);
   664	
   665		/*
   666		 * MOVDIR64B uses WC protocol.  Use memory barrier to
   667		 * make sure any later user of these pages sees the
   668		 * updated data.
   669		 */
   670		mb();
   671	}
   672	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-04  5:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-31 11:08 [ls-zhu:test 49/294] arch/x86/virt/vmx/tdx/tdx.c:663:27: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2024-01-04  5:20 kernel test robot

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).