mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c:32:9: sparse: sparse: cast truncates bits from constant value (100000000 becomes 0)
@ 2023-09-13  0:40 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-09-13  0:40 UTC (permalink / raw)
  To: Pali Rohár; +Cc: oe-kbuild-all, linux-kernel, Hans de Goede

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3669558bdf354cd352be955ef2764cde6a9bf5ec
commit: 6dd9eb95cb6d895be2827b40fd965d9ec2a0747b platform/x86: dell-wmi: Add WMI event 0x0012 0x0003 to the list
date:   1 year ago
config: i386-randconfig-061-20230909 (https://download.01.org/0day-ci/archive/20230913/202309130832.Qg1tPWee-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/20230913/202309130832.Qg1tPWee-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/202309130832.Qg1tPWee-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c:32:9: sparse: sparse: cast truncates bits from constant value (100000000 becomes 0)
   drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c:57:9: sparse: sparse: cast truncates bits from constant value (800000000 becomes 0)

vim +32 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c

5f300fed645597 Ben Skeggs 2017-11-01  26  
e12cf6ad43888c Ben Skeggs 2017-11-01  27  static void
e12cf6ad43888c Ben Skeggs 2017-11-01  28  gm200_vmm_pgt_sparse(struct nvkm_vmm *vmm,
e12cf6ad43888c Ben Skeggs 2017-11-01  29  		     struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes)
e12cf6ad43888c Ben Skeggs 2017-11-01  30  {
e12cf6ad43888c Ben Skeggs 2017-11-01  31  	/* VALID_FALSE + VOL tells the MMU to treat the PTE as sparse. */
e12cf6ad43888c Ben Skeggs 2017-11-01 @32  	VMM_FO064(pt, vmm, ptei * 8, BIT_ULL(32) /* VOL. */, ptes);
e12cf6ad43888c Ben Skeggs 2017-11-01  33  }
e12cf6ad43888c Ben Skeggs 2017-11-01  34  

:::::: The code at line 32 was first introduced by commit
:::::: e12cf6ad43888c152c3b2edb59525587cd98a227 drm/nouveau/mmu/gm200,gm20b: implement new vmm backend

:::::: TO: Ben Skeggs <bskeggs@redhat.com>
:::::: CC: Ben Skeggs <bskeggs@redhat.com>

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

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

* drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c:32:9: sparse: sparse: cast truncates bits from constant value (100000000 becomes 0)
@ 2025-12-13 23:34 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-13 23:34 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: oe-kbuild-all, linux-kernel, Johannes Berg

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4a298a43f5e339f48d2dda0665c02b88ee9a4e03
commit: b8c9c3b822fe8e033b9802516f6466099d915488 um: stop using PCI port I/O
date:   7 months ago
config: um-randconfig-r121-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140713.HUSp33rF-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140713.HUSp33rF-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/202512140713.HUSp33rF-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c:32:9: sparse: sparse: cast truncates bits from constant value (100000000 becomes 0)
   drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c:57:9: sparse: sparse: cast truncates bits from constant value (800000000 becomes 0)

vim +32 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c

5f300fed645597 Ben Skeggs 2017-11-01  26  
e12cf6ad43888c Ben Skeggs 2017-11-01  27  static void
e12cf6ad43888c Ben Skeggs 2017-11-01  28  gm200_vmm_pgt_sparse(struct nvkm_vmm *vmm,
e12cf6ad43888c Ben Skeggs 2017-11-01  29  		     struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes)
e12cf6ad43888c Ben Skeggs 2017-11-01  30  {
e12cf6ad43888c Ben Skeggs 2017-11-01  31  	/* VALID_FALSE + VOL tells the MMU to treat the PTE as sparse. */
e12cf6ad43888c Ben Skeggs 2017-11-01 @32  	VMM_FO064(pt, vmm, ptei * 8, BIT_ULL(32) /* VOL. */, ptes);
e12cf6ad43888c Ben Skeggs 2017-11-01  33  }
e12cf6ad43888c Ben Skeggs 2017-11-01  34  

:::::: The code at line 32 was first introduced by commit
:::::: e12cf6ad43888c152c3b2edb59525587cd98a227 drm/nouveau/mmu/gm200,gm20b: implement new vmm backend

:::::: TO: Ben Skeggs <bskeggs@redhat.com>
:::::: CC: Ben Skeggs <bskeggs@redhat.com>

-- 
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:[~2025-12-13 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-13  0:40 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c:32:9: sparse: sparse: cast truncates bits from constant value (100000000 becomes 0) kernel test robot
2025-12-13 23:34 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

all inboxes | Powered by JetHome®