Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 5.4-2.1.x-imx to v5.4.62 from stable #120

Merged
merged 215 commits into from
Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
669fc3b
powerpc/64s: Don't init FSCR_DSCR in __init_FSCR()
mpe May 27, 2020
730443f
binfmt_flat: revert "binfmt_flat: don't offset the data start"
jcmvbkbc Aug 8, 2020
b5e3412
gre6: Fix reception with IP6_TNL_F_RCV_DSCP_COPY
Aug 19, 2020
6ed8917
net: Fix potential wrong skb->protocol in skb_vlan_untag()
MiaoheLin Aug 15, 2020
4ae9ebf
net: nexthop: don't allow empty NHA_GROUP
Aug 22, 2020
4ef63e3
net: qrtr: fix usage of idr in port assignment to socket
necipfazil Aug 17, 2020
4d2fe0a
net: sctp: Fix negotiation of the number of data streams.
david-laight Aug 19, 2020
d429362
net/smc: Prevent kernel-infoleak in __smc_diag_dump()
peilin-ye Aug 20, 2020
6c2e795
tipc: fix uninit skb->data in tipc_nl_compat_dumpit()
congwang Aug 15, 2020
97a7434
net: ena: Make missed_tx stat incremental
ShayAgros Aug 19, 2020
e1334c4
net/sched: act_ct: Fix skb double-free in tcf_ct_handle_fragments() e…
alaahl Aug 19, 2020
266d21a
ipvlan: fix device features
Aug 15, 2020
b45944e
ALSA: hda/hdmi: Add quirk to force connectivity
khfeng Aug 4, 2020
bcf4082
ALSA: pci: delete repeated words in comments
rddunlap Aug 6, 2020
348da2f
ALSA: hda/realtek: Fix pin default on Intel NUC 8 Rugged
khfeng Aug 7, 2020
a53f673
ALSA: hda/hdmi: Use force connectivity quirk on another HP desktop
khfeng Aug 11, 2020
8150a0e
ASoC: img: Fix a reference count leak in img_i2s_in_set_fmt
QiushiWu Jun 14, 2020
7d60cd2
ASoC: img-parallel-out: Fix a reference count leak
QiushiWu Jun 14, 2020
fd59088
ASoC: tegra: Fix reference count leaks.
QiushiWu Jun 13, 2020
d8cc881
mfd: intel-lpss: Add Intel Emmitsburg PCH PCI IDs
andy-shev Jun 15, 2020
88eb00c
arm64: dts: qcom: msm8916: Pull down PDM GPIOs during sleep
stephan-gh Jun 5, 2020
1dc0ed1
powerpc/xive: Ignore kmemleak false positives
aik Jun 12, 2020
fc93c09
media: pci: ttpci: av7110: fix possible buffer overflow caused by bad…
baijiaju May 30, 2020
ab2d90e
blktrace: ensure our debugfs dir exists
mcgrof Jun 19, 2020
d98ea48
scsi: target: tcmu: Fix crash on ARM during cmd completion
BStroesser Jun 29, 2020
f0a066a
mfd: intel-lpss: Add Intel Tiger Lake PCH-H PCI IDs
andy-shev Jun 25, 2020
1174ed7
iommu/iova: Don't BUG on invalid PFNs
rmurphy-arm Jun 2, 2020
9c88b27
drm/amdkfd: Fix reference count leaks.
QiushiWu Jun 13, 2020
40d0bf2
drm/radeon: fix multiple reference count leak
Jun 14, 2020
c911da7
drm/amdgpu: fix ref count leak in amdgpu_driver_open_kms
Navidem Jun 14, 2020
3753eff
drm/amd/display: fix ref count leak in amdgpu_drm_ioctl
Navidem Jun 14, 2020
8290f9d
drm/amdgpu: fix ref count leak in amdgpu_display_crtc_set_config
Navidem Jun 14, 2020
815060a
drm/amdgpu/display: fix ref count leak when pm_runtime_get_sync fails
Navidem Jun 14, 2020
40b4503
scsi: lpfc: Fix shost refcount mismatch when deleting vport
Jun 30, 2020
774cc7c
xfs: Don't allow logging of XFS_ISTALE inodes
Jun 29, 2020
0450a50
scsi: target: Fix xcopy sess release leak
mikechristie Jul 2, 2020
110c5a5
selftests/powerpc: Purge extra count_pmc() calls of ebb selftests
Jun 26, 2020
22d859f
f2fs: fix error path in do_recover_data()
chaseyu Jul 6, 2020
2018381
omapfb: fix multiple reference count leaks due to pm_runtime_get_sync
Jun 14, 2020
4410fd0
PCI: Fix pci_create_slot() reference count leak
QiushiWu May 28, 2020
3a84491
ARM: dts: ls1021a: output PPS signal on FIPER2
yangbolu1991 May 22, 2020
71e7e02
rtlwifi: rtl8192cu: Prevent leaking urb
rettichschnidi Jun 22, 2020
f4107f6
mips/vdso: Fix resource leaks in genvdso.c
ticat123 Jul 14, 2020
bd45930
ALSA: hda: Add support for Loongson 7A1000 controller
Jul 17, 2020
6734eeb
cec-api: prevent leaking memory through hole in structure
Jun 26, 2020
4cba879
HID: quirks: add NOGET quirk for Logitech GROUP
ikjn-cros Jul 21, 2020
45e3039
f2fs: fix use-after-free issue
Jul 24, 2020
d23d52e
drm/nouveau/drm/noveau: fix reference count leak in nouveau_fbcon_open
Jun 14, 2020
19e81f6
drm/nouveau: fix reference count leak in nv50_disp_atomic_commit
Jun 14, 2020
2adf6ec
drm/nouveau: Fix reference count leak in nouveau_connector_detect
Jun 14, 2020
7d6689d
locking/lockdep: Fix overflow in presentation of average lock-time
ickle Jul 25, 2020
1f52b85
btrfs: file: reserve qgroup space after the hole punch range is locked
adam900710 Jun 10, 2020
050292f
btrfs: make btrfs_qgroup_check_reserved_leak take btrfs_inode
lorddoskias Jun 3, 2020
9da791b
scsi: iscsi: Do not put host in iscsi_set_flashnode_param()
hiss2018 Jun 15, 2020
01540d5
ceph: fix potential mdsc use-after-free crash
lxbsz Jul 1, 2020
a002274
ceph: do not access the kiocb after aio requests
lxbsz Jul 6, 2020
41191f8
scsi: fcoe: Memory leak fix in fcoe_sysfs_fcf_del()
javed-h Jul 29, 2020
c67c6e1
EDAC/ie31200: Fallback if host bridge device is already initialized
almostivan Jul 16, 2020
6b0010e
hugetlbfs: prevent filesystem stacking of hugetlbfs
mjkravetz Aug 12, 2020
a84a6eb
media: davinci: vpif_capture: fix potential double free
eunovm Jul 23, 2020
653ae33
KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe
Jun 25, 2020
e77f71c
powerpc/spufs: add CONFIG_COREDUMP dependency
arndb Jul 6, 2020
7aac56d
USB: sisusbvga: Fix a potential UB casued by left shifting a negative…
Lawliar Jul 11, 2020
b2defeb
brcmfmac: Set timeout value when configuring power save
Jul 21, 2020
12a9bec
efi: provide empty efi_enter_virtual_mode implementation
xairy Aug 7, 2020
da56eb0
arm64: Fix __cpu_logical_map undefined issue
Jul 27, 2020
93709d8
Revert "ath10k: fix DMA related firmware crashes on multiple devices"
Jan 14, 2020
8843532
sched/uclamp: Protect uclamp fast path code with static key
Aug 28, 2020
2c0000f
sched/uclamp: Fix a deadlock when enabling uclamp static key
Aug 28, 2020
961bfe1
usb: cdns3: gadget: always zeroed TRB buffer when enable endpoint
Aug 28, 2020
a0f69c6
PM / devfreq: rk3399_dmc: Add missing of_node_put()
TinyWindzz Dec 14, 2019
b7cca73
PM / devfreq: rk3399_dmc: Disable devfreq-event device when fails
TinyWindzz Dec 22, 2019
fe376f1
PM / devfreq: rk3399_dmc: Fix kernel oops when rockchip,pmu is absent
Jun 30, 2020
02611bc
drm/xen: fix passing zero to 'PTR_ERR' warning
Mar 30, 2020
67f8b39
drm/xen-front: Fix misused IS_ERR_OR_NULL checks
Aug 13, 2020
a0cfda9
s390/numa: set node distance to LOCAL_DISTANCE
Aug 28, 2020
d5f5b15
btrfs: factor out inode items copy loop from btrfs_log_inode()
fdmanana Mar 9, 2020
3eddcc7
btrfs: only commit the delayed inode when doing a full fsync
fdmanana Jul 2, 2020
483b956
btrfs: only commit delayed items at fsync if we are logging a directory
fdmanana Jul 2, 2020
7257443
mm/shuffle: don't move pages between zones and don't read garbage mem…
davidhildenbrand Aug 7, 2020
965d3d5
mm: fix kthread_use_mm() vs TLB invalidate
Aug 7, 2020
aed14b1
mm/cma.c: switch to bitmap_zalloc() for cma bitmap allocation
yeyunfeng-dev Dec 1, 2019
302b9e1
cma: don't quit at first error when activating reserved areas
mjkravetz Aug 12, 2020
8dc47d8
gpu/drm: ingenic: Use the plane's src_[x,y] to configure DMA length
pcercuei Dec 10, 2019
b730fb1
drm/ingenic: Fix incorrect assumption about plane->index
pcercuei Jul 16, 2020
992e51f
drm/amd/display: Trigger modesets on MST DSC connectors
Nov 12, 2019
8522b1b
drm/amd/display: Add additional config guards for DCN
Jul 3, 2020
a2038eb
drm/amd/display: Fix dmesg warning from setting abm level
Jun 30, 2020
75aaa8f
mm/vunmap: add cond_resched() in vunmap_pmd_range
Aug 28, 2020
3bf42b2
EDAC: sb_edac: get rid of unused vars
mchehab Sep 13, 2019
87cc96b
EDAC: skx_common: get rid of unused type var
mchehab Sep 13, 2019
6d11320
EDAC/{i7core,sb,pnd2,skx}: Fix error event severity
aegl Jul 7, 2020
29ecf28
PCI: qcom: Add missing ipq806x clocks in PCIe driver
Ansuel Jun 15, 2020
ea55238
PCI: qcom: Change duplicate PCI reset to phy reset
Jun 15, 2020
1b7b2d4
PCI: qcom: Add missing reset for ipq806x
Ansuel Jun 15, 2020
5861e84
cpufreq: intel_pstate: Fix EPP setting via sysfs in active mode
rafaeljw Jul 28, 2020
6ba0470
ALSA: usb-audio: Add capture support for Saffire 6 (USB 1.1)
puleglot Aug 15, 2020
8f409e7
media: gpio-ir-tx: improve precision of transmitted signal due to sch…
seanyoung May 2, 2020
cc3a73f
block: respect queue limit of max discard segment
Aug 17, 2020
effd3b8
block: virtio_blk: fix handling single range discard request
Aug 17, 2020
3e9eb1e
drm/msm/adreno: fix updating ring fence
robclark Aug 13, 2020
2295664
block: Fix page_is_mergeable() for compound pages
Aug 17, 2020
1475314
bfq: fix blkio cgroup leakage v4
Aug 11, 2020
9054d58
hwmon: (nct7904) Correct divide by 0
almostivan Aug 21, 2020
872a2b3
blk-mq: insert request not through ->queue_rq into sw/scheduler queue
Aug 18, 2020
05c608f
blkcg: fix memleak for iolatency
Aug 11, 2020
97f3041
nvme-fc: Fix wrong return value in __nvme_fc_init_request()
uudiin Aug 2, 2020
88994ac
nvme: multipath: round-robin: fix single non-optimized path case
mwilck Aug 6, 2020
2fc8fa5
null_blk: fix passing of REQ_FUA flag in null_handle_rq
Aug 21, 2020
883ed72
i2c: core: Don't fail PRP0001 enumeration when no ID table exist
andy-shev Aug 21, 2020
262f5fb
i2c: rcar: in slave mode, clear NACK earlier
Aug 17, 2020
d63728a
usb: gadget: f_tcm: Fix some resource leaks in some error paths
tititiou36 Aug 14, 2020
e4351ad
spi: stm32: clear only asserted irq flags on interrupt
TobleMiner Aug 4, 2020
40827ca
jbd2: make sure jh have b_transaction set in refile/unfile_buffer
Jun 17, 2020
2e7312d
ext4: don't BUG on inconsistent journal feature
jankara Jul 10, 2020
1b36d4f
ext4: handle read only external journal device
Jul 17, 2020
3a53d01
jbd2: abort journal if free a async write error metadata buffer
zhangyi089 Jun 20, 2020
e579635
ext4: handle option set by mount flags correctly
Jul 23, 2020
8e63c86
ext4: handle error of ext4_setup_system_zone() on remount
jankara Jul 28, 2020
28a56c2
ext4: correctly restore system zone info when remount fails
jankara Jul 28, 2020
a08e95e
fs: prevent BUG_ON in submit_bh_wbc()
Jul 31, 2020
3c15a3c
spi: stm32h7: fix race condition at end of transfer
AntonioBorneo Aug 10, 2020
a6daa86
spi: stm32: fix fifo threshold level in case of short transfer
ADESTM Aug 10, 2020
2844685
spi: stm32: fix stm32_spi_prepare_mbr in case of odd clk_rate
ADESTM Aug 10, 2020
d2da80e
spi: stm32: always perform registers configuration prior to transfer
avolmat-st Aug 10, 2020
73a0e62
drm/amd/powerplay: correct Vega20 cached smu feature state
Aug 7, 2020
b92b415
drm/amd/powerplay: correct UVD/VCE PG state on custom pptable uploading
Aug 7, 2020
3523896
drm/amd/display: Switch to immediate mode for updating infopackets
anthony-koo2 Jul 29, 2020
3803312
netfilter: avoid ipv6 -> nf_defrag_ipv6 module dependency
Aug 10, 2020
021a98a
can: j1939: transport: j1939_xtp_rx_dat_one(): compare own packets to…
olerem Aug 7, 2020
2a8c614
ALSA: hda/realtek: Add model alc298-samsung-headphone
Aug 17, 2020
1d63737
s390/cio: add cond_resched() in the slow_eval_known_fn() loop
vneethv Jun 18, 2020
9570661
ASoC: wm8994: Avoid attempts to read unreadable registers
Jul 31, 2020
a8d2614
selftests: disable rp_filter for icmp_redirect.sh
dsahern Aug 17, 2020
1778beb
scsi: fcoe: Fix I/O path allocation
mikechristie Aug 7, 2020
d895b0b
scsi: ufs: Fix possible infinite loop in ufshcd_hold
Aug 9, 2020
a39ba0f
scsi: ufs: Improve interrupt handling for shared interrupts
ahunter6 Aug 11, 2020
37528b3
scsi: ufs: Clean up completed request without interrupt notification
Aug 11, 2020
8827462
scsi: qla2xxx: Fix login timeout
Aug 6, 2020
36a139c
scsi: qla2xxx: Check if FW supports MQ before enabling
Aug 6, 2020
48765b7
scsi: qla2xxx: Fix null pointer access during disconnect from subsystem
Aug 6, 2020
19f669a
Revert "scsi: qla2xxx: Fix crash on qla2x00_mailbox_command"
Aug 6, 2020
c656534
macvlan: validate setting of multiple remote source MAC addresses
sipraga Aug 18, 2020
9c0305c
net: gianfar: Add of_node_put() before goto statement
Sylfrena Aug 18, 2020
7d44b70
powerpc/perf: Fix soft lockups due to missed interrupt accounting
athira-rajeev Aug 6, 2020
82b05f0
arm64: Move handling of erratum 1418040 into C code
Jul 31, 2020
2f4b202
arm64: Allow booting of late CPUs affected by erratum 1418040
Jul 31, 2020
f09dbec
block: fix get_max_io_size()
keithbusch Aug 6, 2020
db4542b
block: loop: set discard granularity and alignment for block device b…
Aug 17, 2020
c2035d1
HID: i2c-hid: Always sleep 60ms after I2C_HID_PWR_ON commands
jwrdegoede Aug 11, 2020
b1a83ee
blk-mq: order adding requests to hctx->dispatch and checking SCHED_RE…
Aug 17, 2020
8a35094
btrfs: reset compression level for lzo on remount
marcosps Aug 3, 2020
1d08edc
btrfs: check the right error variable in btrfs_del_dir_entries_in_log
josefbacik Aug 10, 2020
eb576fc
btrfs: fix space cache memory leak after transaction abort
fdmanana Aug 14, 2020
cd1d270
btrfs: detect nocow for swap after snapshot delete
boryas Aug 18, 2020
96e41fc
fbcon: prevent user font height or width change from causing potentia…
gkennedy12 Jul 31, 2020
db1bb35
USB: lvtest: return proper error code in probe
eunovm Aug 5, 2020
adb76f3
vt: defer kfree() of vc_screenbuf in vc_do_resize()
Jul 29, 2020
7c57237
vt_ioctl: change VT_RESIZEX ioctl to check for error return from vc_r…
gkennedy12 Jul 31, 2020
daae6b9
serial: samsung: Removes the IRQ not found warning
Aug 10, 2020
0806b49
serial: pl011: Fix oops on -EPROBE_DEFER
l1k Aug 13, 2020
64a05aa
serial: pl011: Don't leak amba_ports entry on driver register error
l1k Aug 13, 2020
fbb55ec
serial: stm32: avoid kernel warning on absence of optional IRQ
h-assmann Aug 13, 2020
f53ebc7
serial: 8250_exar: Fix number of ports for Commtech PCIe cards
valmerh Aug 13, 2020
2e76a3a
serial: 8250: change lock order in serial8250_do_startup()
sergey-senozhatsky Aug 17, 2020
8eab2b5
writeback: Protect inode->i_io_list with inode->i_lock
jankara Jun 10, 2020
cb0c744
writeback: Avoid skipping inode writeback
jankara May 29, 2020
6623c19
writeback: Fix sync livelock due to b_dirty_time processing
jankara May 29, 2020
4d3e2a3
XEN uses irqdesc::irq_data_common::handler_data to store a per interr…
KAGA-KOKO Aug 25, 2020
3ac8545
usb: host: xhci: fix ep context print mismatch in debugfs
Junlisuzhou Aug 21, 2020
02166fe
xhci: Do warm-reset when both CAS and XDEV_RESUME are set
khfeng Aug 21, 2020
3b7087e
xhci: Always restore EP_SOFT_CLEAR_TOGGLE even if ep reset failed
cdkey Aug 21, 2020
7ded78a
arm64: vdso32: make vdso32 install conditional
fllinden Aug 27, 2020
b260fb2
PM: sleep: core: Fix the handling of pending runtime resume requests
rafaeljw Aug 24, 2020
df2a6a4
powerpc/perf: Fix crashes with generic_compat_pmu & BHRB
aik Jun 2, 2020
aca10ab
device property: Fix the secondary firmware node handling in set_prim…
Aug 21, 2020
70957a1
crypto: af_alg - Work around empty control messages without MSG_MORE
herbertx Aug 27, 2020
927aa9a
genirq/matrix: Deal with the sillyness of for_each_cpu() on UP
KAGA-KOKO Aug 30, 2020
47c8387
irqchip/stm32-exti: Avoid losing interrupts due to clearing pending b…
Aug 20, 2020
1adf8c1
x86/hotplug: Silence APIC only after all interrupts are migrated
ashok-raj Aug 27, 2020
8fc7a66
drm/amdgpu: Fix buffer overflow in INFO ioctl
alexdeucher Aug 25, 2020
20700b3
drm/amdgpu/gfx10: refine mgcg setting
Aug 24, 2020
2809cf7
drm/amd/powerplay: Fix hardmins not being sent to SMU for RV
Aug 14, 2020
60cffee
drm/amd/pm: correct Vega10 swctf limit setting
Aug 21, 2020
9afabef
drm/amd/pm: correct Vega12 swctf limit setting
Aug 21, 2020
85ca6f1
drm/amd/pm: correct Vega20 swctf limit setting
Aug 21, 2020
3623dab
drm/amd/pm: correct the thermal alert temperature limit settings
Aug 25, 2020
ad0bc42
USB: yurex: Fix bad gfp argument
AlanStern Aug 10, 2020
b32ec91
usb: uas: Add quirk for PNY Pro Elite
Aug 19, 2020
20b3564
USB: quirks: Add no-lpm quirk for another Raydium touchscreen
khfeng Jul 31, 2020
ca29a2a
USB: quirks: Ignore duplicate endpoint on Sound Devices MixPre-D
AlanStern Aug 26, 2020
de24343
USB: Ignore UAS for JMicron JMS567 ATA/ATAPI Bridge
Steap Aug 25, 2020
2534d3d
usb: host: ohci-exynos: Fix error handling in exynos_ohci_probe()
Aug 26, 2020
f47ab85
USB: gadget: u_f: add overflow checks to VLA macros
brookebasile Aug 25, 2020
4f529c4
USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb()
brookebasile Aug 25, 2020
e2e02f2
USB: gadget: u_f: Unbreak offset calculation in VLAs
andy-shev Aug 26, 2020
2add73c
USB: cdc-acm: rework notification_buffer resizing
Aug 1, 2020
7399263
usb: storage: Add unusual_uas entry for Sony PSZ drives
AlanStern Aug 26, 2020
f8e4c52
drm/i915: Fix cmd parser desc matching with masks
mikuint Aug 17, 2020
4bc5d90
usb: dwc3: gadget: Don't setup more than requested
Aug 7, 2020
7c8b568
usb: dwc3: gadget: Fix handling ZLP
Aug 7, 2020
6a862aa
usb: dwc3: gadget: Handle ZLP for sg requests
Aug 7, 2020
376810e
fbmem: pull fbcon_update_vcs() out of fb_set_var()
Jul 30, 2020
eb914ba
kheaders: remove unneeded 'cat' command piped to 'head' / 'tail'
masahir0y Oct 8, 2019
a1d0c6e
kheaders: optimize md5sum calculation for in-tree builds
masahir0y Oct 8, 2019
18f4870
kheaders: optimize header copy for in-tree builds
masahir0y Oct 8, 2019
7caddaa
kheaders: remove the last bashism to allow sh to run it
masahir0y Oct 8, 2019
47a41f6
kheaders: explain why include/config/autoconf.h is excluded from md5sum
masahir0y Oct 8, 2019
37432a8
kbuild: add variables for compression tools
evdenis Jun 5, 2020
c98b6eb
kbuild: fix broken builds because of GZIP,BZIP2,LZOP variables
evdenis Jun 8, 2020
851d081
HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage()
peilin-ye Jul 29, 2020
44cf62d
ALSA: usb-audio: Update documentation comment for MS2109 quirk
marcan Aug 16, 2020
54ee779
io_uring: Fix NULL pointer dereference in io_sq_wq_submit_work()
kevinXYin Sep 2, 2020
933cf1c
Linux 5.4.62
gregkh Sep 3, 2020
a9364a0
Merge tag 'v5.4.62' into 5.4-2.1.x-imx
zandrey Sep 3, 2020
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
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 5
PATCHLEVEL = 4
SUBLEVEL = 61
SUBLEVEL = 62
EXTRAVERSION =
NAME = Kleptomaniac Octopus

Expand Down Expand Up @@ -442,6 +442,12 @@ PYTHON = python
PYTHON3 = python3
CHECK = sparse
BASH = bash
KGZIP = gzip
KBZIP2 = bzip2
KLZOP = lzop
LZMA = lzma
LZ4 = lz4c
XZ = xz

CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
-Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
Expand Down Expand Up @@ -490,6 +496,7 @@ CLANG_FLAGS :=
export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC
export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE READELF PAHOLE LEX YACC AWK INSTALLKERNEL
export PERL PYTHON PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
export KGZIP KBZIP2 KLZOP LZMA LZ4 XZ
export KBUILD_HOSTCXXFLAGS KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS LDFLAGS_MODULE

export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS KBUILD_LDFLAGS
Expand Down Expand Up @@ -997,10 +1004,10 @@ export mod_strip_cmd
mod_compress_cmd = true
ifdef CONFIG_MODULE_COMPRESS
ifdef CONFIG_MODULE_COMPRESS_GZIP
mod_compress_cmd = gzip -n -f
mod_compress_cmd = $(KGZIP) -n -f
endif # CONFIG_MODULE_COMPRESS_GZIP
ifdef CONFIG_MODULE_COMPRESS_XZ
mod_compress_cmd = xz -f
mod_compress_cmd = $(XZ) -f
endif # CONFIG_MODULE_COMPRESS_XZ
endif # CONFIG_MODULE_COMPRESS
export mod_compress_cmd
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/deflate_xip_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ trap 'rm -f "$XIPIMAGE.tmp"; exit 1' 1 2 3
# substitute the data section by a compressed version
$DD if="$XIPIMAGE" count=$data_start iflag=count_bytes of="$XIPIMAGE.tmp"
$DD if="$XIPIMAGE" skip=$data_start iflag=skip_bytes |
gzip -9 >> "$XIPIMAGE.tmp"
$KGZIP -9 >> "$XIPIMAGE.tmp"

# replace kernel binary
mv -f "$XIPIMAGE.tmp" "$XIPIMAGE"
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/ls1021a.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@
fsl,tmr-prsc = <2>;
fsl,tmr-add = <0xaaaaaaab>;
fsl,tmr-fiper1 = <999999995>;
fsl,tmr-fiper2 = <99990>;
fsl,tmr-fiper2 = <999999995>;
fsl,max-adj = <499999999>;
fsl,extts-fifo;
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ zinstall install:
PHONY += vdso_install
vdso_install:
$(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso $@
$(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso32 $@
$(if $(CONFIG_COMPAT_VDSO), \
$(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso32 $@)

# We use MRPROPER_FILES and CLEAN_FILES now
archclean:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/qcom/msm8916-pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@
pins = "gpio63", "gpio64", "gpio65", "gpio66",
"gpio67", "gpio68";
drive-strength = <2>;
bias-disable;
bias-pull-down;
};
};
};
Expand Down
7 changes: 6 additions & 1 deletion arch/arm64/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ DECLARE_PER_CPU_READ_MOSTLY(int, cpu_number);
* Logical CPU mapping.
*/
extern u64 __cpu_logical_map[NR_CPUS];
#define cpu_logical_map(cpu) __cpu_logical_map[cpu]
extern u64 cpu_logical_map(int cpu);

static inline void set_cpu_logical_map(int cpu, u64 hwid)
{
__cpu_logical_map[cpu] = hwid;
}

struct seq_file;

Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/kernel/cpu_errata.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,8 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
.desc = "ARM erratum 1418040",
.capability = ARM64_WORKAROUND_1418040,
ERRATA_MIDR_RANGE_LIST(erratum_1418040_list),
.type = (ARM64_CPUCAP_SCOPE_LOCAL_CPU |
ARM64_CPUCAP_PERMITTED_FOR_LATE_CPU),
},
#endif
#ifdef CONFIG_ARM64_ERRATUM_1165522
Expand Down
34 changes: 34 additions & 0 deletions arch/arm64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,39 @@ static void entry_task_switch(struct task_struct *next)
__this_cpu_write(__entry_task, next);
}

/*
* ARM erratum 1418040 handling, affecting the 32bit view of CNTVCT.
* Assuming the virtual counter is enabled at the beginning of times:
*
* - disable access when switching from a 64bit task to a 32bit task
* - enable access when switching from a 32bit task to a 64bit task
*/
static void erratum_1418040_thread_switch(struct task_struct *prev,
struct task_struct *next)
{
bool prev32, next32;
u64 val;

if (!(IS_ENABLED(CONFIG_ARM64_ERRATUM_1418040) &&
cpus_have_const_cap(ARM64_WORKAROUND_1418040)))
return;

prev32 = is_compat_thread(task_thread_info(prev));
next32 = is_compat_thread(task_thread_info(next));

if (prev32 == next32)
return;

val = read_sysreg(cntkctl_el1);

if (!next32)
val |= ARCH_TIMER_USR_VCT_ACCESS_EN;
else
val &= ~ARCH_TIMER_USR_VCT_ACCESS_EN;

write_sysreg(val, cntkctl_el1);
}

/*
* Thread switching.
*/
Expand All @@ -514,6 +547,7 @@ __notrace_funcgraph struct task_struct *__switch_to(struct task_struct *prev,
uao_thread_switch(next);
ptrauth_thread_switch(next);
ssbs_thread_switch(next);
erratum_1418040_thread_switch(prev, next);

/*
* Complete any pending TLB or cache maintenance on this CPU in case
Expand Down
8 changes: 7 additions & 1 deletion arch/arm64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ u64 __cacheline_aligned boot_args[4];
void __init smp_setup_processor_id(void)
{
u64 mpidr = read_cpuid_mpidr() & MPIDR_HWID_BITMASK;
cpu_logical_map(0) = mpidr;
set_cpu_logical_map(0, mpidr);

/*
* clear __my_cpu_offset on boot CPU to avoid hang caused by
Expand Down Expand Up @@ -276,6 +276,12 @@ arch_initcall(reserve_memblock_reserved_regions);

u64 __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = INVALID_HWID };

u64 cpu_logical_map(int cpu)
{
return __cpu_logical_map[cpu];
}
EXPORT_SYMBOL_GPL(cpu_logical_map);

void __init setup_arch(char **cmdline_p)
{
init_mm.start_code = (unsigned long) _text;
Expand Down
6 changes: 3 additions & 3 deletions arch/arm64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ acpi_map_gic_cpu_interface(struct acpi_madt_generic_interrupt *processor)
return;

/* map the logical cpu id to cpu MPIDR */
cpu_logical_map(cpu_count) = hwid;
set_cpu_logical_map(cpu_count, hwid);

cpu_madt_gicc[cpu_count] = *processor;

Expand Down Expand Up @@ -663,7 +663,7 @@ static void __init of_parse_and_init_cpus(void)
goto next;

pr_debug("cpu logical map 0x%llx\n", hwid);
cpu_logical_map(cpu_count) = hwid;
set_cpu_logical_map(cpu_count, hwid);

early_map_cpu_to_node(cpu_count, of_node_to_nid(dn));
next:
Expand Down Expand Up @@ -704,7 +704,7 @@ void __init smp_init_cpus(void)
for (i = 1; i < nr_cpu_ids; i++) {
if (cpu_logical_map(i) != INVALID_HWID) {
if (smp_cpu_setup(i))
cpu_logical_map(i) = INVALID_HWID;
set_cpu_logical_map(i, INVALID_HWID);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kvm/hyp/switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ static void __hyp_text __hyp_call_panic_nvhe(u64 spsr, u64 elr, u64 par,
* making sure it is a kernel address and not a PC-relative
* reference.
*/
asm volatile("ldr %0, =__hyp_panic_string" : "=r" (str_va));
asm volatile("ldr %0, =%1" : "=r" (str_va) : "S" (__hyp_panic_string));

__hyp_do_panic(str_va,
spsr, elr,
Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $(error Sorry, you need a newer version of the assember, one that is built from
endif

quiet_cmd_gzip = GZIP $@
cmd_gzip = cat $(real-prereqs) | gzip -n -f -9 > $@
cmd_gzip = cat $(real-prereqs) | $(KGZIP) -n -f -9 > $@

quiet_cmd_objcopy = OBJCOPY $@
cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
Expand Down
8 changes: 4 additions & 4 deletions arch/m68k/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ vmlinux.gz: vmlinux
ifndef CONFIG_KGDB
cp vmlinux vmlinux.tmp
$(STRIP) vmlinux.tmp
gzip -9c vmlinux.tmp >vmlinux.gz
$(KGZIP) -9c vmlinux.tmp >vmlinux.gz
rm vmlinux.tmp
else
gzip -9c vmlinux >vmlinux.gz
$(KGZIP) -9c vmlinux >vmlinux.gz
endif

bzImage: vmlinux.bz2
Expand All @@ -148,10 +148,10 @@ vmlinux.bz2: vmlinux
ifndef CONFIG_KGDB
cp vmlinux vmlinux.tmp
$(STRIP) vmlinux.tmp
bzip2 -1c vmlinux.tmp >vmlinux.bz2
$(KBZIP2) -1c vmlinux.tmp >vmlinux.bz2
rm vmlinux.tmp
else
bzip2 -1c vmlinux >vmlinux.bz2
$(KBZIP2) -1c vmlinux >vmlinux.bz2
endif

archclean:
Expand Down
10 changes: 10 additions & 0 deletions arch/mips/vdso/genvdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ static void *map_vdso(const char *path, size_t *_size)
if (fstat(fd, &stat) != 0) {
fprintf(stderr, "%s: Failed to stat '%s': %s\n", program_name,
path, strerror(errno));
close(fd);
return NULL;
}

Expand All @@ -130,6 +131,7 @@ static void *map_vdso(const char *path, size_t *_size)
if (addr == MAP_FAILED) {
fprintf(stderr, "%s: Failed to map '%s': %s\n", program_name,
path, strerror(errno));
close(fd);
return NULL;
}

Expand All @@ -139,6 +141,7 @@ static void *map_vdso(const char *path, size_t *_size)
if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) {
fprintf(stderr, "%s: '%s' is not an ELF file\n", program_name,
path);
close(fd);
return NULL;
}

Expand All @@ -150,6 +153,7 @@ static void *map_vdso(const char *path, size_t *_size)
default:
fprintf(stderr, "%s: '%s' has invalid ELF class\n",
program_name, path);
close(fd);
return NULL;
}

Expand All @@ -161,22 +165,26 @@ static void *map_vdso(const char *path, size_t *_size)
default:
fprintf(stderr, "%s: '%s' has invalid ELF data order\n",
program_name, path);
close(fd);
return NULL;
}

if (swap_uint16(ehdr->e_machine) != EM_MIPS) {
fprintf(stderr,
"%s: '%s' has invalid ELF machine (expected EM_MIPS)\n",
program_name, path);
close(fd);
return NULL;
} else if (swap_uint16(ehdr->e_type) != ET_DYN) {
fprintf(stderr,
"%s: '%s' has invalid ELF type (expected ET_DYN)\n",
program_name, path);
close(fd);
return NULL;
}

*_size = stat.st_size;
close(fd);
return addr;
}

Expand Down Expand Up @@ -280,10 +288,12 @@ int main(int argc, char **argv)
/* Calculate and write symbol offsets to <output file> */
if (!get_symbols(dbg_vdso_path, dbg_vdso)) {
unlink(out_path);
fclose(out_file);
return EXIT_FAILURE;
}

fprintf(out_file, "};\n");
fclose(out_file);

return EXIT_SUCCESS;
}
2 changes: 1 addition & 1 deletion arch/parisc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ vmlinuz: bzImage
$(OBJCOPY) $(boot)/bzImage $@
else
vmlinuz: vmlinux
@gzip -cf -9 $< > $@
@$(KGZIP) -cf -9 $< > $@
endif

install:
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/cpu_setup_power.S
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ __init_LPCR_ISA300:

__init_FSCR:
mfspr r3,SPRN_FSCR
ori r3,r3,FSCR_TAR|FSCR_DSCR|FSCR_EBB
ori r3,r3,FSCR_TAR|FSCR_EBB
mtspr SPRN_FSCR,r3
blr

Expand Down
23 changes: 18 additions & 5 deletions arch/powerpc/perf/core-book3s.c
Original file line number Diff line number Diff line change
Expand Up @@ -1522,9 +1522,16 @@ static int power_pmu_add(struct perf_event *event, int ef_flags)
ret = 0;
out:
if (has_branch_stack(event)) {
power_pmu_bhrb_enable(event);
cpuhw->bhrb_filter = ppmu->bhrb_filter_map(
event->attr.branch_sample_type);
u64 bhrb_filter = -1;

if (ppmu->bhrb_filter_map)
bhrb_filter = ppmu->bhrb_filter_map(
event->attr.branch_sample_type);

if (bhrb_filter != -1) {
cpuhw->bhrb_filter = bhrb_filter;
power_pmu_bhrb_enable(event);
}
}

perf_pmu_enable(event->pmu);
Expand Down Expand Up @@ -1846,7 +1853,6 @@ static int power_pmu_event_init(struct perf_event *event)
int n;
int err;
struct cpu_hw_events *cpuhw;
u64 bhrb_filter;

if (!ppmu)
return -ENOENT;
Expand Down Expand Up @@ -1952,7 +1958,10 @@ static int power_pmu_event_init(struct perf_event *event)
err = power_check_constraints(cpuhw, events, cflags, n + 1);

if (has_branch_stack(event)) {
bhrb_filter = ppmu->bhrb_filter_map(
u64 bhrb_filter = -1;

if (ppmu->bhrb_filter_map)
bhrb_filter = ppmu->bhrb_filter_map(
event->attr.branch_sample_type);

if (bhrb_filter == -1) {
Expand Down Expand Up @@ -2106,6 +2115,10 @@ static void record_and_restart(struct perf_event *event, unsigned long val,

if (perf_event_overflow(event, &data, regs))
power_pmu_stop(event, 0);
} else if (period) {
/* Account for interrupt in case of invalid SIAR */
if (perf_event_account_interrupt(event))
power_pmu_stop(event, 0);
}
}

Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/platforms/cell/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ config SPU_FS
tristate "SPU file system"
default m
depends on PPC_CELL
depends on COREDUMP
select SPU_BASE
help
The SPU file system is used to access Synergistic Processing
Expand Down
Loading