Skip to content

Commit 35c5568

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Catalin Marinas: - Fix occasional page fault during boot due to memblock resizing before the linear map is up. - Define NET_IP_ALIGN to 0 to improve the DMA performance on some platforms. - lib/raid6 test build fix. - .mailmap update for Punit Agrawal * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: memblock: don't permit memblock resizing until linear mapping is up arm64: mm: define NET_IP_ALIGN to 0 lib/raid6: Fix arm64 test build mailmap: Update email for Punit Agrawal
2 parents d5335b3 + 24cc61d commit 35c5568

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ Peter Oruba <peter@oruba.de>
159159
Peter Oruba <peter.oruba@amd.com>
160160
Pratyush Anand <pratyush.anand@gmail.com> <pratyush.anand@st.com>
161161
Praveen BP <praveenbp@ti.com>
162+
Punit Agrawal <punitagrawal@gmail.com> <punit.agrawal@arm.com>
162163
Qais Yousef <qsyousef@gmail.com> <qais.yousef@imgtec.com>
163164
Oleksij Rempel <linux@rempel-privat.de> <bug-track@fisher-privat.net>
164165
Oleksij Rempel <linux@rempel-privat.de> <external.Oleksij.Rempel@de.bosch.com>

arch/arm64/include/asm/processor.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
#define KERNEL_DS UL(-1)
2525
#define USER_DS (TASK_SIZE_64 - 1)
2626

27+
/*
28+
* On arm64 systems, unaligned accesses by the CPU are cheap, and so there is
29+
* no point in shifting all network buffers by 2 bytes just to make some IP
30+
* header fields appear aligned in memory, potentially sacrificing some DMA
31+
* performance on some platforms.
32+
*/
33+
#define NET_IP_ALIGN 0
34+
2735
#ifndef __ASSEMBLY__
2836
#ifdef __KERNEL__
2937

arch/arm64/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,6 @@ void __init arm64_memblock_init(void)
483483
high_memory = __va(memblock_end_of_DRAM() - 1) + 1;
484484

485485
dma_contiguous_reserve(arm64_dma_phys_limit);
486-
487-
memblock_allow_resize();
488486
}
489487

490488
void __init bootmem_init(void)

arch/arm64/mm/mmu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ void __init paging_init(void)
659659

660660
memblock_free(__pa_symbol(init_pg_dir),
661661
__pa_symbol(init_pg_end) - __pa_symbol(init_pg_dir));
662+
663+
memblock_allow_resize();
662664
}
663665

664666
/*

lib/raid6/test/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ifeq ($(ARCH),arm)
2727
CFLAGS += -I../../../arch/arm/include -mfpu=neon
2828
HAS_NEON = yes
2929
endif
30-
ifeq ($(ARCH),arm64)
30+
ifeq ($(ARCH),aarch64)
3131
CFLAGS += -I../../../arch/arm64/include
3232
HAS_NEON = yes
3333
endif
@@ -41,7 +41,7 @@ ifeq ($(IS_X86),yes)
4141
gcc -c -x assembler - >&/dev/null && \
4242
rm ./-.o && echo -DCONFIG_AS_AVX512=1)
4343
else ifeq ($(HAS_NEON),yes)
44-
OBJS += neon.o neon1.o neon2.o neon4.o neon8.o
44+
OBJS += neon.o neon1.o neon2.o neon4.o neon8.o recov_neon.o recov_neon_inner.o
4545
CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1
4646
else
4747
HAS_ALTIVEC := $(shell printf '\#include <altivec.h>\nvector int a;\n' |\

0 commit comments

Comments
 (0)