linux-next: build failure after merge of the kvm-arm tree
Hi all,
After merging the kvm-arm tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
tmp/cc9rCfjd.s: Assembler messages:tmp/cc9rCfjd.s:310: Error: bad or missing co-processor number -- `mcr "mrc","mcr","p15, 0, r2, c12, c12, 3",u32' scripts/Makefile.build:290: recipe for target 'drivers/irqchip/irq-gic-v3.o' failed
Maybe caused by commit
4f2546384150 ("ARM: Move system register accessors to asm/cp15.h")
I have used the kvm-arm tree from next-20160922 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 9 lines · Stephen Rothwell
Hi all,
After merging the kvm-arm tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
tmp/cc9rCfjd.s: Assembler messages:tmp/cc9rCfjd.s:310: Error: bad or missing co-processor number -- `mcr "mrc","mcr","p15, 0, r2, c12, c12, 3",u32'scripts/Makefile.build:290: recipe for target 'drivers/irqchip/irq-gic-v3.o' failed
Quoted 5 lines
Maybe caused by commit
4f2546384150("ARM: Move system register accessors toasm/cp15.h")I have used the kvm-arm tree from next-20160922 for today.
Ouch. This comes from 91ef844 ("irqchip/gic-v3: Reset BPR during initialization") which has introduced a new accessor that doesn't get converted by Vladimir's patch. My own fault.
This can be fixed-up by adding this to Vladimir's patch:
arch/arm/include/asm/arch_gicv3.h +9 -0
@@ -216,6 +216,15 @@ static inline void gic_write_sre(u32 val)isb (); } +static inline void gic_write_bpr1 (u32 val) +{ +#ifndef __write_sysreg + asm volatile("mcr " __stringify(ICC_BPR1) : : "r" (val)); +#else +write_sysreg (val,ICC_BPR1 ); +#endif +} +/* * Even in 32bit systems that use LPAE, there is no guarantee that the I/O * interface provides true 64bit atomic accesses, so using strd/ldrd doesn't
but that'll create a minor conflict.
Another possibility is to put Vladimir's series on the backburner until tip/irq/core gets in, and bring it back at this time. I'd prefer the first solution, as it gives a bit more exposure to the code...
Thanks,
M.
Signature · 1 line
Jazz is not dead. It just smells funny...