Skip to content

Commit de06dbf

Browse files
committed
Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Pull ARM updates from Russell King: "Another mixture of changes this time around: - Split XIP linker file from main linker file to make it more maintainable, and various XIP fixes, and clean up a resulting macro. - Decompressor cleanups from Masahiro Yamada - Avoid printing an error for a missing L2 cache - Remove some duplicated symbols in System.map, and move vectors/stubs back into kernel VMA - Various low priority fixes from Arnd - Updates to allow bus match functions to return negative errno values, touching some drivers and the driver core. Greg has acked these changes. - Virtualisation platform udpates form Jean-Philippe Brucker. - Security enhancements from Kees Cook - Rework some Kconfig dependencies and move PSCI idle management code out of arch/arm into drivers/firmware/psci.c - ARM DMA mapping updates, touching media, acked by Mauro. - Fix places in ARM code which should be using virt_to_idmap() so that Keystone2 can work. - Fix Marvell Tauros2 to work again with non-DT boots. - Provide a delay timer for ARM Orion platforms" * 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (45 commits) ARM: 8546/1: dma-mapping: refactor to fix coherent+cma+gfp=0 ARM: 8547/1: dma-mapping: store buffer information ARM: 8543/1: decompressor: rename suffix_y to compress-y ARM: 8542/1: decompressor: merge piggy.*.S and simplify Makefile ARM: 8541/1: decompressor: drop redundant FORCE in Makefile ARM: 8540/1: decompressor: use clean-files instead of extra-y to clean files ARM: 8539/1: decompressor: drop more unneeded assignments to "targets" ARM: 8538/1: decompressor: drop unneeded assignments to "targets" ARM: 8532/1: uncompress: mark putc as inline ARM: 8531/1: turn init_new_context into an inline function ARM: 8530/1: remove VIRT_TO_BUS ARM: 8537/1: drop unused DEBUG_RODATA from XIP_KERNEL ARM: 8536/1: mm: hide __start_rodata_section_aligned for non-debug builds ARM: 8535/1: mm: DEBUG_RODATA makes no sense with XIP_KERNEL ARM: 8534/1: virt: fix hyp-stub build for pre-ARMv7 CPUs ARM: make the physical-relative calculation more obvious ARM: 8512/1: proc-v7.S: Adjust stack address when XIP_KERNEL ARM: 8411/1: Add default SPARSEMEM settings ARM: 8503/1: clk_register_clkdev: remove format string interface ARM: 8529/1: remove 'i' and 'zi' targets ...
2 parents b31a3bc + 1b3bf84 commit de06dbf

57 files changed

Lines changed: 969 additions & 377 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/DMA-attributes.txt‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,29 @@ allocated by dma_alloc_attrs() function from individual pages if it can
100100
be mapped as contiguous chunk into device dma address space. By
101101
specifying this attribute the allocated buffer is forced to be contiguous
102102
also in physical memory.
103+
104+
DMA_ATTR_ALLOC_SINGLE_PAGES
105+
---------------------------
106+
107+
This is a hint to the DMA-mapping subsystem that it's probably not worth
108+
the time to try to allocate memory to in a way that gives better TLB
109+
efficiency (AKA it's not worth trying to build the mapping out of larger
110+
pages). You might want to specify this if:
111+
- You know that the accesses to this memory won't thrash the TLB.
112+
You might know that the accesses are likely to be sequential or
113+
that they aren't sequential but it's unlikely you'll ping-pong
114+
between many addresses that are likely to be in different physical
115+
pages.
116+
- You know that the penalty of TLB misses while accessing the
117+
memory will be small enough to be inconsequential. If you are
118+
doing a heavy operation like decryption or decompression this
119+
might be the case.
120+
- You know that the DMA mapping is fairly transitory. If you expect
121+
the mapping to have a short lifetime then it may be worth it to
122+
optimize allocation (avoid coming up with large pages) instead of
123+
getting the slight performance win of larger pages.
124+
Setting this hint doesn't guarantee that you won't get huge pages, but it
125+
means that we won't try quite as hard to get them.
126+
127+
NOTE: At the moment DMA_ATTR_ALLOC_SINGLE_PAGES is only implemented on ARM,
128+
though ARM64 patches will likely be posted soon.

‎Documentation/driver-model/porting.txt‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,10 @@ comparison:
340340

341341
int (*match)(struct device * dev, struct device_driver * drv);
342342

343-
match should return '1' if the driver supports the device, and '0'
344-
otherwise.
343+
match should return positive value if the driver supports the device,
344+
and zero otherwise. It may also return error code (for example
345+
-EPROBE_DEFER) if determining that given driver supports the device is
346+
not possible.
345347

346348
When a device is registered, the bus's list of drivers is iterated
347349
over. bus->match() is called for each one until a match is found.

‎arch/arm/Kconfig‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,6 @@ config ARCH_RPC
572572
select NEED_MACH_IO_H
573573
select NEED_MACH_MEMORY_H
574574
select NO_IOPORT_MAP
575-
select VIRT_TO_BUS
576575
help
577576
On the Acorn Risc-PC, Linux can support the internal IDE disk and
578577
CD-ROM interface, serial and parallel port, and the floppy drive.
@@ -1336,7 +1335,6 @@ config BIG_LITTLE
13361335
config BL_SWITCHER
13371336
bool "big.LITTLE switcher support"
13381337
depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC
1339-
select ARM_CPU_SUSPEND
13401338
select CPU_PM
13411339
help
13421340
The big.LITTLE "switcher" provides the core functionality to
@@ -2110,7 +2108,8 @@ config ARCH_SUSPEND_POSSIBLE
21102108
def_bool y
21112109

21122110
config ARM_CPU_SUSPEND
2113-
def_bool PM_SLEEP
2111+
def_bool PM_SLEEP || BL_SWITCHER || ARM_PSCI_FW
2112+
depends on ARCH_SUSPEND_POSSIBLE
21142113

21152114
config ARCH_HIBERNATION_POSSIBLE
21162115
bool

‎arch/arm/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ archclean:
352352

353353
# My testing targets (bypasses dependencies)
354354
bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage
355-
i zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
356355

357356

358357
define archhelp

‎arch/arm/boot/Makefile‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ $(obj)/bootpImage: $(obj)/bootp/bootp FORCE
8888
$(call if_changed,objcopy)
8989
@$(kecho) ' Kernel: $@ is ready'
9090

91-
PHONY += initrd FORCE
91+
PHONY += initrd
9292
initrd:
9393
@test "$(INITRD_PHYS)" != "" || \
9494
(echo This machine does not support INITRD; exit -1)
@@ -107,12 +107,4 @@ uinstall:
107107
$(CONFIG_SHELL) $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" \
108108
$(obj)/uImage System.map "$(INSTALL_PATH)"
109109

110-
zi:
111-
$(CONFIG_SHELL) $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" \
112-
$(obj)/zImage System.map "$(INSTALL_PATH)"
113-
114-
i:
115-
$(CONFIG_SHELL) $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" \
116-
$(obj)/Image System.map "$(INSTALL_PATH)"
117-
118110
subdir- := bootp compressed dts

‎arch/arm/boot/compressed/.gitignore‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ bswapsdi2.S
33
font.c
44
lib1funcs.S
55
hyp-stub.S
6-
piggy.gzip
7-
piggy.lzo
8-
piggy.lzma
9-
piggy.xzkern
10-
piggy.lz4
6+
piggy_data
117
vmlinux
128
vmlinux.lds
139

‎arch/arm/boot/compressed/Makefile‎

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ endif
6666

6767
CPPFLAGS_vmlinux.lds := -DTEXT_START="$(ZTEXTADDR)" -DBSS_START="$(ZBSSADDR)"
6868

69-
suffix_$(CONFIG_KERNEL_GZIP) = gzip
70-
suffix_$(CONFIG_KERNEL_LZO) = lzo
71-
suffix_$(CONFIG_KERNEL_LZMA) = lzma
72-
suffix_$(CONFIG_KERNEL_XZ) = xzkern
73-
suffix_$(CONFIG_KERNEL_LZ4) = lz4
69+
compress-$(CONFIG_KERNEL_GZIP) = gzip
70+
compress-$(CONFIG_KERNEL_LZO) = lzo
71+
compress-$(CONFIG_KERNEL_LZMA) = lzma
72+
compress-$(CONFIG_KERNEL_XZ) = xzkern
73+
compress-$(CONFIG_KERNEL_LZ4) = lz4
7474

7575
# Borrowed libfdt files for the ATAG compatibility mode
7676

@@ -89,15 +89,12 @@ ifeq ($(CONFIG_ARM_ATAG_DTB_COMPAT),y)
8989
OBJS += $(libfdt_objs) atags_to_fdt.o
9090
endif
9191

92-
targets := vmlinux vmlinux.lds \
93-
piggy.$(suffix_y) piggy.$(suffix_y).o \
94-
lib1funcs.o lib1funcs.S ashldi3.o ashldi3.S bswapsdi2.o \
95-
bswapsdi2.S font.o font.c head.o misc.o $(OBJS)
92+
targets := vmlinux vmlinux.lds piggy_data piggy.o \
93+
lib1funcs.o ashldi3.o bswapsdi2.o \
94+
head.o $(OBJS)
9695

97-
# Make sure files are removed during clean
98-
extra-y += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern piggy.lz4 \
99-
lib1funcs.S ashldi3.S bswapsdi2.S $(libfdt) $(libfdt_hdrs) \
100-
hyp-stub.S
96+
clean-files += piggy_data lib1funcs.S ashldi3.S bswapsdi2.S \
97+
$(libfdt) $(libfdt_hdrs) hyp-stub.S
10198

10299
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
103100

@@ -178,17 +175,17 @@ fi
178175

179176
efi-obj-$(CONFIG_EFI_STUB) := $(objtree)/drivers/firmware/efi/libstub/lib.a
180177

181-
$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \
178+
$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.o \
182179
$(addprefix $(obj)/, $(OBJS)) $(lib1funcs) $(ashldi3) \
183180
$(bswapsdi2) $(efi-obj-y) FORCE
184181
@$(check_for_multiple_zreladdr)
185182
$(call if_changed,ld)
186183
@$(check_for_bad_syms)
187184

188-
$(obj)/piggy.$(suffix_y): $(obj)/../Image FORCE
189-
$(call if_changed,$(suffix_y))
185+
$(obj)/piggy_data: $(obj)/../Image FORCE
186+
$(call if_changed,$(compress-y))
190187

191-
$(obj)/piggy.$(suffix_y).o: $(obj)/piggy.$(suffix_y) FORCE
188+
$(obj)/piggy.o: $(obj)/piggy_data
192189

193190
CFLAGS_font.o := -Dstatic=
194191

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.section .piggydata,#alloc
22
.globl input_data
33
input_data:
4-
.incbin "arch/arm/boot/compressed/piggy.gzip"
4+
.incbin "arch/arm/boot/compressed/piggy_data"
55
.globl input_data_end
66
input_data_end:

‎arch/arm/boot/compressed/piggy.lz4.S‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎arch/arm/boot/compressed/piggy.lzma.S‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)