next build: 629 warnings 1 failures (next/next-20140723)
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Catalin, Will,
Quoted 8 lines · Olof's autobuilder
arm64.defconfig:
arch/arm64/kernel/head.S:298: Error: unknown or missing system register name at operand 2 --mrs x0,S3_4_C12_C9_5' arch/arm64/kernel/head.S:301: Error: unknown or missing system register name at operand 1 --msr S3_4_C12_C9_5,x0'arch/arm64/kernel/head.S:303: Error: unknown or missing system register name at operand 1 -- `msr S3_4_C12_C11_0,xzr'arch/arm64/kernel/ptrace.c:1119:3: error: too many arguments to function 'audit_syscall_entry'/tmp/ccq7ZztI.s:21: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_1,x0' /tmp/ccq7ZztI.s:162: Error: unknown or missing system register name at operand 2 --mrs x19,S3_0_C12_C12_0'/tmp/ccq7ZztI.s:186: Error: unknown or missing system register name at operand 1 -- `msr S3_0_C12_C12_1,x19'
Quoted 8 lines
/tmp/ccq7ZztI.s:220: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_1,x19' /tmp/ccq7ZztI.s:1110: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C11_5,x27'/tmp/ccq7ZztI.s:1530: Error: unknown or missing system register name at operand 2 --mrs x0,S3_0_C12_C12_5' /tmp/ccq7ZztI.s:1540: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_5,x0'/tmp/ccq7ZztI.s:1548: Error: unknown or missing system register name at operand 2 --mrs x0,S3_0_C12_C12_5' /tmp/ccq7ZztI.s:1564: Error: unknown or missing system register name at operand 1 --msr S3_0_C4_C6_0,x0'/tmp/ccq7ZztI.s:1576: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_4,x0' /tmp/ccq7ZztI.s:1592: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_7,x0'
I'm building with a vanilla gcc 4.8.2 / binutils 2.23.2. That shouldn't be broken like this, so those changes should be fixed (or minimal toolchain expecations need to be documented -- but there really is no good reason to require 4.9.0/2.24).
-Olof
Quoted 19 lines · Olof Johansson
Quoted 8 lines · Olof's autobuilder
arm64.defconfig:
arch/arm64/kernel/head.S:298: Error: unknown or missing system register name at operand 2 --mrs x0,S3_4_C12_C9_5' arch/arm64/kernel/head.S:301: Error: unknown or missing system register name at operand 1 --msr S3_4_C12_C9_5,x0'arch/arm64/kernel/head.S:303: Error: unknown or missing system register name at operand 1 -- `msr S3_4_C12_C11_0,xzr'arch/arm64/kernel/ptrace.c:1119:3: error: too many arguments to function 'audit_syscall_entry'/tmp/ccq7ZztI.s:21: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_1,x0' /tmp/ccq7ZztI.s:162: Error: unknown or missing system register name at operand 2 --mrs x19,S3_0_C12_C12_0'/tmp/ccq7ZztI.s:186: Error: unknown or missing system register name at operand 1 -- `msr S3_0_C12_C12_1,x19'Quoted 8 lines
/tmp/ccq7ZztI.s:220: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_1,x19' /tmp/ccq7ZztI.s:1110: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C11_5,x27'/tmp/ccq7ZztI.s:1530: Error: unknown or missing system register name at operand 2 --mrs x0,S3_0_C12_C12_5' /tmp/ccq7ZztI.s:1540: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_5,x0'/tmp/ccq7ZztI.s:1548: Error: unknown or missing system register name at operand 2 --mrs x0,S3_0_C12_C12_5' /tmp/ccq7ZztI.s:1564: Error: unknown or missing system register name at operand 1 --msr S3_0_C4_C6_0,x0'/tmp/ccq7ZztI.s:1576: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_4,x0' /tmp/ccq7ZztI.s:1592: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_7,x0'
Quoted 4 lines
I'm building with a vanilla gcc 4.8.2 / binutils 2.23.2. That shouldn't be broken like this, so those changes should be fixed (or minimal toolchain expecations need to be documented -- but there really is no good reason to require 4.9.0/2.24).
These all come from the GICv3 driver, so it's not going to be a lot of fun fixing them. You'd have to introduce a macro for generating the system-reg accesses (for both C and asm), then switch the GIC driver and the arch code over to using that.
Will
Catalin Marinas
maintainerQuoted 25 lines · Will Deacon
Quoted 19 lines · Olof Johansson
Quoted 8 lines · Olof's autobuilder
arm64.defconfig:
arch/arm64/kernel/head.S:298: Error: unknown or missing system register name at operand 2 --mrs x0,S3_4_C12_C9_5' arch/arm64/kernel/head.S:301: Error: unknown or missing system register name at operand 1 --msr S3_4_C12_C9_5,x0'arch/arm64/kernel/head.S:303: Error: unknown or missing system register name at operand 1 -- `msr S3_4_C12_C11_0,xzr'arch/arm64/kernel/ptrace.c:1119:3: error: too many arguments to function 'audit_syscall_entry'/tmp/ccq7ZztI.s:21: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_1,x0' /tmp/ccq7ZztI.s:162: Error: unknown or missing system register name at operand 2 --mrs x19,S3_0_C12_C12_0'/tmp/ccq7ZztI.s:186: Error: unknown or missing system register name at operand 1 -- `msr S3_0_C12_C12_1,x19'Quoted 8 lines
/tmp/ccq7ZztI.s:220: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_1,x19' /tmp/ccq7ZztI.s:1110: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C11_5,x27'/tmp/ccq7ZztI.s:1530: Error: unknown or missing system register name at operand 2 --mrs x0,S3_0_C12_C12_5' /tmp/ccq7ZztI.s:1540: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_5,x0'/tmp/ccq7ZztI.s:1548: Error: unknown or missing system register name at operand 2 --mrs x0,S3_0_C12_C12_5' /tmp/ccq7ZztI.s:1564: Error: unknown or missing system register name at operand 1 --msr S3_0_C4_C6_0,x0'/tmp/ccq7ZztI.s:1576: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_4,x0' /tmp/ccq7ZztI.s:1592: Error: unknown or missing system register name at operand 1 --msr S3_0_C12_C12_7,x0'Quoted 4 lines
I'm building with a vanilla gcc 4.8.2 / binutils 2.23.2. That shouldn't be broken like this, so those changes should be fixed (or minimal toolchain expecations need to be documented -- but there really is no good reason to require 4.9.0/2.24).
Quoted 4 lines
These all come from the GICv3 driver, so it's not going to be a lot of fun fixing them. You'd have to introduce a macro for generating the system-reg accesses (for both C and asm), then switch the GIC driver and the arch code over to using that.
We may need to document that enabling GICv3 requires a newer toolchain.
Otherwise, my years old macros ;) (adapted here and untested):
In asm/sysreg.h:
#define sys_reg(op0, op1, crn, crm, op2) \ ((((op0)-2)<<19)|((op1)<<16)|((crn)<<12)|((crm)<<8)|((op2)<<5))
#ifdef __ASSEMBLY__
.macro mrs_s, rt, sreg .inst 0xd5300000|(\sreg)|(\rt) .endm .macro msr_s, sreg, rt .inst 0xd5100000|(\sreg)|(\rt) .endm
#else
__asm__(
" .macro mrs_s, rt, sreg\n"
" .inst 0xd5300000|(\\sreg)|(\\rt)\n"
" .endm\n"
"\n"
" .macro msr_s, sreg, rt\n"
" .inst 0xd5100000|(\\sreg)|(\\rt)\n"
" .endm\n"
);
#endif
In the arm-gic-v3.h file, we change the definitions to:
#define ICC_SRE_EL2 sys_reg(3, 4, 12, 9, 5)
And in head.S:
mrs_s x0, ICC_SRE_EL2
Similarly in C files (the only change is s/mrs/mrs_s/):
asm volatile("mrs_s %0, " __stringify(ICC_IAR1_EL1) : "=r" (irqstat));But I'll let Marc comment when he gets back from holiday (I'm pretty sure he will enjoy it ;))
Signature · 1 line
Catalin
Catalin Marinas
maintainerQuoted 15 lines · Catalin Marinas
Quoted 10 lines · Will Deacon
Quoted 4 lines · Olof Johansson
I'm building with a vanilla gcc 4.8.2 / binutils 2.23.2. That shouldn't be broken like this, so those changes should be fixed (or minimal toolchain expecations need to be documented -- but there really is no good reason to require 4.9.0/2.24).
These all come from the GICv3 driver, so it's not going to be a lot of fun fixing them. You'd have to introduce a macro for generating the system-reg accesses (for both C and asm), then switch the GIC driver and the arch code over to using that.
We may need to document that enabling GICv3 requires a newer toolchain.
Otherwise, my years old macros ;) (adapted here and untested):
[...]
Quoted 2 lines
But I'll let Marc comment when he gets back from holiday (I'm pretty sure he will enjoy it ;))
Saving Marc some time:
------------8<--------------------------------
Quoted 1 line
From
3acb8b49aeba9f48153a2d719dec05d0b862e285Mon Sep 17 00:00:00 2001
From: Catalin Marinas <[email protected]>
Date: Thu, 24 Jul 2014 14:14:42 +0100
Subject: [PATCH] arm64: gicv3: Allow GICv3 compilation with older binutils
GICv3 introduces new system registers accessible with the full msr/mrs syntax (e.g. mrs x0, Sx_op0_op1_CRm_CRn_op2). However, only recent binutils understand the new syntax. This patch introduces msr_s/mrs_s assembly macros which generate the equivalent instructions above and converts the existing GICv3 code (both drivers/irqchip/ and arch/arm64/kernel/).
--- arch/arm64/include/asm/sysreg.h | 60 ++++++++++++++++++++++++++++++++++++++ arch/arm64/kernel/head.S | 6 ++-- drivers/irqchip/irq-gic-v3.c | 16 +++++----- include/linux/irqchip/arm-gic-v3.h | 42 +++++++++++++------------- 4 files changed, 93 insertions(+), 31 deletions(-) create mode 100644 arch/arm64/include/asm/sysreg.h
arch/arm64/include/asm/sysreg.h new file +60 -0
@@ -0,0 +1,60 @@ +/* +* Macros for accessing system registers with older binutils. +* +* Copyright (C) 2014 ARM Ltd. +* Author: Catalin Marinas <[email protected]> +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __ASM_SYSREG_H +#define __ASM_SYSREG_H + +#define sys_reg (op0, op1, crn, crm, op2) \ + ((((op0)-2)<<19)|((op1)<<16)|((crn)<<12)|((crm)<<8)|((op2)<<5)) + +#ifdef __ASSEMBLY__ + + .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 + .equ __reg_num_x\num, \num + .endr + .equ __reg_num_xzr, 31 + + .macro mrs_s, rt, sreg + .inst 0xd5300000|(\sreg)|(__reg_num_\rt) + .endm + + .macro msr_s, sreg, rt + .inst 0xd5100000|(\sreg)|(__reg_num_\rt) + .endm + +#else + +__asm__( +" .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n" +" .equ __reg_num_x\\num, \\num\n" +" .endr\n" +" .equ __reg_num_xzr, 31\n" +"\n" +" .macro mrs_s, rt, sreg\n" +" .inst 0xd5300000|(\\sreg)|(__reg_num_\\rt)\n" +" .endm\n" +"\n" +" .macro msr_s, sreg, rt\n" +" .inst 0xd5100000|(\\sreg)|(__reg_num_\\rt)\n" +" .endm\n" +); + +#endif + +#endif /* __ASM_SYSREG_H */
arch/arm64/kernel/head.S +3 -3
@@ -297,12 +297,12 @@ CPU_LE( bic x0, x0, #(3 << 24) ) // Clear the EE and E0E bits for EL1 cmp x0, #1 b.ne 3f - mrs x0, ICC_SRE_EL2 + mrs_s x0, ICC_SRE_EL2 orr x0, x0, #ICC_SRE_EL2_SRE // Set ICC_SRE_EL2.SRE==1 orr x0, x0, #ICC_SRE_EL2_ENABLE // Set ICC_SRE_EL2.Enable==1 - msr ICC_SRE_EL2, x0 + msr_s ICC_SRE_EL2, x0 isb // Make sure SRE is now set - msr ICH_HCR_EL2, xzr // Reset ICC_HCR_EL2 to defaults + msr_s ICH_HCR_EL2, xzr // Reset ICC_HCR_EL2 to defaults 3: #endif
drivers/irqchip/irq-gic-v3.c +8 -8
@@ -108,39 +108,39 @@ static u64 gic_read_iar(void) {u64 irqstat; - asm volatile("mrs %0, " __stringify(ICC_IAR1_EL1) : "=r" (irqstat)); + asm volatile("mrs_s %0, " __stringify(ICC_IAR1_EL1) : "=r" (irqstat));return irqstat; }static void gic_write_pmr (u64 val) { - asm volatile("msr " __stringify(ICC_PMR_EL1) ", %0" : : "r" (val)); + asm volatile("msr_s " __stringify(ICC_PMR_EL1) ", %0" : : "r" (val)); }static void gic_write_ctlr (u64 val) { - asm volatile("msr " __stringify(ICC_CTLR_EL1) ", %0" : : "r" (val)); + asm volatile("msr_s " __stringify(ICC_CTLR_EL1) ", %0" : : "r" (val));isb (); }static void gic_write_grpen1 (u64 val) { - asm volatile("msr " __stringify(ICC_GRPEN1_EL1) ", %0" : : "r" (val)); + asm volatile("msr_s " __stringify(ICC_GRPEN1_EL1) ", %0" : : "r" (val));isb (); }static void gic_write_sgi1r (u64 val) { - asm volatile("msr " __stringify(ICC_SGI1R_EL1) ", %0" : : "r" (val)); + asm volatile("msr_s " __stringify(ICC_SGI1R_EL1) ", %0" : : "r" (val)); }static void gic_enable_sre (void ) {u64 val; - asm volatile("mrs %0, " __stringify(ICC_SRE_EL1) : "=r" (val)); + asm volatile("mrs_s %0, " __stringify(ICC_SRE_EL1) : "=r" (val)); val |=ICC_SRE_EL1_SRE ; - asm volatile("msr " __stringify(ICC_SRE_EL1) ", %0" : : "r" (val)); + asm volatile("msr_s " __stringify(ICC_SRE_EL1) ", %0" : : "r" (val));isb ();/*
@@ -150,7 +150,7 @@ static void gic_enable_sre(void)* * Kindly inform the luser. */ - asm volatile("mrs %0, " __stringify(ICC_SRE_EL1) : "=r" (val)); + asm volatile("mrs_s %0, " __stringify(ICC_SRE_EL1) : "=r" (val));if (!(val &ICC_SRE_EL1_SRE ))pr_err ("GIC: unable to set SRE (disabled@EL2), panic ahead\n" ); }
include/linux/irqchip/arm-gic-v3.h +22 -20
81 lines not on this page · raw message
Olof Johansson
Tested-byQuoted 36 lines · Catalin Marinas
Quoted 15 lines · Catalin Marinas
Quoted 10 lines · Will Deacon
Quoted 4 lines · Olof Johansson
I'm building with a vanilla gcc 4.8.2 / binutils 2.23.2. That shouldn't be broken like this, so those changes should be fixed (or minimal toolchain expecations need to be documented -- but there really is no good reason to require 4.9.0/2.24).
These all come from the GICv3 driver, so it's not going to be a lot of fun fixing them. You'd have to introduce a macro for generating the system-reg accesses (for both C and asm), then switch the GIC driver and the arch code over to using that.
We may need to document that enabling GICv3 requires a newer toolchain.
Otherwise, my years old macros ;) (adapted here and untested):
[...]
Quoted 2 lines
But I'll let Marc comment when he gets back from holiday (I'm pretty sure he will enjoy it ;))
Saving Marc some time:
------------8<--------------------------------
From
3acb8b49aeba9f48153a2d719dec05d0b862e285Mon Sep 17 00:00:00 2001
From: Catalin Marinas <[email protected]>
Date: Thu, 24 Jul 2014 14:14:42 +0100
Subject: [PATCH] arm64: gicv3: Allow GICv3 compilation with older binutilsGICv3 introduces new system registers accessible with the full msr/mrs syntax (e.g. mrs x0,
Sx_op0_op1_CRm_CRn_op2). However, only recent binutils understand the new syntax. This patch introduces msr_s/mrs_s assembly macros which generate the equivalent instructions above and converts the existing GICv3 code (bothdrivers/irqchip/andarch/arm64/kernel/).
Quoted 5 lines
Signed-off-by Catalin Marinas <[email protected]>Suggested-by Mark Rutland <[email protected]>Reported-by Olof Johansson <[email protected]>Cc Will Deacon <[email protected]>Cc Marc Zyngier <[email protected]>
Thanks!
-Olof
Jason Cooper
Acked-byQuoted 41 lines · Catalin Marinas
Quoted 15 lines · Catalin Marinas
Quoted 10 lines · Will Deacon
Quoted 4 lines · Olof Johansson
I'm building with a vanilla gcc 4.8.2 / binutils 2.23.2. That shouldn't be broken like this, so those changes should be fixed (or minimal toolchain expecations need to be documented -- but there really is no good reason to require 4.9.0/2.24).
These all come from the GICv3 driver, so it's not going to be a lot of fun fixing them. You'd have to introduce a macro for generating the system-reg accesses (for both C and asm), then switch the GIC driver and the arch code over to using that.
We may need to document that enabling GICv3 requires a newer toolchain.
Otherwise, my years old macros ;) (adapted here and untested):
[...]
Quoted 2 lines
But I'll let Marc comment when he gets back from holiday (I'm pretty sure he will enjoy it ;))
Saving Marc some time:
------------8<--------------------------------
From
3acb8b49aeba9f48153a2d719dec05d0b862e285Mon Sep 17 00:00:00 2001
From: Catalin Marinas <[email protected]>
Date: Thu, 24 Jul 2014 14:14:42 +0100
Subject: [PATCH] arm64: gicv3: Allow GICv3 compilation with older binutilsGICv3 introduces new system registers accessible with the full msr/mrs syntax (e.g. mrs x0,
Sx_op0_op1_CRm_CRn_op2). However, only recent binutils understand the new syntax. This patch introduces msr_s/mrs_s assembly macros which generate the equivalent instructions above and converts the existing GICv3 code (bothdrivers/irqchip/andarch/arm64/kernel/).Signed-off-by Catalin Marinas <[email protected]>Suggested-by Mark Rutland <[email protected]>Reported-by Olof Johansson <[email protected]>Cc Will Deacon <[email protected]>Cc Marc Zyngier <[email protected]>
Quoted 7 lines
--- arch/arm64/include/asm/sysreg.h | 60 ++++++++++++++++++++++++++++++++++++++ arch/arm64/kernel/head.S | 6 ++-- drivers/irqchip/irq-gic-v3.c | 16 +++++----- include/linux/irqchip/arm-gic-v3.h | 42 +++++++++++++------------- 4 files changed, 93 insertions(+), 31 deletions(-) create mode 100644 arch/arm64/include/asm/sysreg.h
I'm going to assume this goes on top of Marc's series, and that you'll take it through arm64:
thx,
Jason.
Catalin Marinas
maintainerQuoted 26 lines · Jason Cooper
Quoted 17 lines · Catalin Marinas
From
3acb8b49aeba9f48153a2d719dec05d0b862e285Mon Sep 17 00:00:00 2001
From: Catalin Marinas <[email protected]>
Date: Thu, 24 Jul 2014 14:14:42 +0100
Subject: [PATCH] arm64: gicv3: Allow GICv3 compilation with older binutilsGICv3 introduces new system registers accessible with the full msr/mrs syntax (e.g. mrs x0,
Sx_op0_op1_CRm_CRn_op2). However, only recent binutils understand the new syntax. This patch introduces msr_s/mrs_s assembly macros which generate the equivalent instructions above and converts the existing GICv3 code (bothdrivers/irqchip/andarch/arm64/kernel/).Signed-off-by Catalin Marinas <[email protected]>Suggested-by Mark Rutland <[email protected]>Reported-by Olof Johansson <[email protected]>Cc Will Deacon <[email protected]>Cc Marc Zyngier <[email protected]>Quoted 7 lines
--- arch/arm64/include/asm/sysreg.h | 60 ++++++++++++++++++++++++++++++++++++++ arch/arm64/kernel/head.S | 6 ++-- drivers/irqchip/irq-gic-v3.c | 16 +++++----- include/linux/irqchip/arm-gic-v3.h | 42 +++++++++++++------------- 4 files changed, 93 insertions(+), 31 deletions(-) create mode 100644 arch/arm64/include/asm/sysreg.h
Quoted 4 lines
I'm going to assume this goes on top of Marc's series, and that you'll take it through arm64:
Acked-by Jason Cooper <[email protected]>
Thanks. I'll let Marc decide (he's back next week) as I go on holiday soon. Ideally it should go into -next and upstream together with the rest of the GICv3 patches but I (or Will if I'm way) am happy to take the patch once GICv3 hits mainline (I would like to avoid merging the irqchip tree into the arm64 tree just to be able to apply this fix).
Signature · 1 line
Catalin
Quoted 30 lines · Catalin Marinas
Quoted 29 lines · Jason Cooper
Quoted 17 lines · Catalin Marinas
From
3acb8b49aeba9f48153a2d719dec05d0b862e285Mon Sep 17 00:00:00 2001
From: Catalin Marinas <[email protected]>
Date: Thu, 24 Jul 2014 14:14:42 +0100
Subject: [PATCH] arm64: gicv3: Allow GICv3 compilation with older binutilsGICv3 introduces new system registers accessible with the full msr/mrs syntax (e.g. mrs x0,
Sx_op0_op1_CRm_CRn_op2). However, only recent binutils understand the new syntax. This patch introduces msr_s/mrs_s assembly macros which generate the equivalent instructions above and converts the existing GICv3 code (bothdrivers/irqchip/andarch/arm64/kernel/).Signed-off-by Catalin Marinas <[email protected]>Suggested-by Mark Rutland <[email protected]>Reported-by Olof Johansson <[email protected]>Cc Will Deacon <[email protected]>Cc Marc Zyngier <[email protected]>Quoted 7 lines
--- arch/arm64/include/asm/sysreg.h | 60 ++++++++++++++++++++++++++++++++++++++ arch/arm64/kernel/head.S | 6 ++-- drivers/irqchip/irq-gic-v3.c | 16 +++++----- include/linux/irqchip/arm-gic-v3.h | 42 +++++++++++++------------- 4 files changed, 93 insertions(+), 31 deletions(-) create mode 100644 arch/arm64/include/asm/sysreg.hI'm going to assume this goes on top of Marc's series, and that you'll take it through arm64:
Quoted 7 lines
Quoted 1 line
Acked-by Jason Cooper <[email protected]>Thanks. I'll let Marc decide (he's back next week) as I go on holiday soon. Ideally it should go into -next and upstream together with the rest of the GICv3 patches but I (or Will if I'm way) am happy to take the patch once GICv3 hits mainline (I would like to avoid merging the irqchip tree into the arm64 tree just to be able to apply this fix).
That's why I created a topic branch for GICv3. ;-) If you pull:
git://git.infradead.org/users/jcooper/linux.git tags/deps-irqchip-gic-3.17
You'll get:
021f653791ad irqchip: gic-v3: Initial support for GICv3 d51d0af43b30 irqchip: gic: Move some bits of GICv2 to a library-type file
based on v3.16-rc1 and nothing more.
That tag is on the irqchip/gic branch, which I'll put all the other changes to gic on top of once Marc has had a chance to review them.
The intent was for arm64 to pull the above, and apply the rest of Marc's series on top. The fix just posted would go on top of that. But if you want to wait...
thx,
Jason.
Catalin Marinas
maintainerQuoted 48 lines · Jason Cooper
Quoted 30 lines · Catalin Marinas
Quoted 29 lines · Jason Cooper
Quoted 17 lines · Catalin Marinas
From
3acb8b49aeba9f48153a2d719dec05d0b862e285Mon Sep 17 00:00:00 2001
From: Catalin Marinas <[email protected]>
Date: Thu, 24 Jul 2014 14:14:42 +0100
Subject: [PATCH] arm64: gicv3: Allow GICv3 compilation with older binutilsGICv3 introduces new system registers accessible with the full msr/mrs syntax (e.g. mrs x0,
Sx_op0_op1_CRm_CRn_op2). However, only recent binutils understand the new syntax. This patch introduces msr_s/mrs_s assembly macros which generate the equivalent instructions above and converts the existing GICv3 code (bothdrivers/irqchip/andarch/arm64/kernel/).Signed-off-by Catalin Marinas <[email protected]>Suggested-by Mark Rutland <[email protected]>Reported-by Olof Johansson <[email protected]>Cc Will Deacon <[email protected]>Cc Marc Zyngier <[email protected]>Quoted 7 lines
--- arch/arm64/include/asm/sysreg.h | 60 ++++++++++++++++++++++++++++++++++++++ arch/arm64/kernel/head.S | 6 ++-- drivers/irqchip/irq-gic-v3.c | 16 +++++----- include/linux/irqchip/arm-gic-v3.h | 42 +++++++++++++------------- 4 files changed, 93 insertions(+), 31 deletions(-) create mode 100644 arch/arm64/include/asm/sysreg.hI'm going to assume this goes on top of Marc's series, and that you'll take it through arm64:
Quoted 7 lines
Quoted 1 line
Acked-by Jason Cooper <[email protected]>Thanks. I'll let Marc decide (he's back next week) as I go on holiday soon. Ideally it should go into -next and upstream together with the rest of the GICv3 patches but I (or Will if I'm way) am happy to take the patch once GICv3 hits mainline (I would like to avoid merging the irqchip tree into the arm64 tree just to be able to apply this fix).
That's why I created a topic branch for GICv3. ;-) If you pull:
git://git.infradead.org/users/jcooper/linux.gittags/deps-irqchip-gic-3.17You'll get:
021f653791adirqchip: gic-v3: Initial support for GICv3d51d0af43b30irqchip: gic: Move some bits of GICv2 to a library-type file
Quoted 8 lines
based on v3.16-rc1 and nothing more.
That tag is on the irqchip/gic branch, which I'll put all the other changes to gic on top of once Marc has had a chance to review them.
The intent was for arm64 to pull the above, and apply the rest of Marc's series on top. The fix just posted would go on top of that. But if you want to wait...
That's great, thanks. I wasn't aware (or maybe I forgot) of the plans for how to get GICv3 merged. I pulled the tag above and applied the fix on top.
Signature · 1 line
Catalin
Quoted 54 lines · Catalin Marinas
Quoted 53 lines · Jason Cooper
Quoted 30 lines · Catalin Marinas
Quoted 29 lines · Jason Cooper
Quoted 17 lines · Catalin Marinas
From
3acb8b49aeba9f48153a2d719dec05d0b862e285Mon Sep 17 00:00:00 2001
From: Catalin Marinas <[email protected]>
Date: Thu, 24 Jul 2014 14:14:42 +0100
Subject: [PATCH] arm64: gicv3: Allow GICv3 compilation with older binutilsGICv3 introduces new system registers accessible with the full msr/mrs syntax (e.g. mrs x0,
Sx_op0_op1_CRm_CRn_op2). However, only recent binutils understand the new syntax. This patch introduces msr_s/mrs_s assembly macros which generate the equivalent instructions above and converts the existing GICv3 code (bothdrivers/irqchip/andarch/arm64/kernel/).Signed-off-by Catalin Marinas <[email protected]>Suggested-by Mark Rutland <[email protected]>Reported-by Olof Johansson <[email protected]>Cc Will Deacon <[email protected]>Cc Marc Zyngier <[email protected]>Quoted 7 lines
--- arch/arm64/include/asm/sysreg.h | 60 ++++++++++++++++++++++++++++++++++++++ arch/arm64/kernel/head.S | 6 ++-- drivers/irqchip/irq-gic-v3.c | 16 +++++----- include/linux/irqchip/arm-gic-v3.h | 42 +++++++++++++------------- 4 files changed, 93 insertions(+), 31 deletions(-) create mode 100644 arch/arm64/include/asm/sysreg.hI'm going to assume this goes on top of Marc's series, and that you'll take it through arm64:
Quoted 7 lines
Quoted 1 line
Acked-by Jason Cooper <[email protected]>Thanks. I'll let Marc decide (he's back next week) as I go on holiday soon. Ideally it should go into -next and upstream together with the rest of the GICv3 patches but I (or Will if I'm way) am happy to take the patch once GICv3 hits mainline (I would like to avoid merging the irqchip tree into the arm64 tree just to be able to apply this fix).
That's why I created a topic branch for GICv3. ;-) If you pull:
git://git.infradead.org/users/jcooper/linux.gittags/deps-irqchip-gic-3.17You'll get:
021f653791adirqchip: gic-v3: Initial support for GICv3d51d0af43b30irqchip: gic: Move some bits of GICv2 to a library-type filebased on v3.16-rc1 and nothing more.
That tag is on the irqchip/gic branch, which I'll put all the other changes to gic on top of once Marc has had a chance to review them.
Quoted 7 lines
Quoted 3 lines
The intent was for arm64 to pull the above, and apply the rest of Marc's series on top. The fix just posted would go on top of that. But if you want to wait...
That's great, thanks. I wasn't aware (or maybe I forgot) of the plans for how to get GICv3 merged. I pulled the tag above and applied the fix on top.
Awesome. thanks for that everyone.
I'll go back moping my Inbox...
M.
Signature · 1 line
Jazz is not dead. It just smells funny...