Skip to content

Commit eb3d3ec

Browse files
committed
Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into next
Pull ARM updates from Russell King: - Major clean-up of the L2 cache support code. The existing mess was becoming rather unmaintainable through all the additions that others have done over time. This turns it into a much nicer structure, and implements a few performance improvements as well. - Clean up some of the CP15 control register tweaks for alignment support, moving some code and data into alignment.c - DMA properties for ARM, from Santosh and reviewed by DT people. This adds DT properties to specify bus translations we can't discover automatically, and to indicate whether devices are coherent. - Hibernation support for ARM - Make ftrace work with read-only text in modules - add suspend support for PJ4B CPUs - rework interrupt masking for undefined instruction handling, which allows us to enable interrupts earlier in the handling of these exceptions. - support for big endian page tables - fix stacktrace support to exclude stacktrace functions from the trace, and add save_stack_trace_regs() implementation so that kprobes can record stack traces. - Add support for the Cortex-A17 CPU. - Remove last vestiges of ARM710 support. - Removal of ARM "meminfo" structure, finally converting us solely to memblock to handle the early memory initialisation. * 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (142 commits) ARM: ensure C page table setup code follows assembly code (part II) ARM: ensure C page table setup code follows assembly code ARM: consolidate last remaining open-coded alignment trap enable ARM: remove global cr_no_alignment ARM: remove CPU_CP15 conditional from alignment.c ARM: remove unused adjust_cr() function ARM: move "noalign" command line option to alignment.c ARM: provide common method to clear bits in CPU control register ARM: 8025/1: Get rid of meminfo ARM: 8060/1: mm: allow sub-architectures to override PCI I/O memory type ARM: 8066/1: correction for ARM patch 8031/2 ARM: 8049/1: ftrace/add save_stack_trace_regs() implementation ARM: 8065/1: remove last use of CONFIG_CPU_ARM710 ARM: 8062/1: Modify ldrt fixup handler to re-execute the userspace instruction ARM: 8047/1: rwsem: use asm-generic rwsem implementation ARM: l2c: trial at enabling some Cortex-A9 optimisations ARM: l2c: add warnings for stuff modifying aux_ctrl register values ARM: l2c: print a warning with L2C-310 caches if the cache size is modified ARM: l2c: remove old .set_debug method ARM: l2c: kill L2X0_AUX_CTRL_MASK before anyone else makes use of this ...
2 parents c3c55a0 + bd63ce2 commit eb3d3ec

141 files changed

Lines changed: 2411 additions & 1561 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.

‎Documentation/arm/memory.txt‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,9 @@ fffe8000 fffeffff DTCM mapping area for platforms with
4141
fffe0000 fffe7fff ITCM mapping area for platforms with
4242
ITCM mounted inside the CPU.
4343

44-
fff00000 fffdffff Fixmap mapping region. Addresses provided
44+
ffc00000 ffdfffff Fixmap mapping region. Addresses provided
4545
by fix_to_virt() will be located here.
4646

47-
ffc00000 ffefffff DMA memory mapping region. Memory returned
48-
by the dma_alloc_xxx functions will be
49-
dynamically mapped here.
50-
51-
ff000000 ffbfffff Reserved for future expansion of DMA
52-
mapping region.
53-
5447
fee00000 feffffff Mapping of PCI I/O space. This is a static
5548
mapping within the vmalloc space.
5649

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Required properties:
88

99
- compatible : should be one of
1010
"arm,armv8-pmuv3"
11+
"arm,cortex-a17-pmu"
1112
"arm,cortex-a15-pmu"
1213
"arm,cortex-a12-pmu"
1314
"arm,cortex-a9-pmu"

‎arch/arm/Kconfig‎

Lines changed: 6 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,9 @@ config TRACE_IRQFLAGS_SUPPORT
165165
bool
166166
default y
167167

168-
config RWSEM_GENERIC_SPINLOCK
169-
bool
170-
default y
171-
172168
config RWSEM_XCHGADD_ALGORITHM
173169
bool
170+
default y
174171

175172
config ARCH_HAS_ILOG2_U32
176173
bool
@@ -1089,11 +1086,6 @@ source "arch/arm/firmware/Kconfig"
10891086

10901087
source arch/arm/mm/Kconfig
10911088

1092-
config ARM_NR_BANKS
1093-
int
1094-
default 16 if ARCH_EP93XX
1095-
default 8
1096-
10971089
config IWMMXT
10981090
bool "Enable iWMMXt support"
10991091
depends on CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_PJ4 || CPU_PJ4B
@@ -1214,19 +1206,6 @@ config ARM_ERRATA_742231
12141206
register of the Cortex-A9 which reduces the linefill issuing
12151207
capabilities of the processor.
12161208

1217-
config PL310_ERRATA_588369
1218-
bool "PL310 errata: Clean & Invalidate maintenance operations do not invalidate clean lines"
1219-
depends on CACHE_L2X0
1220-
help
1221-
The PL310 L2 cache controller implements three types of Clean &
1222-
Invalidate maintenance operations: by Physical Address
1223-
(offset 0x7F0), by Index/Way (0x7F8) and by Way (0x7FC).
1224-
They are architecturally defined to behave as the execution of a
1225-
clean operation followed immediately by an invalidate operation,
1226-
both performing to the same memory location. This functionality
1227-
is not correctly implemented in PL310 as clean lines are not
1228-
invalidated as a result of these operations.
1229-
12301209
config ARM_ERRATA_643719
12311210
bool "ARM errata: LoUIS bit field in CLIDR register is incorrect"
12321211
depends on CPU_V7 && SMP
@@ -1249,17 +1228,6 @@ config ARM_ERRATA_720789
12491228
tables. The workaround changes the TLB flushing routines to invalidate
12501229
entries regardless of the ASID.
12511230

1252-
config PL310_ERRATA_727915
1253-
bool "PL310 errata: Background Clean & Invalidate by Way operation can cause data corruption"
1254-
depends on CACHE_L2X0
1255-
help
1256-
PL310 implements the Clean & Invalidate by Way L2 cache maintenance
1257-
operation (offset 0x7FC). This operation runs in background so that
1258-
PL310 can handle normal accesses while it is in progress. Under very
1259-
rare circumstances, due to this erratum, write data can be lost when
1260-
PL310 treats a cacheable write transaction during a Clean &
1261-
Invalidate by Way operation.
1262-
12631231
config ARM_ERRATA_743622
12641232
bool "ARM errata: Faulty hazard checking in the Store Buffer may lead to data corruption"
12651233
depends on CPU_V7
@@ -1285,21 +1253,6 @@ config ARM_ERRATA_751472
12851253
operation is received by a CPU before the ICIALLUIS has completed,
12861254
potentially leading to corrupted entries in the cache or TLB.
12871255

1288-
config PL310_ERRATA_753970
1289-
bool "PL310 errata: cache sync operation may be faulty"
1290-
depends on CACHE_PL310
1291-
help
1292-
This option enables the workaround for the 753970 PL310 (r3p0) erratum.
1293-
1294-
Under some condition the effect of cache sync operation on
1295-
the store buffer still remains when the operation completes.
1296-
This means that the store buffer is always asked to drain and
1297-
this prevents it from merging any further writes. The workaround
1298-
is to replace the normal offset of cache sync operation (0x730)
1299-
by another offset targeting an unmapped PL310 register 0x740.
1300-
This has the same effect as the cache sync operation: store buffer
1301-
drain and waiting for all buffers empty.
1302-
13031256
config ARM_ERRATA_754322
13041257
bool "ARM errata: possible faulty MMU translations following an ASID switch"
13051258
depends on CPU_V7
@@ -1348,18 +1301,6 @@ config ARM_ERRATA_764369
13481301
relevant cache maintenance functions and sets a specific bit
13491302
in the diagnostic control register of the SCU.
13501303

1351-
config PL310_ERRATA_769419
1352-
bool "PL310 errata: no automatic Store Buffer drain"
1353-
depends on CACHE_L2X0
1354-
help
1355-
On revisions of the PL310 prior to r3p2, the Store Buffer does
1356-
not automatically drain. This can cause normal, non-cacheable
1357-
writes to be retained when the memory system is idle, leading
1358-
to suboptimal I/O performance for drivers using coherent DMA.
1359-
This option adds a write barrier to the cpu_idle loop so that,
1360-
on systems with an outer cache, the store buffer is drained
1361-
explicitly.
1362-
13631304
config ARM_ERRATA_775420
13641305
bool "ARM errata: A data cache maintenance operation which aborts, might lead to deadlock"
13651306
depends on CPU_V7
@@ -2279,6 +2220,11 @@ config ARCH_SUSPEND_POSSIBLE
22792220
config ARM_CPU_SUSPEND
22802221
def_bool PM_SLEEP
22812222

2223+
config ARCH_HIBERNATION_POSSIBLE
2224+
bool
2225+
depends on MMU
2226+
default y if ARCH_SUSPEND_POSSIBLE
2227+
22822228
endmenu
22832229

22842230
source "net/Kconfig"

‎arch/arm/boot/compressed/atags_to_fdt.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#define do_extend_cmdline 0
88
#endif
99

10+
#define NR_BANKS 16
11+
1012
static int node_offset(void *fdt, const char *node_path)
1113
{
1214
int offset = fdt_path_offset(fdt, node_path);

‎arch/arm/boot/dts/marco.dtsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
ranges = <0x40000000 0x40000000 0xa0000000>;
3737

3838
l2-cache-controller@c0030000 {
39-
compatible = "sirf,marco-pl310-cache", "arm,pl310-cache";
39+
compatible = "arm,pl310-cache";
4040
reg = <0xc0030000 0x1000>;
4141
interrupts = <0 59 0>;
4242
arm,tag-latency = <1 1 1>;

‎arch/arm/boot/dts/prima2.dtsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
ranges = <0x40000000 0x40000000 0x80000000>;
4949

5050
l2-cache-controller@80040000 {
51-
compatible = "arm,pl310-cache", "sirf,prima2-pl310-cache";
51+
compatible = "arm,pl310-cache";
5252
reg = <0x80040000 0x1000>;
5353
interrupts = <59>;
5454
arm,tag-latency = <1 1 1>;

‎arch/arm/common/mcpm_entry.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ void mcpm_cpu_power_down(void)
106106
BUG();
107107
}
108108

109-
int mcpm_cpu_power_down_finish(unsigned int cpu, unsigned int cluster)
109+
int mcpm_wait_for_cpu_powerdown(unsigned int cpu, unsigned int cluster)
110110
{
111111
int ret;
112112

113-
if (WARN_ON_ONCE(!platform_ops || !platform_ops->power_down_finish))
113+
if (WARN_ON_ONCE(!platform_ops || !platform_ops->wait_for_powerdown))
114114
return -EUNATCH;
115115

116-
ret = platform_ops->power_down_finish(cpu, cluster);
116+
ret = platform_ops->wait_for_powerdown(cpu, cluster);
117117
if (ret)
118118
pr_warn("%s: cpu %u, cluster %u failed to power down (%d)\n",
119119
__func__, cpu, cluster, ret);

‎arch/arm/common/mcpm_platsmp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int mcpm_cpu_kill(unsigned int cpu)
6262

6363
cpu_to_pcpu(cpu, &pcpu, &pcluster);
6464

65-
return !mcpm_cpu_power_down_finish(pcpu, pcluster);
65+
return !mcpm_wait_for_cpu_powerdown(pcpu, pcluster);
6666
}
6767

6868
static int mcpm_cpu_disable(unsigned int cpu)

‎arch/arm/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ generic-y += parport.h
2121
generic-y += poll.h
2222
generic-y += preempt.h
2323
generic-y += resource.h
24+
generic-y += rwsem.h
2425
generic-y += sections.h
2526
generic-y += segment.h
2627
generic-y += sembuf.h

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
* you cannot return to the original mode.
313313
*/
314314
.macro safe_svcmode_maskall reg:req
315-
#if __LINUX_ARM_ARCH__ >= 6
315+
#if __LINUX_ARM_ARCH__ >= 6 && !defined(CONFIG_CPU_V7M)
316316
mrs \reg , cpsr
317317
eor \reg, \reg, #HYP_MODE
318318
tst \reg, #MODE_MASK

0 commit comments

Comments
 (0)