Linux 5.1.5
Greg KH
maintainerI'm announcing the release of the 5.1.5 kernel.
All users of the 5.1 kernel series must upgrade.
The updated 5.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/filesystems/porting | 5 Makefile | 2 arch/Kconfig | 2 arch/arm/boot/dts/imx6-logicpd-baseboard.dtsi | 2 arch/mips/kernel/perf_event_mipsxx.c | 21 - arch/parisc/boot/compressed/head.S | 6 arch/parisc/include/asm/assembly.h | 6 arch/parisc/include/asm/cache.h | 10 arch/parisc/kernel/head.S | 4 arch/parisc/kernel/process.c | 1 arch/parisc/kernel/syscall.S | 2 arch/parisc/mm/init.c | 2 arch/powerpc/include/asm/mmu_context.h | 1 arch/um/include/asm/mmu_context.h | 1 arch/unicore32/include/asm/mmu_context.h | 1 arch/x86/entry/entry_64.S | 18 + arch/x86/include/asm/mmu_context.h | 6 arch/x86/include/asm/mpx.h | 15 arch/x86/include/asm/text-patching.h | 28 + arch/x86/kernel/ftrace.c | 32 +- arch/x86/mm/mpx.c | 10 block/blk-core.c | 2 block/blk-mq-sysfs.c | 6 block/blk-mq.c | 8 block/blk-mq.h | 2 drivers/base/dd.c | 5 drivers/block/brd.c | 7 drivers/clk/hisilicon/clk-hi3660.c | 6 drivers/clk/mediatek/clk-pll.c | 48 ++- drivers/clk/rockchip/clk-rk3328.c | 18 - drivers/clk/tegra/clk-pll.c | 4 drivers/dma/imx-sdma.c | 15 drivers/hwtracing/intel_th/msu.c | 35 ++ drivers/hwtracing/stm/core.c | 9 drivers/infiniband/hw/mlx5/main.c | 5 drivers/infiniband/ulp/ipoib/ipoib_main.c | 13 drivers/iommu/tegra-smmu.c | 25 + drivers/md/dm-cache-metadata.c | 9 drivers/md/dm-crypt.c | 9 drivers/md/dm-delay.c | 3 drivers/md/dm-init.c | 8 drivers/md/dm-integrity.c | 4 drivers/md/dm-ioctl.c | 6 drivers/md/dm-mpath.c | 2 drivers/md/dm-zoned-metadata.c | 5 drivers/md/dm.c | 4 drivers/md/md.c | 180 +++++------ drivers/md/md.h | 25 - drivers/md/raid5.c | 29 + drivers/media/i2c/ov6650.c | 2 drivers/media/platform/Kconfig | 2 drivers/memory/tegra/mc.c | 2 drivers/net/Makefile | 2 drivers/net/ethernet/mellanox/mlx4/mcg.c | 2 drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 drivers/net/ethernet/mellanox/mlx5/core/ecpf.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 18 + drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 19 + drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 2 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | 30 - drivers/net/ethernet/mellanox/mlxsw/core.c | 6 drivers/net/ethernet/mellanox/mlxsw/core.h | 2 drivers/net/ethernet/mellanox/mlxsw/core_env.c | 18 + drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 3 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 6 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c | 17 - drivers/net/ppp/ppp_deflate.c | 20 - drivers/net/usb/qmi_wwan.c | 2 drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c | 26 + drivers/net/wireless/intersil/p54/p54pci.c | 3 drivers/parisc/led.c | 3 drivers/pci/controller/pcie-rcar.c | 21 + drivers/pci/pci.h | 2 drivers/pci/pcie/aspm.c | 49 ++- drivers/pci/probe.c | 23 - drivers/pci/quirks.c | 77 +++++ drivers/phy/ti/phy-ti-pipe3.c | 2 drivers/regulator/core.c | 11 drivers/staging/media/imx/imx-ic-common.c | 2 drivers/staging/media/imx/imx-media-csi.c | 18 - drivers/staging/media/imx/imx-media-dev.c | 11 drivers/staging/media/imx/imx-media-internal-sd.c | 32 -- drivers/staging/media/imx/imx-media-of.c | 73 +++- drivers/staging/media/imx/imx-media-vdic.c | 2 drivers/staging/media/imx/imx-media.h | 7 drivers/staging/media/imx/imx7-media-csi.c | 2 drivers/video/fbdev/efifb.c | 8 drivers/video/fbdev/sm712.h | 12 drivers/video/fbdev/sm712fb.c | 243 ++++++++++++---- drivers/video/fbdev/udlfb.c | 114 +++++-- fs/btrfs/relocation.c | 12 fs/ceph/super.c | 7 fs/cifs/cifsglob.h | 1 fs/cifs/cifssmb.c | 2 fs/cifs/smb2ops.c | 14 fs/cifs/transport.c | 10 fs/dcache.c | 24 - fs/fuse/file.c | 13 fs/nfs/filelayout/filelayout.c | 2 fs/nfs/nfs4state.c | 4 fs/notify/fsnotify.c | 41 ++ fs/nsfs.c | 3 fs/overlayfs/copy_up.c | 6 fs/overlayfs/file.c | 5 fs/overlayfs/overlayfs.h | 2 fs/proc/base.c | 5 include/asm-generic/mm_hooks.h | 1 include/linux/bpf.h | 1 include/linux/dcache.h | 2 include/linux/fsnotify.h | 33 -- include/linux/fsnotify_backend.h | 4 include/linux/mlx5/driver.h | 1 include/linux/of.h | 4 include/linux/pci.h | 2 include/linux/skbuff.h | 9 include/net/flow_offload.h | 2 include/net/ip6_fib.h | 3 include/uapi/linux/fuse.h | 2 include/video/udlfb.h | 7 kernel/bpf/hashtab.c | 23 + kernel/bpf/inode.c | 2 kernel/bpf/syscall.c | 5 kernel/trace/trace_events.c | 3 kernel/trace/trace_probe.c | 13 mm/mmap.c | 15 net/core/dev.c | 2 net/core/flow_offload.c | 7 net/core/rtnetlink.c | 16 - net/ipv6/ip6_fib.c | 12 net/ipv6/route.c | 58 ++- net/tipc/core.c | 14 net/vmw_vsock/virtio_transport.c | 13 net/vmw_vsock/virtio_transport_common.c | 7 scripts/gcc-plugins/arm_ssp_per_task_plugin.c | 2 tools/objtool/Makefile | 3 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 31 +- 137 files changed, 1366 insertions(+), 648 deletions(-)
Adam Ford (2):
ARM: dts: imx6q-logicpd: Reduce inrush current on USBH1
ARM: dts: imx6q-logicpd: Reduce inrush current on start
Adrian Hunter (3):
perf intel-pt: Fix instructions sampling rate perf intel-pt: Fix improved sample timestamp perf intel-pt: Fix sample timestamp wrt non-taken branches
Al Viro (1):
dcache: sort the freeing-without-RCU-delay mess for good.
Alexander Shishkin (2):
stm class: Fix channel bitmap on 32-bit systems
intel_th: msu: Fix single mode with IOMMU
Amir Goldstein (2):
ovl: fix missing upper fs freeze protection on copy up for ioctl
fsnotify: fix unlink performance regression
Angus Ainslie (Purism) (1):
dmaengine: imx-sdma: Only check ratio on parts that support 1:1
Ard Biesheuvel (1):
fbdev/efifb: Ignore framebuffer memmap entries that lack any memory types
Arnd Bergmann (2):
media: seco-cec: fix building with RC_CORE=m
y2038: Make CONFIG_64BIT_TIME unconditional
Bodong Wang (1):
net/mlx5: Fix peer pf disable hca command
Chenbo Feng (1):
bpf: relax inode permission check for retrieving bpf program
Chris Packham (1):
gcc-plugins: arm_ssp_per_task_plugin: Fix for older GCC < 6
Christoph Hellwig (1):
md: add a missing endianness conversion in check_sb_changes
Christoph Probst (1):
cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_level()
Colin Ian King (1):
phy: ti-pipe3: fix missing bit-wise or operator when assigning val
Damien Le Moal (1):
dm zoned: Fix zone report handling
Daniel Borkmann (2):
bpf: add map_lookup_elem_sys_only for lookups from syscall side bpf, lru: avoid messing with eviction heuristics upon syscall lookup
Daniele Palmas (1):
net: usb: qmi_wwan: add Telit 0x1260 and 0x1261 compositions
Dave Hansen (1):
x86/mpx, mm/core: Fix recursive munmap() corruption
Dmitry Osipenko (3):
clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider iommu/tegra-smmu: Fix invalid ASID bits on Tegra30/114
memory: tegra: Fix integer overflow on tick value calculation
Dmytro Linkin (2):
net/mlx5e: Add missing ethtool driver info for representors net/mlx5e: Additional check for flow destination comparison
Edward Cree (1):
flow_offload: support CVLAN match
Elazar Leibovich (1):
tracing: Fix partial reading of trace event's id file
Eric Dumazet (2):
ipv6: prevent possible fib6 leaks
net: avoid weird emergency message
Florian Fainelli (2):
net: Always descend into dsa/
MIPS: perf: Fix build with CONFIG_CPU_BMIPS5000 enabled
Greg Kroah-Hartman (1):
Linux 5.1.5
Hans de Goede (1):
brcmfmac: Add DMI nvram filename quirk for ACEPC T8 and T11 mini PCs
Helen Koike (2):
dm init: fix max devices/targets checks dm ioctl: fix hang in early create error condition
Helge Deller (6):
parisc: Export running_on_qemu symbol for modules
parisc: Skip registering LED when running in QEMU
parisc: Add memory barrier to asm pdc and sync instructions
parisc: Allow live-patching of __meminit functions
parisc: Use PA_ASM_LEVEL in boot code
parisc: Rename LEVEL to PA_ASM_LEVEL to avoid name clash with DRBD code
Hou Tao (1):
brd: re-enable __GFP_HIGHMEM in brd_insert_page()
James Prestwood (1):
PCI: Mark Atheros AR9462 to avoid bus reset
Janusz Krzysztofik (1):
media: ov6650: Fix sensor possibly not detected on probe
Jason Gunthorpe (1):
RDMA/mlx5: Use get_zeroed_page() for clock_info
Jean-Philippe Brucker (1):
PCI: Init PCIe feature bits for managed host bridge alloc
Jeff Layton (1):
ceph: flush dirty inodes before proceeding with remount
Jianbo Liu (1):
net/mlx5e: Fix calling wrong function to get inner vlan key and mask
Jisheng Zhang (1):
PCI/AER: Change pci_aer_init() stub to return void
John David Anglin (1):
parisc: Add memory clobber to TLB purges
John Garry (1):
driver core: Postpone DMA tear-down until after devres release for probe failure
Jonas Karlman (1):
clk: rockchip: fix wrong clock definitions for rk3328
Jorge E. Moreira (1):
vsock/virtio: Initialize core virtio vsock before registering the driver
Josh Poimboeuf (1):
x86_64: Add gap to int3 to allow for call emulation
Junwei Hu (2):
tipc: switch order of device registration to fix a crash
tipc: fix modprobe tipc failed after switch order of device registration
Kazufumi Ikeda (1):
PCI: rcar: Add the initialization of PCIe link in resume_noirq()
Kirill Smelkov (1):
fuse: Add FOPEN_STREAM to use stream_open()
Leo Yan (1):
clk: hi3660: Mark clk_gate_ufs_subsys as critical
Leon Romanovsky (1):
RDMA/ipoib: Allow user space differentiate between valid dev_port
Liu Bo (1):
fuse: honor RLIMIT_FSIZE in fuse_file_fallocate
Lyude Paul (1):
PCI: Reset Lenovo ThinkPad P50 nvgpu at boot if necessary
Martin Wilck (1):
dm mpath: always free attached_handler_name in parse_path()
Masami Hiramatsu (1):
tracing: probeevent: Fix to make the type of $comm string
Michael Lass (1):
dm: make sure to obey max_io_len_target_boundary
Miklos Szeredi (1):
fuse: fix writepages on 32bit
Mikulas Patocka (5):
udlfb: delete the unused parameter for dlfb_handle_damage
udlfb: fix sleeping inside spinlock
udlfb: introduce a rendering mutex
dm delay: fix a crash when invalid device is specified dm integrity: correctly calculate the size of metadata area
Milan Broz (1):
dm crypt: move detailed message into debug level
Ming Lei (1):
blk-mq: free hw queue's resource in hctx's release handler
Nathan Chancellor (1):
objtool: Allow AR to be overridden with HOSTAR
NeilBrown (2):
Revert "MD: fix lock contention for flush bios"
md: batch flush requests.
Nigel Croxon (1):
md/raid: raid5 preserve the writeback action after the parity check
Nikolai Kostrigin (1):
PCI: Mark AMD Stoney Radeon R7 GPU ATS as broken
Nikos Tsironis (1):
dm cache metadata: Fix loading discard bitset
Olga Kornievskaia (1):
PNFS fallback to MDS if no deviceid found
Owen Chen (1):
clk: mediatek: Disable tuner_en before change PLL rate
Pan Bian (1):
p54: drop device reference count if fails to enable device
Paul Moore (1):
proc: prevent changes to overridden credentials
Peter Zijlstra (2):
x86_64: Allow breakpoints to emulate call instructions ftrace/x86_64: Emulate call function while updating in breakpoint handler
Phong Tran (1):
of: fix clang -Wunsequenced for be32_to_cpu()
Pieter Jansen van Vuuren (1):
nfp: flower: add rcu locks when accessing netdev for tunnels
Qu Wenruo (1):
btrfs: reloc: Fix NULL pointer dereference due to expanded reloc_root lifespan
Ronnie Sahlberg (1):
cifs: fix credits leak for SMB1 oplock breaks
Sabrina Dubroca (1):
rtnetlink: always put IFLA_LINK for links with a link-netnsid
Saeed Mahameed (2):
net/mlx5: Imply MLXFW in mlx5_core
net/mlx5e: Fix ethtool rxfh commands when CONFIG_MLX5_EN_RXNFC is disabled
Song Liu (1):
Revert "Don't jump to compute_result state from check_result state"
Stefan Mätje (2):
PCI: Factor out pcie_retrain_link() function
PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratum
Stefano Garzarella (1):
vsock/virtio: free packets during the socket release
Steve Longerbeam (4):
media: imx: csi: Allow unknown nearest upstream entities
media: imx: Clear fwnode link struct for each endpoint iteration
media: imx: Rename functions that add IPU-internal subdevs
media: imx: Don't register IPU subdevs/links if CSI port missing
Steve Twiss (1):
regulator: core: fix error path for regulator_set_voltage_unlocked
Tingwei Zhang (1):
stm class: Fix channel free in stm output free path
Vadim Pasternak (2):
mlxsw: core: Prevent QSFP module initialization for old hardware
mlxsw: core: Prevent reading unsupported slave address from SFP EEPROM
Wei Wang (1):
ipv6: fix src addr routing with the exception table
Willem de Bruijn (1):
net: test nouarg before dereferencing zerocopy pointers
Yifeng Li (9):
fbdev: sm712fb: fix brightness control on reboot, don't set SR30
fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75
fbdev: sm712fb: fix white screen of death on reboot, don't set CR3B-CR3F
fbdev: sm712fb: fix boot screen glitch when sm712fb replaces VGA
fbdev: sm712fb: fix crashes during framebuffer writes by correctly mapping VRAM
fbdev: sm712fb: fix support for 1024x768-16 mode
fbdev: sm712fb: use 1024x768 by default on non-MIPS, fix garbled display
fbdev: sm712fb: fix crashes and garbled display during DPMS modesetting
fbdev: sm712fb: fix memory frequency by avoiding a switch/case fallthrough
YueHaibing (1):
ppp: deflate: Fix possible crash in deflate_init
Yufen Yu (1):
md: add mddev->pers to avoid potential NULL pointer dereference
Yunjian Wang (1):
net/mlx4_core: Change the error print to info print
ZhangXiaoxu (1):
NFS4: Fix v4.0 client state corruption when mount
Greg KH
maintainerDocumentation/filesystems/porting +5 -0
@@ -638,3 +638,8 @@ in your dentry operations instead. inode to d_splice_alias() will also do the right thing (equivalent of d_add(dentry, NULL); return NULL;), so that kind of special cases also doesn't need a separate treatment. +-- +[mandatory] + DCACHE_RCUACCESS is gone; having an RCU delay on dentry freeing is the + default. DCACHE_NORCU opts out, and only d_alloc_pseudo() has any + business doing so.
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 1 -SUBLEVEL = 4 +SUBLEVEL = 5 EXTRAVERSION = NAME = Shy Crocodile
arch/Kconfig +1 -1
@@ -764,7 +764,7 @@ config COMPAT_OLD_SIGACTION bool config 64BIT_TIME - def_bool ARCH_HAS_64BIT_TIME + def_bool y help This should be selected by all architectures that need to support new system calls with a 64-bit time_t. This is relevant on all 32-bit
arch/arm/boot/dts/imx6-logicpd-baseboard.dtsi +2 -0
@@ -88,6 +88,7 @@ regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>; + startup-delay-us = <70000>; enable-active-high; };
@@ -99,6 +100,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>; + startup-delay-us = <70000>; enable-active-high; regulator-always-on; };
arch/mips/kernel/perf_event_mipsxx.c +3 -18
@@ -64,17 +64,11 @@ struct mips_perf_event {#define CNTR_EVEN 0x55555555#define CNTR_ODD 0xaaaaaaaa#define CNTR_ALL 0xffffffff -#ifdef CONFIG_MIPS_MT_SMP enum {T =0 ,V =1 ,P =2 , } range; -#else -#define T -#define V -#define P -#endif };static struct mips_perf_event raw_event;
@@ -325,9 +319,7 @@ static void mipsxx_pmu_enable_event(struct hw_perf_event *evt, int idx) { struct perf_event *event = container_of(evt, struct perf_event, hw);struct cpu_hw_events *cpuc =this_cpu_ptr (&cpu_hw_events); -#ifdef CONFIG_MIPS_MT_SMP unsigned int range = evt->event_base >>24 ; -#endif /* CONFIG_MIPS_MT_SMP */ WARN_ON (idx <0 || idx >= mipspmu.num_counters);
@@ -336,21 +328,15 @@ static void mipsxx_pmu_enable_event(struct hw_perf_event *evt, int idx)/* Make sure interrupt enabled. */ MIPS_PERFCTRL_IE ; -#ifdef CONFIG_CPU_BMIPS5000 - { +if (IS_ENABLED (CONFIG_CPU_BMIPS5000 )) {/* enable the counter for the calling thread */ cpuc->saved_ctrl[idx] |= (1 << (12 +vpe_id ())) |BRCM_PERFCTRL_TC ; - } -#else -#ifdef CONFIG_MIPS_MT_SMP -if (range >V ) { + }else if (IS_ENABLED (CONFIG_MIPS_MT_SMP ) && range >V ) {/* The counter is processor wide. Set it up to count all TCs. */ pr_debug ("Enabling perf counter for all TCs\n" ); cpuc->saved_ctrl[idx] |=M_TC_EN_ALL ; - } else -#endif /* CONFIG_MIPS_MT_SMP */ - { + }else {unsigned int cpu, ctrl;/*
@@ -365,7 +351,6 @@ static void mipsxx_pmu_enable_event(struct hw_perf_event *evt, int idx) cpuc->saved_ctrl[idx] |= ctrl;pr_debug ("Enabling perf counter for CPU%d\n" , cpu); } -#endif /* CONFIG_CPU_BMIPS5000 */ /* * We do not actually let the counter run. Leave it until start(). */
arch/parisc/boot/compressed/head.S +3 -3
@@ -22,7 +22,7 @@ __HEAD ENTRY(startup) - .level LEVEL + .level PA_ASM_LEVEL #define PSW_W_SM 0x200 #define PSW_W_BIT 36
@@ -63,7 +63,7 @@ $bss_loop: load32 BOOTADDR(decompress_kernel),%r3 #ifdef CONFIG_64BIT - .level LEVEL + .level PA_ASM_LEVEL ssm PSW_W_SM, %r0 /* set W-bit */ depdi 0, 31, 32, %r3 #endif
@@ -72,7 +72,7 @@ $bss_loop: startup_continue: #ifdef CONFIG_64BIT - .level LEVEL + .level PA_ASM_LEVEL rsm PSW_W_SM, %r0 /* clear W-bit */ #endif
arch/parisc/include/asm/assembly.h +3 -3
@@ -61,14 +61,14 @@#define LDCW ldcw,co#define BL b,l# ifdef CONFIG_64BIT -# define LEVEL 2.0w +# define PA_ASM_LEVEL 2.0w# else -# define LEVEL 2.0 +# define PA_ASM_LEVEL 2.0# endif #else #define LDCW ldcw#define BL bl -#define LEVEL 1.1 +#define PA_ASM_LEVEL 1.1#endif #ifdef __ASSEMBLY__
arch/parisc/include/asm/cache.h +5 -5
@@ -44,22 +44,22 @@ void parisc_setup_cache_timing(void);#define pdtlb (addr) asm volatile("pdtlb 0(%%sr1,%0)" \ ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ - : : "r" (addr)) + : : "r" (addr) : "memory")#define pitlb (addr) asm volatile("pitlb 0(%%sr1,%0)" \ ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ ALTERNATIVE(ALT_COND_NO_SPLIT_TLB, INSN_NOP) \ - : : "r" (addr)) + : : "r" (addr) : "memory")#define pdtlb_kernel (addr) asm volatile("pdtlb 0(%0)" \ ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ - : : "r" (addr)) + : : "r" (addr) : "memory")#define asm_io_fdc (addr) asm volatile("fdc %%r0(%0)" \ ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \ ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) \ - : : "r" (addr)) + : : "r" (addr) : "memory")#define asm_io_sync () asm volatile("sync" \ ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \ - ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) :: ) + ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) :::"memory")#endif /* ! __ASSEMBLY__ */
arch/parisc/kernel/head.S +2 -2
@@ -22,7 +22,7 @@ #include <linux/linkage.h> #include <linux/init.h> - .level LEVEL + .level PA_ASM_LEVEL __INITDATA ENTRY(boot_args)
@@ -258,7 +258,7 @@ stext_pdc_ret: ldo R%PA(fault_vector_11)(%r10),%r10 $is_pa20: - .level LEVEL /* restore 1.1 || 2.0w */ + .level PA_ASM_LEVEL /* restore 1.1 || 2.0w */ #endif /*!CONFIG_64BIT*/ load32 PA(fault_vector_20),%r10
arch/parisc/kernel/process.c +1 -0
@@ -193,6 +193,7 @@ int dump_task_fpu (struct task_struct *tsk, elf_fpregset_t *r)*/ int running_on_qemu__read_mostly ; +EXPORT_SYMBOL (running_on_qemu); void __cpuidle arch_cpu_idle_dead(void) {
arch/parisc/kernel/syscall.S +1 -1
@@ -48,7 +48,7 @@ registers). */ #define KILL_INSN break 0,0 - .level LEVEL + .level PA_ASM_LEVEL .text
arch/parisc/mm/init.c +1 -1
@@ -495,7 +495,7 @@ static void __init map_pages(unsigned long start_vaddr,void __init set_kernel_text_rw (int enable_read_write) { -unsigned long start = (unsigned long ) _text; +unsigned long start = (unsigned long ) __init_begin;unsigned long end = (unsigned long ) &data_start; map_pages(start, __pa(start), end-start,
arch/powerpc/include/asm/mmu_context.h +0 -1
@@ -237,7 +237,6 @@ extern void arch_exit_mmap(struct mm_struct *mm);#endif static inline void arch_unmap (struct mm_struct *mm, -struct vm_area_struct *vma,unsigned long start,unsigned long end) {if (start <= mm->context.vdso_base && mm->context.vdso_base < end)
arch/um/include/asm/mmu_context.h +0 -1
@@ -22,7 +22,6 @@ static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) }extern void arch_exit_mmap (struct mm_struct *mm);static inline void arch_unmap (struct mm_struct *mm, -struct vm_area_struct *vma,unsigned long start,unsigned long end) { }
arch/unicore32/include/asm/mmu_context.h +0 -1
@@ -88,7 +88,6 @@ static inline int arch_dup_mmap(struct mm_struct *oldmm, }static inline void arch_unmap (struct mm_struct *mm, -struct vm_area_struct *vma,unsigned long start,unsigned long end) { }
arch/x86/entry/entry_64.S +16 -2
@@ -881,7 +881,7 @@ apicinterrupt IRQ_WORK_VECTOR irq_work_interrupt smp_irq_work_interrupt * @paranoid == 2 is special: the stub will never switch stacks. This is for * #DF: if the thread stack is somehow unusable, we'll still get a useful OOPS. */ -.macro idtentry sym do_sym has_error_code:req paranoid=0 shift_ist=-1 +.macro idtentry sym do_sym has_error_code:req paranoid=0 shift_ist=-1 create_gap=0 ENTRY(\sym) UNWIND_HINT_IRET_REGS offset=\has_error_code*8
@@ -901,6 +901,20 @@ ENTRY(\sym) jnz .Lfrom_usermode_switch_stack_\@ .endif + .if \create_gap == 1 + /* + * If coming from kernel space, create a 6-word gap to allow the + * int3 handler to emulate a call instruction. + */ + testb $3, CS-ORIG_RAX(%rsp) + jnz .Lfrom_usermode_no_gap_\@ + .rept 6 + pushq 5*8(%rsp) + .endr + UNWIND_HINT_IRET_REGS offset=8 +.Lfrom_usermode_no_gap_\@: + .endif + .if \paranoid call paranoid_entry .else
@@ -1132,7 +1146,7 @@ apicinterrupt3 HYPERV_STIMER0_VECTOR \ #endif /* CONFIG_HYPERV */ idtentry debug do_debug has_error_code=0 paranoid=1 shift_ist=DEBUG_STACK -idtentry int3 do_int3 has_error_code=0 +idtentry int3 do_int3 has_error_code=0 create_gap=1 idtentry stack_segment do_stack_segment has_error_code=1 #ifdef CONFIG_XEN_PV
arch/x86/include/asm/mmu_context.h +3 -3
@@ -277,8 +277,8 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm,mpx_mm_init (mm); } -static inline void arch_unmap (struct mm_struct *mm,struct vm_area_struct *vma, -unsigned long start,unsigned long end) +static inline void arch_unmap (struct mm_struct *mm,unsigned long start, +unsigned long end) {/* * mpx_notify_unmap() goes and reads a rarely-hot
@@ -298,7 +298,7 @@ static inline void arch_unmap(struct mm_struct *mm, struct vm_area_struct *vma,* consistently wrong. */ if (unlikely (cpu_feature_enabled (X86_FEATURE_MPX ))) -mpx_notify_unmap (mm, vma, start, end); +mpx_notify_unmap (mm, start, end); }/*
arch/x86/include/asm/mpx.h +8 -7
@@ -64,12 +64,15 @@ struct mpx_fault_info { };#ifdef CONFIG_X86_INTEL_MPX -int mpx_fault_info (struct mpx_fault_info *info,struct pt_regs *regs); -int mpx_handle_bd_fault (void ); + +extern int mpx_fault_info (struct mpx_fault_info *info,struct pt_regs *regs); +extern int mpx_handle_bd_fault (void ); +static inline int kernel_managing_mpx_tables (struct mm_struct *mm) {return (mm->context.bd_addr !=MPX_INVALID_BOUNDS_DIR ); } +static inline void mpx_mm_init (struct mm_struct *mm) {/*
@@ -78,11 +81,10 @@ static inline void mpx_mm_init(struct mm_struct *mm)*/ mm->context.bd_addr = MPX_INVALID_BOUNDS_DIR; } -void mpx_notify_unmap (struct mm_struct *mm,struct vm_area_struct *vma, -unsigned long start,unsigned long end); -unsigned long mpx_unmapped_area_check (unsigned long addr,unsigned long len, -unsigned long flags); +extern void mpx_notify_unmap (struct mm_struct *mm,unsigned long start,unsigned long end); +extern unsigned long mpx_unmapped_area_check (unsigned long addr,unsigned long len,unsigned long flags); +#else static inline int mpx_fault_info (struct mpx_fault_info *info,struct pt_regs *regs) {
@@ -100,7 +102,6 @@ static inline void mpx_mm_init(struct mm_struct *mm) { }static inline void mpx_notify_unmap (struct mm_struct *mm, -struct vm_area_struct *vma,unsigned long start,unsigned long end) { }
arch/x86/include/asm/text-patching.h +28 -0
@@ -39,4 +39,32 @@ extern int poke_int3_handler(struct pt_regs *regs);extern void *text_poke_bp (void *addr,const void *opcode,size_t len,void *handler);extern int after_bootmem; +static inline void int3_emulate_jmp (struct pt_regs *regs,unsigned long ip) +{ + regs->ip = ip; +} + +#define INT3_INSN_SIZE 1 +#define CALL_INSN_SIZE 5 + +#ifdef CONFIG_X86_64 +static inline void int3_emulate_push (struct pt_regs *regs,unsigned long val) +{ +/* +* The int3 handler in entry_64.S adds a gap between the +* stack where the break point happened, and the saving of +* pt_regs. We can extend the original stack because of +* this gap. See the idtentry macro's create_gap option. +*/ + regs->sp -=sizeof (unsigned long ); + *(unsigned long *)regs->sp = val; +} + +static inline void int3_emulate_call (struct pt_regs *regs,unsigned long func) +{ +int3_emulate_push (regs, regs->ip -INT3_INSN_SIZE +CALL_INSN_SIZE ); +int3_emulate_jmp (regs, func); +} +#endif +#endif /* _ASM_X86_TEXT_PATCHING_H */
arch/x86/kernel/ftrace.c +27 -5
@@ -29,6 +29,7 @@#include <asm/kprobes.h> #include <asm/ftrace.h> #include <asm/nops.h> +#include <asm/text-patching.h> #ifdef CONFIG_DYNAMIC_FTRACE
@@ -231,6 +232,7 @@ int ftrace_modify_call(struct dyn_ftrace *rec, unsigned long old_addr, }static unsigned long ftrace_update_func; +static unsigned long ftrace_update_func_call;static int update_ftrace_func (unsigned long ip,void *new) {
@@ -259,6 +261,8 @@ int ftrace_update_ftrace_func(ftrace_func_t func)unsigned char *new;int ret; + ftrace_update_func_call = (unsigned long )func; + new =ftrace_call_replace (ip, (unsigned long )func); ret =update_ftrace_func (ip, new);
@@ -294,13 +298,28 @@ int ftrace_int3_handler(struct pt_regs *regs)if (WARN_ON_ONCE (!regs))return 0 ; - ip = regs->ip -1 ; -if (!ftrace_location (ip) && !is_ftrace_caller (ip)) -return 0 ; + ip = regs->ip -INT3_INSN_SIZE ; - regs->ip +=MCOUNT_INSN_SIZE -1 ; +#ifdef CONFIG_X86_64 +if (ftrace_location (ip)) { +int3_emulate_call (regs, (unsigned long )ftrace_regs_caller); +return 1 ; + }else if (is_ftrace_caller (ip)) { +if (!ftrace_update_func_call) { +int3_emulate_jmp (regs, ip +CALL_INSN_SIZE ); +return 1 ; + } +int3_emulate_call (regs, ftrace_update_func_call); +return 1 ; + } +#else +if (ftrace_location (ip) ||is_ftrace_caller (ip)) { +int3_emulate_jmp (regs, ip +CALL_INSN_SIZE ); +return 1 ; + } +#endif -return 1 ; +return 0 ; }NOKPROBE_SYMBOL (ftrace_int3_handler);
@@ -859,6 +878,8 @@ void arch_ftrace_update_trampoline(struct ftrace_ops *ops) func =ftrace_ops_get_func (ops); + ftrace_update_func_call = (unsigned long )func; +/* Do a safe modify in case the trampoline is executing */ new =ftrace_call_replace (ip, (unsigned long )func); ret =update_ftrace_func (ip, new);
@@ -960,6 +981,7 @@ static int ftrace_mod_jmp(unsigned long ip, void *func) {unsigned char *new; + ftrace_update_func_call =0UL ; new =ftrace_jmp_replace (ip, (unsigned long )func);return update_ftrace_func (ip, new);
arch/x86/mm/mpx.c +6 -4
@@ -881,9 +881,10 @@ static int mpx_unmap_tables(struct mm_struct *mm,* the virtual address region start...end have already been split if * necessary, and the 'vma' is the first vma in this range (start -> end). */ -void mpx_notify_unmap (struct mm_struct *mm,struct vm_area_struct *vma, -unsigned long start,unsigned long end) +void mpx_notify_unmap (struct mm_struct *mm,unsigned long start, +unsigned long end) { +struct vm_area_struct *vma;int ret;/*
@@ -902,11 +903,12 @@ void mpx_notify_unmap(struct mm_struct *mm, struct vm_area_struct *vma,* which should not occur normally. Being strict about it here * helps ensure that we do not have an exploitable stack overflow. */ -do { + vma =find_vma (mm, start); +while (vma && vma->vm_start < end) {if (vma->vm_flags &VM_MPX )return ; vma = vma->vm_next; - }while (vma && vma->vm_start < end); + } ret =mpx_unmap_tables (mm, start, end);if (ret)
block/blk-core.c +1 -1
@@ -375,7 +375,7 @@ void blk_cleanup_queue(struct request_queue *q)blk_exit_queue (q);if (queue_is_mq (q)) -blk_mq_free_queue (q); +blk_mq_exit_queue (q);percpu_ref_exit (&q->q_usage_counter);
block/blk-mq-sysfs.c +6 -0
@@ -10,6 +10,7 @@#include <linux/smp.h> #include <linux/blk-mq.h> +#include "blk.h" #include "blk-mq.h" #include "blk-mq-tag.h"
@@ -33,6 +34,11 @@ static void blk_mq_hw_sysfs_release(struct kobject *kobj) { struct blk_mq_hw_ctx *hctx = container_of(kobj, struct blk_mq_hw_ctx, kobj); + +if (hctx->flags &BLK_MQ_F_BLOCKING ) +cleanup_srcu_struct (hctx->srcu); +blk_free_flush_queue (hctx->fq); +sbitmap_free (&hctx->ctx_map);free_cpumask_var (hctx->cpumask);kfree (hctx->ctxs);kfree (hctx);
block/blk-mq.c +2 -6
@@ -2267,12 +2267,7 @@ static void blk_mq_exit_hctx(struct request_queue *q,if (set->ops->exit_hctx) set->ops->exit_hctx (hctx, hctx_idx); -if (hctx->flags &BLK_MQ_F_BLOCKING ) -cleanup_srcu_struct (hctx->srcu); -blk_mq_remove_cpuhp (hctx); -blk_free_flush_queue (hctx->fq); -sbitmap_free (&hctx->ctx_map); } static void blk_mq_exit_hw_queues(struct request_queue *q,
@@ -2905,7 +2900,8 @@ struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set, }EXPORT_SYMBOL (blk_mq_init_allocated_queue); -void blk_mq_free_queue (struct request_queue *q) +/* tags can _not_ be used after returning from blk_mq_exit_queue */ +void blk_mq_exit_queue (struct request_queue *q) {struct blk_mq_tag_set *set = q->tag_set;
block/blk-mq.h +1 -1
@@ -37,7 +37,7 @@ struct blk_mq_ctx {struct kobject kobj; }____cacheline_aligned_in_smp ; -void blk_mq_free_queue (struct request_queue *q); +void blk_mq_exit_queue (struct request_queue *q);int blk_mq_update_nr_requests (struct request_queue *q,unsigned int nr);void blk_mq_wake_waiters (struct request_queue *q);bool blk_mq_dispatch_rq_list (struct request_queue *,struct list_head *,bool );
drivers/base/dd.c +2 -3
@@ -490,7 +490,7 @@ static int really_probe(struct device *dev, struct device_driver *drv)if (dev->bus->dma_configure) { ret = dev->bus->dma_configure (dev);if (ret) - goto dma_failed; + goto probe_failed; }if (driver_sysfs_add (dev)) {
@@ -546,14 +546,13 @@ static int really_probe(struct device *dev, struct device_driver *drv) goto done; probe_failed: -arch_teardown_dma_ops (dev); -dma_failed:if (dev->bus)blocking_notifier_call_chain (&dev->bus->p->bus_notifier,BUS_NOTIFY_DRIVER_NOT_BOUND , dev); pinctrl_bind_failed:device_links_no_driver (dev);devres_release_all (dev); +arch_teardown_dma_ops (dev);driver_sysfs_remove (dev); dev->driver =NULL ;dev_set_drvdata (dev,NULL );
drivers/block/brd.c +1 -6
@@ -96,13 +96,8 @@ static struct page *brd_insert_page(struct brd_device *brd, sector_t sector)/* * Must use NOIO because we don't want to recurse back into the * block or filesystem layers from page reclaim. -* -* Cannot support DAX and highmem, because our ->direct_access -* routine for DAX must return memory that is always addressable. -* If DAX was reworked to use pfns and kmap throughout, this -* restriction might be able to be lifted. */ - gfp_flags =GFP_NOIO | __GFP_ZERO; + gfp_flags =GFP_NOIO | __GFP_ZERO | __GFP_HIGHMEM; page =alloc_page (gfp_flags);if (!page)return NULL ;
drivers/clk/hisilicon/clk-hi3660.c +5 -1
@@ -163,8 +163,12 @@ static const struct hisi_gate_clock hi3660_crgctrl_gate_sep_clks[] = { "clk_isp_snclk_mux", CLK_SET_RATE_PARENT, 0x50, 17, 0, }, {HI3660_CLK_GATE_ISP_SNCLK2 ,"clk_gate_isp_snclk2" , "clk_isp_snclk_mux", CLK_SET_RATE_PARENT, 0x50, 18, 0, }, + /* + * clk_gate_ufs_subsys is a system bus clock, mark it as critical + * clock and keep it on for system suspend and resume. + */ { HI3660_CLK_GATE_UFS_SUBSYS, "clk_gate_ufs_subsys", "clk_div_sysbus", - CLK_SET_RATE_PARENT, 0x50, 21, 0, }, + CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 0x50, 21, 0, }, { HI3660_PCLK_GATE_DSI0, "pclk_gate_dsi0", "clk_div_cfgbus", CLK_SET_RATE_PARENT, 0x50, 28, 0, }, { HI3660_PCLK_GATE_DSI1, "pclk_gate_dsi1", "clk_div_cfgbus",
drivers/clk/mediatek/clk-pll.c +34 -14
78 lines not on this page · raw message
drivers/clk/rockchip/clk-rk3328.c +9 -9
@@ -458,7 +458,7 @@ static struct rockchip_clk_branch rk3328_clk_branches[] __initdata = { RK3328_CLKSEL_CON(35), 15, 1, MFLAGS, 8, 7, DFLAGS, RK3328_CLKGATE_CON(2), 12, GFLAGS),COMPOSITE (SCLK_CRYPTO ,"clk_crypto" , mux_2plls_p,0 , -RK3328_CLKSEL_CON (20 ),7 ,1 ,MFLAGS ,0 ,7 ,DFLAGS , +RK3328_CLKSEL_CON (20 ),7 ,1 ,MFLAGS ,0 ,5 ,DFLAGS ,RK3328_CLKGATE_CON (2 ),4 ,GFLAGS ), COMPOSITE_NOMUX(SCLK_TSADC, "clk_tsadc", "clk_24m", 0, RK3328_CLKSEL_CON(22), 0, 10, DFLAGS,
@@ -550,15 +550,15 @@ static struct rockchip_clk_branch rk3328_clk_branches[] __initdata = {GATE (0 ,"hclk_rkvenc_niu" ,"hclk_rkvenc" ,0 ,RK3328_CLKGATE_CON (25 ),1 ,GFLAGS ),GATE (ACLK_H265 ,"aclk_h265" ,"aclk_rkvenc" ,0 , -RK3328_CLKGATE_CON (25 ),0 ,GFLAGS ), +RK3328_CLKGATE_CON (25 ),2 ,GFLAGS ),GATE (PCLK_H265 ,"pclk_h265" ,"hclk_rkvenc" ,0 , -RK3328_CLKGATE_CON (25 ),1 ,GFLAGS ), +RK3328_CLKGATE_CON (25 ),3 ,GFLAGS ),GATE (ACLK_H264 ,"aclk_h264" ,"aclk_rkvenc" ,0 , -RK3328_CLKGATE_CON (25 ),0 ,GFLAGS ), +RK3328_CLKGATE_CON (25 ),4 ,GFLAGS ),GATE (HCLK_H264 ,"hclk_h264" ,"hclk_rkvenc" ,0 , -RK3328_CLKGATE_CON (25 ),1 ,GFLAGS ), +RK3328_CLKGATE_CON (25 ),5 ,GFLAGS ),GATE (ACLK_AXISRAM ,"aclk_axisram" ,"aclk_rkvenc" ,CLK_IGNORE_UNUSED , -RK3328_CLKGATE_CON (25 ),0 ,GFLAGS ), +RK3328_CLKGATE_CON (25 ),6 ,GFLAGS ), COMPOSITE(SCLK_VENC_CORE, "sclk_venc_core", mux_4plls_p, 0, RK3328_CLKSEL_CON(51), 14, 2, MFLAGS, 8, 5, DFLAGS,
@@ -663,7 +663,7 @@ static struct rockchip_clk_branch rk3328_clk_branches[] __initdata = {/* PD_GMAC */ COMPOSITE (ACLK_GMAC ,"aclk_gmac" , mux_2plls_hdmiphy_p,0 , -RK3328_CLKSEL_CON (35 ),6 ,2 ,MFLAGS ,0 ,5 ,DFLAGS , +RK3328_CLKSEL_CON (25 ),6 ,2 ,MFLAGS ,0 ,5 ,DFLAGS ,RK3328_CLKGATE_CON (3 ),2 ,GFLAGS ), COMPOSITE_NOMUX(PCLK_GMAC, "pclk_gmac", "aclk_gmac", 0, RK3328_CLKSEL_CON(25), 8, 3, DFLAGS,
@@ -733,7 +733,7 @@ static struct rockchip_clk_branch rk3328_clk_branches[] __initdata = {/* PD_PERI */ GATE (0 ,"aclk_peri_noc" ,"aclk_peri" ,CLK_IGNORE_UNUSED ,RK3328_CLKGATE_CON (19 ),11 ,GFLAGS ), -GATE (ACLK_USB3OTG ,"aclk_usb3otg" ,"aclk_peri" ,0 ,RK3328_CLKGATE_CON (19 ),4 ,GFLAGS ), +GATE (ACLK_USB3OTG ,"aclk_usb3otg" ,"aclk_peri" ,0 ,RK3328_CLKGATE_CON (19 ),14 ,GFLAGS ),GATE (HCLK_SDMMC ,"hclk_sdmmc" ,"hclk_peri" ,0 ,RK3328_CLKGATE_CON (19 ),0 ,GFLAGS ), GATE(HCLK_SDIO, "hclk_sdio", "hclk_peri", 0, RK3328_CLKGATE_CON(19), 1, GFLAGS),
@@ -913,7 +913,7 @@ static void __init rk3328_clk_init(struct device_node *np) &rk3328_cpuclk_data, rk3328_cpuclk_rates, ARRAY_SIZE(rk3328_cpuclk_rates)); -rockchip_register_softrst (np,11 , reg_base +RK3328_SOFTRST_CON (0 ), +rockchip_register_softrst (np,12 , reg_base +RK3328_SOFTRST_CON (0 ),ROCKCHIP_SOFTRST_HIWORD_MASK );rockchip_register_restart_notifier (ctx,RK3328_GLB_SRST_FST ,NULL );
drivers/clk/tegra/clk-pll.c +2 -2
@@ -663,8 +663,8 @@ static void _update_pll_mnp(struct tegra_clk_pll *pll,pll_override_writel (val, params->pmc_divp_reg, pll); val =pll_override_readl (params->pmc_divnm_reg, pll); - val &= ~(divm_mask (pll) << div_nmp->override_divm_shift) | - ~(divn_mask (pll) << div_nmp->override_divn_shift); + val &= ~((divm_mask (pll) << div_nmp->override_divm_shift) | + (divn_mask (pll) << div_nmp->override_divn_shift)); val |= (cfg->m << div_nmp->override_divm_shift) | (cfg->n << div_nmp->override_divn_shift);pll_override_writel (val, params->pmc_divnm_reg, pll);
drivers/dma/imx-sdma.c +14 -1
@@ -419,6 +419,7 @@ struct sdma_driver_data {int chnenbl0;int num_events;struct sdma_script_start_addrs *script_addrs; +bool check_ratio; };struct sdma_engine {
@@ -557,6 +558,13 @@ static struct sdma_driver_data sdma_imx7d = { .script_addrs = &sdma_script_imx7d, }; +static struct sdma_driver_data sdma_imx8mq = { + .chnenbl0 =SDMA_CHNENBL0_IMX35 , + .num_events =48 , + .script_addrs = &sdma_script_imx7d, + .check_ratio =1 , +}; +static const struct platform_device_id sdma_devtypes[] = { { .name ="imx25-sdma" ,
@@ -579,6 +587,9 @@ static const struct platform_device_id sdma_devtypes[] = { }, { .name = "imx7d-sdma", .driver_data = (unsigned long)&sdma_imx7d, + }, { + .name = "imx8mq-sdma", + .driver_data = (unsigned long)&sdma_imx8mq, }, { /* sentinel */ }
@@ -593,6 +604,7 @@ static const struct of_device_id sdma_dt_ids[] = { { .compatible = "fsl,imx31-sdma", .data = &sdma_imx31, }, { .compatible = "fsl,imx25-sdma", .data = &sdma_imx25, }, { .compatible = "fsl,imx7d-sdma", .data = &sdma_imx7d, }, + { .compatible = "fsl,imx8mq-sdma", .data = &sdma_imx8mq, }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sdma_dt_ids);
@@ -1852,7 +1864,8 @@ static int sdma_init(struct sdma_engine *sdma)if (ret) goto disable_clk_ipg; -if (clk_get_rate (sdma->clk_ahb) ==clk_get_rate (sdma->clk_ipg)) +if (sdma->drvdata->check_ratio && + (clk_get_rate (sdma->clk_ahb) ==clk_get_rate (sdma->clk_ipg))) sdma->clk_ratio =1 ;/* Be sure SDMA has not started yet */
drivers/hwtracing/intel_th/msu.c +32 -3
@@ -84,6 +84,7 @@ struct msc_iter {* @reg_base: register window base address * @thdev: intel_th_device pointer * @win_list: list of windows in multiblock mode +* @single_sgt: single mode buffer * @nr_pages: total number of pages allocated for this buffer * @single_sz: amount of data in single mode * @single_wrap: single mode wrap occurred
@@ -104,6 +105,7 @@ struct msc {struct intel_th_device *thdev;struct list_head win_list; +struct sg_table single_sgt;unsigned long nr_pages;unsigned long single_sz; unsigned int single_wrap : 1;
@@ -617,22 +619,45 @@ static void intel_th_msc_deactivate(struct intel_th_device *thdev)*/ static int msc_buffer_contig_alloc (struct msc *msc,unsigned long size) { +unsigned long nr_pages = size >>PAGE_SHIFT ;unsigned int order =get_order (size);struct page *page; +int ret;if (!size)return 0 ; + ret =sg_alloc_table (&msc->single_sgt,1 ,GFP_KERNEL ); +if (ret) + goto err_out; + + ret = -ENOMEM ; page =alloc_pages (GFP_KERNEL | __GFP_ZERO, order);if (!page) -return -ENOMEM ; + goto err_free_sgt;split_page (page, order); - msc->nr_pages = size >>PAGE_SHIFT ; +sg_set_buf (msc->single_sgt.sgl,page_address (page), size); + + ret =dma_map_sg (msc_dev (msc)->parent->parent, msc->single_sgt.sgl,1 , +DMA_FROM_DEVICE ); +if (ret <0 ) + goto err_free_pages; + + msc->nr_pages = nr_pages; msc->base =page_address (page); - msc->base_addr =page_to_phys (page); + msc->base_addr =sg_dma_address (msc->single_sgt.sgl);return 0 ; + +err_free_pages: +__free_pages (page, order); + +err_free_sgt: +sg_free_table (&msc->single_sgt); + +err_out: +return ret; }/**
@@ -643,6 +668,10 @@ static void msc_buffer_contig_free(struct msc *msc) {unsigned long off; +dma_unmap_sg (msc_dev (msc)->parent->parent, msc->single_sgt.sgl, +1 ,DMA_FROM_DEVICE ); +sg_free_table (&msc->single_sgt); +for (off =0 ; off < msc->nr_pages <<PAGE_SHIFT ; off +=PAGE_SIZE ) {struct page *page =virt_to_page (msc->base + off);
drivers/hwtracing/stm/core.c +4 -5
@@ -166,11 +166,10 @@ stm_master(struct stm_device *stm, unsigned int idx)static int stp_master_alloc (struct stm_device *stm,unsigned int idx) {struct stp_master *master; -size_t size; - size =ALIGN (stm->data->sw_nchannels,8 ) /8 ; - size +=sizeof (struct stp_master ); - master =kzalloc (size,GFP_ATOMIC ); + master =kzalloc (struct_size (master, chan_map, +BITS_TO_LONGS (stm->data->sw_nchannels)), +GFP_ATOMIC );if (!master)return -ENOMEM ;
@@ -218,8 +217,8 @@ stm_output_disclaim(struct stm_device *stm, struct stm_output *output)bitmap_release_region (&master->chan_map[0 ], output->channel,ilog2 (output->nr_chans)); - output->nr_chans =0 ; master->nr_free += output->nr_chans; + output->nr_chans =0 ; }/*
drivers/infiniband/hw/mlx5/main.c +3 -2
@@ -2070,11 +2070,12 @@ static int mlx5_ib_mmap_clock_info_page(struct mlx5_ib_dev *dev,return -EPERM ; vma->vm_flags &= ~VM_MAYWRITE ; -if (!dev->mdev->clock_info_page) +if (!dev->mdev->clock_info)return -EOPNOTSUPP ;return rdma_user_mmap_page (&context->ibucontext, vma, - dev->mdev->clock_info_page,PAGE_SIZE ); +virt_to_page (dev->mdev->clock_info), +PAGE_SIZE ); } static int uar_mmap(struct mlx5_ib_dev *dev, enum mlx5_ib_mmap_cmd cmd,
drivers/infiniband/ulp/ipoib/ipoib_main.c +12 -1
@@ -2402,7 +2402,18 @@ static ssize_t dev_id_show(struct device *dev, {struct net_device *ndev =to_net_dev (dev); -if (ndev->dev_id == ndev->dev_port) +/* +* ndev->dev_port will be equal to 0 in old kernel prior to commit +* 9b8b2a323008 ("IB/ipoib: Use dev_port to expose network interface +* port numbers") Zero was chosen as special case for user space +* applications to fallback and query dev_id to check if it has +* different value or not. +* +* Don't print warning in such scenario. +* +* https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L358 +*/ +if (ndev->dev_port && ndev->dev_id == ndev->dev_port)netdev_info_once (ndev,"\"%s\" wants to know my dev_id. Should it look at dev_port instead? See Documentation/ABI/testing/sysfs-class-net for more info.\n" , current->comm);
drivers/iommu/tegra-smmu.c +18 -7
@@ -102,7 +102,6 @@ static inline u32 smmu_readl(struct tegra_smmu *smmu, unsigned long offset)#define SMMU_TLB_FLUSH_VA_MATCH_ALL (0 << 0)#define SMMU_TLB_FLUSH_VA_MATCH_SECTION (2 << 0)#define SMMU_TLB_FLUSH_VA_MATCH_GROUP (3 << 0) -#define SMMU_TLB_FLUSH_ASID (x) (((x) & 0x7f) << 24)#define SMMU_TLB_FLUSH_VA_SECTION (addr) ((((addr) & 0xffc00000) >> 12) | \ SMMU_TLB_FLUSH_VA_MATCH_SECTION)#define SMMU_TLB_FLUSH_VA_GROUP (addr) ((((addr) & 0xffffc000) >> 12) | \
@@ -205,8 +204,12 @@ static inline void smmu_flush_tlb_asid(struct tegra_smmu *smmu, {u32 value; - value =SMMU_TLB_FLUSH_ASID_MATCH |SMMU_TLB_FLUSH_ASID (asid) | -SMMU_TLB_FLUSH_VA_MATCH_ALL ; +if (smmu->soc->num_asids ==4 ) + value = (asid &0x3 ) <<29 ; +else + value = (asid &0x7f ) <<24 ; + + value |=SMMU_TLB_FLUSH_ASID_MATCH |SMMU_TLB_FLUSH_VA_MATCH_ALL ;smmu_writel (smmu, value,SMMU_TLB_FLUSH ); }
@@ -216,8 +219,12 @@ static inline void smmu_flush_tlb_section(struct tegra_smmu *smmu, {u32 value; - value =SMMU_TLB_FLUSH_ASID_MATCH |SMMU_TLB_FLUSH_ASID (asid) | -SMMU_TLB_FLUSH_VA_SECTION (iova); +if (smmu->soc->num_asids ==4 ) + value = (asid &0x3 ) <<29 ; +else + value = (asid &0x7f ) <<24 ; + + value |=SMMU_TLB_FLUSH_ASID_MATCH |SMMU_TLB_FLUSH_VA_SECTION (iova);smmu_writel (smmu, value,SMMU_TLB_FLUSH ); }
@@ -227,8 +234,12 @@ static inline void smmu_flush_tlb_group(struct tegra_smmu *smmu, {u32 value; - value =SMMU_TLB_FLUSH_ASID_MATCH |SMMU_TLB_FLUSH_ASID (asid) | -SMMU_TLB_FLUSH_VA_GROUP (iova); +if (smmu->soc->num_asids ==4 ) + value = (asid &0x3 ) <<29 ; +else + value = (asid &0x7f ) <<24 ; + + value |=SMMU_TLB_FLUSH_ASID_MATCH |SMMU_TLB_FLUSH_VA_GROUP (iova);smmu_writel (smmu, value,SMMU_TLB_FLUSH ); }
drivers/md/dm-cache-metadata.c +8 -1
@@ -1167,11 +1167,18 @@ static int __load_discards(struct dm_cache_metadata *cmd,if (r)return r; -for (b =0 ; b <from_dblock (cmd->discard_nr_blocks); b++) { +for (b =0 ; ; b++) { r =fn (context, cmd->discard_block_size,to_dblock (b),dm_bitset_cursor_get_value (&c));if (r)break ; + +if (b >= (from_dblock (cmd->discard_nr_blocks) -1 )) +break ; + + r =dm_bitset_cursor_next (&c); +if (r) +break ; }dm_bitset_cursor_end (&c);
drivers/md/dm-crypt.c +5 -4
@@ -949,6 +949,7 @@ static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti) {#ifdef CONFIG_BLK_DEV_INTEGRITY struct blk_integrity *bi =blk_get_integrity (cc->dev->bdev->bd_disk); +struct mapped_device *md =dm_table_get_md (ti->table);/* From now we require underlying device with our integrity profile */ if (!bi ||strcasecmp (bi->profile->name,"DM-DIF-EXT-TAG" )) {
@@ -968,7 +969,7 @@ static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti)if (crypt_integrity_aead (cc)) { cc->integrity_tag_size = cc->on_disk_tag_size - cc->integrity_iv_size; -DMINFO ("Integrity AEAD, tag size %u, IV size %u." , +DMDEBUG ("%s: Integrity AEAD, tag size %u, IV size %u." ,dm_device_name (md), cc->integrity_tag_size, cc->integrity_iv_size);if (crypto_aead_setauthsize (any_tfm_aead (cc), cc->integrity_tag_size)) {
@@ -976,7 +977,7 @@ static int crypt_integrity_ctr(struct crypt_config *cc, struct dm_target *ti)return -EINVAL ; } }else if (cc->integrity_iv_size) -DMINFO ("Additional per-sector space %u bytes for IV." , +DMDEBUG ("%s: Additional per-sector space %u bytes for IV." ,dm_device_name (md), cc->integrity_iv_size);if ((cc->integrity_tag_size + cc->integrity_iv_size) != bi->tag_size) {
@@ -1891,7 +1892,7 @@ static int crypt_alloc_tfms_skcipher(struct crypt_config *cc, char *ciphermode)* algorithm implementation is used. Help people debug performance * problems by logging the ->cra_driver_name. */ -DMINFO ("%s using implementation \"%s\"" , ciphermode, +DMDEBUG_LIMIT ("%s using implementation \"%s\"" , ciphermode,crypto_skcipher_alg (any_tfm (cc))->base.cra_driver_name);return 0 ; }
@@ -1911,7 +1912,7 @@ static int crypt_alloc_tfms_aead(struct crypt_config *cc, char *ciphermode)return err; } -DMINFO ("%s using implementation \"%s\"" , ciphermode, +DMDEBUG_LIMIT ("%s using implementation \"%s\"" , ciphermode,crypto_aead_alg (any_tfm_aead (cc))->base.cra_driver_name);return 0 ; }
drivers/md/dm-delay.c +2 -1
@@ -121,7 +121,8 @@ static void delay_dtr(struct dm_target *ti) {struct delay_c *dc = ti->private; -destroy_workqueue (dc->kdelayd_wq); +if (dc->kdelayd_wq) +destroy_workqueue (dc->kdelayd_wq);if (dc->read.dev)dm_put_device (ti, dc->read.dev);
drivers/md/dm-init.c +4 -4
@@ -160,7 +160,7 @@ static int __init dm_parse_table(struct dm_device *dev, char *str)while (table_entry) {DMDEBUG ("parsing table \"%s\"" , str); -if (++dev->dmi.target_count >=DM_MAX_TARGETS ) { +if (++dev->dmi.target_count >DM_MAX_TARGETS ) {DMERR ("too many targets %u > %d" , dev->dmi.target_count,DM_MAX_TARGETS );return -EINVAL ;
@@ -242,9 +242,9 @@ static int __init dm_parse_devices(struct list_head *devices, char *str)return -ENOMEM ;list_add_tail (&dev->list, devices); -if (++ndev >=DM_MAX_DEVICES ) { -DMERR ("too many targets %u > %d" , - dev->dmi.target_count,DM_MAX_TARGETS ); +if (++ndev >DM_MAX_DEVICES ) { +DMERR ("too many devices %lu > %d" , + ndev,DM_MAX_DEVICES );return -EINVAL ; }
drivers/md/dm-integrity.c +2 -2
@@ -2568,7 +2568,7 @@ static int calculate_device_limits(struct dm_integrity_c *ic)if (last_sector < ic->start || last_sector >= ic->meta_device_sectors)return -EINVAL ; }else { -__u64 meta_size = ic->provided_data_sectors * ic->tag_size; +__u64 meta_size = (ic->provided_data_sectors >> ic->sb->log2_sectors_per_block) * ic->tag_size; meta_size = (meta_size + ((1U << (ic->log2_buffer_sectors +SECTOR_SHIFT )) -1 )) >> (ic->log2_buffer_sectors +SECTOR_SHIFT ); meta_size <<= ic->log2_buffer_sectors;
@@ -3439,7 +3439,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned argc, char **argv)DEBUG_print (" journal_sections %u\n" , (unsigned )le32_to_cpu (ic->sb->journal_sections));DEBUG_print (" journal_entries %u\n" , ic->journal_entries);DEBUG_print (" log2_interleave_sectors %d\n" , ic->sb->log2_interleave_sectors); -DEBUG_print (" device_sectors 0x%llx\n" , (unsigned long long )ic->device_sectors); +DEBUG_print (" data_device_sectors 0x%llx\n" , (unsigned long long )ic->data_device_sectors);DEBUG_print (" initial_sectors 0x%x\n" , ic->initial_sectors);DEBUG_print (" metadata_run 0x%x\n" , ic->metadata_run);DEBUG_print (" log2_metadata_run %d\n" , ic->log2_metadata_run);
drivers/md/dm-ioctl.c +5 -1
@@ -2069,7 +2069,7 @@ int __init dm_early_create(struct dm_ioctl *dmi,/* alloc table */ r =dm_table_create (&t,get_mode (dmi), dmi->target_count, md);if (r) - goto err_destroy_dm; + goto err_hash_remove;/* add targets */ for (i =0 ; i < dmi->target_count; i++) {
@@ -2116,6 +2116,10 @@ int __init dm_early_create(struct dm_ioctl *dmi, err_destroy_table:dm_table_destroy (t); +err_hash_remove: + (void )__hash_remove (__get_name_cell (dmi->name)); +/* release reference from __get_name_cell */ +dm_put (md); err_destroy_dm:dm_put (md);dm_destroy (md);
drivers/md/dm-mpath.c +1 -1
@@ -882,6 +882,7 @@ static struct pgpath *parse_path(struct dm_arg_set *as, struct path_selector *psif (attached_handler_name || m->hw_handler_name) {INIT_DELAYED_WORK (&p->activate_path, activate_path_work); r =setup_scsi_dh (p->path.dev->bdev, m, &attached_handler_name, &ti->error); +kfree (attached_handler_name);if (r) {dm_put_device (ti, p->path.dev); goto bad;
@@ -896,7 +897,6 @@ static struct pgpath *parse_path(struct dm_arg_set *as, struct path_selector *psreturn p; bad: -kfree (attached_handler_name);free_pgpath (p);return ERR_PTR (r); }
drivers/md/dm-zoned-metadata.c +5 -0
@@ -1169,6 +1169,9 @@ static int dmz_init_zones(struct dmz_metadata *zmd) goto out; } +if (!nr_blkz) +break ; +/* Process report */ for (i =0 ; i < nr_blkz; i++) { ret =dmz_init_zone (zmd, zone, &blkz[i]);
@@ -1204,6 +1207,8 @@ static int dmz_update_zone(struct dmz_metadata *zmd, struct dm_zone *zone)/* Get zone information from disk */ ret =blkdev_report_zones (zmd->dev->bdev,dmz_start_sect (zmd, zone), &blkz, &nr_blkz,GFP_NOIO ); +if (!nr_blkz) + ret = -EIO ;if (ret) {dmz_dev_err (zmd->dev,"Get zone %u report failed" ,dmz_id (zmd, zone));
drivers/md/dm.c +3 -1
@@ -1467,7 +1467,7 @@ static unsigned get_num_write_zeroes_bios(struct dm_target *ti)static int __send_changing_extent_only (struct clone_info *ci,struct dm_target *ti,unsigned num_bios) { -unsigned len = ci->sector_count; +unsigned len;/* * Even though the device advertised support for this type of
@@ -1478,6 +1478,8 @@ static int __send_changing_extent_only(struct clone_info *ci, struct dm_target *if (!num_bios)return -EOPNOTSUPP ; + len =min ((sector_t )ci->sector_count,max_io_len_target_boundary (ci->sector, ti)); +__send_duplicate_bios (ci, ti, num_bios, &len); ci->sector += len;
drivers/md/md.c +76 -104
259 lines not on this page · raw message
drivers/md/md.h +10 -15
@@ -252,19 +252,6 @@ enum mddev_sb_flags { MD_SB_NEED_REWRITE, /* metadata write needs to be repeated */ }; -#define NR_FLUSH_INFOS 8 -#define NR_FLUSH_BIOS 64 -struct flush_info { -struct bio *bio; -struct mddev *mddev; -struct work_struct flush_work; -atomic_t flush_pending; -}; -struct flush_bio { -struct flush_info *fi; -struct md_rdev *rdev; -}; -struct mddev {void *private;struct md_personality *pers;
@@ -470,8 +457,16 @@ struct mddev {* metadata and bitmap writes */ -mempool_t *flush_pool; -mempool_t *flush_bio_pool; +/* Generic flush handling. +* The last to finish preflush schedules a worker to submit +* the rest of the request (without the REQ_PREFLUSH flag). +*/ +struct bio *flush_bio; +atomic_t flush_pending; +ktime_t start_flush, last_flush;/* last_flush is when the last completed +* flush was started. +*/ +struct work_struct flush_work;struct work_struct event_work;/* used by dm to report failure event */ void (*sync_super)(struct mddev *mddev,struct md_rdev *rdev);struct md_cluster_info *cluster_info;
drivers/md/raid5.c +24 -5
@@ -4187,7 +4187,7 @@ static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,/* now write out any block on a failed drive, * or P or Q if they were recomputed */ -BUG_ON (s->uptodate < disks -1 );/* We don't need Q to recover */ + dev =NULL ;if (s->failed ==2 ) { dev = &sh->dev[s->failed_num[1 ]]; s->locked++;
@@ -4212,6 +4212,14 @@ static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,set_bit (R5_LOCKED , &dev->flags);set_bit (R5_Wantwrite, &dev->flags); } +if (WARN_ONCE (dev && !test_bit (R5_UPTODATE , &dev->flags), +"%s: disk%td not up to date\n" , +mdname (conf->mddev), + dev - (struct r5dev *) &sh->dev)) { +clear_bit (R5_LOCKED , &dev->flags); +clear_bit (R5_Wantwrite, &dev->flags); + s->locked--; + }clear_bit (STRIPE_DEGRADED , &sh->state);set_bit (STRIPE_INSYNC , &sh->state);
@@ -4223,15 +4231,26 @@ static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,case check_state_check_result: sh->check_state = check_state_idle; -if (s->failed >1 ) -break ;/* handle a successful check operation, if parity is correct * we are done. Otherwise update the mismatch count and repair * parity if !MD_RECOVERY_CHECK */ if (sh->ops.zero_sum_result ==0 ) { -/* Any parity checked was correct */ -set_bit (STRIPE_INSYNC , &sh->state); +/* both parities are correct */ +if (!s->failed) +set_bit (STRIPE_INSYNC , &sh->state); +else { +/* in contrast to the raid5 case we can validate +* parity, but still have a failure to write +* back +*/ + sh->check_state = check_state_compute_result; +/* Returning at this point means that we may go +* off and bring p and/or q uptodate again so +* we make sure to check zero_sum_result again +* to verify if p or q need writeback +*/ + } }else {atomic64_add (STRIPE_SECTORS , &conf->mddev->resync_mismatches);if (test_bit (MD_RECOVERY_CHECK , &conf->mddev->recovery)) {
drivers/media/i2c/ov6650.c +2 -0
@@ -814,6 +814,8 @@ static int ov6650_video_probe(struct i2c_client *client)if (ret <0 )return ret; +msleep (20 ); +/* * check and show product ID and manufacturer ID */
drivers/media/platform/Kconfig +1 -1
@@ -649,7 +649,7 @@ config VIDEO_SECO_CEC config VIDEO_SECO_RC bool "SECO Boards IR RC5 support" depends on VIDEO_SECO_CEC - depends on RC_CORE + depends on RC_CORE=y || RC_CORE = VIDEO_SECO_CEC help If you say yes here you will get support for the SECO Boards Consumer-IR in seco-cec driver.
drivers/memory/tegra/mc.c +1 -1
@@ -282,7 +282,7 @@ static int tegra_mc_setup_latency_allowance(struct tegra_mc *mc)u32 value;/* compute the number of MC clock cycles per tick */ - tick = mc->tick *clk_get_rate (mc->clk); + tick = (unsigned long long )mc->tick *clk_get_rate (mc->clk);do_div (tick,NSEC_PER_SEC ); value =readl (mc->regs +MC_EMEM_ARB_CFG );
drivers/net/Makefile +1 -1
@@ -40,7 +40,7 @@ obj-$(CONFIG_ARCNET) += arcnet/ obj-$(CONFIG_DEV_APPLETALK) += appletalk/ obj-$(CONFIG_CAIF) += caif/ obj-$(CONFIG_CAN) += can/ -obj-$(CONFIG_NET_DSA) += dsa/ +obj-y += dsa/ obj-$(CONFIG_ETHERNET) += ethernet/ obj-$(CONFIG_FDDI) += fddi/ obj-$(CONFIG_HIPPI) += hippi/
drivers/net/ethernet/mellanox/mlx4/mcg.c +1 -1
@@ -1492,7 +1492,7 @@ int mlx4_flow_steer_promisc_add(struct mlx4_dev *dev, u8 port, rule.port = port; rule.qpn = qpn;INIT_LIST_HEAD (&rule.list); -mlx4_err (dev,"going promisc on %x\n" , port); +mlx4_info (dev,"going promisc on %x\n" , port);return mlx4_flow_attach (dev, &rule, regid_p); }
drivers/net/ethernet/mellanox/mlx5/core/Kconfig +1 -0
@@ -7,6 +7,7 @@ config MLX5_CORE depends on PCI imply PTP_1588_CLOCK imply VXLAN + imply MLXFW default n ---help--- Core driver for low level functionality of the ConnectX-4 and
drivers/net/ethernet/mellanox/mlx5/core/ecpf.c +1 -1
@@ -26,7 +26,7 @@ static int mlx5_peer_pf_disable_hca(struct mlx5_core_dev *dev)MLX5_SET (disable_hca_in, in, opcode,MLX5_CMD_OP_DISABLE_HCA );MLX5_SET (disable_hca_in, in, function_id,0 ); -MLX5_SET (enable_hca_in, in, embedded_cpu_function,0 ); +MLX5_SET (disable_hca_in, in, embedded_cpu_function,0 );return mlx5_cmd_exec (dev, in,sizeof (in), out,sizeof (out)); }
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +17 -1
@@ -1901,6 +1901,22 @@ static int mlx5e_flash_device(struct net_device *dev,return mlx5e_ethtool_flash_device (priv, flash); } +#ifndef CONFIG_MLX5_EN_RXNFC +/* When CONFIG_MLX5_EN_RXNFC=n we only support ETHTOOL_GRXRINGS +* otherwise this function will be defined from en_fs_ethtool.c +*/ +static int mlx5e_get_rxnfc (struct net_device *dev,struct ethtool_rxnfc *info,u32 *rule_locs) +{ +struct mlx5e_priv *priv =netdev_priv (dev); + +if (info->cmd !=ETHTOOL_GRXRINGS ) +return -EOPNOTSUPP ; +/* ring_count is needed by ethtool -x */ + info->data = priv->channels.params.num_channels; +return 0 ; +} +#endif +const struct ethtool_ops mlx5e_ethtool_ops = { .get_drvinfo = mlx5e_get_drvinfo, .get_link = ethtool_op_get_link,
@@ -1919,8 +1935,8 @@ const struct ethtool_ops mlx5e_ethtool_ops = { .get_rxfh_indir_size = mlx5e_get_rxfh_indir_size, .get_rxfh = mlx5e_get_rxfh, .set_rxfh = mlx5e_set_rxfh, -#ifdef CONFIG_MLX5_EN_RXNFC .get_rxnfc = mlx5e_get_rxnfc, +#ifdef CONFIG_MLX5_EN_RXNFC .set_rxnfc = mlx5e_set_rxnfc, #endif .flash_device = mlx5e_flash_device,
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +18 -1
@@ -65,9 +65,26 @@ static void mlx5e_rep_indr_unregister_block(struct mlx5e_rep_priv *rpriv,static void mlx5e_rep_get_drvinfo (struct net_device *dev,struct ethtool_drvinfo *drvinfo) { +struct mlx5e_priv *priv =netdev_priv (dev); +struct mlx5_core_dev *mdev = priv->mdev; +strlcpy (drvinfo->driver, mlx5e_rep_driver_name,sizeof (drvinfo->driver));strlcpy (drvinfo->version,UTS_RELEASE ,sizeof (drvinfo->version)); +snprintf (drvinfo->fw_version,sizeof (drvinfo->fw_version), +"%d.%d.%04d (%.16s)" , +fw_rev_maj (mdev),fw_rev_min (mdev), +fw_rev_sub (mdev), mdev->board_id); +} + +static void mlx5e_uplink_rep_get_drvinfo (struct net_device *dev, +struct ethtool_drvinfo *drvinfo) +{ +struct mlx5e_priv *priv =netdev_priv (dev); + +mlx5e_rep_get_drvinfo (dev, drvinfo); +strlcpy (drvinfo->bus_info,pci_name (priv->mdev->pdev), +sizeof (drvinfo->bus_info)); }static const struct counter_desc sw_rep_stats_desc[] = {
@@ -363,7 +380,7 @@ static const struct ethtool_ops mlx5e_vf_rep_ethtool_ops = { };static const struct ethtool_ops mlx5e_uplink_rep_ethtool_ops = { - .get_drvinfo = mlx5e_rep_get_drvinfo, + .get_drvinfo = mlx5e_uplink_rep_get_drvinfo, .get_link = ethtool_op_get_link, .get_strings = mlx5e_rep_get_strings, .get_sset_count = mlx5e_rep_get_sset_count,
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +1 -1
@@ -1561,7 +1561,7 @@ static int __parse_cls_flower(struct mlx5e_priv *priv,if (flow_rule_match_key (rule,FLOW_DISSECTOR_KEY_CVLAN )) {struct flow_match_vlan match; -flow_rule_match_vlan (rule, &match); +flow_rule_match_cvlan (rule, &match);if (match.mask->vlan_id || match.mask->vlan_priority || match.mask->vlan_tpid) {
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +2 -0
@@ -1386,6 +1386,8 @@ static bool mlx5_flow_dests_cmp(struct mlx5_flow_destination *d1, if ((d1->type == MLX5_FLOW_DESTINATION_TYPE_VPORT && d1->vport.num == d2->vport.num && d1->vport.flags == d2->vport.flags && + ((d1->vport.flags & MLX5_FLOW_DEST_VPORT_VHCA_ID) ? + (d1->vport.vhca_id == d2->vport.vhca_id) : true) && ((d1->vport.flags & MLX5_FLOW_DEST_VPORT_REFORMAT_ID) ? (d1->vport.reformat_id == d2->vport.reformat_id) : true)) || (d1->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE &&
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c +11 -19
@@ -535,23 +535,16 @@ void mlx5_init_clock(struct mlx5_core_dev *mdev)do_div (ns,NSEC_PER_SEC /HZ ); clock->overflow_period = ns; - mdev->clock_info_page =alloc_page (GFP_KERNEL ); -if (mdev->clock_info_page) { - mdev->clock_info =kmap (mdev->clock_info_page); -if (!mdev->clock_info) { -__free_page (mdev->clock_info_page); -mlx5_core_warn (mdev,"failed to map clock page\n" ); - }else { - mdev->clock_info->sign =0 ; - mdev->clock_info->nsec = clock->tc.nsec; - mdev->clock_info->cycles = clock->tc.cycle_last; - mdev->clock_info->mask = clock->cycles.mask; - mdev->clock_info->mult = clock->nominal_c_mult; - mdev->clock_info->shift = clock->cycles.shift; - mdev->clock_info->frac = clock->tc.frac; - mdev->clock_info->overflow_period = - clock->overflow_period; - } + mdev->clock_info = + (struct mlx5_ib_clock_info *)get_zeroed_page (GFP_KERNEL ); +if (mdev->clock_info) { + mdev->clock_info->nsec = clock->tc.nsec; + mdev->clock_info->cycles = clock->tc.cycle_last; + mdev->clock_info->mask = clock->cycles.mask; + mdev->clock_info->mult = clock->nominal_c_mult; + mdev->clock_info->shift = clock->cycles.shift; + mdev->clock_info->frac = clock->tc.frac; + mdev->clock_info->overflow_period = clock->overflow_period; }INIT_WORK (&clock->pps_info.out_work, mlx5_pps_out);
@@ -599,8 +592,7 @@ void mlx5_cleanup_clock(struct mlx5_core_dev *mdev)cancel_delayed_work_sync (&clock->overflow_work);if (mdev->clock_info) { -kunmap (mdev->clock_info_page); -__free_page (mdev->clock_info_page); +free_page ((unsigned long )mdev->clock_info); mdev->clock_info =NULL ; }
drivers/net/ethernet/mellanox/mlxsw/core.c +6 -0
@@ -122,6 +122,12 @@ void *mlxsw_core_driver_priv(struct mlxsw_core *mlxsw_core) }EXPORT_SYMBOL (mlxsw_core_driver_priv); +bool mlxsw_core_res_query_enabled (const struct mlxsw_core *mlxsw_core) +{ +return mlxsw_core->driver->res_query_enabled; +} +EXPORT_SYMBOL (mlxsw_core_res_query_enabled); +struct mlxsw_rx_listener_item {struct list_head list;struct mlxsw_rx_listener rxl;
drivers/net/ethernet/mellanox/mlxsw/core.h +2 -0
@@ -28,6 +28,8 @@ unsigned int mlxsw_core_max_ports(const struct mlxsw_core *mlxsw_core);void *mlxsw_core_driver_priv (struct mlxsw_core *mlxsw_core); +bool mlxsw_core_res_query_enabled (const struct mlxsw_core *mlxsw_core); +int mlxsw_core_driver_register (struct mlxsw_driver *mlxsw_driver);void mlxsw_core_driver_unregister (struct mlxsw_driver *mlxsw_driver);
drivers/net/ethernet/mellanox/mlxsw/core_env.c +16 -2
@@ -3,6 +3,7 @@#include <linux/kernel.h> #include <linux/err.h> +#include <linux/sfp.h> #include "core.h" #include "core_env.h"
@@ -162,7 +163,7 @@ int mlxsw_env_get_module_info(struct mlxsw_core *mlxsw_core, int module, {u8 module_info[MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE ];u16 offset =MLXSW_REG_MCIA_EEPROM_MODULE_INFO_SIZE ; -u8 module_rev_id, module_id; +u8 module_rev_id, module_id, diag_mon;unsigned int read_size;int err;
@@ -195,8 +196,21 @@ int mlxsw_env_get_module_info(struct mlxsw_core *mlxsw_core, int module, }break ;case MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_SFP : +/* Verify if transceiver provides diagnostic monitoring page */ + err =mlxsw_env_query_module_eeprom (mlxsw_core, module, +SFP_DIAGMON ,1 , &diag_mon, + &read_size); +if (err) +return err; + +if (read_size <1 ) +return -EIO ; + modinfo->type =ETH_MODULE_SFF_8472 ; - modinfo->eeprom_len =ETH_MODULE_SFF_8472_LEN ; +if (diag_mon) + modinfo->eeprom_len =ETH_MODULE_SFF_8472_LEN ; +else + modinfo->eeprom_len =ETH_MODULE_SFF_8472_LEN /2 ;break ;default :return -EINVAL ;
drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c +3 -0
@@ -518,6 +518,9 @@ static int mlxsw_hwmon_module_init(struct mlxsw_hwmon *mlxsw_hwmon)u8 width;int err; +if (!mlxsw_core_res_query_enabled (mlxsw_hwmon->core)) +return 0 ; +/* Add extra attributes for module temperature. Sensor index is * assigned to sensor_count value, while all indexed before * sensor_count are already utilized by the sensors connected through
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c +6 -0
@@ -740,6 +740,9 @@ mlxsw_thermal_modules_init(struct device *dev, struct mlxsw_core *core,struct mlxsw_thermal_module *module_tz;int i, err; +if (!mlxsw_core_res_query_enabled (core)) +return 0 ; + thermal->tz_module_arr =kcalloc (module_count,sizeof (*thermal->tz_module_arr),GFP_KERNEL );
@@ -776,6 +779,9 @@ mlxsw_thermal_modules_fini(struct mlxsw_thermal *thermal)unsigned int module_count =mlxsw_core_max_ports (thermal->core);int i; +if (!mlxsw_core_res_query_enabled (thermal->core)) +return ; +for (i = module_count -1 ; i >=0 ; i--)mlxsw_thermal_module_fini (&thermal->tz_module_arr[i]);kfree (thermal->tz_module_arr);
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c +11 -6
@@ -168,6 +168,7 @@ void nfp_tunnel_keep_alive(struct nfp_app *app, struct sk_buff *skb)return ; } +rcu_read_lock ();for (i =0 ; i < count; i++) { ipv4_addr = payload->tun_info[i].ipv4; port =be32_to_cpu (payload->tun_info[i].egress_port);
@@ -183,6 +184,7 @@ void nfp_tunnel_keep_alive(struct nfp_app *app, struct sk_buff *skb)neigh_event_send (n,NULL );neigh_release (n); } +rcu_read_unlock (); } static int
@@ -366,9 +368,10 @@ void nfp_tunnel_request_route(struct nfp_app *app, struct sk_buff *skb) payload =nfp_flower_cmsg_get_data (skb); +rcu_read_lock (); netdev =nfp_app_repr_get (app,be32_to_cpu (payload->ingress_port));if (!netdev) - goto route_fail_warning; + goto fail_rcu_unlock; flow.daddr = payload->ipv4_addr; flow.flowi4_proto =IPPROTO_UDP ;
@@ -378,21 +381,23 @@ void nfp_tunnel_request_route(struct nfp_app *app, struct sk_buff *skb) rt =ip_route_output_key (dev_net (netdev), &flow); err =PTR_ERR_OR_ZERO (rt);if (err) - goto route_fail_warning; + goto fail_rcu_unlock;#else - goto route_fail_warning; + goto fail_rcu_unlock;#endif /* Get the neighbour entry for the lookup */ n =dst_neigh_lookup (&rt->dst, &flow.daddr);ip_rt_put (rt);if (!n) - goto route_fail_warning; -nfp_tun_write_neigh (n->dev, app, &flow, n,GFP_KERNEL ); + goto fail_rcu_unlock; +nfp_tun_write_neigh (n->dev, app, &flow, n,GFP_ATOMIC );neigh_release (n); +rcu_read_unlock ();return ; -route_fail_warning: +fail_rcu_unlock: +rcu_read_unlock ();nfp_flower_cmsg_warn (app,"Requested route not found.\n" ); }
drivers/net/ppp/ppp_deflate.c +14 -6
@@ -610,12 +610,20 @@ static struct compressor ppp_deflate_draft = {static int __init deflate_init (void ) { -int answer =ppp_register_compressor (&ppp_deflate); -if (answer ==0 ) -printk (KERN_INFO -"PPP Deflate Compression module registered\n" ); -ppp_register_compressor (&ppp_deflate_draft); -return answer; +int rc; + + rc =ppp_register_compressor (&ppp_deflate); +if (rc) +return rc; + + rc =ppp_register_compressor (&ppp_deflate_draft); +if (rc) { +ppp_unregister_compressor (&ppp_deflate); +return rc; + } + +pr_info ("PPP Deflate Compression module registered\n" ); +return 0 ; } static void __exit deflate_cleanup(void)
drivers/net/usb/qmi_wwan.c +2 -0
@@ -1250,6 +1250,8 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x1bc7, 0x1101, 3)}, /* Telit ME910 dual modem */ {QMI_FIXED_INTF(0x1bc7, 0x1200, 5)}, /* Telit LE920 */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x1201, 2)}, /* Telit LE920, LE920A4 */ + {QMI_QUIRK_SET_DTR(0x1bc7, 0x1260, 2)}, /* Telit LE910Cx */ + {QMI_QUIRK_SET_DTR(0x1bc7, 0x1261, 2)}, /* Telit LE910Cx */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x1900, 1)}, /* Telit LN940 series */ {QMI_FIXED_INTF(0x1c9e, 0x9801, 3)}, /* Telewell TW-3G HSPA+ */ {QMI_FIXED_INTF(0x1c9e, 0x9803, 4)}, /* Telewell TW-3G HSPA+ */
drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c +26 -0
@@ -31,6 +31,10 @@ struct brcmf_dmi_data {/* NOTE: Please keep all entries sorted alphabetically */ +static const struct brcmf_dmi_data acepc_t8_data = { +BRCM_CC_4345_CHIP_ID ,6 ,"acepc-t8" +}; +static const struct brcmf_dmi_data gpd_win_pocket_data = {BRCM_CC_4356_CHIP_ID ,2 ,"gpd-win-pocket" };
@@ -48,6 +52,28 @@ static const struct brcmf_dmi_data pov_tab_p1006w_data = { };static const struct dmi_system_id dmi_platform_data[] = { + { +/* ACEPC T8 Cherry Trail Z8350 mini PC */ + .matches = { +DMI_EXACT_MATCH (DMI_BOARD_VENDOR ,"To be filled by O.E.M." ), +DMI_EXACT_MATCH (DMI_BOARD_NAME ,"Cherry Trail CR" ), +DMI_EXACT_MATCH (DMI_PRODUCT_SKU ,"T8" ), +/* also match on somewhat unique bios-version */ +DMI_EXACT_MATCH (DMI_BIOS_VERSION ,"1.000" ), + }, + .driver_data = (void *)&acepc_t8_data, + }, + { +/* ACEPC T11 Cherry Trail Z8350 mini PC, same wifi as the T8 */ + .matches = { +DMI_EXACT_MATCH (DMI_BOARD_VENDOR ,"To be filled by O.E.M." ), +DMI_EXACT_MATCH (DMI_BOARD_NAME ,"Cherry Trail CR" ), +DMI_EXACT_MATCH (DMI_PRODUCT_SKU ,"T11" ), +/* also match on somewhat unique bios-version */ +DMI_EXACT_MATCH (DMI_BIOS_VERSION ,"1.000" ), + }, + .driver_data = (void *)&acepc_t8_data, + }, {/* Match for the GPDwin which unfortunately uses somewhat * generic dmi strings, which is why we test for 4 strings.
drivers/net/wireless/intersil/p54/p54pci.c +2 -1
@@ -554,7 +554,7 @@ static int p54p_probe(struct pci_dev *pdev, err =pci_enable_device (pdev);if (err) {dev_err (&pdev->dev,"Cannot enable new PCI device\n" ); -return err; + goto err_put; } mem_addr =pci_resource_start (pdev,0 );
@@ -639,6 +639,7 @@ static int p54p_probe(struct pci_dev *pdev,pci_release_regions (pdev); err_disable_dev:pci_disable_device (pdev); +err_put:pci_dev_put (pdev);return err; }
drivers/parisc/led.c +3 -0
@@ -568,6 +568,9 @@ int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long dbreak ;case DISPLAY_MODEL_LASI : +/* Skip to register LED in QEMU */ +if (running_on_qemu) +return 1 ;LED_DATA_REG = data_reg; led_func_ptr = led_LASI_driver;printk (KERN_INFO "LED display at %lx registered\n" ,LED_DATA_REG );
drivers/pci/controller/pcie-rcar.c +21 -0
@@ -46,6 +46,7 @@/* Transfer control */ #define PCIETCTLR 0x02000 +#define DL_DOWN BIT(3)#define CFINIT 1#define PCIETSTR 0x02004#define DATA_LINK_ACTIVE 1
@@ -94,6 +95,7 @@#define MACCTLR 0x011058#define SPEED_CHANGE BIT(24)#define SCRAMBLE_DISABLE BIT(27) +#define PMSR 0x01105c#define MACS2R 0x011078#define MACCGSPSETR 0x011084#define SPCNGRSN BIT(31)
@@ -1130,6 +1132,7 @@ static int rcar_pcie_probe(struct platform_device *pdev) pcie =pci_host_bridge_priv (bridge); pcie->dev = dev; +platform_set_drvdata (pdev, pcie); err =pci_parse_request_of_pci_ranges (dev, &pcie->resources,NULL );if (err)
@@ -1221,10 +1224,28 @@ static int rcar_pcie_probe(struct platform_device *pdev)return err; } +static int rcar_pcie_resume_noirq (struct device *dev) +{ +struct rcar_pcie *pcie =dev_get_drvdata (dev); + +if (rcar_pci_read_reg (pcie,PMSR ) && + !(rcar_pci_read_reg (pcie,PCIETCTLR ) &DL_DOWN )) +return 0 ; + +/* Re-establish the PCIe link */ +rcar_pci_write_reg (pcie,CFINIT ,PCIETCTLR ); +return rcar_pcie_wait_for_dl (pcie); +} + +static const struct dev_pm_ops rcar_pcie_pm_ops = { + .resume_noirq = rcar_pcie_resume_noirq, +}; +static struct platform_driver rcar_pcie_driver = { .driver = { .name ="rcar-pcie" , .of_match_table = rcar_pcie_of_match, + .pm = &rcar_pcie_pm_ops, .suppress_bind_attrs = true, }, .probe = rcar_pcie_probe,
drivers/pci/pci.h +1 -1
@@ -597,7 +597,7 @@ void pci_aer_clear_fatal_status(struct pci_dev *dev);void pci_aer_clear_device_status (struct pci_dev *dev);#else static inline void pci_no_aer (void ) { } -static inline int pci_aer_init (struct pci_dev *d) {return -ENODEV ; } +static inline void pci_aer_init (struct pci_dev *d) { }static inline void pci_aer_exit (struct pci_dev *d) { }static inline void pci_aer_clear_fatal_status (struct pci_dev *dev) { }static inline void pci_aer_clear_device_status (struct pci_dev *dev) { }
drivers/pci/pcie/aspm.c +33 -16
67 lines not on this page · raw message
drivers/pci/probe.c +14 -9
@@ -586,16 +586,9 @@ static void pci_release_host_bridge_dev(struct device *dev)kfree (to_pci_host_bridge (dev)); } -struct pci_host_bridge *pci_alloc_host_bridge (size_t priv) +static void pci_init_host_bridge (struct pci_host_bridge *bridge) { -struct pci_host_bridge *bridge; - - bridge =kzalloc (sizeof (*bridge) + priv,GFP_KERNEL ); -if (!bridge) -return NULL ; -INIT_LIST_HEAD (&bridge->windows); - bridge->dev.release = pci_release_host_bridge_dev;/* * We assume we can manage these PCIe features. Some systems may
@@ -608,6 +601,18 @@ struct pci_host_bridge *pci_alloc_host_bridge(size_t priv) bridge->native_shpc_hotplug =1 ; bridge->native_pme =1 ; bridge->native_ltr =1 ; +} + +struct pci_host_bridge *pci_alloc_host_bridge (size_t priv) +{ +struct pci_host_bridge *bridge; + + bridge =kzalloc (sizeof (*bridge) + priv,GFP_KERNEL ); +if (!bridge) +return NULL ; + +pci_init_host_bridge (bridge); + bridge->dev.release = pci_release_host_bridge_dev;return bridge; }
@@ -622,7 +627,7 @@ struct pci_host_bridge *devm_pci_alloc_host_bridge(struct device *dev,if (!bridge)return NULL ; -INIT_LIST_HEAD (&bridge->windows); +pci_init_host_bridge (bridge); bridge->dev.release = devm_pci_release_host_bridge_dev;return bridge;
drivers/pci/quirks.c +77 -0
98 lines not on this page · raw message
drivers/phy/ti/phy-ti-pipe3.c +1 -1
@@ -303,7 +303,7 @@ static void ti_pipe3_calibrate(struct ti_pipe3 *phy) val =ti_pipe3_readl (phy->phy_rx,PCIEPHYRX_ANA_PROGRAMMABILITY ); val &= ~(INTERFACE_MASK |LOSD_MASK |MEM_PLLDIV ); - val = (0x1 <<INTERFACE_SHIFT |0xA <<LOSD_SHIFT ); + val |= (0x1 <<INTERFACE_SHIFT |0xA <<LOSD_SHIFT );ti_pipe3_writel (phy->phy_rx,PCIEPHYRX_ANA_PROGRAMMABILITY , val); val =ti_pipe3_readl (phy->phy_rx,PCIEPHYRX_DIGITAL_MODES );
drivers/regulator/core.c +4 -7
@@ -3322,15 +3322,12 @@ static int regulator_set_voltage_unlocked(struct regulator *regulator,/* for not coupled regulators this will just set the voltage */ ret =regulator_balance_voltage (rdev, state); -if (ret <0 ) - goto out2; +if (ret <0 ) { + voltage->min_uV = old_min_uV; + voltage->max_uV = old_max_uV; + } out: -return 0 ; -out2: - voltage->min_uV = old_min_uV; - voltage->max_uV = old_max_uV; -return ret; }
drivers/staging/media/imx/imx-ic-common.c +1 -1
@@ -26,7 +26,7 @@ static struct imx_ic_ops *ic_ops[IC_NUM_OPS] = {static int imx_ic_probe (struct platform_device *pdev) { -struct imx_media_internal_sd_platformdata *pdata; +struct imx_media_ipu_internal_sd_pdata *pdata;struct imx_ic_priv *priv;int ret;
drivers/staging/media/imx/imx-media-csi.c +14 -4
@@ -154,9 +154,10 @@ static inline bool requires_passthrough(struct v4l2_fwnode_endpoint *ep,/* * Parses the fwnode endpoint from the source pad of the entity * connected to this CSI. This will either be the entity directly -* upstream from the CSI-2 receiver, or directly upstream from the -* video mux. The endpoint is needed to determine the bus type and -* bus config coming into the CSI. +* upstream from the CSI-2 receiver, directly upstream from the +* video mux, or directly upstream from the CSI itself. The endpoint +* is needed to determine the bus type and bus config coming into +* the CSI. */ static int csi_get_upstream_endpoint (struct csi_priv *priv,struct v4l2_fwnode_endpoint *ep)
@@ -172,7 +173,8 @@ static int csi_get_upstream_endpoint(struct csi_priv *priv,if (!priv->src_sd)return -EPIPE ; - src = &priv->src_sd->entity; + sd = priv->src_sd; + src = &sd->entity;if (src->function ==MEDIA_ENT_F_VID_MUX ) {/*
@@ -186,6 +188,14 @@ static int csi_get_upstream_endpoint(struct csi_priv *priv, src = &sd->entity; } +/* +* If the source is neither the video mux nor the CSI-2 receiver, +* get the source pad directly upstream from CSI itself. +*/ +if (src->function !=MEDIA_ENT_F_VID_MUX && + sd->grp_id !=IMX_MEDIA_GRP_ID_CSI2 ) + src = &priv->sd.entity; +/* get source pad of entity directly upstream from src */ pad =imx_media_find_upstream_pad (priv->md, src,0 );if (IS_ERR (pad))
drivers/staging/media/imx/imx-media-dev.c +2 -9
@@ -477,13 +477,6 @@ static int imx_media_probe(struct platform_device *pdev) goto cleanup; } - ret =imx_media_add_internal_subdevs (imxmd); -if (ret) { -v4l2_err (&imxmd->v4l2_dev, -"add_internal_subdevs failed with %d\n" , ret); - goto cleanup; - } - ret =imx_media_dev_notifier_register (imxmd);if (ret) goto del_int;
@@ -491,7 +484,7 @@ static int imx_media_probe(struct platform_device *pdev)return 0 ; del_int: -imx_media_remove_internal_subdevs (imxmd); +imx_media_remove_ipu_internal_subdevs (imxmd); cleanup:v4l2_async_notifier_cleanup (&imxmd->notifier);v4l2_device_unregister (&imxmd->v4l2_dev);
@@ -508,7 +501,7 @@ static int imx_media_remove(struct platform_device *pdev)v4l2_info (&imxmd->v4l2_dev,"Removing imx-media\n" );v4l2_async_notifier_unregister (&imxmd->notifier); -imx_media_remove_internal_subdevs (imxmd); +imx_media_remove_ipu_internal_subdevs (imxmd);v4l2_async_notifier_cleanup (&imxmd->notifier);media_device_unregister (&imxmd->md);v4l2_device_unregister (&imxmd->v4l2_dev);
drivers/staging/media/imx/imx-media-internal-sd.c +9 -23
@@ -1,7 +1,7 @@/* * Media driver for Freescale i.MX5/6 SOC * -* Adds the internal subdevices and the media links between them. +* Adds the IPU internal subdevices and the media links between them. * * Copyright (c) 2016 Mentor Graphics Inc. *
@@ -192,7 +192,7 @@ static struct v4l2_subdev *find_sink(struct imx_media_dev *imxmd,/* * retrieve IPU id from subdev name, note: can't get this from -* struct imx_media_internal_sd_platformdata because if src is +* struct imx_media_ipu_internal_sd_pdata because if src is * a CSI, it has different struct ipu_client_platformdata which * does not contain IPU id. */
@@ -270,7 +270,7 @@ static int add_internal_subdev(struct imx_media_dev *imxmd, const struct internal_subdev *isd, int ipu_id) { -struct imx_media_internal_sd_platformdata pdata; +struct imx_media_ipu_internal_sd_pdata pdata;struct platform_device_info pdevinfo = {};struct platform_device *pdev;
@@ -298,13 +298,14 @@ static int add_internal_subdev(struct imx_media_dev *imxmd, }/* adds the internal subdevs in one ipu */ -static int add_ipu_internal_subdevs (struct imx_media_dev *imxmd,int ipu_id) +int imx_media_add_ipu_internal_subdevs (struct imx_media_dev *imxmd, +int ipu_id) {enum isd_enum i; +int ret;for (i =0 ; i < num_isd; i++) {const struct internal_subdev *isd = &int_subdev[i]; -int ret;/* * the CSIs are represented in the device-tree, so those
@@ -322,32 +323,17 @@ static int add_ipu_internal_subdevs(struct imx_media_dev *imxmd, int ipu_id) }if (ret) -return ret; + goto remove; }return 0 ; -} - -int imx_media_add_internal_subdevs (struct imx_media_dev *imxmd) -{ -int ret; - - ret =add_ipu_internal_subdevs (imxmd,0 ); -if (ret) - goto remove; - - ret =add_ipu_internal_subdevs (imxmd,1 ); -if (ret) - goto remove; - -return 0 ; remove: -imx_media_remove_internal_subdevs (imxmd); +imx_media_remove_ipu_internal_subdevs (imxmd);return ret; } -void imx_media_remove_internal_subdevs (struct imx_media_dev *imxmd) +void imx_media_remove_ipu_internal_subdevs (struct imx_media_dev *imxmd) {struct imx_media_async_subdev *imxasd;struct v4l2_async_subdev *asd;
drivers/staging/media/imx/imx-media-of.c +48 -25
111 lines not on this page · raw message
drivers/staging/media/imx/imx-media-vdic.c +1 -1
@@ -934,7 +934,7 @@ static const struct v4l2_subdev_internal_ops vdic_internal_ops = {static int imx_vdic_probe (struct platform_device *pdev) { -struct imx_media_internal_sd_platformdata *pdata; +struct imx_media_ipu_internal_sd_pdata *pdata;struct vdic_priv *priv;int ret;
drivers/staging/media/imx/imx-media.h +4 -3
@@ -115,7 +115,7 @@ struct imx_media_pad_vdev {struct list_head list; }; -struct imx_media_internal_sd_platformdata { +struct imx_media_ipu_internal_sd_pdata {char sd_name[V4L2_SUBDEV_NAME_SIZE ];u32 grp_id;int ipu_id;
@@ -252,10 +252,11 @@ struct imx_media_fim *imx_media_fim_init(struct v4l2_subdev *sd);void imx_media_fim_free (struct imx_media_fim *fim);/* imx-media-internal-sd.c */ -int imx_media_add_internal_subdevs (struct imx_media_dev *imxmd); +int imx_media_add_ipu_internal_subdevs (struct imx_media_dev *imxmd, +int ipu_id);int imx_media_create_ipu_internal_links (struct imx_media_dev *imxmd,struct v4l2_subdev *sd); -void imx_media_remove_internal_subdevs (struct imx_media_dev *imxmd); +void imx_media_remove_ipu_internal_subdevs (struct imx_media_dev *imxmd);/* imx-media-of.c */ int imx_media_add_of_subdevs(struct imx_media_dev *dev,
drivers/staging/media/imx/imx7-media-csi.c +1 -1
@@ -1271,7 +1271,7 @@ static int imx7_csi_probe(struct platform_device *pdev)platform_set_drvdata (pdev, &csi->sd); ret =imx_media_of_add_csi (imxmd, node); -if (ret <0 ) +if (ret <0 && ret != -ENODEV && ret != -EEXIST ) goto cleanup; ret =imx_media_dev_notifier_register (imxmd);
drivers/video/fbdev/efifb.c +6 -2
@@ -476,8 +476,12 @@ static int efifb_probe(struct platform_device *dev)* If the UEFI memory map covers the efifb region, we may only * remap it using the attributes the memory map prescribes. */ - mem_flags |=EFI_MEMORY_WT |EFI_MEMORY_WB ; - mem_flags &= md.attribute; + md.attribute &=EFI_MEMORY_UC |EFI_MEMORY_WC | +EFI_MEMORY_WT |EFI_MEMORY_WB ; +if (md.attribute) { + mem_flags |=EFI_MEMORY_WT |EFI_MEMORY_WB ; + mem_flags &= md.attribute; + } }if (mem_flags &EFI_MEMORY_WC ) info->screen_base = ioremap_wc(efifb_fix.smem_start,
drivers/video/fbdev/sm712.h +4 -8
@@ -15,14 +15,10 @@#define FB_ACCEL_SMI_LYNX 88 -#define SCREEN_X_RES 1024 -#define SCREEN_Y_RES 600 -#define SCREEN_BPP 16 - -/*Assume SM712 graphics chip has 4MB VRAM */ -#define SM712_VIDEOMEMORYSIZE 0x00400000 -/*Assume SM722 graphics chip has 8MB VRAM */ -#define SM722_VIDEOMEMORYSIZE 0x00800000 +#define SCREEN_X_RES 1024 +#define SCREEN_Y_RES_PC 768 +#define SCREEN_Y_RES_NETBOOK 600 +#define SCREEN_BPP 16#define dac_reg (0x3c8)#define dac_val (0x3c9)
drivers/video/fbdev/sm712fb.c +196 -47
353 lines not on this page · raw message
drivers/video/fbdev/udlfb.c +90 -24
190 lines not on this page · raw message
fs/notify/fsnotify.c +41 -0
41 lines not on this page · raw message
net/ipv6/route.c +34 -24
58 lines not on this page · raw message
net/vmw_vsock/virtio_transport_common.c +7 -0
Lines of this file are not shown. View the raw message.
scripts/gcc-plugins/arm_ssp_per_task_plugin.c +1 -1
Lines of this file are not shown. View the raw message.
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +24 -7
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Thanks, a bunch Greg!
Quoted 448 lines · Greg KH
I'm announcing the release of the 5.1.5 kernel.
All users of the 5.1 kernel series must upgrade.
The updated 5.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-5.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summarythanks,
greg k-h
------------
Documentation/filesystems/porting | 5 Makefile | 2 arch/Kconfig | 2 arch/arm/boot/dts/imx6-logicpd-baseboard.dtsi | 2 arch/mips/kernel/perf_event_mipsxx.c | 21 - arch/parisc/boot/compressed/head.S | 6 arch/parisc/include/asm/assembly.h | 6 arch/parisc/include/asm/cache.h | 10 arch/parisc/kernel/head.S | 4 arch/parisc/kernel/process.c | 1 arch/parisc/kernel/syscall.S | 2 arch/parisc/mm/init.c | 2 arch/powerpc/include/asm/mmu_context.h | 1 arch/um/include/asm/mmu_context.h | 1 arch/unicore32/include/asm/mmu_context.h | 1 arch/x86/entry/entry_64.S | 18 + arch/x86/include/asm/mmu_context.h | 6 arch/x86/include/asm/mpx.h | 15 arch/x86/include/asm/text-patching.h | 28 + arch/x86/kernel/ftrace.c | 32 +- arch/x86/mm/mpx.c | 10 block/blk-core.c | 2 block/blk-mq-sysfs.c | 6 block/blk-mq.c | 8 block/blk-mq.h | 2 drivers/base/dd.c | 5 drivers/block/brd.c | 7 drivers/clk/hisilicon/clk-hi3660.c | 6 drivers/clk/mediatek/clk-pll.c | 48 ++- drivers/clk/rockchip/clk-rk3328.c | 18 - drivers/clk/tegra/clk-pll.c | 4 drivers/dma/imx-sdma.c | 15 drivers/hwtracing/intel_th/msu.c | 35 ++ drivers/hwtracing/stm/core.c | 9 drivers/infiniband/hw/mlx5/main.c | 5 drivers/infiniband/ulp/ipoib/ipoib_main.c | 13 drivers/iommu/tegra-smmu.c | 25 + drivers/md/dm-cache-metadata.c | 9 drivers/md/dm-crypt.c | 9 drivers/md/dm-delay.c | 3 drivers/md/dm-init.c | 8 drivers/md/dm-integrity.c | 4 drivers/md/dm-ioctl.c | 6 drivers/md/dm-mpath.c | 2 drivers/md/dm-zoned-metadata.c | 5 drivers/md/dm.c | 4 drivers/md/md.c | 180 +++++------ drivers/md/md.h | 25 - drivers/md/raid5.c | 29 + drivers/media/i2c/ov6650.c | 2 drivers/media/platform/Kconfig | 2 drivers/memory/tegra/mc.c | 2 drivers/net/Makefile | 2 drivers/net/ethernet/mellanox/mlx4/mcg.c | 2 drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 drivers/net/ethernet/mellanox/mlx5/core/ecpf.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 18 + drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 19 + drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 2 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | 30 - drivers/net/ethernet/mellanox/mlxsw/core.c | 6 drivers/net/ethernet/mellanox/mlxsw/core.h | 2 drivers/net/ethernet/mellanox/mlxsw/core_env.c | 18 + drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 3 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 6 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c | 17 - drivers/net/ppp/ppp_deflate.c | 20 - drivers/net/usb/qmi_wwan.c | 2 drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c | 26 + drivers/net/wireless/intersil/p54/p54pci.c | 3 drivers/parisc/led.c | 3 drivers/pci/controller/pcie-rcar.c | 21 + drivers/pci/pci.h | 2 drivers/pci/pcie/aspm.c | 49 ++- drivers/pci/probe.c | 23 - drivers/pci/quirks.c | 77 +++++ drivers/phy/ti/phy-ti-pipe3.c | 2 drivers/regulator/core.c | 11 drivers/staging/media/imx/imx-ic-common.c | 2 drivers/staging/media/imx/imx-media-csi.c | 18 - drivers/staging/media/imx/imx-media-dev.c | 11 drivers/staging/media/imx/imx-media-internal-sd.c | 32 -- drivers/staging/media/imx/imx-media-of.c | 73 +++- drivers/staging/media/imx/imx-media-vdic.c | 2 drivers/staging/media/imx/imx-media.h | 7 drivers/staging/media/imx/imx7-media-csi.c | 2 drivers/video/fbdev/efifb.c | 8 drivers/video/fbdev/sm712.h | 12 drivers/video/fbdev/sm712fb.c | 243 ++++++++++++---- drivers/video/fbdev/udlfb.c | 114 +++++-- fs/btrfs/relocation.c | 12 fs/ceph/super.c | 7 fs/cifs/cifsglob.h | 1 fs/cifs/cifssmb.c | 2 fs/cifs/smb2ops.c | 14 fs/cifs/transport.c | 10 fs/dcache.c | 24 - fs/fuse/file.c | 13 fs/nfs/filelayout/filelayout.c | 2 fs/nfs/nfs4state.c | 4 fs/notify/fsnotify.c | 41 ++ fs/nsfs.c | 3 fs/overlayfs/copy_up.c | 6 fs/overlayfs/file.c | 5 fs/overlayfs/overlayfs.h | 2 fs/proc/base.c | 5 include/asm-generic/mm_hooks.h | 1 include/linux/bpf.h | 1 include/linux/dcache.h | 2 include/linux/fsnotify.h | 33 -- include/linux/fsnotify_backend.h | 4 include/linux/mlx5/driver.h | 1 include/linux/of.h | 4 include/linux/pci.h | 2 include/linux/skbuff.h | 9 include/net/flow_offload.h | 2 include/net/ip6_fib.h | 3 include/uapi/linux/fuse.h | 2 include/video/udlfb.h | 7 kernel/bpf/hashtab.c | 23 + kernel/bpf/inode.c | 2 kernel/bpf/syscall.c | 5 kernel/trace/trace_events.c | 3 kernel/trace/trace_probe.c | 13 mm/mmap.c | 15 net/core/dev.c | 2 net/core/flow_offload.c | 7 net/core/rtnetlink.c | 16 - net/ipv6/ip6_fib.c | 12 net/ipv6/route.c | 58 ++- net/tipc/core.c | 14 net/vmw_vsock/virtio_transport.c | 13 net/vmw_vsock/virtio_transport_common.c | 7 scripts/gcc-plugins/arm_ssp_per_task_plugin.c | 2 tools/objtool/Makefile | 3 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 31 +- 137 files changed, 1366 insertions(+), 648 deletions(-)Adam Ford (2):
ARM: dts: imx6q-logicpd: Reduce inrush current on USBH1
ARM: dts: imx6q-logicpd: Reduce inrush current on startAdrian Hunter (3):
perf intel-pt: Fix instructions sampling rate perf intel-pt: Fix improved sample timestamp perf intel-pt: Fix sample timestamp wrt non-taken branchesAl Viro (1):
dcache: sort the freeing-without-RCU-delay mess for good.Alexander Shishkin (2):
stm class: Fix channel bitmap on 32-bit systems
intel_th: msu: Fix single mode with IOMMUAmir Goldstein (2):
ovl: fix missing upper fs freeze protection on copy up for ioctl
fsnotify: fix unlink performance regressionAngus Ainslie (Purism) (1):
dmaengine: imx-sdma: Only check ratio on parts that support 1:1Ard Biesheuvel (1):
fbdev/efifb: Ignore framebuffer memmap entries that lack any memory typesArnd Bergmann (2):
media: seco-cec: fix building with RC_CORE=m
y2038: MakeCONFIG_64BIT_TIMEunconditionalBodong Wang (1):
net/mlx5: Fix peer pf disable hca commandChenbo Feng (1):
bpf: relax inode permission check for retrieving bpf programChris Packham (1):
gcc-plugins:arm_ssp_per_task_plugin: Fix for older GCC < 6Christoph Hellwig (1):
md: add a missing endianness conversion incheck_sb_changesChristoph Probst (1):
cifs: fix strcat buffer overflow and reduce raciness insmb21_set_oplock_level()Colin Ian King (1):
phy: ti-pipe3: fix missing bit-wise or operator when assigning valDamien Le Moal (1):
dm zoned: Fix zone report handlingDaniel Borkmann (2):
bpf: addmap_lookup_elem_sys_onlyfor lookups from syscall side bpf, lru: avoid messing with eviction heuristics upon syscall lookupDaniele Palmas (1):
net: usb: qmi_wwan: add Telit 0x1260 and 0x1261 compositionsDave Hansen (1):
x86/mpx, mm/core: Fix recursivemunmap()corruptionDmitry Osipenko (3):
clk: tegra: Fix PLLM programming on Tegra124+ when PMC overrides divider iommu/tegra-smmu: Fix invalid ASID bits on Tegra30/114
memory: tegra: Fix integer overflow on tick value calculationDmytro Linkin (2):
net/mlx5e: Add missing ethtool driver info for representors net/mlx5e: Additional check for flow destination comparisonEdward Cree (1):
flow_offload: support CVLAN matchElazar Leibovich (1):
tracing: Fix partial reading of trace event's id fileEric Dumazet (2):
ipv6: prevent possible fib6 leaks
net: avoid weird emergency messageFlorian Fainelli (2):
net: Always descend into dsa/
MIPS: perf: Fix build withCONFIG_CPU_BMIPS5000enabledGreg Kroah-Hartman (1):
Linux 5.1.5Hans de Goede (1):
brcmfmac: Add DMI nvram filename quirk for ACEPC T8 and T11 mini PCsHelen Koike (2):
dm init: fix max devices/targets checks dm ioctl: fix hang in early create error conditionHelge Deller (6):
parisc: Exportrunning_on_qemusymbol for modules
parisc: Skip registering LED when running in QEMU
parisc: Add memory barrier to asm pdc and sync instructions
parisc: Allow live-patching of__meminitfunctions
parisc: UsePA_ASM_LEVELin boot code
parisc: Rename LEVEL toPA_ASM_LEVELto avoid name clash with DRBD codeHou Tao (1):
brd: re-enable__GFP_HIGHMEMinbrd_insert_page()James Prestwood (1):
PCI: Mark Atheros AR9462 to avoid bus resetJanusz Krzysztofik (1):
media: ov6650: Fix sensor possibly not detected on probeJason Gunthorpe (1):
RDMA/mlx5: Useget_zeroed_page()forclock_infoJean-Philippe Brucker (1):
PCI: Init PCIe feature bits for managed host bridge allocJeff Layton (1):
ceph: flush dirty inodes before proceeding with remountJianbo Liu (1):
net/mlx5e: Fix calling wrong function to get inner vlan key and maskJisheng Zhang (1):
PCI/AER: Changepci_aer_init()stub to return voidJohn David Anglin (1):
parisc: Add memory clobber to TLB purgesJohn Garry (1):
driver core: Postpone DMA tear-down until after devres release for probe failureJonas Karlman (1):
clk: rockchip: fix wrong clock definitions for rk3328Jorge E. Moreira (1):
vsock/virtio: Initialize core virtio vsock before registering the driverJosh Poimboeuf (1):
x86_64: Add gap to int3 to allow for call emulationJunwei Hu (2):
tipc: switch order of device registration to fix a crash
tipc: fix modprobe tipc failed after switch order of device registrationKazufumi Ikeda (1):
PCI: rcar: Add the initialization of PCIe link inresume_noirq()Kirill Smelkov (1):
fuse: AddFOPEN_STREAMto usestream_open()Leo Yan (1):
clk: hi3660: Markclk_gate_ufs_subsysas criticalLeon Romanovsky (1):
RDMA/ipoib: Allow user space differentiate between validdev_portLiu Bo (1):
fuse: honorRLIMIT_FSIZEinfuse_file_fallocateLyude Paul (1):
PCI: Reset Lenovo ThinkPad P50 nvgpu at boot if necessaryMartin Wilck (1):
dm mpath: always freeattached_handler_nameinparse_path()Masami Hiramatsu (1):
tracing: probeevent: Fix to make the type of $comm stringMichael Lass (1):
dm: make sure to obeymax_io_len_target_boundaryMiklos Szeredi (1):
fuse: fix writepages on 32bitMikulas Patocka (5):
udlfb: delete the unused parameter fordlfb_handle_damage
udlfb: fix sleeping inside spinlock
udlfb: introduce a rendering mutex
dm delay: fix a crash when invalid device is specified dm integrity: correctly calculate the size of metadata areaMilan Broz (1):
dm crypt: move detailed message into debug levelMing Lei (1):
blk-mq: free hw queue's resource in hctx's release handlerNathan Chancellor (1):
objtool: Allow AR to be overridden with HOSTARNeilBrown (2):
Revert "MD: fix lock contention for flush bios"
md: batch flush requests.Nigel Croxon (1):
md/raid: raid5 preserve the writeback action after the parity checkNikolai Kostrigin (1):
PCI: Mark AMD Stoney Radeon R7 GPU ATS as brokenNikos Tsironis (1):
dm cache metadata: Fix loading discard bitsetOlga Kornievskaia (1):
PNFS fallback to MDS if no deviceid foundOwen Chen (1):
clk: mediatek: Disabletuner_enbefore change PLL ratePan Bian (1):
p54: drop device reference count if fails to enable devicePaul Moore (1):
proc: prevent changes to overridden credentialsPeter Zijlstra (2):
x86_64: Allow breakpoints to emulate call instructions ftrace/x86_64: Emulate call function while updating in breakpoint handlerPhong Tran (1):
of: fix clang -Wunsequenced forbe32_to_cpu()Pieter Jansen van Vuuren (1):
nfp: flower: add rcu locks when accessing netdev for tunnelsQu Wenruo (1):
btrfs: reloc: Fix NULL pointer dereference due to expandedreloc_rootlifespanRonnie Sahlberg (1):
cifs: fix credits leak for SMB1 oplock breaksSabrina Dubroca (1):
rtnetlink: always putIFLA_LINKfor links with a link-netnsidSaeed Mahameed (2):
net/mlx5: Imply MLXFW inmlx5_core
net/mlx5e: Fix ethtool rxfh commands whenCONFIG_MLX5_EN_RXNFCis disabledSong Liu (1):
Revert "Don't jump tocompute_resultstate fromcheck_resultstate"Stefan Mätje (2):
PCI: Factor outpcie_retrain_link()function
PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratumStefano Garzarella (1):
vsock/virtio: free packets during the socket releaseSteve Longerbeam (4):
media: imx: csi: Allow unknown nearest upstream entities
media: imx: Clear fwnode link struct for each endpoint iteration
media: imx: Rename functions that add IPU-internal subdevs
media: imx: Don't register IPU subdevs/links if CSI port missingSteve Twiss (1):
regulator: core: fix error path forregulator_set_voltage_unlockedTingwei Zhang (1):
stm class: Fix channel free in stm output free pathVadim Pasternak (2):
mlxsw: core: Prevent QSFP module initialization for old hardware
mlxsw: core: Prevent reading unsupported slave address from SFP EEPROMWei Wang (1):
ipv6: fix src addr routing with the exception tableWillem de Bruijn (1):
net: test nouarg before dereferencing zerocopy pointersYifeng Li (9):
fbdev: sm712fb: fix brightness control on reboot, don't set SR30
fbdev: sm712fb: fix VRAM detection, don't set SR70/71/74/75
fbdev: sm712fb: fix white screen of death on reboot, don't set CR3B-CR3F
fbdev: sm712fb: fix boot screen glitch when sm712fb replaces VGA
fbdev: sm712fb: fix crashes during framebuffer writes by correctly mapping VRAM
fbdev: sm712fb: fix support for 1024x768-16 mode
fbdev: sm712fb: use 1024x768 by default on non-MIPS, fix garbled display
fbdev: sm712fb: fix crashes and garbled display during DPMS modesetting
fbdev: sm712fb: fix memory frequency by avoiding a switch/case fallthroughYueHaibing (1):
ppp: deflate: Fix possible crash indeflate_initYufen Yu (1):
md: add mddev->pers to avoid potential NULL pointer dereferenceYunjian Wang (1):
net/mlx4_core: Change the error print to info printZhangXiaoxu (1):
NFS4: Fix v4.0 client state corruption when mount