[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202412071436.UuBR3FRD-lkp@intel.com>
Date: Mon, 9 Dec 2024 12:10:31 +0800
From: kernel test robot <lkp@...el.com>
To: Zhou Wang <wangzhou1@...ilicon.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>,
Nianyao Tang <tangnianyao@...wei.com>,
Marc Zyngier <maz@...nel.org>
Subject: drivers/irqchip/irq-gic-v3-its.c:3896:30: sparse: sparse: incorrect
type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b5f217084ab3ddd4bdd03cd437f8e3b7e2d1f5b6
commit: f82e62d470cc990ebd9d691f931dd418e4e9cea9 irqchip/gicv3-its: Add workaround for hip09 ITS erratum 162100801
date: 11 days ago
config: arm-randconfig-r111-20241207 (https://download.01.org/0day-ci/archive/20241207/202412071436.UuBR3FRD-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241207/202412071436.UuBR3FRD-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412071436.UuBR3FRD-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/irqchip/irq-gic-v3-its.c:1552:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct raw_spinlock [usertype] *lock @@ got struct raw_spinlock [noderef] __percpu * @@
drivers/irqchip/irq-gic-v3-its.c:1552:9: sparse: expected struct raw_spinlock [usertype] *lock
drivers/irqchip/irq-gic-v3-its.c:1552:9: sparse: got struct raw_spinlock [noderef] __percpu *
drivers/irqchip/irq-gic-v3-its.c:1558:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct raw_spinlock [usertype] *lock @@ got struct raw_spinlock [noderef] __percpu * @@
drivers/irqchip/irq-gic-v3-its.c:1558:9: sparse: expected struct raw_spinlock [usertype] *lock
drivers/irqchip/irq-gic-v3-its.c:1558:9: sparse: got struct raw_spinlock [noderef] __percpu *
drivers/irqchip/irq-gic-v3-its.c:2926:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct cpumask [usertype] **mask @@ got struct cpumask [usertype] *[noderef] __percpu * @@
drivers/irqchip/irq-gic-v3-its.c:2926:45: sparse: expected struct cpumask [usertype] **mask
drivers/irqchip/irq-gic-v3-its.c:2926:45: sparse: got struct cpumask [usertype] *[noderef] __percpu *
>> drivers/irqchip/irq-gic-v3-its.c:3896:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct raw_spinlock [usertype] *l @@ got struct raw_spinlock [noderef] __percpu * @@
drivers/irqchip/irq-gic-v3-its.c:3896:30: sparse: expected struct raw_spinlock [usertype] *l
drivers/irqchip/irq-gic-v3-its.c:3896:30: sparse: got struct raw_spinlock [noderef] __percpu *
drivers/irqchip/irq-gic-v3-its.c:4424:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct raw_spinlock [usertype] *lock @@ got struct raw_spinlock [noderef] __percpu * @@
drivers/irqchip/irq-gic-v3-its.c:4424:9: sparse: expected struct raw_spinlock [usertype] *lock
drivers/irqchip/irq-gic-v3-its.c:4424:9: sparse: got struct raw_spinlock [noderef] __percpu *
drivers/irqchip/irq-gic-v3-its.c:4442:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct raw_spinlock [usertype] *lock @@ got struct raw_spinlock [noderef] __percpu * @@
drivers/irqchip/irq-gic-v3-its.c:4442:9: sparse: expected struct raw_spinlock [usertype] *lock
drivers/irqchip/irq-gic-v3-its.c:4442:9: sparse: got struct raw_spinlock [noderef] __percpu *
drivers/irqchip/irq-gic-v3-its.c:354:12: sparse: sparse: context imbalance in 'vpe_to_cpuid_lock' - wrong count at exit
drivers/irqchip/irq-gic-v3-its.c:360:13: sparse: sparse: context imbalance in 'vpe_to_cpuid_unlock' - unexpected unlock
drivers/irqchip/irq-gic-v3-its.c:1403:13: sparse: sparse: context imbalance in 'its_send_vmovp' - wrong count at exit
drivers/irqchip/irq-gic-v3-its.c:1554:18: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:1875:13: sparse: sparse: context imbalance in 'its_map_vm' - different lock contexts for basic block
drivers/irqchip/irq-gic-v3-its.c:1902:13: sparse: sparse: context imbalance in 'its_unmap_vm' - different lock contexts for basic block
drivers/irqchip/irq-gic-v3-its.c:2039:12: sparse: sparse: context imbalance in 'its_irq_set_vcpu_affinity' - wrong count at exit
drivers/irqchip/irq-gic-v3-its.c:2325:23: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2325:23: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2741:15: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2741:15: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2762:17: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2798:15: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2798:15: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2802:38: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2820:17: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2820:49: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2821:25: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2831:30: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2874:17: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2901:35: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c: note: in included file (through include/linux/irqchip/arm-gic-v3.h):
arch/arm/include/asm/arch_gicv3.h:146:9: sparse: sparse: cast truncates bits from constant value (2000000000000000 becomes 0)
drivers/irqchip/irq-gic-v3-its.c:2930:9: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:2931:14: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3001:9: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3015:45: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3015:45: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3017:9: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3068:15: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3068:15: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3083:15: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3083:15: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3108:17: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3156:31: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3161:13: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3180:17: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3185:21: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3245:43: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3279:9: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3280:9: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3311:26: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3314:26: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3314:26: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3870:26: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3897:18: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3888:13: sparse: sparse: context imbalance in 'its_vpe_4_1_invall_locked' - wrong count at exit
drivers/irqchip/irq-gic-v3-its.c:3950:22: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:3986:9: sparse: sparse: context imbalance in 'its_vpe_set_affinity' - different lock contexts for basic block
drivers/irqchip/irq-gic-v3-its.c:3991:35: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:4005:35: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:4041:35: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:4050:13: sparse: sparse: context imbalance in 'its_vpe_invall' - wrong count at exit
drivers/irqchip/irq-gic-v3-its.c:4153:26: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:4233:35: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:4248:35: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:4425:16: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5326:19: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5326:19: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5331:31: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5351:14: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5428:13: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5431:21: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5441:13: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5443:17: sparse: sparse: dereference of noderef expression
drivers/irqchip/irq-gic-v3-its.c:5455:9: sparse: sparse: dereference of noderef expression
vim +3896 drivers/irqchip/irq-gic-v3-its.c
3887
3888 static void its_vpe_4_1_invall_locked(int cpu, struct its_vpe *vpe)
3889 {
3890 void __iomem *rdbase;
3891 u64 val;
3892
3893 val = GICR_INVALLR_V;
3894 val |= FIELD_PREP(GICR_INVALLR_VPEID, vpe->vpe_id);
3895
> 3896 guard(raw_spinlock)(&gic_data_rdist_cpu(cpu)->rd_lock);
3897 rdbase = per_cpu_ptr(gic_rdists->rdist, cpu)->rd_base;
3898 gic_write_lpir(val, rdbase + GICR_INVALLR);
3899 wait_for_syncr(rdbase);
3900 }
3901
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists