Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
3d727a9
media: v4l2-compat-ioctl32: don't oops on overlay
mchehab Mar 28, 2018
f764b4b
parisc: Fix out of array access in match_pci_device()
hdeller Mar 25, 2018
45474be
perf intel-pt: Fix overlap detection to identify consecutive buffers …
ahunter6 Mar 7, 2018
ac9a45b
perf intel-pt: Fix sync_switch
ahunter6 Mar 7, 2018
1c1958d
perf intel-pt: Fix error recovery from missing TIP packet
ahunter6 Mar 7, 2018
3202da2
perf intel-pt: Fix timestamp following overflow
ahunter6 Mar 7, 2018
c28bf8b
radeon: hide pointless #warning when compile testing
arndb Feb 16, 2018
26dae08
Revert "perf tests: Decompress kernel module before objdump"
gregkh Apr 17, 2018
1dbb6de
block/loop: fix deadlock after loop_set_status
Apr 6, 2018
30bd1bc
s390/qdio: don't retry EQBS after CCQ 96
julianwiedmann Mar 5, 2018
ca8786d
s390/qdio: don't merge ERROR output buffers
julianwiedmann Mar 7, 2018
f00138e
s390/ipl: ensure loadparm valid flag is set
Apr 3, 2018
cd7a7a3
getname_kernel() needs to make sure that ->name != ->iname in long case
Apr 8, 2018
46ecb91
rtl8187: Fix NULL pointer dereference in priv->conf_mutex
Feb 15, 2018
5cb59b7
hwmon: (ina2xx) Fix access to uninitialized mutex
mszyprow Jan 15, 2018
596aeb0
cdc_ether: flag the Cinterion AHS8 modem by gemalto as WWAN
Apr 11, 2018
495e6f8
slip: Check if rstate is initialized before uncompressing
Apr 11, 2018
e9aa057
lan78xx: Correctly indicate invalid OTP
Apr 11, 2018
ae666c1
x86/hweight: Get rid of the special calling convention
suryasaimadhu May 30, 2016
cbca61d
x86/hweight: Don't clobber %rdi
vsyrjala Aug 8, 2016
cf5b4c9
tty: make n_tty_read() always abort if hangup is in progress
htejun Feb 13, 2018
8935dd0
ubifs: Check ubifs_wbuf_sync() return code
richardweinberger Jan 17, 2018
4554442
ubi: fastmap: Don't flush fastmap work on detach
richardweinberger Jan 17, 2018
4185449
ubi: Fix error for write access
romain-izard-pro Jan 29, 2018
e814ac3
ubi: Reject MLC NAND
richardweinberger Mar 3, 2018
d06ac74
fs/reiserfs/journal.c: add missing resierfs_warning() arg
akpm00 Apr 10, 2018
ff9194f
resource: fix integer overflow at reallocation
tiwai Apr 13, 2018
80a6e1f
ipc/shm: fix use-after-free of shm file via remap_file_pages()
ebiggers Apr 13, 2018
2ed9533
mm, slab: reschedule cache_reap() on the same CPU
tehcaster Apr 13, 2018
ea37c27
usb: musb: gadget: misplaced out of bounds check
xypron Mar 29, 2018
ecd76e9
ARM: dts: at91: at91sam9g25: fix mux-mask pinctrl property
noglitch Mar 13, 2018
1276dc3
ARM: dts: at91: sama5d4: fix pinctrl compatible string
sestebanz Jan 18, 2018
7335e81
xen-netfront: Fix hang on device removal
jandryuk Feb 28, 2018
398b633
regmap: Fix reversed bounds check in regmap_raw_write()
Feb 8, 2018
872a207
ACPI / video: Add quirk to force acpi-video backlight on Samsung 670Z5E
jwrdegoede Mar 19, 2018
c641600
ACPI / hotplug / PCI: Check presence of slot itself in get_slot_status()
westeri Feb 12, 2018
18fec1a
USB:fix USB3 devices behind USB3 hubs not resuming at hibernate thaw
ZhengjunXing Mar 21, 2018
e649360
HID: i2c-hid: fix size check and type usage
pyma1 Jan 8, 2018
22eb91f
powerpc/powernv: Handle unknown OPAL errors in opal_nvram_write()
npiggin Mar 26, 2018
70670c0
powerpc/64: Fix smp_wmb barrier definition use use lwsync consistently
npiggin Mar 22, 2018
8878306
powerpc/powernv: define a standard delay for OPAL_BUSY type retry loops
npiggin Apr 10, 2018
03248f7
powerpc/powernv: Fix OPAL NVRAM driver OPAL_BUSY loops
npiggin Apr 10, 2018
f9a0ece
HID: Fix hid_report_len usage
pyma1 Feb 3, 2018
53ce3f1
HID: core: Fix size as type u32
pyma1 Jan 8, 2018
99081e6
ASoC: ssm2602: Replace reg_default_raw with reg_default
kellyjp Mar 19, 2018
7c990b1
thunderbolt: Resume control channel after hibernation image is created
westeri Dec 19, 2017
98d2bc5
jbd2: if the journal is aborted then don't allow update of the log tail
tytso Feb 19, 2018
37e9985
ext4: don't update checksum of new initialized bitmaps
tytso Feb 19, 2018
3cb7f40
ext4: fail ext4_iget for root directory if unallocated
tytso Mar 30, 2018
3951dc4
RDMA/ucma: Don't allow setting RDMA_OPTION_IB_PATH without an RDMA de…
rolandd Apr 3, 2018
1cd391e
ALSA: pcm: Fix UAF at PCM release via PCM timer access
tiwai Apr 2, 2018
fd86611
IB/srp: Fix srp_abort()
KAGA-KOKO Feb 23, 2018
3fe0ee0
IB/srp: Fix completion vector assignment algorithm
KAGA-KOKO Feb 12, 2018
b325b61
dmaengine: at_xdmac: fix rare residue corruption
Feb 22, 2018
b853de5
um: Use POSIX ucontext_t instead of struct ucontext
Nov 15, 2017
d627739
iommu/vt-d: Fix a potential memory leak
LuBaolu Feb 24, 2018
0a0521d
mmc: jz4740: Fix race condition in IRQ mask update
Mar 28, 2018
67fac59
clk: mvebu: armada-38x: add support for 1866MHz variants
seragh May 24, 2017
d39fa1f
clk: mvebu: armada-38x: add support for missing clocks
rgenoud Mar 13, 2018
cf75e67
clk: bcm2835: De-assert/assert PLL reset signal when appropriate
Mar 22, 2018
87841ea
thermal: imx: Fix race condition in imx_thermal_probe()
Feb 2, 2018
b5d2de8
watchdog: f71808e_wdt: Fix WD_EN register read
ipylypiv Mar 7, 2018
7f05fd4
ALSA: oss: consolidate kmalloc/memset 0 call to kzalloc
Dec 19, 2015
ade7e36
ALSA: pcm: Use ERESTARTSYS instead of EINTR in OSS emulation
tiwai Jan 9, 2018
3f7ee12
ALSA: pcm: Avoid potential races between OSS ioctls and read/write
tiwai Mar 22, 2018
3c32bf7
ALSA: pcm: Return -EBUSY for OSS ioctls changing busy streams
tiwai Mar 23, 2018
e61d8da
ALSA: pcm: Fix mutex unbalance in OSS emulation ioctls
tiwai Mar 27, 2018
4e8e49e
ALSA: pcm: Fix endless loop for XRUN recovery in OSS emulation
tiwai Apr 7, 2018
d404f24
vfio-pci: Virtualize PCIe & AF FLR
Sep 26, 2016
56af20b
vfio/pci: Virtualize Maximum Payload Size
Oct 2, 2017
a4a4501
vfio/pci: Virtualize Maximum Read Request Size
Oct 2, 2017
35a1c42
ext4: don't allow r/w mounts if metadata blocks overlap the superblock
tytso Mar 30, 2018
7a12103
drm/radeon: Fix PCIe lane width calculation
lostdistance Apr 2, 2016
0181bea
ext4: fix crashes in dioread_nolock mode
jankara Feb 19, 2016
c8d619e
ext4: fix deadlock between inline_data and ext4_expand_extra_isize_ea()
tytso Jan 12, 2017
5311a5a
ALSA: line6: Use correct endpoint type for midi output
Apr 12, 2018
df87f5b
ALSA: rawmidi: Fix missing input substream checks in compat ioctls
tiwai Apr 19, 2018
67af511
ALSA: hda - New VIA controller suppor no-snoop path
Apr 16, 2018
293c938
HID: hidraw: Fix crash on HIDIOCGFEATURE with a destroyed device
rodrigorc Apr 5, 2018
8ef0c74
MIPS: uaccess: Add micromips clobbers to bzero invocation
mpredfearn Apr 17, 2018
5add579
MIPS: memset.S: EVA & fault support for small_memset
mpredfearn Mar 29, 2018
9937222
MIPS: memset.S: Fix return of __clear_user from Lpartial_fixup
mpredfearn Apr 17, 2018
26d81ee
MIPS: memset.S: Fix clobber of v1 in last_fixup
mpredfearn Apr 17, 2018
d202b90
powerpc/eeh: Fix enabling bridge MMIO windows
mikey Apr 11, 2018
c40f2ed
powerpc/lib: Fix off-by-one in alternate feature patching
mpe Apr 16, 2018
7a69426
jffs2_kill_sb(): deal with failed allocations
Apr 3, 2018
062b025
hypfs_kill_super(): deal with failed allocations
Apr 3, 2018
4628aff
rpc_pipefs: fix double-dput()
Apr 3, 2018
0bc9692
Don't leak MNT_INTERNAL away from internal mounts
Apr 20, 2018
a66b813
autofs: mount point create should honour passed in mode
raven-au Apr 20, 2018
db63c6f
mm: allow GFP_{FS,IO} for page_cache_read page cache allocation
Jan 14, 2016
98b3413
mm/filemap.c: fix NULL pointer in page_cache_tree_insert()
Apr 20, 2018
6fa4b6d
ext4: bugfix for mmaped pages in mpage_release_unused_pages()
wangguang55 Sep 15, 2016
d7f5b45
fanotify: fix logic of events on child
amir73il Apr 4, 2018
05c9050
writeback: safer lock nesting
gthelen Apr 20, 2018
5dc6f8b
Linux 4.4.129
gregkh Apr 24, 2018
a5918eb
AIO: Don't plug the I/O queue in do_io_submit()
kleikamp Dec 15, 2011
a73161f
PM: devfreq: Use high priority workqueue
Jan 8, 2014
d3503a7
binfmt_elf.c: use get_random_int() to fix entropy depleting
pibroch Jan 5, 2013
0e496a2
staging: binder - Set binder_debug_mask=0 to suppress logging
Aug 12, 2016
4a0e7d0
op5: Add state notifier driver
neobuddy89 Mar 20, 2016
31bf878
state_notifier: Enable by default
May 11, 2017
5eaa785
state_notifier: Queue work on any core
May 11, 2017
8a48159
state_notifier: Reduce defer on suspend call to 1 second
May 11, 2017
f084f73
state_notifier: Make workqueues unbound
neobuddy89 Jun 19, 2017
af6e6e1
Revert "add O3 clangs"
UchihaDev May 1, 2018
f3b7882
Revert "Add O3 optimization"
UchihaDev May 1, 2018
f50fef0
Revert "more optimizations"
UchihaDev May 1, 2018
196018c
Makefile: add build tweaks
acuicultor Apr 29, 2018
43aeaa6
net: sch_generic: Remove unnecessary watchdog warning
kerneltoast Feb 4, 2018
2849c95
staging: Add frandom RNG driver
savoca Mar 27, 2015
bad1137
staging: frandom: Dynamically allocate the char device numbers
savoca Mar 29, 2015
5753ff5
staging: frandom: Clear up checkpatch conflicts
savoca Mar 29, 2015
5a713ed
drivers: Upgrade frandom from staging
savoca Apr 2, 2015
2ed6460
upgrade frandom to latest
Meninblack007 Jan 17, 2016
3781cf7
Enable Frandom
UchihaDev May 1, 2018
285d189
int_sqrt.c: Correction square root algo with naming
ramgear Sep 3, 2013
b04f536
int_sqrt: Improve 3x faster integer sqrt.
ramgear Sep 4, 2013
871b93b
cpu: Silence log spam when a CPU is brought up
kerneltoast Jan 3, 2018
ba7f113
Makefile: use ccache
acuicultor Apr 30, 2018
9533468
defconfig: make all builtin
engstk Apr 28, 2018
e82afe0
defconfig: enable missing filesystem options
engstk Apr 28, 2018
712210d
include: asm-generic: do not hard code HZ to 100
amartinz Aug 14, 2017
a68b9ff
Revert "Enable WireGuard and Permessive SELINUX"
UchihaDev May 2, 2018
7c0709d
net/wireguard: add to tree via updater mechanism
zx2c4 Dec 12, 2017
cf9175d
sched/core: rebase on aosp
UchihaDev May 2, 2018
5dc8158
sched/cpudeadline: rebase on aosp
UchihaDev May 2, 2018
a9c921e
sched/cpudeadline.h: rebase on aosp
UchihaDev May 2, 2018
184ecdf
sched/cputime: rebase on aosp
UchihaDev May 2, 2018
8ac821d
sched/deadline: rebase on aosp
UchihaDev May 2, 2018
abc17cf
sched/debug: rebase on aosp
UchihaDev May 2, 2018
59441b3
sched/energy: rebase on aosp
UchihaDev May 2, 2018
4eb4f4c
sched/fair: rebase on aosp (not complete)
UchihaDev May 2, 2018
b976094
sched/fair: rebase aosp (all aosp)
UchihaDev May 2, 2018
1ef6bf6
sched/features: rebase on aosp
UchihaDev May 2, 2018
3a25874
sched/loadavg: rebase on aosp
UchihaDev May 2, 2018
a8eefde
sched/rt: rebase on aosp
UchihaDev May 2, 2018
70bf6c3
sched/sched.h: rebase on aosp
UchihaDev May 2, 2018
01df121
sched/stats: rebase on aosp
UchihaDev May 2, 2018
688c165
delete kernel/sched/swait.c
UchihaDev May 2, 2018
8d0fd18
sched/tune: rebase on aosp
UchihaDev May 2, 2018
8f0f8d3
sched/walt: rebase on aosp
UchihaDev May 2, 2018
306643c
sched/Makefile: rebase on aosp
UchihaDev May 2, 2018
b5c69cd
sched/tune: rebase on aosp
UchihaDev May 2, 2018
b9b98e6
Revert "cpu-boost: Implement Dynamic SchedTune Boost v3"
UchihaDev May 2, 2018
cf2ad33
Kernel/sched rebase complete
UchihaDev May 2, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
drivers/hisi/tzdriver/cfc_graph.pyc
drivers/hisi/tzdriver/cfc_graphgen.pyc
drivers/hisi/tzdriver/cfc_rule_parser.pyc
drivers/huawei_platform/oases/inlinehook_offset.h
net/wireguard/
87 changes: 41 additions & 46 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION = 4
PATCHLEVEL = 4
SUBLEVEL = 128
SUBLEVEL = 129
EXTRAVERSION =
NAME = Blurry Fish Butt

Expand Down Expand Up @@ -224,6 +224,8 @@ VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))

export srctree objtree VPATH

CCACHE := ccache

# SUBARCH tells the usermode build what the underlying arch is. That is set
# first, and if a usermode build is happening, the "ARCH=um" on the command
# line overrides the setting of ARCH below. If a native build is happening,
Expand Down Expand Up @@ -257,8 +259,8 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
# "make" in the configured kernel build directory always uses that.
# Default value for CROSS_COMPILE is not to prefix executables
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
ARCH ?= arm64
CROSS_COMPILE ?= $(CCACHE) $(CONFIG_CROSS_COMPILE:"%"=%)

# Architecture as present in compile.h
UTS_MACHINE := $(ARCH)
Expand Down Expand Up @@ -304,11 +306,10 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)

GRAPHITE = -fgraphite -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-loop-linear
HOSTCC = gcc
HOSTCXX = g++
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O3 -fomit-frame-pointer $(GRAPHITE)
HOSTCXXFLAGS = -O3 $(GRAPHITE)
HOSTCC = $(CCACHE) gcc
HOSTCXX = $(CCACHE) g++
HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
HOSTCXXFLAGS = -O2

ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)
HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter \
Expand Down Expand Up @@ -350,11 +351,11 @@ scripts/Kbuild.include: ;
include scripts/Kbuild.include

# Make variables (CC, etc...)
AS = $(SOURCEANALYZER) $(CROSS_COMPILE)as
LD = $(SOURCEANALYZER) $(CROSS_COMPILE)ld
CC = $(SOURCEANALYZER) $(CCACHE) $(CROSS_COMPILE)gcc
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CCACHE) $(CROSS_COMPILE)gcc
CPP = $(CC) -E
AR = $(SOURCEANALYZER) $(CROSS_COMPILE)ar
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
STRIP = $(CROSS_COMPILE)strip
OBJCOPY = $(CROSS_COMPILE)objcopy
Expand All @@ -371,13 +372,12 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
-Wbitwise -Wno-return-void $(CF) -Wall
CFLAGS_MODULE =
AFLAGS_MODULE =
LDFLAGS_MODULE =
LDFLAGS_MODULE = --strip-debug
CFLAGS_KERNEL =
AFLAGS_KERNEL =
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage -fno-tree-loop-im
CFLAGS_KCOV = -fsanitize-coverage=trace-pc

KERNELFLAGS = $(GRAPHITE)

# Use USERINCLUDE when you must reference the UAPI directories only.
USERINCLUDE := \
Expand Down Expand Up @@ -420,8 +420,7 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
-std=gnu89 $(call cc-option,-fno-PIE) \
-mcpu=cortex-a53 -mtune=cortex-a53
-std=gnu89 $(call cc-option,-fno-PIE)

KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
Expand Down Expand Up @@ -674,16 +673,12 @@ KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context)
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
else
ifeq ($(cc-name),clang)
KBUILD_CFLAGS += -O3
else
ifdef CONFIG_PROFILE_ALL_BRANCHES
KBUILD_CFLAGS += -O2
else
KBUILD_CFLAGS += -O2
endif
endif
endif

# Tell gcc to never replace conditional load with a non-conditional one
KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
Expand All @@ -704,9 +699,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \
$(call cc-option,-fno-partial-inlining)
endif

ifneq ($(CONFIG_FRAME_WARN),0)
KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})
endif
#ifneq ($(CONFIG_FRAME_WARN),0)
#KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})
#endif

# Handle stack protector mode.
#
Expand Down Expand Up @@ -773,18 +768,18 @@ KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
endif

ifdef CONFIG_FRAME_POINTER
KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
else
#ifdef CONFIG_FRAME_POINTER
#KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
#else
# Some targets (ARM with Thumb2, for example), can't be built with frame
# pointers. For those, we don't have FUNCTION_TRACER automatically
# select FRAME_POINTER. However, FUNCTION_TRACER adds -pg, and this is
# incompatible with -fomit-frame-pointer with current GCC, so we don't use
# -fomit-frame-pointer with FUNCTION_TRACER.
ifndef CONFIG_FUNCTION_TRACER
#ifndef CONFIG_FUNCTION_TRACER
KBUILD_CFLAGS += -fomit-frame-pointer
endif
endif
#endif
#endif

KBUILD_CFLAGS += $(call cc-option, -fno-var-tracking-assignments)

Expand All @@ -805,23 +800,23 @@ KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \
$(call cc-option,-fno-var-tracking)
endif

ifdef CONFIG_FUNCTION_TRACER
ifndef CC_FLAGS_FTRACE
CC_FLAGS_FTRACE := -pg
endif
export CC_FLAGS_FTRACE
ifdef CONFIG_HAVE_FENTRY
CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY)
endif
KBUILD_CFLAGS += $(CC_FLAGS_FTRACE) $(CC_USING_FENTRY)
KBUILD_AFLAGS += $(CC_USING_FENTRY)
ifdef CONFIG_DYNAMIC_FTRACE
ifdef CONFIG_HAVE_C_RECORDMCOUNT
BUILD_C_RECORDMCOUNT := y
export BUILD_C_RECORDMCOUNT
endif
endif
endif
#ifdef CONFIG_FUNCTION_TRACER
#ifndef CC_FLAGS_FTRACE
#CC_FLAGS_FTRACE := -pg
#endif
#export CC_FLAGS_FTRACE
#ifdef CONFIG_HAVE_FENTRY
#CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY)
#endif
#KBUILD_CFLAGS += $(CC_FLAGS_FTRACE) $(CC_USING_FENTRY)
#KBUILD_AFLAGS += $(CC_USING_FENTRY)
#ifdef CONFIG_DYNAMIC_FTRACE
# ifdef CONFIG_HAVE_C_RECORDMCOUNT
# BUILD_C_RECORDMCOUNT := y
# export BUILD_C_RECORDMCOUNT
# endif
#endif
#endif

# We trigger additional mismatches with less inlining
ifdef CONFIG_DEBUG_SECTION_MISMATCH
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/at91sam9g25.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
atmel,mux-mask = <
/* A B C */
0xffffffff 0xffe0399f 0xc000001c /* pioA */
0x0007ffff 0x8000fe3f 0x00000000 /* pioB */
0x0007ffff 0x00047e3f 0x00000000 /* pioB */
0x80000000 0x07c0ffff 0xb83fffff /* pioC */
0x003fffff 0x003f8000 0x00000000 /* pioD */
>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/sama5d4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@
pinctrl@fc06a000 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
compatible = "atmel,sama5d3-pinctrl", "atmel,at91sam9x5-pinctrl", "simple-bus";
ranges = <0xfc068000 0xfc068000 0x100
0xfc06a000 0xfc06a000 0x4000>;
/* WARNING: revisit as pin spec has changed */
Expand Down
9 changes: 6 additions & 3 deletions arch/arm64/configs/hyperplus_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Linux/arm64 4.4.126 Kernel Configuration
#

CONFIG_FRANDOM=y
CONFIG_WIREGUARD=y
# CONFIG_WIREGUARD_DEBUG is not set
CONFIG_IOSCHED_ZEN=y
Expand Down Expand Up @@ -163,7 +164,7 @@ CONFIG_BLK_CGROUP=y
# CONFIG_DEBUG_BLK_CGROUP is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_NAMESPACES is not set
CONFIG_HISI_EAS_SCHED=y
# CONFIG_HISI_EAS_SCHED
CONFIG_HISI_RT_OPT=y
# CONFIG_SCHED_AUTOGROUP is not set
CONFIG_SCHED_TUNE=y
Expand Down Expand Up @@ -1789,7 +1790,7 @@ CONFIG_PPP_DEFLATE=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_MPPE=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPPOE=m
CONFIG_PPPOE=y
CONFIG_PPPOLAC=y
CONFIG_PPPOPNS=y
CONFIG_PPP_ASYNC=y
Expand Down Expand Up @@ -4808,7 +4809,9 @@ CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_NTFS_FS is not set
CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y
CONFIG_EXFAT_FS=y
CONFIG_EXFAT_DISCARD=y
CONFIG_EXFAT_DELAYED_SYNC=y
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ asmlinkage void secondary_start_kernel(void)
* the CPU migration code to notice that the CPU is online
* before we continue.
*/
pr_info("CPU%u: Booted secondary processor [%08x]\n",
pr_debug("CPU%u: Booted secondary processor [%08x]\n",
cpu, read_cpuid_id());
update_cpu_boot_status(CPU_BOOT_SUCCESS);
/* Make sure the status update is visible before we complete */
Expand Down
89 changes: 0 additions & 89 deletions arch/arm64/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,92 +221,6 @@ static int __init parse_dt_topology(void)
struct cpu_topology cpu_topology[NR_CPUS];
EXPORT_SYMBOL_GPL(cpu_topology);

#ifdef CONFIG_HISI_EAS_SCHED
static const char * const little_cores[] = {
"arm,cortex-a53",
NULL,
};

static bool is_little_cpu(struct device_node *cn)
{
const char * const *lc;
for (lc = little_cores; *lc; lc++)
if (of_device_is_compatible(cn, *lc))
return true;
return false;
}

void __init arch_get_fast_and_slow_cpus(struct cpumask *fast,
struct cpumask *slow)
{
struct device_node *cn = NULL;
int cpu;

cpumask_clear(fast);
cpumask_clear(slow);

/*
* Else, parse device tree for little cores.
*/
while ((cn = of_find_node_by_type(cn, "cpu"))) {
const u32 *mpidr;
int len;

mpidr = of_get_property(cn, "reg", &len);
if (!mpidr || len != 8) {
pr_err("%s missing reg property\n", cn->full_name);
continue;
}

cpu = get_logical_index(be32_to_cpup(mpidr+1));
if (cpu == -EINVAL) {
pr_err("couldn't get logical index for mpidr %x\n",
be32_to_cpup(mpidr+1));
break;
}

if (is_little_cpu(cn))
cpumask_set_cpu(cpu, slow);
else
cpumask_set_cpu(cpu, fast);
}

if (!cpumask_empty(fast) && !cpumask_empty(slow))
return;

/*
* We didn't find both big and little cores so let's call all cores
* fast as this will keep the system running, with all cores being
* treated equal.
*/
cpumask_setall(fast);
cpumask_clear(slow);
}

struct cpumask slow_cpu_mask;
struct cpumask fast_cpu_mask;
void hisi_get_fast_cpus(struct cpumask *cpumask)
{
cpumask_copy(cpumask, &fast_cpu_mask);
}
EXPORT_SYMBOL(hisi_get_fast_cpus);

void hisi_get_slow_cpus(struct cpumask *cpumask)
{
cpumask_copy(cpumask, &slow_cpu_mask);
}
EXPORT_SYMBOL(hisi_get_slow_cpus);

int hisi_test_fast_cpu(int cpu)
{
if (cpumask_test_cpu(cpu, &fast_cpu_mask))
return 1;
else
return 0;
}
EXPORT_SYMBOL(hisi_test_fast_cpu);
#endif

/* sd energy functions */
static inline
const struct sched_group_energy * const cpu_cluster_energy(int cpu)
Expand Down Expand Up @@ -470,7 +384,4 @@ void __init init_cpu_topology(void)

init_sched_energy_costs();

#ifdef CONFIG_HISI_EAS_SCHED
arch_get_fast_and_slow_cpus(&fast_cpu_mask, &slow_cpu_mask);
#endif
}
11 changes: 9 additions & 2 deletions arch/mips/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,13 @@ __clear_user(void __user *addr, __kernel_size_t size)
{
__kernel_size_t res;

#ifdef CONFIG_CPU_MICROMIPS
/* micromips memset / bzero also clobbers t7 & t8 */
#define bzero_clobbers "$4", "$5", "$6", __UA_t0, __UA_t1, "$15", "$24", "$31"
#else
#define bzero_clobbers "$4", "$5", "$6", __UA_t0, __UA_t1, "$31"
#endif /* CONFIG_CPU_MICROMIPS */

if (eva_kernel_access()) {
__asm__ __volatile__(
"move\t$4, %1\n\t"
Expand All @@ -1247,7 +1254,7 @@ __clear_user(void __user *addr, __kernel_size_t size)
"move\t%0, $6"
: "=r" (res)
: "r" (addr), "r" (size)
: "$4", "$5", "$6", __UA_t0, __UA_t1, "$31");
: bzero_clobbers);
} else {
might_fault();
__asm__ __volatile__(
Expand All @@ -1258,7 +1265,7 @@ __clear_user(void __user *addr, __kernel_size_t size)
"move\t%0, $6"
: "=r" (res)
: "r" (addr), "r" (size)
: "$4", "$5", "$6", __UA_t0, __UA_t1, "$31");
: bzero_clobbers);
}

return res;
Expand Down
Loading