* [chrome-os:chromeos-5.4 40/76] drivers/remoteproc/mtk_scp.c:327:44: sparse: got void <asn:2> COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile PRESUBMIT.cfg README arch block certs chromeos crypto drivers fs include init ipc kernel lib mm net samples scripts security sound tools usr virt
@ 2020-11-14 6:56 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-14 6:56 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 9776 bytes --]
CC: kbuild-all(a)lists.01.org
TO: cros-kernel-buildreports(a)googlegroups.com
TO: Guenter Roeck <groeck@google.com>
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 4e186ff60c11535b22b7f81c85606260e363989f
commit: 407abe75e5800e8b99b19662a70490a571aeab4d [40/76] FROMGIT: remoteproc/mediatek: Remove non-standard dsb()
:::::: branch date: 3 weeks ago
:::::: commit date: 3 weeks ago
config: riscv-randconfig-s031-20201113 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.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.3-107-gaf3512a6-dirty
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 407abe75e5800e8b99b19662a70490a571aeab4d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/remoteproc/mtk_scp.c:306:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] <asn:2> *addr @@ got void *addr @@
drivers/remoteproc/mtk_scp.c:306:17: sparse: expected void volatile [noderef] <asn:2> *addr
drivers/remoteproc/mtk_scp.c:306:17: sparse: got void *addr
drivers/remoteproc/mtk_scp.c:307:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] <asn:2> *addr @@ got void *addr @@
drivers/remoteproc/mtk_scp.c:307:9: sparse: expected void volatile [noderef] <asn:2> *addr
drivers/remoteproc/mtk_scp.c:307:9: sparse: got void *addr
drivers/remoteproc/mtk_scp.c:314:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] <asn:2> *addr @@ got void *addr @@
drivers/remoteproc/mtk_scp.c:314:9: sparse: expected void volatile [noderef] <asn:2> *addr
drivers/remoteproc/mtk_scp.c:314:9: sparse: got void *addr
drivers/remoteproc/mtk_scp.c:316:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] <asn:2> *addr @@ got void *addr @@
drivers/remoteproc/mtk_scp.c:316:17: sparse: expected void volatile [noderef] <asn:2> *addr
drivers/remoteproc/mtk_scp.c:316:17: sparse: got void *addr
drivers/remoteproc/mtk_scp.c:327:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:327:44: sparse: expected void *addr
>> drivers/remoteproc/mtk_scp.c:327:44: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:328:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:328:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:328:44: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:329:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:329:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:329:44: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:330:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:330:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:330:44: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:331:44: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:331:44: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:331:44: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:431:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:431:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:431:45: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:432:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:432:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:432:45: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:433:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:433:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:433:45: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:434:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:434:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:434:45: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:435:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] <asn:2> * @@
drivers/remoteproc/mtk_scp.c:435:45: sparse: expected void *addr
drivers/remoteproc/mtk_scp.c:435:45: sparse: got void [noderef] <asn:2> *
drivers/remoteproc/mtk_scp.c:559:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] <asn:2> *cpu_addr @@ got void * @@
drivers/remoteproc/mtk_scp.c:559:23: sparse: expected void [noderef] <asn:2> *cpu_addr
drivers/remoteproc/mtk_scp.c:559:23: sparse: got void *
drivers/remoteproc/mtk_scp.c:572:56: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *cpu_addr @@ got void [noderef] <asn:2> *cpu_addr @@
drivers/remoteproc/mtk_scp.c:572:56: sparse: expected void *cpu_addr
drivers/remoteproc/mtk_scp.c:572:56: sparse: got void [noderef] <asn:2> *cpu_addr
vim +327 drivers/remoteproc/mtk_scp.c
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 300
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 301 static void mt8192_power_on_sram(void *addr)
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 302 {
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 303 int i;
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 304
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 305 for (i = 31; i >= 0; i--)
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 306 writel(GENMASK(i, 0), addr);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 @307 writel(0, addr);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 308 }
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 309
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 310 static void mt8192_power_off_sram(void *addr)
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 311 {
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 312 int i;
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 313
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 314 writel(0, addr);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 315 for (i = 0; i < 32; i++)
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 316 writel(GENMASK(i, 0), addr);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 317 }
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 318
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 319 static int mt8192_scp_before_load(struct mtk_scp *scp)
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 320 {
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 321 /* clear SPM interrupt, SCP2SPM_IPC_CLR */
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 322 writel(0xff, scp->reg_base + MT8192_SCP2SPM_IPC_CLR);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 323
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 324 writel(1, scp->reg_base + MT8192_CORE0_SW_RSTN_SET);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 325
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 326 /* enable SRAM clock */
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 @327 mt8192_power_on_sram(scp->reg_base + MT8192_L2TCM_SRAM_PD_0);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 328 mt8192_power_on_sram(scp->reg_base + MT8192_L2TCM_SRAM_PD_1);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 329 mt8192_power_on_sram(scp->reg_base + MT8192_L2TCM_SRAM_PD_2);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 330 mt8192_power_on_sram(scp->reg_base + MT8192_L1TCM_SRAM_PDN);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 331 mt8192_power_on_sram(scp->reg_base + MT8192_CPU0_SRAM_PD);
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 332
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 333 return 0;
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 334 }
0b60154e37d6ff2 Pi-Hsun Shih 2020-09-21 335
:::::: The code at line 327 was first introduced by commit
:::::: 0b60154e37d6ff2e12c8fb52d7c715d61fd96a6a FROMGIT: remoteproc/mediatek: Add support for mt8192 SCP
:::::: TO: Pi-Hsun Shih <pihsun@chromium.org>
:::::: CC: Commit Bot <commit-bot@chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33316 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-14 6:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14 6:56 [chrome-os:chromeos-5.4 40/76] drivers/remoteproc/mtk_scp.c:327:44: sparse: got void <asn:2> COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile PRESUBMIT.cfg README arch block certs chromeos crypto drivers fs include init ipc kernel lib mm net samples scripts security sound tools usr virt 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.