* [jfern:nova-core-experiments 154/411] drivers/gpu/drm/nouveau/nvif/dispchan.c:93:9: sparse: sparse: cast removes address space '__iomem' of expression
@ 2025-03-08 8:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-08 8:55 UTC (permalink / raw)
To: Ben Skeggs; +Cc: oe-kbuild-all, Dave Airlie
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git nova-core-experiments
head: 3b93174b3502247b0c46bd54a7cf5f4105274edb
commit: b31c153a3d075fcae5f7fd482a74b060f5365081 [154/411] drm/nouveau/nvif: rework disp "new chan" apis
config: s390-randconfig-r133-20250308 (https://download.01.org/0day-ci/archive/20250308/202503081649.TxBe0OC5-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20250308/202503081649.TxBe0OC5-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/202503081649.TxBe0OC5-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/nouveau/nvif/dispchan.c:36:34: sparse: sparse: subtraction of different types can't work (different address spaces)
>> drivers/gpu/drm/nouveau/nvif/dispchan.c:93:9: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/nvif/dispchan.c:107:34: sparse: sparse: subtraction of different types can't work (different address spaces)
drivers/gpu/drm/nouveau/nvif/dispchan.c:189:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned int [usertype] *bgn @@ got void [noderef] __iomem *ptr @@
vim +/__iomem +93 drivers/gpu/drm/nouveau/nvif/dispchan.c
71
72 static int
73 nvif_dispchan_wind(struct nvif_dispchan *chan)
74 {
75 struct nvif_push *push = &chan->push;
76
77 /* Wait for GET to depart from the beginning of the push buffer to
78 * prevent writing PUT == GET, which would be ignored by HW.
79 */
80 u32 get = NVIF_RV32(chan, NV507C, GET, PTR);
81 if (get == 0) {
82 /* Corner-case, HW idle, but non-committed work pending. */
83 if (push->hw.put == 0)
84 nvif_dispchan_kick(&chan->push);
85
86 if (nvif_msec(chan->disp->device, 2000,
87 if (NVIF_TV32(chan, NV507C, GET, PTR, >, 0))
88 break;
89 ) < 0)
90 return -ETIMEDOUT;
91 }
92
> 93 PUSH_RSVD(&chan->push, PUSH_JUMP(&chan->push, 0));
94 push->hw.cur = 0;
95 return 0;
96 }
97
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-08 8:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 8:55 [jfern:nova-core-experiments 154/411] drivers/gpu/drm/nouveau/nvif/dispchan.c:93:9: sparse: sparse: cast removes address space '__iomem' of expression kernel test robot
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.