Skip to content

Commit 536fd93

Browse files
committed
Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Pull ARM updates from Russell King: "Included in these updates are: - Performance optimisation to avoid writing the control register at every exception. - Use static inline instead of extern inline in ftrace code. - Crypto ARM assembly updates for big endian - Alignment of initrd/.init memory to page sizes when freeing to ensure that we fully free the regions - Add gcov support - A couple of preparatory patches for VDSO support: use _install_special_mapping, and randomize the sigpage placement above stack. - Add L2 ePAPR DT cache properties so that DT can specify the cache geometry. - Preparatory patch for FIQ (NMI) kernel C code for things like spinlock lockup debug. Following on from this are a couple of my patches cleaning up show_regs() and removing an unused (probably since 1.x days) do_unexp_fiq() function. - Use pr_warn() rather than pr_warning(). - A number of cleanups (smp, footbridge, return_address)" * 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (21 commits) ARM: 8167/1: extend the reserved memory for initrd to be page aligned ARM: 8168/1: extend __init_end to a page align address ARM: 8169/1: l2c: parse cache properties from ePAPR definitions ARM: 8160/1: drop warning about return_address not using unwind tables ARM: 8161/1: footbridge: select machine dir based on ARCH_FOOTBRIDGE ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h ARM: 8155/1: place sigpage at a random offset above stack ARM: 8154/1: use _install_special_mapping for sigpage ARM: 8153/1: Enable gcov support on the ARM architecture ARM: Avoid writing to control register on every exception ARM: 8152/1: Convert pr_warning to pr_warn ARM: remove unused do_unexp_fiq() function ARM: remove extraneous newline in show_regs() ARM: 8150/3: fiq: Replace default FIQ handler ARM: 8140/1: ep93xx: Enable DEBUG_LL_UART_PL01X ARM: 8139/1: versatile: Enable DEBUG_LL_UART_PL01X ARM: 8138/1: drop ISAR0 workaround for B15 ARM: 8136/1: sa1100: add Micro ASIC platform device ARM: 8131/1: arm/smp: Absorb boot_secondary() ARM: 8126/1: crypto: enable NEON SHA-384/SHA-512 for big endian ...
2 parents e4e6567 + d5d1689 commit 536fd93

37 files changed

Lines changed: 485 additions & 120 deletions

‎Documentation/devicetree/bindings/arm/l2cc.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
ARM cores often have a separate level 2 cache controller. There are various
44
implementations of the L2 cache controller with compatible programming models.
5+
Some of the properties that are just prefixed "cache-*" are taken from section
6+
3.7.3 of the ePAPR v1.1 specification which can be found at:
7+
https://www.power.org/wp-content/uploads/2012/06/Power_ePAPR_APPROVED_v1.1.pdf
8+
59
The ARM L2 cache representation in the device tree should be done as follows:
610

711
Required properties:
@@ -44,6 +48,12 @@ Optional properties:
4448
I/O coherent mode. Valid only when the arm,pl310-cache compatible
4549
string is used.
4650
- interrupts : 1 combined interrupt.
51+
- cache-size : specifies the size in bytes of the cache
52+
- cache-sets : specifies the number of associativity sets of the cache
53+
- cache-block-size : specifies the size in bytes of a cache block
54+
- cache-line-size : specifies the size in bytes of a line in the cache,
55+
if this is not specified, the line size is assumed to be equal to the
56+
cache block size
4757
- cache-id-part: cache id part number to be used if it is not present
4858
on hardware
4959
- wt-override: If present then L2 is forced to Write through mode

‎arch/arm/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ machine-$(CONFIG_ARCH_EBSA110) += ebsa110
157157
machine-$(CONFIG_ARCH_EFM32) += efm32
158158
machine-$(CONFIG_ARCH_EP93XX) += ep93xx
159159
machine-$(CONFIG_ARCH_EXYNOS) += exynos
160+
machine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge
160161
machine-$(CONFIG_ARCH_GEMINI) += gemini
161162
machine-$(CONFIG_ARCH_HIGHBANK) += highbank
162163
machine-$(CONFIG_ARCH_HISI) += hisi
@@ -205,7 +206,6 @@ machine-$(CONFIG_ARCH_VEXPRESS) += vexpress
205206
machine-$(CONFIG_ARCH_VT8500) += vt8500
206207
machine-$(CONFIG_ARCH_W90X900) += w90x900
207208
machine-$(CONFIG_ARCH_ZYNQ) += zynq
208-
machine-$(CONFIG_FOOTBRIDGE) += footbridge
209209
machine-$(CONFIG_PLAT_SPEAR) += spear
210210

211211
# Platform directory name. This list is sorted alphanumerically

‎arch/arm/boot/bootp/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# architecture-specific flags and dependencies.
66
#
77

8+
GCOV_PROFILE := n
9+
810
LDFLAGS_bootp :=-p --no-undefined -X \
911
--defsym initrd_phys=$(INITRD_PHYS) \
1012
--defsym params_phys=$(PARAMS_PHYS) -T

‎arch/arm/boot/compressed/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ ifeq ($(CONFIG_ARM_VIRT_EXT),y)
3737
OBJS += hyp-stub.o
3838
endif
3939

40+
GCOV_PROFILE := n
41+
4042
#
4143
# Architecture dependencies
4244
#

‎arch/arm/configs/ep93xx_defconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,6 @@ CONFIG_DEBUG_SPINLOCK=y
107107
CONFIG_DEBUG_MUTEXES=y
108108
CONFIG_DEBUG_USER=y
109109
CONFIG_DEBUG_LL=y
110+
CONFIG_DEBUG_LL_UART_PL01X=y
110111
# CONFIG_CRYPTO_ANSI_CPRNG is not set
111112
CONFIG_LIBCRC32C=y

‎arch/arm/configs/versatile_defconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,6 @@ CONFIG_MAGIC_SYSRQ=y
8282
CONFIG_DEBUG_KERNEL=y
8383
CONFIG_DEBUG_USER=y
8484
CONFIG_DEBUG_LL=y
85+
CONFIG_DEBUG_LL_UART_PL01X=y
8586
CONFIG_FONTS=y
8687
CONFIG_FONT_ACORN_8x8=y

‎arch/arm/crypto/sha1-armv7-neon.S‎

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
#include <linux/linkage.h>
12-
12+
#include <asm/assembler.h>
1313

1414
.syntax unified
1515
.code 32
@@ -61,13 +61,13 @@
6161
#define RT3 r12
6262

6363
#define W0 q0
64-
#define W1 q1
64+
#define W1 q7
6565
#define W2 q2
6666
#define W3 q3
6767
#define W4 q4
68-
#define W5 q5
69-
#define W6 q6
70-
#define W7 q7
68+
#define W5 q6
69+
#define W6 q5
70+
#define W7 q1
7171

7272
#define tmp0 q8
7373
#define tmp1 q9
@@ -79,6 +79,11 @@
7979
#define qK3 q14
8080
#define qK4 q15
8181

82+
#ifdef CONFIG_CPU_BIG_ENDIAN
83+
#define ARM_LE(code...)
84+
#else
85+
#define ARM_LE(code...) code
86+
#endif
8287

8388
/* Round function macros. */
8489

@@ -150,45 +155,45 @@
150155
#define W_PRECALC_00_15() \
151156
add RWK, sp, #(WK_offs(0)); \
152157
\
153-
vld1.32 {tmp0, tmp1}, [RDATA]!; \
154-
vrev32.8 W0, tmp0; /* big => little */ \
155-
vld1.32 {tmp2, tmp3}, [RDATA]!; \
158+
vld1.32 {W0, W7}, [RDATA]!; \
159+
ARM_LE(vrev32.8 W0, W0; ) /* big => little */ \
160+
vld1.32 {W6, W5}, [RDATA]!; \
156161
vadd.u32 tmp0, W0, curK; \
157-
vrev32.8 W7, tmp1; /* big => little */ \
158-
vrev32.8 W6, tmp2; /* big => little */ \
162+
ARM_LE(vrev32.8 W7, W7; ) /* big => little */ \
163+
ARM_LE(vrev32.8 W6, W6; ) /* big => little */ \
159164
vadd.u32 tmp1, W7, curK; \
160-
vrev32.8 W5, tmp3; /* big => little */ \
165+
ARM_LE(vrev32.8 W5, W5; ) /* big => little */ \
161166
vadd.u32 tmp2, W6, curK; \
162167
vst1.32 {tmp0, tmp1}, [RWK]!; \
163168
vadd.u32 tmp3, W5, curK; \
164169
vst1.32 {tmp2, tmp3}, [RWK]; \
165170

166171
#define WPRECALC_00_15_0(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
167-
vld1.32 {tmp0, tmp1}, [RDATA]!; \
172+
vld1.32 {W0, W7}, [RDATA]!; \
168173

169174
#define WPRECALC_00_15_1(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
170175
add RWK, sp, #(WK_offs(0)); \
171176

172177
#define WPRECALC_00_15_2(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
173-
vrev32.8 W0, tmp0; /* big => little */ \
178+
ARM_LE(vrev32.8 W0, W0; ) /* big => little */ \
174179

175180
#define WPRECALC_00_15_3(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
176-
vld1.32 {tmp2, tmp3}, [RDATA]!; \
181+
vld1.32 {W6, W5}, [RDATA]!; \
177182

178183
#define WPRECALC_00_15_4(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
179184
vadd.u32 tmp0, W0, curK; \
180185

181186
#define WPRECALC_00_15_5(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
182-
vrev32.8 W7, tmp1; /* big => little */ \
187+
ARM_LE(vrev32.8 W7, W7; ) /* big => little */ \
183188

184189
#define WPRECALC_00_15_6(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
185-
vrev32.8 W6, tmp2; /* big => little */ \
190+
ARM_LE(vrev32.8 W6, W6; ) /* big => little */ \
186191

187192
#define WPRECALC_00_15_7(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
188193
vadd.u32 tmp1, W7, curK; \
189194

190195
#define WPRECALC_00_15_8(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
191-
vrev32.8 W5, tmp3; /* big => little */ \
196+
ARM_LE(vrev32.8 W5, W5; ) /* big => little */ \
192197

193198
#define WPRECALC_00_15_9(i,W,W_m04,W_m08,W_m12,W_m16,W_m20,W_m24,W_m28) \
194199
vadd.u32 tmp2, W6, curK; \

‎arch/arm/include/asm/ftrace.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void *return_address(unsigned int);
4545

4646
#else
4747

48-
extern inline void *return_address(unsigned int level)
48+
static inline void *return_address(unsigned int level)
4949
{
5050
return NULL;
5151
}

‎arch/arm/include/asm/smp.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ extern void smp_init_cpus(void);
4848
*/
4949
extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int));
5050

51-
/*
52-
* Boot a secondary CPU, and assign it the specified idle task.
53-
* This also gives us the initial stack to use for this CPU.
54-
*/
55-
extern int boot_secondary(unsigned int cpu, struct task_struct *);
56-
5751
/*
5852
* Called from platform specific assembly code, this is the
5953
* secondary CPU entry point.

‎arch/arm/include/asm/syscall.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ static inline void syscall_get_arguments(struct task_struct *task,
6363
if (i + n > SYSCALL_MAX_ARGS) {
6464
unsigned long *args_bad = args + SYSCALL_MAX_ARGS - i;
6565
unsigned int n_bad = n + i - SYSCALL_MAX_ARGS;
66-
pr_warning("%s called with max args %d, handling only %d\n",
67-
__func__, i + n, SYSCALL_MAX_ARGS);
66+
pr_warn("%s called with max args %d, handling only %d\n",
67+
__func__, i + n, SYSCALL_MAX_ARGS);
6868
memset(args_bad, 0, n_bad * sizeof(args[0]));
6969
n = SYSCALL_MAX_ARGS - i;
7070
}
@@ -88,8 +88,8 @@ static inline void syscall_set_arguments(struct task_struct *task,
8888
return;
8989

9090
if (i + n > SYSCALL_MAX_ARGS) {
91-
pr_warning("%s called with max args %d, handling only %d\n",
92-
__func__, i + n, SYSCALL_MAX_ARGS);
91+
pr_warn("%s called with max args %d, handling only %d\n",
92+
__func__, i + n, SYSCALL_MAX_ARGS);
9393
n = SYSCALL_MAX_ARGS - i;
9494
}
9595

0 commit comments

Comments
 (0)