drivers/gpu/drm/msm/adreno/a6xx_gmu.h:136:16: sparse: sparse: incorrect type in argument 1 (different address spaces)

From: kernel test robot
Date: Thu Apr 06 2023 - 17:56:03 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f2afccfefe7be1f7346564fe619277110d341f9b
commit: 3f4a80cbf968466c5ba0c78ef41cae8292965bd8 drm/msm: move msm_readl/_writel to msm_drv.h
date: 1 year, 2 months ago
config: mips-randconfig-s053-20230406 (https://download.01.org/0day-ci/archive/20230407/202304070550.NrbhJCvP-lkp@xxxxxxxxx/config)
compiler: mipsel-linux-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3f4a80cbf968466c5ba0c78ef41cae8292965bd8
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3f4a80cbf968466c5ba0c78ef41cae8292965bd8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/msm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202304070550.NrbhJCvP-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c: note: in included file (through drivers/gpu/drm/msm/adreno/a6xx_gpu.h):
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:136:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:136:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:136:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:136:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:136:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
--
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_hfi.c: note: in included file:
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_hfi.c:108:15: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
--
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1515:36: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *llc_mmio @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1515:36: sparse: expected void [noderef] __iomem *llc_mmio
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1515:36: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gpu.c: note: in included file (through drivers/gpu/drm/msm/adreno/a6xx_gpu.h):
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:124:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:124:21: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:124:21: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:125:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:125:23: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:125:23: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:124:21: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:124:21: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:125:23: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:125:23: sparse: sparse: dereference of noderef expression
--
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:240:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:240:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:240:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:240:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:366:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:366:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:366:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:366:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:366:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:366:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:391:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:391:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:391:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:391:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:391:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:391:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:464:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:464:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:464:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:464:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:464:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:464:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:471:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:471:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:471:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:471:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:471:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:471:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:497:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:497:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:497:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:497:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:497:15: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:497:15: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1418:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1418:31: sparse: expected void [noderef] __iomem *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1418:31: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1424:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1424:31: sparse: expected void [noderef] __iomem *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1424:31: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:862:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:862:9: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:862:9: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:862:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:862:9: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:862:9: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:864:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:864:9: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:864:9: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:864:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:864:9: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:864:9: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:866:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:866:9: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:866:9: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:866:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:866:9: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:866:9: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:868:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:868:9: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:868:9: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:868:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:868:9: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:868:9: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1070:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1070:23: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1070:23: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1070:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1070:23: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1070:23: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1464:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *[noderef] mmio @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1464:20: sparse: expected void const volatile [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1464:20: sparse: got void *[noderef] mmio
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1466:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *[noderef] rscc @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1466:28: sparse: expected void const volatile [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1466:28: sparse: got void *[noderef] rscc
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1573:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[noderef] mmio @@ got void [noderef] __iomem * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1573:19: sparse: expected void *[noderef] mmio
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1573:19: sparse: got void [noderef] __iomem *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1580:27: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *[noderef] rscc @@ got void [noderef] __iomem * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1580:27: sparse: expected void *[noderef] rscc
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1580:27: sparse: got void [noderef] __iomem *
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1611:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *[noderef] mmio @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1611:20: sparse: expected void const volatile [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1611:20: sparse: got void *[noderef] mmio
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1613:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *[noderef] rscc @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1613:28: sparse: expected void const volatile [noderef] __iomem *addr
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:1613:28: sparse: got void *[noderef] rscc
drivers/gpu/drm/msm/adreno/a6xx_gmu.c: note: in included file (through drivers/gpu/drm/msm/adreno/a6xx_gpu.h):
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: expected void const volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:96:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:224:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:224:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:224:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:224:15: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:240:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:240:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:240:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:240:15: sparse: sparse: dereference of noderef expression
>> drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: expected void volatile [noderef] __iomem *mem
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: got void *
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.h:101:16: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: sparse: dereference of noderef expression
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:322:15: sparse: sparse: too many warnings

vim +136 drivers/gpu/drm/msm/adreno/a6xx_gmu.h

4b565ca5a2cbbb Jordan Crouse 2018-08-06 93
4b565ca5a2cbbb Jordan Crouse 2018-08-06 94 static inline u32 gmu_read(struct a6xx_gmu *gmu, u32 offset)
4b565ca5a2cbbb Jordan Crouse 2018-08-06 95 {
4b565ca5a2cbbb Jordan Crouse 2018-08-06 @96 return msm_readl(gmu->mmio + (offset << 2));
4b565ca5a2cbbb Jordan Crouse 2018-08-06 97 }
4b565ca5a2cbbb Jordan Crouse 2018-08-06 98
4b565ca5a2cbbb Jordan Crouse 2018-08-06 99 static inline void gmu_write(struct a6xx_gmu *gmu, u32 offset, u32 value)
4b565ca5a2cbbb Jordan Crouse 2018-08-06 100 {
4b565ca5a2cbbb Jordan Crouse 2018-08-06 @101 return msm_writel(value, gmu->mmio + (offset << 2));
4b565ca5a2cbbb Jordan Crouse 2018-08-06 102 }
4b565ca5a2cbbb Jordan Crouse 2018-08-06 103
c6ed04f856a4eb Jonathan Marek 2020-04-23 104 static inline void
c6ed04f856a4eb Jonathan Marek 2020-04-23 105 gmu_write_bulk(struct a6xx_gmu *gmu, u32 offset, const u32 *data, u32 size)
c6ed04f856a4eb Jonathan Marek 2020-04-23 106 {
c6ed04f856a4eb Jonathan Marek 2020-04-23 107 memcpy_toio(gmu->mmio + (offset << 2), data, size);
c6ed04f856a4eb Jonathan Marek 2020-04-23 108 wmb();
c6ed04f856a4eb Jonathan Marek 2020-04-23 109 }
c6ed04f856a4eb Jonathan Marek 2020-04-23 110
4b565ca5a2cbbb Jordan Crouse 2018-08-06 111 static inline void gmu_rmw(struct a6xx_gmu *gmu, u32 reg, u32 mask, u32 or)
4b565ca5a2cbbb Jordan Crouse 2018-08-06 112 {
4b565ca5a2cbbb Jordan Crouse 2018-08-06 113 u32 val = gmu_read(gmu, reg);
4b565ca5a2cbbb Jordan Crouse 2018-08-06 114
4b565ca5a2cbbb Jordan Crouse 2018-08-06 115 val &= ~mask;
4b565ca5a2cbbb Jordan Crouse 2018-08-06 116
4b565ca5a2cbbb Jordan Crouse 2018-08-06 117 gmu_write(gmu, reg, val | or);
4b565ca5a2cbbb Jordan Crouse 2018-08-06 118 }
4b565ca5a2cbbb Jordan Crouse 2018-08-06 119
c28aa2031f6470 Sharat Masetty 2018-10-04 120 static inline u64 gmu_read64(struct a6xx_gmu *gmu, u32 lo, u32 hi)
c28aa2031f6470 Sharat Masetty 2018-10-04 121 {
c28aa2031f6470 Sharat Masetty 2018-10-04 122 u64 val;
c28aa2031f6470 Sharat Masetty 2018-10-04 123
c28aa2031f6470 Sharat Masetty 2018-10-04 124 val = (u64) msm_readl(gmu->mmio + (lo << 2));
c28aa2031f6470 Sharat Masetty 2018-10-04 125 val |= ((u64) msm_readl(gmu->mmio + (hi << 2)) << 32);
c28aa2031f6470 Sharat Masetty 2018-10-04 126
c28aa2031f6470 Sharat Masetty 2018-10-04 127 return val;
c28aa2031f6470 Sharat Masetty 2018-10-04 128 }
c28aa2031f6470 Sharat Masetty 2018-10-04 129
4b565ca5a2cbbb Jordan Crouse 2018-08-06 130 #define gmu_poll_timeout(gmu, addr, val, cond, interval, timeout) \
4b565ca5a2cbbb Jordan Crouse 2018-08-06 131 readl_poll_timeout((gmu)->mmio + ((addr) << 2), val, cond, \
4b565ca5a2cbbb Jordan Crouse 2018-08-06 132 interval, timeout)
4b565ca5a2cbbb Jordan Crouse 2018-08-06 133
142639a52a01e9 Jonathan Marek 2020-06-29 134 static inline u32 gmu_read_rscc(struct a6xx_gmu *gmu, u32 offset)
142639a52a01e9 Jonathan Marek 2020-06-29 135 {
142639a52a01e9 Jonathan Marek 2020-06-29 @136 return msm_readl(gmu->rscc + (offset << 2));
142639a52a01e9 Jonathan Marek 2020-06-29 137 }
142639a52a01e9 Jonathan Marek 2020-06-29 138

:::::: The code at line 136 was first introduced by commit
:::::: 142639a52a01e90c512a9a8d2156997e02a65b53 drm/msm/a6xx: fix crashstate capture for A650

:::::: TO: Jonathan Marek <jonathan@xxxxxxxx>
:::::: CC: Rob Clark <robdclark@xxxxxxxxxxxx>

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