Skip to content

Commit f47671e

Browse files
committed
Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm
Pull ARM updates from Russell King: "Included in this series are: 1. BE8 (modern big endian) changes for ARM from Ben Dooks 2. big.Little support from Nicolas Pitre and Dave Martin 3. support for LPAE systems with all system memory above 4GB 4. Perf updates from Will Deacon 5. Additional prefetching and other performance improvements from Will. 6. Neon-optimised AES implementation fro Ard. 7. A number of smaller fixes scattered around the place. There is a rather horrid merge conflict in tools/perf - I was never notified of the conflict because it originally occurred between Will's tree and other stuff. Consequently I have a resolution which Will forwarded me, which I'll forward on immediately after sending this mail. The other notable thing is I'm expecting some build breakage in the crypto stuff on ARM only with Ard's AES patches. These were merged into a stable git branch which others had already pulled, so there's little I can do about this. The problem is caused because these patches have a dependency on some code in the crypto git tree - I tried requesting a branch I can pull to resolve these, and all I got each time from the crypto people was "we'll revert our patches then" which would only make things worse since I still don't have the dependent patches. I've no idea what's going on there or how to resolve that, and since I can't split these patches from the rest of this pull request, I'm rather stuck with pushing this as-is or reverting Ard's patches. Since it should "come out in the wash" I've left them in - the only build problems they seem to cause at the moment are with randconfigs, and since it's a new feature anyway. However, if by -rc1 the dependencies aren't in, I think it'd be best to revert Ard's patches" I resolved the perf conflict roughly as per the patch sent by Russell, but there may be some differences. Any errors are likely mine. Let's see how the crypto issues work out.. * 'for-linus' of git://git.linaro.org/people/rmk/linux-arm: (110 commits) ARM: 7868/1: arm/arm64: remove atomic_clear_mask() in "include/asm/atomic.h" ARM: 7867/1: include: asm: use 'int' instead of 'unsigned long' for 'oldval' in atomic_cmpxchg(). ARM: 7866/1: include: asm: use 'long long' instead of 'u64' within atomic.h ARM: 7871/1: amba: Extend number of IRQS ARM: 7887/1: Don't smp_cross_call() on UP devices in arch_irq_work_raise() ARM: 7872/1: Support arch_irq_work_raise() via self IPIs ARM: 7880/1: Clear the IT state independent of the Thumb-2 mode ARM: 7878/1: nommu: Implement dummy early_paging_init() ARM: 7876/1: clear Thumb-2 IT state on exception handling ARM: 7874/2: bL_switcher: Remove cpu_hotplug_driver_{lock,unlock}() ARM: footbridge: fix build warnings for netwinder ARM: 7873/1: vfp: clear vfp_current_hw_state for dying cpu ARM: fix misplaced arch_virt_to_idmap() ARM: 7848/1: mcpm: Implement cpu_kill() to synchronise on powerdown ARM: 7847/1: mcpm: Factor out logical-to-physical CPU translation ARM: 7869/1: remove unused XSCALE_PMU Kconfig param ARM: 7864/1: Handle 64-bit memory in case of 32-bit phys_addr_t ARM: 7863/1: Let arm_add_memory() always use 64-bit arguments ARM: 7862/1: pcpu: replace __get_cpu_var_uses ARM: 7861/1: cacheflush: consolidate single-CPU ARMv7 cache disabling code ...
2 parents 8ceafbf + 42cbe82 commit f47671e

121 files changed

Lines changed: 8137 additions & 628 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/Kconfig‎

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config ARM
55
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
66
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
77
select ARCH_HAVE_CUSTOM_GPIO_H
8+
select ARCH_USE_CMPXCHG_LOCKREF
89
select ARCH_WANT_IPC_PARSE_VERSION
910
select BUILDTIME_EXTABLE_SORT if MMU
1011
select CLONE_BACKWARDS
@@ -51,6 +52,8 @@ config ARM
5152
select HAVE_MOD_ARCH_SPECIFIC if ARM_UNWIND
5253
select HAVE_OPROFILE if (HAVE_PERF_EVENTS)
5354
select HAVE_PERF_EVENTS
55+
select HAVE_PERF_REGS
56+
select HAVE_PERF_USER_STACK_DUMP
5457
select HAVE_REGS_AND_STACK_ACCESS_API
5558
select HAVE_SYSCALL_TRACEPOINTS
5659
select HAVE_UID16
@@ -481,6 +484,7 @@ config ARCH_IXP4XX
481484
bool "IXP4xx-based"
482485
depends on MMU
483486
select ARCH_HAS_DMA_SET_COHERENT_MASK
487+
select ARCH_SUPPORTS_BIG_ENDIAN
484488
select ARCH_REQUIRE_GPIOLIB
485489
select CLKSRC_MMIO
486490
select CPU_XSCALE
@@ -688,7 +692,6 @@ config ARCH_SA1100
688692
select GENERIC_CLOCKEVENTS
689693
select HAVE_IDE
690694
select ISA
691-
select NEED_MACH_GPIO_H
692695
select NEED_MACH_MEMORY_H
693696
select SPARSE_IRQ
694697
help
@@ -1064,11 +1067,6 @@ config IWMMXT
10641067
Enable support for iWMMXt context switching at run time if
10651068
running on a CPU that supports it.
10661069

1067-
config XSCALE_PMU
1068-
bool
1069-
depends on CPU_XSCALE
1070-
default y
1071-
10721070
config MULTI_IRQ_HANDLER
10731071
bool
10741072
help
@@ -1516,6 +1514,32 @@ config MCPM
15161514
for (multi-)cluster based systems, such as big.LITTLE based
15171515
systems.
15181516

1517+
config BIG_LITTLE
1518+
bool "big.LITTLE support (Experimental)"
1519+
depends on CPU_V7 && SMP
1520+
select MCPM
1521+
help
1522+
This option enables support selections for the big.LITTLE
1523+
system architecture.
1524+
1525+
config BL_SWITCHER
1526+
bool "big.LITTLE switcher support"
1527+
depends on BIG_LITTLE && MCPM && HOTPLUG_CPU
1528+
select CPU_PM
1529+
select ARM_CPU_SUSPEND
1530+
help
1531+
The big.LITTLE "switcher" provides the core functionality to
1532+
transparently handle transition between a cluster of A15's
1533+
and a cluster of A7's in a big.LITTLE system.
1534+
1535+
config BL_SWITCHER_DUMMY_IF
1536+
tristate "Simple big.LITTLE switcher user interface"
1537+
depends on BL_SWITCHER && DEBUG_KERNEL
1538+
help
1539+
This is a simple and dummy char dev interface to control
1540+
the big.LITTLE switcher core code. It is meant for
1541+
debugging purposes only.
1542+
15191543
choice
15201544
prompt "Memory split"
15211545
default VMSPLIT_3G

‎arch/arm/Kconfig.debug‎

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,20 +318,23 @@ choice
318318
config DEBUG_MSM_UART1
319319
bool "Kernel low-level debugging messages via MSM UART1"
320320
depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
321+
select DEBUG_MSM_UART
321322
help
322323
Say Y here if you want the debug print routines to direct
323324
their output to the first serial port on MSM devices.
324325

325326
config DEBUG_MSM_UART2
326327
bool "Kernel low-level debugging messages via MSM UART2"
327328
depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
329+
select DEBUG_MSM_UART
328330
help
329331
Say Y here if you want the debug print routines to direct
330332
their output to the second serial port on MSM devices.
331333

332334
config DEBUG_MSM_UART3
333335
bool "Kernel low-level debugging messages via MSM UART3"
334336
depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
337+
select DEBUG_MSM_UART
335338
help
336339
Say Y here if you want the debug print routines to direct
337340
their output to the third serial port on MSM devices.
@@ -340,6 +343,7 @@ choice
340343
bool "Kernel low-level debugging messages via MSM 8660 UART"
341344
depends on ARCH_MSM8X60
342345
select MSM_HAS_DEBUG_UART_HS
346+
select DEBUG_MSM_UART
343347
help
344348
Say Y here if you want the debug print routines to direct
345349
their output to the serial port on MSM 8660 devices.
@@ -348,10 +352,20 @@ choice
348352
bool "Kernel low-level debugging messages via MSM 8960 UART"
349353
depends on ARCH_MSM8960
350354
select MSM_HAS_DEBUG_UART_HS
355+
select DEBUG_MSM_UART
351356
help
352357
Say Y here if you want the debug print routines to direct
353358
their output to the serial port on MSM 8960 devices.
354359

360+
config DEBUG_MSM8974_UART
361+
bool "Kernel low-level debugging messages via MSM 8974 UART"
362+
depends on ARCH_MSM8974
363+
select MSM_HAS_DEBUG_UART_HS
364+
select DEBUG_MSM_UART
365+
help
366+
Say Y here if you want the debug print routines to direct
367+
their output to the serial port on MSM 8974 devices.
368+
355369
config DEBUG_MVEBU_UART
356370
bool "Kernel low-level debugging messages via MVEBU UART (old bootloaders)"
357371
depends on ARCH_MVEBU
@@ -841,6 +855,20 @@ choice
841855
options; the platform specific options are deprecated
842856
and will be soon removed.
843857

858+
config DEBUG_LL_UART_EFM32
859+
bool "Kernel low-level debugging via efm32 UART"
860+
depends on ARCH_EFM32
861+
help
862+
Say Y here if you want the debug print routines to direct
863+
their output to an UART or USART port on efm32 based
864+
machines. Use the following addresses for DEBUG_UART_PHYS:
865+
866+
0x4000c000 | USART0
867+
0x4000c400 | USART1
868+
0x4000c800 | USART2
869+
0x4000e000 | UART0
870+
0x4000e400 | UART1
871+
844872
config DEBUG_LL_UART_PL01X
845873
bool "Kernel low-level debugging via ARM Ltd PL01x Primecell UART"
846874
help
@@ -887,11 +915,16 @@ config DEBUG_STI_UART
887915
bool
888916
depends on ARCH_STI
889917

918+
config DEBUG_MSM_UART
919+
bool
920+
depends on ARCH_MSM
921+
890922
config DEBUG_LL_INCLUDE
891923
string
892924
default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
893925
default "debug/pl01x.S" if DEBUG_LL_UART_PL01X || DEBUG_UART_PL01X
894926
default "debug/exynos.S" if DEBUG_EXYNOS_UART
927+
default "debug/efm32.S" if DEBUG_LL_UART_EFM32
895928
default "debug/icedcc.S" if DEBUG_ICEDCC
896929
default "debug/imx.S" if DEBUG_IMX1_UART || \
897930
DEBUG_IMX25_UART || \
@@ -902,11 +935,7 @@ config DEBUG_LL_INCLUDE
902935
DEBUG_IMX53_UART ||\
903936
DEBUG_IMX6Q_UART || \
904937
DEBUG_IMX6SL_UART
905-
default "debug/msm.S" if DEBUG_MSM_UART1 || \
906-
DEBUG_MSM_UART2 || \
907-
DEBUG_MSM_UART3 || \
908-
DEBUG_MSM8660_UART || \
909-
DEBUG_MSM8960_UART
938+
default "debug/msm.S" if DEBUG_MSM_UART
910939
default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
911940
default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
912941
default "debug/sti.S" if DEBUG_STI_UART
@@ -959,6 +988,7 @@ config DEBUG_UART_PHYS
959988
default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
960989
default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
961990
default 0x20201000 if DEBUG_BCM2835
991+
default 0x4000e400 if DEBUG_LL_UART_EFM32
962992
default 0x40090000 if ARCH_LPC32XX
963993
default 0x40100000 if DEBUG_PXA_UART1
964994
default 0x42000000 if ARCH_GEMINI
@@ -989,6 +1019,7 @@ config DEBUG_UART_PHYS
9891019
default 0xfff36000 if DEBUG_HIGHBANK_UART
9901020
default 0xfffff700 if ARCH_IOP33X
9911021
depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1022+
DEBUG_LL_UART_EFM32 || \
9921023
DEBUG_UART_8250 || DEBUG_UART_PL01X
9931024

9941025
config DEBUG_UART_VIRT

‎arch/arm/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ LDFLAGS :=
1616
LDFLAGS_vmlinux :=-p --no-undefined -X
1717
ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
1818
LDFLAGS_vmlinux += --be8
19+
LDFLAGS_MODULE += --be8
1920
endif
2021

2122
OBJCOPYFLAGS :=-O binary -R .comment -S

‎arch/arm/boot/compressed/head.S‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ start:
135135
.word _edata @ zImage end address
136136
THUMB( .thumb )
137137
1:
138+
ARM_BE8( setend be ) @ go BE8 if compiled for BE8
138139
mrs r9, cpsr
139140
#ifdef CONFIG_ARM_VIRT_EXT
140141
bl __hyp_stub_install @ get into SVC mode, reversibly
@@ -699,9 +700,7 @@ __armv4_mmu_cache_on:
699700
mrc p15, 0, r0, c1, c0, 0 @ read control reg
700701
orr r0, r0, #0x5000 @ I-cache enable, RR cache replacement
701702
orr r0, r0, #0x0030
702-
#ifdef CONFIG_CPU_ENDIAN_BE8
703-
orr r0, r0, #1 << 25 @ big-endian page tables
704-
#endif
703+
ARM_BE8( orr r0, r0, #1 << 25 ) @ big-endian page tables
705704
bl __common_mmu_cache_on
706705
mov r0, #0
707706
mcr p15, 0, r0, c8, c7, 0 @ flush I,D TLBs
@@ -728,9 +727,7 @@ __armv7_mmu_cache_on:
728727
orr r0, r0, #1 << 22 @ U (v6 unaligned access model)
729728
@ (needed for ARM1176)
730729
#ifdef CONFIG_MMU
731-
#ifdef CONFIG_CPU_ENDIAN_BE8
732-
orr r0, r0, #1 << 25 @ big-endian page tables
733-
#endif
730+
ARM_BE8( orr r0, r0, #1 << 25 ) @ big-endian page tables
734731
mrcne p15, 0, r6, c2, c0, 2 @ read ttb control reg
735732
orrne r0, r0, #1 @ MMU enabled
736733
movne r1, #0xfffffffd @ domain 0 = client

‎arch/arm/common/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ obj-$(CONFIG_MCPM) += mcpm_head.o mcpm_entry.o mcpm_platsmp.o vlock.o
1616
AFLAGS_mcpm_head.o := -march=armv7-a
1717
AFLAGS_vlock.o := -march=armv7-a
1818
obj-$(CONFIG_TI_PRIV_EDMA) += edma.o
19+
obj-$(CONFIG_BL_SWITCHER) += bL_switcher.o
20+
obj-$(CONFIG_BL_SWITCHER_DUMMY_IF) += bL_switcher_dummy_if.o

0 commit comments

Comments
 (0)