Linux 4.14.175
Greg KH
maintainerI'm announcing the release of the 4.14.175 kernel.
All users of the 4.14 kernel series must upgrade.
The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.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/devicetree/bindings/net/fsl-fman.txt | 7 Makefile | 2 arch/arm/boot/dts/bcm2835-rpi-zero-w.dts | 1 arch/arm/boot/dts/dra7.dtsi | 3 arch/arm/boot/dts/omap5.dtsi | 1 arch/arm/boot/dts/ox810se.dtsi | 4 arch/arm/boot/dts/ox820.dtsi | 4 arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi | 2 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 4 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 arch/arm64/include/asm/alternative.h | 2 arch/arm64/kernel/ptrace.c | 2 arch/arm64/kernel/signal32.c | 8 arch/arm64/kernel/smp.c | 25 +- arch/powerpc/kernel/vmlinux.lds.S | 6 arch/x86/kernel/ftrace.c | 2 arch/x86/mm/fault.c | 26 ++ block/bfq-cgroup.c | 9 drivers/acpi/apei/ghes.c | 2 drivers/gpio/gpiolib-acpi.c | 140 ++++++++++--- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 46 ++-- drivers/gpu/drm/drm_dp_mst_topology.c | 15 - drivers/gpu/drm/exynos/exynos_drm_dsi.c | 12 - drivers/hwtracing/intel_th/msu.c | 6 drivers/hwtracing/intel_th/pci.c | 5 drivers/i2c/busses/i2c-hix5hd2.c | 1 drivers/iio/adc/at91-sama5d2_adc.c | 45 +++- drivers/iio/magnetometer/ak8974.c | 2 drivers/iio/trigger/stm32-timer-trigger.c | 11 - drivers/infiniband/core/security.c | 11 - drivers/infiniband/hw/mlx5/qp.c | 4 drivers/input/mouse/synaptics.c | 1 drivers/input/touchscreen/raydium_i2c_ts.c | 4 drivers/md/dm-bio-record.h | 15 + drivers/media/usb/b2c2/flexcop-usb.c | 6 drivers/media/usb/dvb-usb/dib0700_core.c | 4 drivers/media/usb/gspca/ov519.c | 10 drivers/media/usb/gspca/stv06xx/stv06xx.c | 19 + drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c | 4 drivers/media/usb/gspca/xirlink_cit.c | 18 + drivers/media/usb/usbtv/usbtv-core.c | 2 drivers/media/usb/usbtv/usbtv-video.c | 5 drivers/misc/altera-stapl/altera.c | 12 - drivers/mmc/host/sdhci-of-at91.c | 8 drivers/net/can/slcan.c | 3 drivers/net/dsa/mt7530.c | 2 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c | 15 - drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 drivers/net/ethernet/freescale/fman/Kconfig | 28 ++ drivers/net/ethernet/freescale/fman/fman.c | 18 + drivers/net/ethernet/freescale/fman/fman.h | 5 drivers/net/ethernet/marvell/mvneta.c | 3 drivers/net/ethernet/micrel/ks8851_mll.c | 56 ++++- drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 drivers/net/macsec.c | 3 drivers/net/usb/qmi_wwan.c | 1 drivers/net/vrf.c | 19 - drivers/net/vxlan.c | 11 - drivers/nfc/fdp/fdp.c | 5 drivers/of/of_mdio.c | 1 drivers/perf/arm_pmu_acpi.c | 7 drivers/platform/x86/pmc_atom.c | 8 drivers/rtc/Kconfig | 1 drivers/scsi/ipr.c | 3 drivers/scsi/ipr.h | 1 drivers/scsi/sd.c | 4 drivers/spi/spi-pxa2xx.c | 23 ++ drivers/spi/spi-qup.c | 11 - drivers/spi/spi-zynqmp-gqspi.c | 3 drivers/staging/greybus/tools/loopback_test.c | 17 - drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 drivers/staging/speakup/main.c | 2 drivers/staging/wlan-ng/hfa384x_usb.c | 2 drivers/staging/wlan-ng/prism2usb.c | 1 drivers/tty/vt/selection.c | 5 drivers/tty/vt/vt.c | 30 ++ drivers/tty/vt/vt_ioctl.c | 80 +++---- drivers/usb/class/cdc-acm.c | 20 + drivers/usb/core/quirks.c | 6 drivers/usb/host/xhci-pci.c | 3 drivers/usb/host/xhci-plat.c | 1 drivers/usb/host/xhci-trace.h | 23 -- drivers/usb/musb/musb_host.c | 17 - drivers/usb/serial/io_edgeport.c | 2 drivers/usb/serial/option.c | 8 drivers/usb/serial/pl2303.c | 1 drivers/usb/serial/pl2303.h | 1 drivers/xen/xenbus/xenbus_comms.c | 4 drivers/xen/xenbus/xenbus_xs.c | 9 fs/afs/rxrpc.c | 4 fs/inode.c | 1 fs/libfs.c | 8 include/linux/fs.h | 1 include/linux/futex.h | 17 - include/linux/page-flags.h | 2 include/linux/selection.h | 4 include/linux/vmalloc.h | 5 include/linux/vt_kern.h | 2 include/trace/events/afs.h | 2 include/uapi/linux/serio.h | 10 kernel/bpf/syscall.c | 9 kernel/cgroup/cgroup-v1.c | 3 kernel/futex.c | 93 +++++--- kernel/irq/manage.c | 11 - kernel/notifier.c | 2 mm/memcontrol.c | 10 mm/nommu.c | 10 mm/slub.c | 32 +- mm/vmalloc.c | 11 - net/dsa/tag_brcm.c | 2 net/hsr/hsr_framereg.c | 10 net/hsr/hsr_netlink.c | 74 +++--- net/hsr/hsr_slave.c | 8 net/ipv4/Kconfig | 1 net/ipv4/ip_vti.c | 38 ++- net/ipv4/route.c | 7 net/ipv6/ip6_vti.c | 34 ++- net/ipv6/tcp_ipv6.c | 3 net/mac80211/mesh_hwmp.c | 3 net/mac80211/sta_info.c | 6 net/mac80211/tx.c | 20 + net/netfilter/nft_fwd_netdev.c | 8 net/packet/af_packet.c | 21 + net/packet/internal.h | 5 net/sched/cls_route.c | 4 net/sched/cls_tcindex.c | 1 net/xfrm/xfrm_device.c | 1 net/xfrm/xfrm_policy.c | 2 net/xfrm/xfrm_user.c | 6 scripts/Makefile.extrawarn | 1 scripts/dtc/dtc-lexer.l | 1 scripts/dtc/dtc-lexer.lex.c_shipped | 1 sound/core/oss/pcm_plugin.c | 12 - sound/core/seq/oss/seq_oss_midi.c | 1 sound/core/seq/seq_virmidi.c | 1 sound/pci/hda/patch_realtek.c | 2 sound/usb/line6/driver.c | 2 sound/usb/line6/midibuf.c | 2 tools/perf/Makefile | 2 tools/perf/util/map.c | 2 tools/perf/util/probe-finder.c | 11 - tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c | 2 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c | 2 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c | 2 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h | 2 tools/scripts/Makefile.include | 4 147 files changed, 1098 insertions(+), 436 deletions(-)
Alberto Mattea (1):
usb: xhci: apply XHCI_SUSPEND_DELAY to AMD XHCI controller 1022:145c
Alexander Shishkin (2):
intel_th: Fix user-visible error codes
intel_th: pci: Add Elkhart Lake CPU support
Anthony Mallet (2):
USB: cdc-acm: fix close_delay and closing_wait units in TIOCSSERIAL
USB: cdc-acm: fix rounding error in TIOCSSERIAL
Carlo Nonato (1):
block, bfq: fix overwrite of bfq_group pointer in bfq_find_set_group()
Chuhong Yuan (1):
i2c: hix5hd2: add missed clk_disable_unprepare in remove
Chunguang Xu (1):
memcg: fix NULL pointer dereference in __mem_cgroup_usage_unregister_event
Cong Wang (2):
net_sched: cls_route: remove the right filter from hashtable
net_sched: keep alloc_hash updated after hash allocation
Corentin Labbe (1):
rtc: max8907: add missing select REGMAP_IRQ
Cristian Marussi (2):
arm64: smp: fix smp_send_stop() behaviour
arm64: smp: fix crash_smp_send_stop() behaviour
Dajun Jin (1):
drivers/of/of_mdio.c:fix of_mdiobus_register()
Dan Carpenter (2):
NFC: fdp: Fix a signedness bug in fdp_nci_send_patch()
Input: raydium_i2c_ts - fix error codes in raydium_i2c_boot_trigger()
Daniel Axtens (1):
altera-stapl: altera_get_note: prevent write beyond end of 'key'
Daniele Palmas (1):
USB: serial: option: add ME910G1 ECM composition 0x110b
David Howells (1):
afs: Fix some tracing details
Dirk Mueller (1):
scripts/dtc: Remove redundant YYLOC global declaration
Dominik Czarnota (1):
sxgbe: Fix off by one in samsung driver strncpy size arg
Dongli Zhang (2):
xenbus: req->body should be updated before req->state
xenbus: req->err should be updated before req->stateEdward Cree (1):
genirq: Fix reference leaks on irq affinity notifiers
Edwin Peer (1):
bnxt_en: fix memory leaks in bnxt_dcbnl_ieee_getets()
Emil Renner Berthing (1):
net: stmmac: dwmac-rk: fix error path in rk_gmac_probe
Eric Biggers (4):
libfs: fix infoleak in simple_attr_read()
vt: vt_ioctl: remove unnecessary console allocation checks
vt: vt_ioctl: fix VT_DISALLOCATE freeing in-use virtual console
vt: vt_ioctl: fix use-after-free in vt_in_use()
Eugen Hristev (2):
iio: adc: at91-sama5d2_adc: fix channel configuration for differential channels
iio: adc: at91-sama5d2_adc: fix differential channels in triggered mode
Eugene Syromiatnikov (1):
Input: avoid BIT() macro usage in the serio.h UAPI header
Evan Green (1):
spi: pxa2xx: Add CS control clock quirk
Fabrice Gasnier (1):
iio: trigger: stm32-timer: disable master mode when stopping
Florian Fainelli (1):
net: dsa: Fix duplicate frames flooded by learning
Georg Müller (1):
platform/x86: pmc_atom: Add Lex 2I385SW to critclk_systems DMI table
Greg Kroah-Hartman (3):
bpf: Explicitly memset the bpf_attr structure
bpf: Explicitly memset some bpf info structures declared on the stack Linux 4.14.175
Gustavo A. R. Silva (1):
Input: raydium_i2c_ts - use true and false for boolean values
Hans de Goede (5):
usb: quirks: add NO_LPM quirk for RTL8153 based ethernet adapters
gpiolib: acpi: Correct comment for HP x2 10 honor_wakeup quirk
gpiolib: acpi: Rework honor_wakeup option into an ignore_wake option
gpiolib: acpi: Add quirk to ignore EC wakeups on HP x2 10 BYT + AXP288 model
gpiolib: acpi: Add quirk to ignore EC wakeups on HP x2 10 CHT + AXP288 model
Ilie Halip (1):
arm64: alternative: fix build with clang integrated assembler
Jernej Skrabec (1):
drm/bridge: dw-hdmi: fix AVI frame colorimetry
Jiri Kosina (1):
ftrace/x86: Anotate text_mutex split between ftrace_arch_code_modify_post_process() and ftrace_arch_code_modify_prepare()
Jiri Slaby (3):
vt: selection, introduce vc_is_sel
vt: ioctl, switch VT_IS_IN_USE and VT_BUSY to inlines
vt: switch vt_dont_switch to bool
Jisheng Zhang (1):
net: mvneta: Fix the case where the last poll did not process all rx
Joerg Roedel (1):
x86/mm: split vmalloc_sync_all()
Johan Hovold (8):
staging: greybus: loopback_test: fix potential path truncation
staging: greybus: loopback_test: fix potential path truncations
media: flexcop-usb: fix endpoint sanity check
media: usbtv: fix control-message timeouts
media: ov519: add missing endpoint sanity checks
media: dib0700: fix rc endpoint lookup
media: stv06xx: add missing descriptor sanity checks
media: xirlink_cit: add missing descriptor sanity checks
Johannes Berg (2):
mac80211: mark station unauthorized before key removal
mac80211: fix authentication with iwlwifi/mvm
Jonathan Neuschäfer (1):
parse-maintainers: Mark as executable
Jouni Malinen (1):
mac80211: Check port authorization in the ieee80211_tx_dequeue() case
Kai-Heng Feng (2):
USB: Disable LPM on WD19's Realtek Hub
ALSA: hda/realtek: Fix pop noise on ALC225
Kishon Vijay Abraham I (1):
ARM: dts: dra7: Add "dma-ranges" property to PCIe RC DT nodes
Larry Finger (1):
staging: rtl8188eu: Add ASUS USB-N10 Nano B1 to device table
Linus Torvalds (1):
mm: slub: be more careful about the double cmpxchg of freelist
Lyude Paul (1):
Revert "drm/dp_mst: Skip validating ports during destruction, just ref"
Madalin Bucur (5):
dt-bindings: net: FMan erratum A050385
arm64: dts: ls1043a: FMan erratum A050385 fsl/fman: detect FMan erratum A050385
arm64: dts: ls1043a-rdb: correct RGMII delay mode to rgmii-id
arm64: dts: ls1046ardb: set RGMII interfaces to RGMII_ID mode
Mans Rullgard (1):
usb: musb: fix crash with highmen PIO and usbmon
Maor Gottlieb (1):
RDMA/mlx5: Block delay drop to unprivileged users
Marek Szyprowski (2):
drm/exynos: dsi: propagate error value and silence meaningless warning drm/exynos: dsi: fix workaround for the legacy clock name
Marek Vasut (1):
net: ks8851-ml: Fix IO operations, again
Mark Rutland (2):
arm64: ptrace: map SPSR_ELx<->PSR for compat tasks
arm64: compat: map SPSR_ELx<->PSR for signalsMartin K. Petersen (1):
scsi: sd: Fix optimal I/O size for devices that change reported values
Masami Hiramatsu (2):
perf probe: Do not depend on dwfl_module_addrsym()
tools: Let O= makes handle a relative path with -C option
Matthias Reichl (1):
USB: cdc-acm: restore capability check order
Michael Straube (1):
staging: rtl8188eu: Add device id for MERCUSYS MW150US v2
Michał Mirosław (1):
mmc: sdhci-of-at91: fix cd-gpios for SAMA5D2
Mike Gilbert (1):
cpupower: avoid multiple definition with gcc -fno-common
Mike Marciniszyn (1):
RDMA/core: Ensure security pkey modify is not lost
Mike Snitzer (1):
dm bio record: save/restore bi_end_io and bi_integrity
Nathan Chancellor (2):
kbuild: Disable -Wpointer-to-enum-cast
dpaa_eth: Remove unnecessary boolean expression in dpaa_get_headroom
Naveen N. Rao (1):
powerpc: Include .BTF section
Nick Hudson (1):
ARM: bcm2835-rpi-zero-w: Add missing pinctrl name
Nicolas Cavallari (1):
mac80211: Do not send mesh HWMP PREQ if HWMP is disabled
Nicolas Dichtel (1):
vti[6]: fix packet tx through bpf_redirect() in XinY cases
Oliver Hartkopp (1):
slcan: not call free_netdev before rtnl_unlock in slcan_open
Pablo Neira Ayuso (1):
netfilter: nft_fwd_netdev: validate family and chain type
Pawel Dembicki (4):
net: qmi_wwan: add support for ASKEY WWHC050
USB: serial: option: add support for ASKEY WWHC050
USB: serial: option: add BroadMobi BM806U
USB: serial: option: add Wistron Neweb D19Q1
Peter Zijlstra (1):
futex: Fix inode life-time issue
Qian Cai (1):
page-flags: fix a crash at SetPageError(THP_SWAP)
Qiujun Huang (3):
USB: serial: io_edgeport: fix slab-out-of-bounds read in edge_interrupt_callback
staging: wlan-ng: fix ODEBUG bug in prism2sta_disconnect_usb
staging: wlan-ng: fix use-after-free Read in hfa384x_usbin_callback
Raed Salem (1):
xfrm: handle NETDEV_UNREGISTER for xfrm device
Ran Wang (1):
usb: host: xhci-plat: add a shutdown
René van Dorst (1):
net: dsa: mt7530: Change the LINK bit to reflect the link status
Roger Quadros (2):
ARM: dts: dra7: Add bus_dma_limit for L3 bus
ARM: dts: omap5: Add bus_dma_limit for L3 bus
Sabrina Dubroca (1):
net: ipv4: don't let PMTU updates increase route MTU
Samuel Thibault (1):
staging/speakup: fix get_word non-space look-ahead
Sasha Levin (2):
Revert "vrf: mark skb for multicast or link-local as enslaved to VRF" Revert "ipv6: Fix handling of LLA with VRF and sockets bound to VRF"
Scott Chen (1):
USB: serial: pl2303: add device-id for HP LD381
Stephan Gerhold (1):
iio: magnetometer: ak8974: Fix negative raw values in sysfs
Steven Rostedt (VMware) (1):
xhci: Do not open code __print_symbolic() in xhci trace events
Sungbo Eo (1):
ARM: dts: oxnas: Fix clear-mask property
Taehee Yoo (5):
hsr: fix general protection fault in hsr_addr_is_self()
vxlan: check return value of gro_cells_init()
hsr: use rcu_read_lock() in hsr_get_node_{list/status}()
hsr: add restart routine into hsr_get_node_list()
hsr: set .netnsok flag
Takashi Iwai (5):
ALSA: line6: Fix endless MIDI read loop
ALSA: seq: virmidi: Fix running status after receiving sysex
ALSA: seq: oss: Fix running status after receiving sysex
ALSA: pcm: oss: Avoid plugin buffer overflow
ALSA: pcm: oss: Remove WARNING from snd_pcm_plug_alloc() checks
Thomas Gleixner (1):
futex: Unbreak futex hashing
Thommy Jakobsson (1):
spi/zynqmp: remove entry that causes a cs glitch
Torsten Hilbrich (1):
vti6: Fix memory leak of skb if input policy check fails
Tycho Andersen (1):
cgroup1: don't call release_agent when it is ""
Vasily Averin (1):
cgroup-v1: cgroup_pidlist_next should update position index
Vlastimil Babka (1):
mm, slub: prevent kmalloc_node crashes and memory leaks
Wen Xiong (1):
scsi: ipr: Fix softlockup when rescanning devices in petitboot
Willem de Bruijn (2):
macsec: restrict to ethernet devices net/packet: tpacket_rcv: avoid a producer race condition
Xin Long (2):
xfrm: fix uctx len check in verify_sec_ctx_len
xfrm: add the missing verify_sec_ctx_len check in xfrm_add_acquire
YueHaibing (1):
xfrm: policy: Fix doulbe free in xfrm_policy_timer
Yuji Sasaki (1):
spi: qup: call spi_qup_pm_resume_runtime before suspending
Yussuf Khalil (1):
Input: synaptics - enable RMI on HP Envy 13-ad105ng
disconnect3d (1):
perf map: Fix off by one in strncpy() size argument
luanshi (1):
drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer
Greg KH
maintainerDocumentation/devicetree/bindings/net/fsl-fman.txt +7 -0
@@ -110,6 +110,13 @@ PROPERTIES Usage: required Definition: See soc/fsl/qman.txt and soc/fsl/bman.txt +- fsl,erratum-a050385 + Usage: optional + Value type: boolean + Definition: A boolean property. Indicates the presence of the + erratum A050385 which indicates that DMA transactions that are + split can result in a FMan lock. + ============================================================================= FMan MURAM Node
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 174 +SUBLEVEL = 175 EXTRAVERSION = NAME = Petit Gorille
arch/arm/boot/dts/bcm2835-rpi-zero-w.dts +1 -0
@@ -118,6 +118,7 @@ &sdhci { #address-cells = <1>; #size-cells = <0>; + pinctrl-names = "default"; pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>; mmc-pwrseq = <&wifi_pwrseq>; non-removable;
arch/arm/boot/dts/dra7.dtsi +3 -0
@@ -137,6 +137,7 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0xc0000000>; + dma-ranges = <0x80000000 0x0 0x80000000 0x80000000>; ti,hwmods = "l3_main_1", "l3_main_2"; reg = <0x0 0x44000000 0x0 0x1000000>, <0x0 0x45000000 0x0 0x1000>;
@@ -302,6 +303,7 @@ device_type = "pci"; ranges = <0x81000000 0 0 0x03000 0 0x00010000 0x82000000 0 0x20013000 0x13000 0 0xffed000>; + dma-ranges = <0x02000000 0x0 0x00000000 0x00000000 0x1 0x00000000>; bus-range = <0x00 0xff>; #interrupt-cells = <1>; num-lanes = <1>;
@@ -356,6 +358,7 @@ device_type = "pci"; ranges = <0x81000000 0 0 0x03000 0 0x00010000 0x82000000 0 0x30013000 0x13000 0 0xffed000>; + dma-ranges = <0x02000000 0x0 0x00000000 0x00000000 0x1 0x00000000>; bus-range = <0x00 0xff>; #interrupt-cells = <1>; num-lanes = <1>;
arch/arm/boot/dts/omap5.dtsi +1 -0
@@ -131,6 +131,7 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0 0 0 0xc0000000>; + dma-ranges = <0x80000000 0x0 0x80000000 0x80000000>; ti,hwmods = "l3_main_1", "l3_main_2", "l3_main_3"; reg = <0 0x44000000 0 0x2000>, <0 0x44800000 0 0x3000>,
arch/arm/boot/dts/ox810se.dtsi +2 -2
@@ -322,8 +322,8 @@ interrupt-controller; reg = <0 0x200>; #interrupt-cells = <1>; - valid-mask = <0xFFFFFFFF>; - clear-mask = <0>; + valid-mask = <0xffffffff>; + clear-mask = <0xffffffff>; }; timer0: timer@200 {
arch/arm/boot/dts/ox820.dtsi +2 -2
@@ -239,8 +239,8 @@ reg = <0 0x200>; interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; #interrupt-cells = <1>; - valid-mask = <0xFFFFFFFF>; - clear-mask = <0>; + valid-mask = <0xffffffff>; + clear-mask = <0xffffffff>; }; timer0: timer@200 {
arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi +2 -0
@@ -21,6 +21,8 @@ }; &fman0 { + fsl,erratum-a050385; + /* these aliases provide the FMan ports mapping */ enet0: ethernet@e0000 { };
arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +2 -2
@@ -155,12 +155,12 @@ ethernet@e4000 { phy-handle = <&rgmii_phy1>; - phy-connection-type = "rgmii-txid"; + phy-connection-type = "rgmii-id"; }; ethernet@e6000 { phy-handle = <&rgmii_phy2>; - phy-connection-type = "rgmii-txid"; + phy-connection-type = "rgmii-id"; }; ethernet@e8000 {
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +2 -2
@@ -162,12 +162,12 @@ &fman0 { ethernet@e4000 { phy-handle = <&rgmii_phy1>; - phy-connection-type = "rgmii"; + phy-connection-type = "rgmii-id"; }; ethernet@e6000 { phy-handle = <&rgmii_phy2>; - phy-connection-type = "rgmii"; + phy-connection-type = "rgmii-id"; }; ethernet@e8000 {
arch/arm64/include/asm/alternative.h +1 -1
@@ -216,7 +216,7 @@ alternative_endif .macro user_alt, label, oldinstr, newinstr, cond 9999: alternative_insn "\oldinstr", "\newinstr", \cond - _ASM_EXTABLE 9999b, \label + _asm_extable 9999b, \label .endm/*
arch/arm64/kernel/ptrace.c +2 -0
@@ -833,6 +833,7 @@ static int compat_gpr_get(struct task_struct *target,break ;case 16 : reg =task_pt_regs (target)->pstate; + reg =pstate_to_compat_psr (reg);break ;case 17 : reg =task_pt_regs (target)->orig_x0;
@@ -900,6 +901,7 @@ static int compat_gpr_set(struct task_struct *target, newregs.pc = reg;break ;case 16 : + reg =compat_psr_to_pstate (reg); newregs.pstate = reg;break ;case 17 :
arch/arm64/kernel/signal32.c +6 -2
@@ -321,6 +321,7 @@ static int compat_restore_sigframe(struct pt_regs *regs,int err;sigset_t set;struct compat_aux_sigframe __user *aux; +unsigned long psr; err =get_sigset_t (&set, &sf->uc.uc_sigmask);if (err ==0 ) {
@@ -344,7 +345,9 @@ static int compat_restore_sigframe(struct pt_regs *regs,__get_user_error (regs->compat_sp, &sf->uc.uc_mcontext.arm_sp, err);__get_user_error (regs->compat_lr, &sf->uc.uc_mcontext.arm_lr, err);__get_user_error (regs->pc, &sf->uc.uc_mcontext.arm_pc, err); -__get_user_error (regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err); +__get_user_error (psr, &sf->uc.uc_mcontext.arm_cpsr, err); + + regs->pstate =compat_psr_to_pstate (psr);/* * Avoid compat_sys_sigreturn() restarting.
@@ -500,6 +503,7 @@ static int compat_setup_sigframe(struct compat_sigframe __user *sf, struct pt_regs *regs, sigset_t *set) { struct compat_aux_sigframe __user *aux; +unsigned long psr =pstate_to_compat_psr (regs->pstate);int err =0 ;__put_user_error (regs->regs[0 ], &sf->uc.uc_mcontext.arm_r0, err);
@@ -518,7 +522,7 @@ static int compat_setup_sigframe(struct compat_sigframe __user *sf,__put_user_error (regs->compat_sp, &sf->uc.uc_mcontext.arm_sp, err);__put_user_error (regs->compat_lr, &sf->uc.uc_mcontext.arm_lr, err);__put_user_error (regs->pc, &sf->uc.uc_mcontext.arm_pc, err); -__put_user_error (regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err); +__put_user_error (psr, &sf->uc.uc_mcontext.arm_cpsr, err);__put_user_error ((compat_ulong_t )0 , &sf->uc.uc_mcontext.trap_no, err);/* set the compat FSR WnR */
arch/arm64/kernel/smp.c +20 -5
@@ -913,11 +913,22 @@ void tick_broadcast(const struct cpumask *mask) }#endif +/* +* The number of CPUs online, not counting this CPU (which may not be +* fully online and so not counted in num_online_cpus()). +*/ +static inline unsigned int num_other_online_cpus (void ) +{ +unsigned int this_cpu_online =cpu_online (smp_processor_id ()); + +return num_online_cpus () - this_cpu_online; +} +void smp_send_stop (void ) {unsigned long timeout; -if (num_online_cpus () >1 ) { +if (num_other_online_cpus ()) {cpumask_t mask;cpumask_copy (&mask, cpu_online_mask);
@@ -930,10 +941,10 @@ void smp_send_stop(void)/* Wait up to one second for other CPUs to stop */ timeout =USEC_PER_SEC ; -while (num_online_cpus () >1 && timeout--) +while (num_other_online_cpus () && timeout--)udelay (1 ); -if (num_online_cpus () >1 ) +if (num_other_online_cpus ())pr_warning ("SMP: failed to stop secondary CPUs %*pbl\n" ,cpumask_pr_args (cpu_online_mask)); }
@@ -954,13 +965,17 @@ void crash_smp_send_stop(void) cpus_stopped =1 ; -if (num_online_cpus () ==1 ) +/* +* If this cpu is the only one alive at this point in time, online or +* not, there are no stop messages to be sent around, so just back out. +*/ +if (num_other_online_cpus () ==0 )return ;cpumask_copy (&mask, cpu_online_mask);cpumask_clear_cpu (smp_processor_id (), &mask); -atomic_set (&waiting_for_crash_ipi,num_online_cpus () -1 ); +atomic_set (&waiting_for_crash_ipi,num_other_online_cpus ());pr_crit ("SMP: stopping secondary CPUs\n" );smp_cross_call (&mask,IPI_CPU_CRASH_STOP );
arch/powerpc/kernel/vmlinux.lds.S +6 -0
@@ -317,6 +317,12 @@ SECTIONS *(.branch_lt) } +#ifdef CONFIG_DEBUG_INFO_BTF + .BTF : AT(ADDR(.BTF) - LOAD_OFFSET) { + *(.BTF) + } +#endif + .opd : AT(ADDR(.opd) - LOAD_OFFSET) { *(.opd) }
arch/x86/kernel/ftrace.c +2 -0
@@ -36,6 +36,7 @@#ifdef CONFIG_DYNAMIC_FTRACE int ftrace_arch_code_modify_prepare (void ) + __acquires(&text_mutex) {mutex_lock (&text_mutex);set_kernel_text_rw ();
@@ -44,6 +45,7 @@ int ftrace_arch_code_modify_prepare(void) }int ftrace_arch_code_modify_post_process (void ) + __releases(&text_mutex) {set_all_modules_text_ro ();set_kernel_text_ro ();
arch/x86/mm/fault.c +24 -2
@@ -272,7 +272,7 @@ static inline pmd_t *vmalloc_sync_one(pgd_t *pgd, unsigned long address)return pmd_k; } -void vmalloc_sync_all (void ) +static void vmalloc_sync (void ) {unsigned long address;
@@ -299,6 +299,16 @@ void vmalloc_sync_all(void) } } +void vmalloc_sync_mappings (void ) +{ +vmalloc_sync (); +} + +void vmalloc_sync_unmappings (void ) +{ +vmalloc_sync (); +} +/* * 32-bit: *
@@ -401,11 +411,23 @@ static void dump_pagetable(unsigned long address)#else /* CONFIG_X86_64: */ -void vmalloc_sync_all (void ) +void vmalloc_sync_mappings (void ) { +/* +* 64-bit mappings might allocate new p4d/pud pages +* that need to be propagated to all tasks' PGDs. +*/ sync_global_pgds (VMALLOC_START &PGDIR_MASK ,VMALLOC_END ); } +void vmalloc_sync_unmappings (void ) +{ +/* +* Unmappings never allocate or free p4d/pud pages. +* No work is required here. +*/ +} +/* * 64-bit: *
block/bfq-cgroup.c +5 -4
@@ -499,12 +499,13 @@ struct bfq_group *bfq_find_set_group(struct bfq_data *bfqd,*/ entity = &bfqg->entity;for_each_entity (entity) { - bfqg = container_of(entity, struct bfq_group, entity); -if (bfqg != bfqd->root_group) { - parent =bfqg_parent (bfqg); +struct bfq_group *curr_bfqg =container_of (entity, + struct bfq_group, entity); +if (curr_bfqg != bfqd->root_group) { + parent =bfqg_parent (curr_bfqg);if (!parent) parent = bfqd->root_group; -bfq_group_set_parent (bfqg, parent); +bfq_group_set_parent (curr_bfqg, parent); } }
drivers/acpi/apei/ghes.c +1 -1
@@ -201,7 +201,7 @@ static int ghes_estatus_pool_expand(unsigned long len)* New allocation must be visible in all pgd before it can be found by * an NMI allocating from the pool. */ -vmalloc_sync_all (); +vmalloc_sync_mappings ();return gen_pool_add (ghes_estatus_pool, addr,PAGE_ALIGN (len),-1 ); }
drivers/gpio/gpiolib-acpi.c +114 -26
201 lines not on this page · raw message
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +26 -20
54 lines not on this page · raw message
drivers/gpu/drm/drm_dp_mst_topology.c +2 -13
@@ -982,20 +982,9 @@ static struct drm_dp_mst_port *drm_dp_mst_get_port_ref_locked(struct drm_dp_mst_static struct drm_dp_mst_port *drm_dp_get_validated_port_ref (struct drm_dp_mst_topology_mgr *mgr,struct drm_dp_mst_port *port) {struct drm_dp_mst_port *rport =NULL ; -mutex_lock (&mgr->lock); -/* -* Port may or may not be 'valid' but we don't care about that when -* destroying the port and we are guaranteed that the port pointer -* will be valid until we've finished -*/ -if (current_work () == &mgr->destroy_connector_work) { -kref_get (&port->kref); - rport = port; - }else if (mgr->mst_primary) { - rport =drm_dp_mst_get_port_ref_locked (mgr->mst_primary, - port); - } +if (mgr->mst_primary) + rport =drm_dp_mst_get_port_ref_locked (mgr->mst_primary, port);mutex_unlock (&mgr->lock);return rport; }
drivers/gpu/drm/exynos/exynos_drm_dsi.c +7 -5
@@ -1739,8 +1739,9 @@ static int exynos_dsi_probe(struct platform_device *pdev) ret =devm_regulator_bulk_get (dev,ARRAY_SIZE (dsi->supplies), dsi->supplies);if (ret) { -dev_info (dev,"failed to get regulators: %d\n" , ret); -return -EPROBE_DEFER ; +if (ret != -EPROBE_DEFER ) +dev_info (dev,"failed to get regulators: %d\n" , ret); +return ret; } dsi->clks = devm_kzalloc(dev,
@@ -1753,9 +1754,10 @@ static int exynos_dsi_probe(struct platform_device *pdev) dsi->clks[i] =devm_clk_get (dev, clk_names[i]);if (IS_ERR (dsi->clks[i])) {if (strcmp (clk_names[i],"sclk_mipi" ) ==0 ) { -strcpy (clk_names[i],OLD_SCLK_MIPI_CLK_NAME ); - i--; -continue ; + dsi->clks[i] =devm_clk_get (dev, +OLD_SCLK_MIPI_CLK_NAME ); +if (!IS_ERR (dsi->clks[i])) +continue ; } dev_info(dev, "failed to get the clock: %s\n",
drivers/hwtracing/intel_th/msu.c +3 -3
@@ -499,7 +499,7 @@ static int msc_configure(struct msc *msc)lockdep_assert_held (&msc->buf_mutex);if (msc->mode >MSC_MODE_MULTI ) -return -ENOTSUPP ; +return -EINVAL ;if (msc->mode ==MSC_MODE_MULTI )msc_buffer_clear_hw_header (msc);
@@ -950,7 +950,7 @@ static int msc_buffer_alloc(struct msc *msc, unsigned long *nr_pages, }else if (msc->mode ==MSC_MODE_MULTI ) { ret =msc_buffer_multi_alloc (msc, nr_pages, nr_wins); }else { - ret = -ENOTSUPP ; + ret = -EINVAL ; }if (!ret) {
@@ -1173,7 +1173,7 @@ static ssize_t intel_th_msc_read(struct file *file, char __user *buf,if (ret >=0 ) *ppos = iter->offset; }else { - ret = -ENOTSUPP ; + ret = -EINVAL ; } put_count:
drivers/hwtracing/intel_th/pci.c +5 -0
@@ -218,6 +218,11 @@ static const struct pci_device_id intel_th_pci_id_table[] = { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4da6), .driver_data = (kernel_ulong_t)&intel_th_2x, }, + { +/* Elkhart Lake CPU */ +PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x4529 ), + .driver_data = (kernel_ulong_t)&intel_th_2x, + }, {/* Elkhart Lake */ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4b26),
drivers/i2c/busses/i2c-hix5hd2.c +1 -0
@@ -498,6 +498,7 @@ static int hix5hd2_i2c_remove(struct platform_device *pdev)i2c_del_adapter (&priv->adap);pm_runtime_disable (priv->dev);pm_runtime_set_suspended (priv->dev); +clk_disable_unprepare (priv->clk);return 0 ; }
drivers/iio/adc/at91-sama5d2_adc.c +43 -2
64 lines not on this page · raw message
drivers/iio/magnetometer/ak8974.c +1 -1
@@ -563,7 +563,7 @@ static int ak8974_read_raw(struct iio_dev *indio_dev,* We read all axes and discard all but one, for optimized * reading, use the triggered buffer. */ - *val =le16_to_cpu (hw_values[chan->address]); + *val = (s16 )le16_to_cpu (hw_values[chan->address]); ret =IIO_VAL_INT ; }
drivers/iio/trigger/stm32-timer-trigger.c +9 -2
@@ -161,7 +161,8 @@ static int stm32_timer_start(struct stm32_timer_trigger *priv,return 0 ; } -static void stm32_timer_stop (struct stm32_timer_trigger *priv) +static void stm32_timer_stop (struct stm32_timer_trigger *priv, +struct iio_trigger *trig) {u32 ccer, cr1;
@@ -179,6 +180,12 @@ static void stm32_timer_stop(struct stm32_timer_trigger *priv)regmap_write (priv->regmap,TIM_PSC ,0 );regmap_write (priv->regmap,TIM_ARR ,0 ); +/* Force disable master mode */ +if (stm32_timer_is_trgo2_name (trig->name)) +regmap_update_bits (priv->regmap,TIM_CR2 ,TIM_CR2_MMS2 ,0 ); +else +regmap_update_bits (priv->regmap,TIM_CR2 ,TIM_CR2_MMS ,0 ); +/* Make sure that registers are updated */ regmap_update_bits (priv->regmap,TIM_EGR ,TIM_EGR_UG ,TIM_EGR_UG ); }
@@ -197,7 +204,7 @@ static ssize_t stm32_tt_store_frequency(struct device *dev,return ret;if (freq ==0 ) { -stm32_timer_stop (priv); +stm32_timer_stop (priv, trig); }else { ret =stm32_timer_start (priv, trig, freq);if (ret)
drivers/infiniband/core/security.c +3 -8
@@ -348,16 +348,11 @@ static struct ib_ports_pkeys *get_new_pps(const struct ib_qp *qp,else if (qp_pps) new_pps->main.pkey_index = qp_pps->main.pkey_index; -if ((qp_attr_mask &IB_QP_PKEY_INDEX ) && (qp_attr_mask &IB_QP_PORT )) +if (((qp_attr_mask &IB_QP_PKEY_INDEX ) && + (qp_attr_mask &IB_QP_PORT )) || + (qp_pps && qp_pps->main.state !=IB_PORT_PKEY_NOT_VALID )) new_pps->main.state =IB_PORT_PKEY_VALID ; -if (!(qp_attr_mask & (IB_QP_PKEY_INDEX |IB_QP_PORT )) && qp_pps) { - new_pps->main.port_num = qp_pps->main.port_num; - new_pps->main.pkey_index = qp_pps->main.pkey_index; -if (qp_pps->main.state !=IB_PORT_PKEY_NOT_VALID ) - new_pps->main.state =IB_PORT_PKEY_VALID ; - } -if (qp_attr_mask &IB_QP_ALT_PATH ) { new_pps->alt.port_num = qp_attr->alt_port_num; new_pps->alt.pkey_index = qp_attr->alt_pkey_index;
drivers/infiniband/hw/mlx5/qp.c +4 -0
@@ -4896,6 +4896,10 @@ struct ib_wq *mlx5_ib_create_wq(struct ib_pd *pd,if (udata->outlen && udata->outlen < min_resp_len)return ERR_PTR (-EINVAL ); +if (!capable (CAP_SYS_RAWIO ) && + init_attr->create_flags &IB_WQ_FLAGS_DELAY_DROP ) +return ERR_PTR (-EPERM ); + dev =to_mdev (pd->device);switch (init_attr->wq_type) {case IB_WQT_RQ :
drivers/input/mouse/synaptics.c +1 -0
@@ -189,6 +189,7 @@ static const char * const smbus_pnp_ids[] = {"SYN3052" ,/* HP EliteBook 840 G4 */ "SYN3221" ,/* HP 15-ay000 */ "SYN323d" ,/* HP Spectre X360 13-w013dx */ +"SYN3257" ,/* HP Envy 13-ad105ng */ NULL };
drivers/input/touchscreen/raydium_i2c_ts.c +2 -2
@@ -441,7 +441,7 @@ static int raydium_i2c_write_object(struct i2c_client *client,return 0 ; } -static bool raydium_i2c_boot_trigger (struct i2c_client *client) +static int raydium_i2c_boot_trigger (struct i2c_client *client) {static const u8 cmd[7 ][6 ] = { {0x08 ,0x0C ,0x09 ,0x00 ,0x50 ,0xD7 },
@@ -469,7 +469,7 @@ static bool raydium_i2c_boot_trigger(struct i2c_client *client)return 0 ; } -static bool raydium_i2c_fw_trigger (struct i2c_client *client) +static int raydium_i2c_fw_trigger (struct i2c_client *client) {static const u8 cmd[5 ][11 ] = { {0 ,0x09 ,0x71 ,0x0C ,0x09 ,0x00 ,0x50 ,0xD7 ,0 ,0 ,0 },
drivers/md/dm-bio-record.h +15 -0
@@ -20,8 +20,13 @@struct dm_bio_details {struct gendisk *bi_disk;u8 bi_partno; +int __bi_remaining;unsigned long bi_flags;struct bvec_iter bi_iter; +bio_end_io_t *bi_end_io; +#if defined(CONFIG_BLK_DEV_INTEGRITY ) +struct bio_integrity_payload *bi_integrity; +#endif };static inline void dm_bio_record (struct dm_bio_details *bd,struct bio *bio)
@@ -30,6 +35,11 @@ static inline void dm_bio_record(struct dm_bio_details *bd, struct bio *bio) bd->bi_partno = bio->bi_partno; bd->bi_flags = bio->bi_flags; bd->bi_iter = bio->bi_iter; + bd->__bi_remaining =atomic_read (&bio->__bi_remaining); + bd->bi_end_io = bio->bi_end_io; +#if defined(CONFIG_BLK_DEV_INTEGRITY ) + bd->bi_integrity =bio_integrity (bio); +#endif }static inline void dm_bio_restore (struct dm_bio_details *bd,struct bio *bio)
@@ -38,6 +48,11 @@ static inline void dm_bio_restore(struct dm_bio_details *bd, struct bio *bio) bio->bi_partno = bd->bi_partno; bio->bi_flags = bd->bi_flags; bio->bi_iter = bd->bi_iter; +atomic_set (&bio->__bi_remaining, bd->__bi_remaining); + bio->bi_end_io = bd->bi_end_io; +#if defined(CONFIG_BLK_DEV_INTEGRITY ) + bio->bi_integrity = bd->bi_integrity; +#endif }#endif
drivers/media/usb/b2c2/flexcop-usb.c +3 -3
@@ -510,6 +510,9 @@ static int flexcop_usb_init(struct flexcop_usb *fc_usb)return ret; } +if (fc_usb->uintf->cur_altsetting->desc.bNumEndpoints <1 ) +return -ENODEV ; +switch (fc_usb->udev->speed) {case USB_SPEED_LOW :err ("cannot handle USB speed because it is too slow." );
@@ -543,9 +546,6 @@ static int flexcop_usb_probe(struct usb_interface *intf,struct flexcop_device *fc =NULL ;int ret; -if (intf->cur_altsetting->desc.bNumEndpoints <1 ) -return -ENODEV ; -if ((fc =flexcop_device_kmalloc (sizeof (struct flexcop_usb ))) ==NULL ) {err ("out of memory\n" );return -ENOMEM ;
drivers/media/usb/dvb-usb/dib0700_core.c +2 -2
@@ -821,7 +821,7 @@ int dib0700_rc_setup(struct dvb_usb_device *d, struct usb_interface *intf)/* Starting in firmware 1.20, the RC info is provided on a bulk pipe */ -if (intf->altsetting[0 ].desc.bNumEndpoints < rc_ep +1 ) +if (intf->cur_altsetting->desc.bNumEndpoints < rc_ep +1 )return -ENODEV ; purb =usb_alloc_urb (0 ,GFP_KERNEL );
@@ -841,7 +841,7 @@ int dib0700_rc_setup(struct dvb_usb_device *d, struct usb_interface *intf)* Some devices like the Hauppauge NovaTD model 52009 use an interrupt * endpoint, while others use a bulk one. */ - e = &intf->altsetting[0 ].endpoint[rc_ep].desc; + e = &intf->cur_altsetting->endpoint[rc_ep].desc;if (usb_endpoint_dir_in (e)) {if (usb_endpoint_xfer_bulk (e)) { pipe =usb_rcvbulkpipe (d->udev, rc_ep);
drivers/media/usb/gspca/ov519.c +10 -0
@@ -3478,6 +3478,11 @@ static void ov511_mode_init_regs(struct sd *sd)return ; } +if (alt->desc.bNumEndpoints <1 ) { + sd->gspca_dev.usb_err = -ENODEV ; +return ; + } + packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize);reg_w (sd, R51x_FIFO_PSIZE, packet_size >>5 );
@@ -3604,6 +3609,11 @@ static void ov518_mode_init_regs(struct sd *sd)return ; } +if (alt->desc.bNumEndpoints <1 ) { + sd->gspca_dev.usb_err = -ENODEV ; +return ; + } + packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize);ov518_reg_w32 (sd, R51x_FIFO_PSIZE, packet_size & ~7 ,2 );
drivers/media/usb/gspca/stv06xx/stv06xx.c +18 -1
@@ -289,6 +289,9 @@ static int stv06xx_start(struct gspca_dev *gspca_dev)return -EIO ; } +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; + packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize); err =stv06xx_write_bridge (sd,STV_ISO_SIZE_L , packet_size);if (err <0 )
@@ -313,11 +316,21 @@ static int stv06xx_start(struct gspca_dev *gspca_dev)static int stv06xx_isoc_init (struct gspca_dev *gspca_dev) { +struct usb_interface_cache *intfc;struct usb_host_interface *alt;struct sd *sd = (struct sd *) gspca_dev; + intfc = gspca_dev->dev->actconfig->intf_cache[0 ]; + +if (intfc->num_altsetting <2 ) +return -ENODEV ; + + alt = &intfc->altsetting[1 ]; + +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; +/* Start isoc bandwidth "negotiation" at max isoc bandwidth */ - alt = &gspca_dev->dev->actconfig->intf_cache[0 ]->altsetting[1 ]; alt->endpoint[0 ].desc.wMaxPacketSize =cpu_to_le16 (sd->sensor->max_packet_size[gspca_dev->curr_mode]);
@@ -330,6 +343,10 @@ static int stv06xx_isoc_nego(struct gspca_dev *gspca_dev)struct usb_host_interface *alt;struct sd *sd = (struct sd *) gspca_dev; +/* +* Existence of altsetting and endpoint was verified in +* stv06xx_isoc_init() +*/ alt = &gspca_dev->dev->actconfig->intf_cache[0 ]->altsetting[1 ]; packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize); min_packet_size = sd->sensor->min_packet_size[gspca_dev->curr_mode];
drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c +4 -0
@@ -194,6 +194,10 @@ static int pb0100_start(struct sd *sd) alt =usb_altnum_to_altsetting (intf, sd->gspca_dev.alt);if (!alt)return -ENODEV ; + +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; + packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize);/* If we don't have enough bandwidth use a lower framerate */
drivers/media/usb/gspca/xirlink_cit.c +17 -1
@@ -1451,6 +1451,9 @@ static int cit_get_packet_size(struct gspca_dev *gspca_dev)return -EIO ; } +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; +return le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize); }
@@ -2634,6 +2637,7 @@ static int sd_start(struct gspca_dev *gspca_dev)static int sd_isoc_init (struct gspca_dev *gspca_dev) { +struct usb_interface_cache *intfc;struct usb_host_interface *alt;int max_packet_size;
@@ -2649,8 +2653,17 @@ static int sd_isoc_init(struct gspca_dev *gspca_dev)break ; } + intfc = gspca_dev->dev->actconfig->intf_cache[0 ]; + +if (intfc->num_altsetting <2 ) +return -ENODEV ; + + alt = &intfc->altsetting[1 ]; + +if (alt->desc.bNumEndpoints <1 ) +return -ENODEV ; +/* Start isoc bandwidth "negotiation" at max isoc bandwidth */ - alt = &gspca_dev->dev->actconfig->intf_cache[0 ]->altsetting[1 ]; alt->endpoint[0 ].desc.wMaxPacketSize =cpu_to_le16 (max_packet_size);return 0 ;
@@ -2673,6 +2686,9 @@ static int sd_isoc_nego(struct gspca_dev *gspca_dev)break ; } +/* +* Existence of altsetting and endpoint was verified in sd_isoc_init() +*/ alt = &gspca_dev->dev->actconfig->intf_cache[0 ]->altsetting[1 ]; packet_size =le16_to_cpu (alt->endpoint[0 ].desc.wMaxPacketSize);if (packet_size <= min_packet_size)
drivers/media/usb/usbtv/usbtv-core.c +1 -1
@@ -56,7 +56,7 @@ int usbtv_set_regs(struct usbtv *usbtv, const u16 regs[][2], int size) ret =usb_control_msg (usbtv->udev, pipe,USBTV_REQUEST_REG ,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_DEVICE , - value, index,NULL ,0 ,0 ); + value, index,NULL ,0 ,USB_CTRL_GET_TIMEOUT );if (ret <0 )return ret; }
drivers/media/usb/usbtv/usbtv-video.c +3 -2
@@ -720,7 +720,8 @@ static int usbtv_s_ctrl(struct v4l2_ctrl *ctrl) ret =usb_control_msg (usbtv->udev,usb_rcvctrlpipe (usbtv->udev,0 ),USBTV_CONTROL_REG ,USB_DIR_IN |USB_TYPE_VENDOR |USB_RECIP_DEVICE , -0 ,USBTV_BASE +0x0244 , (void *)data,3 ,0 ); +0 ,USBTV_BASE +0x0244 , (void *)data,3 , +USB_CTRL_GET_TIMEOUT );if (ret <0 ) goto error; }
@@ -771,7 +772,7 @@ static int usbtv_s_ctrl(struct v4l2_ctrl *ctrl) ret =usb_control_msg (usbtv->udev,usb_sndctrlpipe (usbtv->udev,0 ),USBTV_CONTROL_REG ,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_DEVICE , -0 , index, (void *)data, size,0 ); +0 , index, (void *)data, size,USB_CTRL_SET_TIMEOUT ); error:if (ret <0 )
drivers/misc/altera-stapl/altera.c +6 -6
@@ -2126,8 +2126,8 @@ static int altera_execute(struct altera_state *astate,return status; } -static int altera_get_note (u8 *p,s32 program_size, -s32 *offset,char *key,char *value,int length) +static int altera_get_note (u8 *p,s32 program_size,s32 *offset, +char *key,char *value,int keylen,int vallen)/* * Gets key and value of NOTE fields in the JBC file. * Can be called in two modes: if offset pointer is NULL,
@@ -2184,7 +2184,7 @@ static int altera_get_note(u8 *p, s32 program_size, &p[note_table + (8 * i) + 4])];if (value !=NULL ) -strlcpy (value, value_ptr, length); +strlcpy (value, value_ptr, vallen); } }
@@ -2203,13 +2203,13 @@ static int altera_get_note(u8 *p, s32 program_size,strlcpy (key, &p[note_strings +get_unaligned_be32 ( &p[note_table + (8 * i)])], - length); + keylen);if (value !=NULL )strlcpy (value, &p[note_strings +get_unaligned_be32 ( &p[note_table + (8 * i) +4 ])], - length); + vallen); *offset = i +1 ; }
@@ -2463,7 +2463,7 @@ int altera_init(struct altera_config *config, const struct firmware *fw) __func__, (format_version ==2 ) ?"Jam STAPL" : "pre-standardized Jam 1.1");while (altera_get_note ((u8 *)fw->data, fw->size, - &offset, key, value,256 ) ==0 ) + &offset, key, value,32 ,256 ) ==0 )printk (KERN_INFO "%s: NOTE \"%s\" = \"%s\"\n" , __func__, key, value); }
drivers/mmc/host/sdhci-of-at91.c +6 -2
@@ -125,7 +125,8 @@ static void sdhci_at91_reset(struct sdhci_host *host, u8 mask) {sdhci_reset (host, mask); -if (host->mmc->caps &MMC_CAP_NONREMOVABLE ) +if ((host->mmc->caps &MMC_CAP_NONREMOVABLE ) + ||mmc_gpio_get_cd (host->mmc) >=0 )sdhci_at91_set_force_card_detect (host); }
@@ -404,8 +405,11 @@ static int sdhci_at91_probe(struct platform_device *pdev)* detection procedure using the SDMCC_CD signal is bypassed. * This bit is reset when a software reset for all command is performed * so we need to implement our own reset function to set back this bit. +* +* WA: SAMA5D2 doesn't drive CMD if using CD GPIO line. */ -if (host->mmc->caps &MMC_CAP_NONREMOVABLE ) +if ((host->mmc->caps &MMC_CAP_NONREMOVABLE ) + ||mmc_gpio_get_cd (host->mmc) >=0 )sdhci_at91_set_force_card_detect (host);pm_runtime_put_autosuspend (&pdev->dev);
drivers/net/can/slcan.c +3 -0
@@ -621,7 +621,10 @@ static int slcan_open(struct tty_struct *tty) tty->disc_data =NULL ;clear_bit (SLF_INUSE , &sl->flags);slc_free_netdev (sl->dev); +/* do not call free_netdev before rtnl_unlock */ +rtnl_unlock ();free_netdev (sl->dev); +return err; err_exit:rtnl_unlock ();
drivers/net/dsa/mt7530.c +1 -1
@@ -549,7 +549,7 @@ mt7530_mib_reset(struct dsa_switch *ds)static void mt7530_port_set_status (struct mt7530_priv *priv,int port,int enable) { -u32 mask =PMCR_TX_EN |PMCR_RX_EN ; +u32 mask =PMCR_TX_EN |PMCR_RX_EN |PMCR_FORCE_LNK ;if (enable)mt7530_set (priv,MT7530_PMCR_P (port), mask);
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c +10 -5
@@ -387,24 +387,26 @@ static int bnxt_dcbnl_ieee_getets(struct net_device *dev, struct ieee_ets *ets) {struct bnxt *bp =netdev_priv (dev);struct ieee_ets *my_ets = bp->ieee_ets; +int rc; ets->ets_cap = bp->max_tc;if (!my_ets) { -int rc; -if (bp->dcbx_cap &DCB_CAP_DCBX_HOST )return 0 ; my_ets =kzalloc (sizeof (*my_ets),GFP_KERNEL );if (!my_ets) -return 0 ; +return -ENOMEM ; rc =bnxt_hwrm_queue_cos2bw_qcfg (bp, my_ets);if (rc) -return 0 ; + goto error; rc =bnxt_hwrm_queue_pri2cos_qcfg (bp, my_ets);if (rc) -return 0 ; + goto error; + +/* cache result */ + bp->ieee_ets = my_ets; } ets->cbs = my_ets->cbs;
@@ -413,6 +415,9 @@ static int bnxt_dcbnl_ieee_getets(struct net_device *dev, struct ieee_ets *ets)memcpy (ets->tc_tsa, my_ets->tc_tsa,sizeof (ets->tc_tsa));memcpy (ets->prio_tc, my_ets->prio_tc,sizeof (ets->prio_tc));return 0 ; +error: +kfree (my_ets); +return rc; }static int bnxt_dcbnl_ieee_setets (struct net_device *dev,struct ieee_ets *ets)
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +1 -3
@@ -2646,9 +2646,7 @@ static inline u16 dpaa_get_headroom(struct dpaa_buffer_layout *bl) headroom = (u16)(bl->priv_data_size +DPAA_PARSE_RESULTS_SIZE +DPAA_TIME_STAMP_SIZE +DPAA_HASH_RESULTS_SIZE ); -return DPAA_FD_DATA_ALIGNMENT ?ALIGN (headroom, -DPAA_FD_DATA_ALIGNMENT ) : - headroom; +return ALIGN (headroom,DPAA_FD_DATA_ALIGNMENT ); }static int dpaa_eth_probe (struct platform_device *pdev)
drivers/net/ethernet/freescale/fman/Kconfig +28 -0
@@ -8,3 +8,31 @@ config FSL_FMAN help Freescale Data-Path Acceleration Architecture Frame Manager (FMan) support + +config DPAA_ERRATUM_A050385 + bool + depends on ARM64 && FSL_DPAA + default y + help + DPAA FMan erratum A050385 software workaround implementation: + align buffers, data start, SG fragment length to avoid FMan DMA + splits. + FMAN DMA read or writes under heavy traffic load may cause FMAN + internal resource leak thus stopping further packet processing. + The FMAN internal queue can overflow when FMAN splits single + read or write transactions into multiple smaller transactions + such that more than 17 AXI transactions are in flight from FMAN + to interconnect. When the FMAN internal queue overflows, it can + stall further packet processing. The issue can occur with any + one of the following three conditions: + 1. FMAN AXI transaction crosses 4K address boundary (Errata + A010022) + 2. FMAN DMA address for an AXI transaction is not 16 byte + aligned, i.e. the last 4 bits of an address are non-zero + 3. Scatter Gather (SG) frames have more than one SG buffer in + the SG list and any one of the buffers, except the last + buffer in the SG list has data size that is not a multiple + of 16 bytes, i.e., other than 16, 32, 48, 64, etc. + With any one of the above three conditions present, there is + likelihood of stalled FMAN packet processing, especially under + stress with multiple ports injecting line-rate traffic.
drivers/net/ethernet/freescale/fman/fman.c +18 -0
@@ -1,5 +1,6 @@/* * Copyright 2008-2015 Freescale Semiconductor Inc. +* Copyright 2020 NXP * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met:
@@ -566,6 +567,10 @@ struct fman_cfg {u32 qmi_def_tnums_thresh; }; +#ifdef CONFIG_DPAA_ERRATUM_A050385 +static bool fman_has_err_a050385; +#endif +static irqreturn_t fman_exceptions (struct fman *fman,enum fman_exceptions exception) {
@@ -2517,6 +2522,14 @@ struct fman *fman_bind(struct device *fm_dev) }EXPORT_SYMBOL (fman_bind); +#ifdef CONFIG_DPAA_ERRATUM_A050385 +bool fman_has_errata_a050385 (void ) +{ +return fman_has_err_a050385; +} +EXPORT_SYMBOL (fman_has_errata_a050385); +#endif +static irqreturn_t fman_err_irq (int irq,void *handle) {struct fman *fman = (struct fman *)handle;
@@ -2843,6 +2856,11 @@ static struct fman *read_dts_node(struct platform_device *of_dev) goto fman_free; } +#ifdef CONFIG_DPAA_ERRATUM_A050385 + fman_has_err_a050385 = +of_property_read_bool (fm_node,"fsl,erratum-a050385" ); +#endif +return fman; fman_node_put:
drivers/net/ethernet/freescale/fman/fman.h +5 -0
@@ -1,5 +1,6 @@/* * Copyright 2008-2015 Freescale Semiconductor Inc. +* Copyright 2020 NXP * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met:
@@ -397,6 +398,10 @@ u16 fman_get_max_frm(void);int fman_get_rx_extra_headroom (void ); +#ifdef CONFIG_DPAA_ERRATUM_A050385 +bool fman_has_errata_a050385 (void ); +#endif +struct fman *fman_bind (struct device *dev);#endif /* __FM_H */
drivers/net/ethernet/marvell/mvneta.c +1 -2
@@ -2759,11 +2759,10 @@ static int mvneta_poll(struct napi_struct *napi, int budget)/* For the case where the last mvneta_poll did not process all * RX packets */ - rx_queue =fls (((cause_rx_tx >>8 ) &0xff )); - cause_rx_tx |= pp->neta_armada3700 ? pp->cause_rx_tx : port->cause_rx_tx; + rx_queue =fls (((cause_rx_tx >>8 ) &0xff ));if (rx_queue) { rx_queue = rx_queue -1 ;if (pp->bm_priv)
drivers/net/ethernet/micrel/ks8851_mll.c +52 -4
92 lines not on this page · raw message
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c +1 -1
@@ -2284,7 +2284,7 @@ static int __init sxgbe_cmdline_opt(char *str)if (!str || !*str)return -EINVAL ;while ((opt =strsep (&str,"," )) !=NULL ) { -if (!strncmp (opt,"eee_timer:" ,6 )) { +if (!strncmp (opt,"eee_timer:" ,10 )) {if (kstrtoint (opt +10 ,0 , &eee_timer)) goto err; }
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +1 -1
@@ -1362,7 +1362,7 @@ static int rk_gmac_probe(struct platform_device *pdev) ret =rk_gmac_clk_init (plat_dat);if (ret) -return ret; + goto err_remove_config_dt; ret =rk_gmac_powerup (plat_dat->bsp_priv);if (ret)
drivers/net/macsec.c +3 -0
@@ -19,6 +19,7 @@#include <net/genetlink.h> #include <net/sock.h> #include <net/gro_cells.h> +#include <linux/if_arp.h> #include <uapi/linux/if_macsec.h>
@@ -3219,6 +3220,8 @@ static int macsec_newlink(struct net *net, struct net_device *dev, real_dev =__dev_get_by_index (net,nla_get_u32 (tb[IFLA_LINK ]));if (!real_dev)return -ENODEV ; +if (real_dev->type !=ARPHRD_ETHER ) +return -EINVAL ; dev->priv_flags |=IFF_MACSEC ;
drivers/net/usb/qmi_wwan.c +1 -0
@@ -1139,6 +1139,7 @@ static const struct usb_device_id products[] = { {QMI_FIXED_INTF(0x1435, 0xd181, 4)}, /* Wistron NeWeb D18Q1 */ {QMI_FIXED_INTF(0x1435, 0xd181, 5)}, /* Wistron NeWeb D18Q1 */ {QMI_QUIRK_SET_DTR(0x1508, 0x1001, 4)}, /* Fibocom NL668 series */ + {QMI_FIXED_INTF(0x1690, 0x7588, 4)}, /* ASKEY WWHC050 */ {QMI_FIXED_INTF(0x16d8, 0x6003, 0)}, /* CMOTech 6003 */ {QMI_FIXED_INTF(0x16d8, 0x6007, 0)}, /* CMOTech CHE-628S */ {QMI_FIXED_INTF(0x16d8, 0x6008, 0)}, /* CMOTech CMU-301 */
drivers/net/vrf.c +10 -9
@@ -996,23 +996,24 @@ static struct sk_buff *vrf_ip6_rcv(struct net_device *vrf_dev, struct sk_buff *skb) {int orig_iif = skb->skb_iif; -bool need_strict =rt6_need_strict (&ipv6_hdr (skb)->daddr); -bool is_ndisc =ipv6_ndisc_frame (skb); +bool need_strict; -/* loopback, multicast & non-ND link-local traffic; do not push through -* packet taps again. Reset pkt_type for upper layers to process skb +/* loopback traffic; do not push through packet taps again. +* Reset pkt_type for upper layers to process skb */ -if (skb->pkt_type ==PACKET_LOOPBACK || (need_strict && !is_ndisc)) { +if (skb->pkt_type ==PACKET_LOOPBACK ) { skb->dev = vrf_dev; skb->skb_iif = vrf_dev->ifindex;IP6CB (skb)->flags |=IP6SKB_L3SLAVE ; -if (skb->pkt_type ==PACKET_LOOPBACK ) - skb->pkt_type =PACKET_HOST ; + skb->pkt_type =PACKET_HOST ; goto out; } -/* if packet is NDISC then keep the ingress interface */ -if (!is_ndisc) { +/* if packet is NDISC or addressed to multicast or link-local +* then keep the ingress interface +*/ + need_strict =rt6_need_strict (&ipv6_hdr (skb)->daddr); +if (!ipv6_ndisc_frame (skb) && !need_strict) {vrf_rx_stats (vrf_dev, skb->len); skb->dev = vrf_dev; skb->skb_iif = vrf_dev->ifindex;
drivers/net/vxlan.c +9 -2
@@ -2454,10 +2454,19 @@ static void vxlan_vs_add_dev(struct vxlan_sock *vs, struct vxlan_dev *vxlan,/* Setup stats when device is created */ static int vxlan_init (struct net_device *dev) { +struct vxlan_dev *vxlan =netdev_priv (dev); +int err; + dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats);if (!dev->tstats)return -ENOMEM ; + err =gro_cells_init (&vxlan->gro_cells, dev); +if (err) { +free_percpu (dev->tstats); +return err; + } +return 0 ; }
@@ -2717,8 +2726,6 @@ static void vxlan_setup(struct net_device *dev) vxlan->dev = dev; -gro_cells_init (&vxlan->gro_cells, dev); -for (h =0 ; h <FDB_HASH_SIZE ; ++h)INIT_HLIST_HEAD (&vxlan->fdb_head[h]); }
drivers/nfc/fdp/fdp.c +2 -3
@@ -192,7 +192,7 @@ static int fdp_nci_send_patch(struct nci_dev *ndev, u8 conn_id, u8 type)const struct firmware *fw;struct sk_buff *skb;unsigned long len; -u8 max_size, payload_size; +int max_size, payload_size;int rc =0 ; if ((type == NCI_PATCH_TYPE_OTP && !info->otp_patch) ||
@@ -215,8 +215,7 @@ static int fdp_nci_send_patch(struct nci_dev *ndev, u8 conn_id, u8 type)while (len) { - payload_size = min_t(unsigned long, (unsigned long) max_size, - len); + payload_size = min_t(unsigned long, max_size, len); skb =nci_skb_alloc (ndev, (NCI_CTRL_HDR_SIZE + payload_size),GFP_KERNEL );
drivers/of/of_mdio.c +1 -0
@@ -259,6 +259,7 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) rc =of_mdiobus_register_phy (mdio, child, addr);if (rc && rc != -ENODEV ) goto unregister; +break ; } } }
drivers/perf/arm_pmu_acpi.c +2 -5
@@ -25,8 +25,6 @@ static int arm_pmu_acpi_register_irq(int cpu)int gsi, trigger; gicc =acpi_cpu_get_madt_gicc (cpu); -if (WARN_ON (!gicc)) -return -EINVAL ; gsi = gicc->performance_interrupt;
@@ -65,11 +63,10 @@ static void arm_pmu_acpi_unregister_irq(int cpu)int gsi; gicc =acpi_cpu_get_madt_gicc (cpu); -if (!gicc) -return ; gsi = gicc->performance_interrupt; -acpi_unregister_gsi (gsi); +if (gsi) +acpi_unregister_gsi (gsi); }static int arm_pmu_acpi_parse_irqs (void )
drivers/platform/x86/pmc_atom.c +8 -0
@@ -443,6 +443,14 @@ static const struct dmi_system_id critclk_systems[] = { DMI_MATCH(DMI_PRODUCT_NAME, "3I380D"), }, }, + { +/* pmc_plt_clk* - are used for ethernet controllers */ + .ident = "Lex 2I385SW", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Lex BayTrail" ), + DMI_MATCH(DMI_PRODUCT_NAME, "2I385SW"), + }, + }, {/* pmc_plt_clk* - are used for ethernet controllers */ .ident = "Beckhoff CB3163",
drivers/rtc/Kconfig +1 -0
@@ -323,6 +323,7 @@ config RTC_DRV_MAX6900 config RTC_DRV_MAX8907 tristate "Maxim MAX8907" depends on MFD_MAX8907 || COMPILE_TEST + select REGMAP_IRQ help If you say yes here you will get support for the RTC of Maxim MAX8907 PMIC.
drivers/scsi/ipr.c +2 -1
@@ -9962,6 +9962,7 @@ static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, ioa_cfg->max_devs_supported = ipr_max_devs;if (ioa_cfg->sis64) { + host->max_channel =IPR_MAX_SIS64_BUSES ; host->max_id =IPR_MAX_SIS64_TARGETS_PER_BUS ; host->max_lun =IPR_MAX_SIS64_LUNS_PER_TARGET ;if (ipr_max_devs >IPR_MAX_SIS64_DEVS )
@@ -9970,6 +9971,7 @@ static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, + ((sizeof (struct ipr_config_table_entry64 ) * ioa_cfg->max_devs_supported))); }else { + host->max_channel =IPR_VSET_BUS ; host->max_id =IPR_MAX_NUM_TARGETS_PER_BUS ; host->max_lun =IPR_MAX_NUM_LUNS_PER_TARGET ;if (ipr_max_devs >IPR_MAX_PHYSICAL_DEVS )
@@ -9979,7 +9981,6 @@ static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, * ioa_cfg->max_devs_supported))); } - host->max_channel =IPR_VSET_BUS ; host->unique_id = host->host_no; host->max_cmd_len =IPR_MAX_CDB_LEN ; host->can_queue = ioa_cfg->max_cmds;
drivers/scsi/ipr.h +1 -0
@@ -1306,6 +1306,7 @@ struct ipr_resource_entry {#define IPR_ARRAY_VIRTUAL_BUS 0x1#define IPR_VSET_VIRTUAL_BUS 0x2#define IPR_IOAFP_VIRTUAL_BUS 0x3 +#define IPR_MAX_SIS64_BUSES 0x4#define IPR_GET_RES_PHYS_LOC (res) \ (((res)->bus << 24) | ((res)->target << 8) | (res)->lun)
drivers/scsi/sd.c +3 -1
@@ -3212,9 +3212,11 @@ static int sd_revalidate_disk(struct gendisk *disk)if (sd_validate_opt_xfer_size (sdkp, dev_max)) { q->limits.io_opt =logical_to_bytes (sdp, sdkp->opt_xfer_blocks); rw_max =logical_to_sectors (sdp, sdkp->opt_xfer_blocks); - }else + }else { + q->limits.io_opt =0 ; rw_max =min_not_zero (logical_to_sectors (sdp, dev_max), (sector_t )BLK_DEF_MAX_SECTORS ); + }/* Do not exceed controller limit */ rw_max =min (rw_max,queue_max_hw_sectors (q));
drivers/spi/spi-pxa2xx.c +23 -0
@@ -76,6 +76,10 @@ MODULE_ALIAS("platform:pxa2xx-spi");#define LPSS_CAPS_CS_EN_SHIFT 9#define LPSS_CAPS_CS_EN_MASK (0xf << LPSS_CAPS_CS_EN_SHIFT) +#define LPSS_PRIV_CLOCK_GATE 0x38 +#define LPSS_PRIV_CLOCK_GATE_CLK_CTL_MASK 0x3 +#define LPSS_PRIV_CLOCK_GATE_CLK_CTL_FORCE_ON 0x3 +struct lpss_config {/* LPSS offset from drv_data->ioaddr */ unsigned offset;
@@ -92,6 +96,8 @@ struct lpss_config {unsigned cs_sel_shift;unsigned cs_sel_mask;unsigned cs_num; +/* Quirks */ + unsigned cs_clk_stays_gated : 1; };/* Keep these sorted with enum pxa_ssp_type */
@@ -162,6 +168,7 @@ static const struct lpss_config lpss_platforms[] = { .tx_threshold_hi = 56, .cs_sel_shift = 8, .cs_sel_mask = 3 << 8, + .cs_clk_stays_gated = true, }, };
@@ -385,6 +392,22 @@ static void lpss_ssp_cs_control(struct driver_data *drv_data, bool enable)else value |=LPSS_CS_CONTROL_CS_HIGH ;__lpss_ssp_write_priv (drv_data, config->reg_cs_ctrl, value); +if (config->cs_clk_stays_gated) { +u32 clkgate; + +/* +* Changing CS alone when dynamic clock gating is on won't +* actually flip CS at that time. This ruins SPI transfers +* that specify delays, or have no data. Toggle the clock mode +* to force on briefly to poke the CS pin to move. +*/ + clkgate =__lpss_ssp_read_priv (drv_data,LPSS_PRIV_CLOCK_GATE ); + value = (clkgate & ~LPSS_PRIV_CLOCK_GATE_CLK_CTL_MASK ) | +LPSS_PRIV_CLOCK_GATE_CLK_CTL_FORCE_ON ; + +__lpss_ssp_write_priv (drv_data,LPSS_PRIV_CLOCK_GATE , value); +__lpss_ssp_write_priv (drv_data,LPSS_PRIV_CLOCK_GATE , clkgate); + } }static void cs_assert (struct driver_data *drv_data)
drivers/spi/spi-qup.c +7 -4
@@ -1190,6 +1190,11 @@ static int spi_qup_suspend(struct device *device)struct spi_qup *controller =spi_master_get_devdata (master);int ret; +if (pm_runtime_suspended (device)) { + ret =spi_qup_pm_resume_runtime (device); +if (ret) +return ret; + } ret =spi_master_suspend (master);if (ret)return ret;
@@ -1198,10 +1203,8 @@ static int spi_qup_suspend(struct device *device)if (ret)return ret; -if (!pm_runtime_suspended (device)) { -clk_disable_unprepare (controller->cclk); -clk_disable_unprepare (controller->iclk); - } +clk_disable_unprepare (controller->cclk); +clk_disable_unprepare (controller->iclk);return 0 ; }
drivers/spi/spi-zynqmp-gqspi.c +0 -3
@@ -415,9 +415,6 @@ static void zynqmp_qspi_chipselect(struct spi_device *qspi, bool is_high)zynqmp_gqspi_write (xqspi,GQSPI_GEN_FIFO_OFST , genfifoentry); -/* Dummy generic FIFO entry */ -zynqmp_gqspi_write (xqspi,GQSPI_GEN_FIFO_OFST ,0x0 ); -/* Manually start the generic FIFO command */ zynqmp_gqspi_write(xqspi, GQSPI_CONFIG_OFST, zynqmp_gqspi_read(xqspi, GQSPI_CONFIG_OFST) |
drivers/staging/greybus/tools/loopback_test.c +9 -8
@@ -20,6 +20,7 @@#include <signal.h> #define MAX_NUM_DEVICES 10 +#define MAX_SYSFS_PREFIX 0x80#define MAX_SYSFS_PATH 0x200#define CSV_MAX_LINE 0x1000#define SYSFS_MAX_INT 0x20
@@ -68,7 +69,7 @@ struct loopback_results { };struct loopback_device { -char name[MAX_SYSFS_PATH ]; +char name[MAX_STR_LEN ];char sysfs_entry[MAX_SYSFS_PATH ];char debugfs_entry[MAX_SYSFS_PATH ];struct loopback_results results;
@@ -94,8 +95,8 @@ struct loopback_test {int stop_all;int poll_count;char test_name[MAX_STR_LEN ]; -char sysfs_prefix[MAX_SYSFS_PATH ]; -char debugfs_prefix[MAX_SYSFS_PATH ]; +char sysfs_prefix[MAX_SYSFS_PREFIX ]; +char debugfs_prefix[MAX_SYSFS_PREFIX ];struct timespec poll_timeout;struct loopback_device devices[MAX_NUM_DEVICES ];struct loopback_results aggregate_results;
@@ -644,7 +645,7 @@ int find_loopback_devices(struct loopback_test *t)static int open_poll_files (struct loopback_test *t) {struct loopback_device *dev; -char buf[MAX_STR_LEN ]; +char buf[MAX_SYSFS_PATH +MAX_STR_LEN ];char dummy;int fds_idx =0 ;int i;
@@ -914,10 +915,10 @@ int main(int argc, char *argv[]) t.iteration_max =atoi (optarg);break ;case 'S' : -snprintf (t.sysfs_prefix,MAX_SYSFS_PATH ,"%s" , optarg); +snprintf (t.sysfs_prefix,MAX_SYSFS_PREFIX ,"%s" , optarg);break ;case 'D' : -snprintf (t.debugfs_prefix,MAX_SYSFS_PATH ,"%s" , optarg); +snprintf (t.debugfs_prefix,MAX_SYSFS_PREFIX ,"%s" , optarg);break ;case 'm' : t.mask =atol (optarg);
@@ -968,10 +969,10 @@ int main(int argc, char *argv[]) }if (!strcmp (t.sysfs_prefix,"" )) -snprintf (t.sysfs_prefix,MAX_SYSFS_PATH ,"%s" , sysfs_prefix); +snprintf (t.sysfs_prefix,MAX_SYSFS_PREFIX ,"%s" , sysfs_prefix);if (!strcmp (t.debugfs_prefix,"" )) -snprintf (t.debugfs_prefix,MAX_SYSFS_PATH ,"%s" , debugfs_prefix); +snprintf (t.debugfs_prefix,MAX_SYSFS_PREFIX ,"%s" , debugfs_prefix); ret =find_loopback_devices (&t);if (ret)
drivers/staging/rtl8188eu/os_dep/usb_intf.c +2 -0
@@ -40,12 +40,14 @@ static const struct usb_device_id rtw_usb_id_tbl[] = {/****** 8188EUS ********/ {USB_DEVICE(0x056e, 0x4008)}, /* Elecom WDC-150SU2M */ {USB_DEVICE(0x07b8, 0x8179)}, /* Abocom - Abocom */ + {USB_DEVICE(0x0B05, 0x18F0)}, /* ASUS USB-N10 Nano B1 */ {USB_DEVICE(0x2001, 0x330F)}, /* DLink DWA-125 REV D1 */ {USB_DEVICE(0x2001, 0x3310)}, /* Dlink DWA-123 REV D1 */ {USB_DEVICE(0x2001, 0x3311)}, /* DLink GO-USB-N150 REV B1 */ {USB_DEVICE(0x2001, 0x331B)}, /* D-Link DWA-121 rev B1 */ {USB_DEVICE(0x2357, 0x010c)}, /* TP-Link TL-WN722N v2 */ {USB_DEVICE(0x2357, 0x0111)}, /* TP-Link TL-WN727N v5.21 */ + {USB_DEVICE(0x2C4E, 0x0102)}, /* MERCUSYS MW150US v2 */ {USB_DEVICE(0x0df6, 0x0076)}, /* Sitecom N150 v2 */ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0xffef)}, /* Rosewill RNX-N150NUB */ {} /* Terminating entry */
drivers/staging/speakup/main.c +1 -1
@@ -567,7 +567,7 @@ static u_long get_word(struct vc_data *vc)return 0 ; }else if (tmpx < vc->vc_cols -2 && (ch ==SPACE || ch ==0 || (ch <0x100 &&IS_WDLM (ch))) && -get_char (vc, (u_short *)&tmp_pos +1 , &temp) >SPACE ) { +get_char (vc, (u_short *)tmp_pos +1 , &temp) >SPACE ) { tmp_pos +=2 ; tmpx++; }else
drivers/staging/wlan-ng/hfa384x_usb.c +2 -0
@@ -3495,6 +3495,8 @@ static void hfa384x_int_rxmonitor(struct wlandevice *wlandev, WLAN_HDR_A4_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN)) {pr_debug ("overlen frm: len=%zd\n" , skblen -sizeof (struct p80211_caphdr )); + +return ; } skb =dev_alloc_skb (skblen);
drivers/staging/wlan-ng/prism2usb.c +1 -0
@@ -180,6 +180,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)cancel_work_sync (&hw->link_bh);cancel_work_sync (&hw->commsqual_bh); +cancel_work_sync (&hw->usb_work);/* Now we complete any outstanding commands * and tell everyone who is waiting for their
drivers/tty/vt/selection.c +5 -0
@@ -83,6 +83,11 @@ void clear_selection(void) } } +bool vc_is_sel (struct vc_data *vc) +{ +return vc == sel_cons; +} +/* * User settable table: what characters are to be considered alphabetic? * 128 bits. Locked by the console lock.
drivers/tty/vt/vt.c +26 -4
@@ -584,8 +584,9 @@ static void hide_softcursor(struct vc_data *vc)static void hide_cursor (struct vc_data *vc) { -if (vc == sel_cons) +if (vc_is_sel (vc))clear_selection (); + vc->vc_sw->con_cursor (vc,CM_ERASE );hide_softcursor (vc); }
@@ -595,7 +596,7 @@ static void set_cursor(struct vc_data *vc)if (!con_is_fg (vc) || console_blanked || vc->vc_mode ==KD_GRAPHICS )return ;if (vc->vc_deccm) { -if (vc == sel_cons) +if (vc_is_sel (vc))clear_selection ();add_softcursor (vc);if ((vc->vc_cursor_type &0x0f ) !=1 )
@@ -750,6 +751,17 @@ static void visual_init(struct vc_data *vc, int num, int init) vc->vc_screenbuf_size = vc->vc_rows * vc->vc_size_row; } +static void vc_port_destruct (struct tty_port *port) +{ + struct vc_data *vc = container_of(port, struct vc_data, port); + +kfree (vc); +} + +static const struct tty_port_operations vc_port_ops = { + .destruct = vc_port_destruct, +}; +int vc_allocate (unsigned int currcons)/* return 0 on success */ {struct vt_notifier_param param;
@@ -775,6 +787,7 @@ int vc_allocate(unsigned int currcons) /* return 0 on success */ vc_cons[currcons].d = vc;tty_port_init (&vc->port); + vc->port.ops = &vc_port_ops;INIT_WORK (&vc_cons[currcons].SAK_work, vc_SAK);visual_init (vc, currcons,1 );
@@ -873,7 +886,7 @@ static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc,if (!newscreen)return -ENOMEM ; -if (vc == sel_cons) +if (vc_is_sel (vc))clear_selection (); old_rows = vc->vc_rows;
@@ -2894,6 +2907,7 @@ static int con_install(struct tty_driver *driver, struct tty_struct *tty) tty->driver_data = vc; vc->port.tty = tty; +tty_port_get (&vc->port);if (!tty->winsize.ws_row && !tty->winsize.ws_col) { tty->winsize.ws_row = vc_cons[currcons].d->vc_rows;
@@ -2929,6 +2943,13 @@ static void con_shutdown(struct tty_struct *tty)console_unlock (); } +static void con_cleanup (struct tty_struct *tty) +{ +struct vc_data *vc = tty->driver_data; + +tty_port_put (&vc->port); +} +static int default_color =7 ;/* white */ static int default_italic_color =2 ;// green (ASCII) static int default_underline_color =3 ;// cyan (ASCII)
@@ -3053,7 +3074,8 @@ static const struct tty_operations con_ops = { .throttle = con_throttle, .unthrottle = con_unthrottle, .resize = vt_resize, - .shutdown = con_shutdown + .shutdown = con_shutdown, + .cleanup = con_cleanup, };static struct cdev vc0_cdev;
drivers/tty/vt/vt_ioctl.c +41 -39
169 lines not on this page · raw message
drivers/usb/class/cdc-acm.c +14 -6
@@ -926,10 +926,10 @@ static int get_serial_info(struct acm *acm, struct serial_struct __user *info)memset (&tmp,0 ,sizeof (tmp)); tmp.xmit_fifo_size = acm->writesize; tmp.baud_base =le32_to_cpu (acm->line.dwDTERate); - tmp.close_delay = acm->port.close_delay /10 ; + tmp.close_delay =jiffies_to_msecs (acm->port.close_delay) /10 ; tmp.closing_wait = acm->port.closing_wait ==ASYNC_CLOSING_WAIT_NONE ?ASYNC_CLOSING_WAIT_NONE : - acm->port.closing_wait /10 ; +jiffies_to_msecs (acm->port.closing_wait) /10 ;if (copy_to_user (info, &tmp,sizeof (tmp)))return -EFAULT ;
@@ -942,20 +942,28 @@ static int set_serial_info(struct acm *acm, {struct serial_struct new_serial;unsigned int closing_wait, close_delay; +unsigned int old_closing_wait, old_close_delay;int retval =0 ;if (copy_from_user (&new_serial, newinfo,sizeof (new_serial)))return -EFAULT ; - close_delay = new_serial.close_delay *10 ; + close_delay =msecs_to_jiffies (new_serial.close_delay *10 ); closing_wait = new_serial.closing_wait ==ASYNC_CLOSING_WAIT_NONE ? -ASYNC_CLOSING_WAIT_NONE : new_serial.closing_wait *10 ; +ASYNC_CLOSING_WAIT_NONE : +msecs_to_jiffies (new_serial.closing_wait *10 ); + +/* we must redo the rounding here, so that the values match */ + old_close_delay =jiffies_to_msecs (acm->port.close_delay) /10 ; + old_closing_wait = acm->port.closing_wait ==ASYNC_CLOSING_WAIT_NONE ? +ASYNC_CLOSING_WAIT_NONE : +jiffies_to_msecs (acm->port.closing_wait) /10 ;mutex_lock (&acm->port.mutex);if (!capable (CAP_SYS_ADMIN )) { -if ((close_delay != acm->port.close_delay) || - (closing_wait != acm->port.closing_wait)) +if ((new_serial.close_delay != old_close_delay) || + (new_serial.closing_wait != old_closing_wait)) retval = -EPERM ;else retval = -EOPNOTSUPP ;
drivers/usb/core/quirks.c +6 -0
@@ -229,6 +229,12 @@ static const struct usb_device_id usb_quirk_list[] = { { USB_DEVICE(0x0b05, 0x17e0), .driver_info = USB_QUIRK_IGNORE_REMOTE_WAKEUP }, + /* Realtek hub in Dell WD19 (Type-C) */ + { USB_DEVICE(0x0bda, 0x0487), .driver_info = USB_QUIRK_NO_LPM }, + + /* Generic RTL8153 based ethernet adapters */ + { USB_DEVICE(0x0bda, 0x8153), .driver_info = USB_QUIRK_NO_LPM }, + /* Action Semiconductor flash disk */ { USB_DEVICE(0x10d6, 0x2200), .driver_info = USB_QUIRK_STRING_FETCH_255 },
drivers/usb/host/xhci-pci.c +2 -1
@@ -140,7 +140,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_AMD_PLL_FIX ;if (pdev->vendor ==PCI_VENDOR_ID_AMD && - (pdev->device ==0x15e0 || + (pdev->device ==0x145c || + pdev->device ==0x15e0 || pdev->device ==0x15e1 || pdev->device ==0x43bb )) xhci->quirks |=XHCI_SUSPEND_DELAY ;
drivers/usb/host/xhci-plat.c +1 -0
@@ -416,6 +416,7 @@ MODULE_DEVICE_TABLE(acpi, usb_xhci_acpi_match);static struct platform_driver usb_xhci_driver = { .probe = xhci_plat_probe, .remove = xhci_plat_remove, + .shutdown = usb_hcd_platform_shutdown, .driver = { .name ="xhci-hcd" , .pm = &xhci_plat_pm_ops,
drivers/usb/host/xhci-trace.h +6 -17
@@ -276,23 +276,12 @@ DECLARE_EVENT_CLASS(xhci_log_urb, ),TP_printk ("ep%d%s-%s: urb %p pipe %u slot %d length %d/%d sgs %d/%d stream %d flags %08x" , __entry->epnum, __entry->dir_in ?"in" :"out" , - ({char *s; -switch (__entry->type) { -case USB_ENDPOINT_XFER_INT : - s ="intr" ; -break ; -case USB_ENDPOINT_XFER_CONTROL : - s ="control" ; -break ; -case USB_ENDPOINT_XFER_BULK : - s ="bulk" ; -break ; -case USB_ENDPOINT_XFER_ISOC : - s ="isoc" ; -break ; -default : - s ="UNKNOWN" ; - } s; }), __entry->urb, __entry->pipe, __entry->slot_id, +__print_symbolic (__entry->type, + { USB_ENDPOINT_XFER_INT, "intr" }, + { USB_ENDPOINT_XFER_CONTROL, "control" }, + { USB_ENDPOINT_XFER_BULK, "bulk" }, + { USB_ENDPOINT_XFER_ISOC, "isoc" }), + __entry->urb, __entry->pipe, __entry->slot_id, __entry->actual, __entry->length, __entry->num_mapped_sgs, __entry->num_sgs, __entry->stream, __entry->flags )
drivers/usb/musb/musb_host.c +5 -12
@@ -1494,10 +1494,7 @@ void musb_host_tx(struct musb *musb, u8 epnum)* We need to map sg if the transfer_buffer is * NULL. */ -if (!urb->transfer_buffer) - qh->use_sg = true; - -if (qh->use_sg) { +if (!urb->transfer_buffer) {/* sg_miter_start is already done in musb_ep_program */ if (!sg_miter_next (&qh->sg_miter)) {dev_err (musb->controller,"error: sg list empty\n" );
@@ -1505,9 +1502,8 @@ void musb_host_tx(struct musb *musb, u8 epnum) status = -EINVAL ; goto done; } - urb->transfer_buffer = qh->sg_miter.addr; length =min_t (u32, length, qh->sg_miter.length); -musb_write_fifo (hw_ep, length, urb->transfer_buffer); +musb_write_fifo (hw_ep, length, qh->sg_miter.addr); qh->sg_miter.consumed = length;sg_miter_stop (&qh->sg_miter); }else {
@@ -1516,11 +1512,6 @@ void musb_host_tx(struct musb *musb, u8 epnum) qh->segsize = length; -if (qh->use_sg) { -if (offset + length >= urb->transfer_buffer_length) - qh->use_sg = false; - } -musb_ep_select (mbase, epnum);musb_writew (epio,MUSB_TXCSR ,MUSB_TXCSR_H_WZC_BITS |MUSB_TXCSR_TXPKTRDY );
@@ -2038,8 +2029,10 @@ void musb_host_rx(struct musb *musb, u8 epnum) urb->actual_length += xfer_len; qh->offset += xfer_len;if (done) { -if (qh->use_sg) +if (qh->use_sg) { qh->use_sg = false; + urb->transfer_buffer =NULL ; + }if (urb->status == -EINPROGRESS ) urb->status = status;
drivers/usb/serial/io_edgeport.c +1 -1
@@ -714,7 +714,7 @@ static void edge_interrupt_callback(struct urb *urb)/* grab the txcredits for the ports if available */ position =2 ; portNumber =0 ; -while ((position < length) && +while ((position < length -1 ) && (portNumber < edge_serial->serial->num_ports)) { txCredits = data[position] | (data[position+1 ] <<8 );if (txCredits) {
drivers/usb/serial/option.c +8 -0
@@ -1186,6 +1186,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = NCTRL(0) }, { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x110a, 0xff), /* Telit ME910G1 */ .driver_info = NCTRL(0) | RSVD(3) }, + { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x110b, 0xff), /* Telit ME910G1 (ECM) */ + .driver_info = NCTRL(0) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE910), .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE910_USBCFG4),
@@ -1992,8 +1994,14 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */ + { USB_DEVICE_INTERFACE_CLASS(0x1435, 0xd191, 0xff), /* Wistron Neweb D19Q1 */ + .driver_info = RSVD(1) | RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x1690, 0x7588, 0xff), /* ASKEY WWHC050 */ + .driver_info = RSVD(1) | RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2020, 0x2031, 0xff), /* Olicard 600 */ .driver_info = RSVD(4) }, + { USB_DEVICE_INTERFACE_CLASS(0x2020, 0x2033, 0xff), /* BroadMobi BM806U */ + .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2020, 0x2060, 0xff), /* BroadMobi BM818 */ .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2020, 0x4000, 0xff) }, /* OLICARD300 - MT6225 */
drivers/usb/serial/pl2303.c +1 -0
@@ -96,6 +96,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(SUPERIAL_VENDOR_ID, SUPERIAL_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LD220_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LD220TA_PRODUCT_ID) }, + { USB_DEVICE(HP_VENDOR_ID, HP_LD381_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LD960_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LD960TA_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LCM220_PRODUCT_ID) },
drivers/usb/serial/pl2303.h +1 -0
@@ -129,6 +129,7 @@#define HP_LM920_PRODUCT_ID 0x026b#define HP_TD620_PRODUCT_ID 0x0956#define HP_LD960_PRODUCT_ID 0x0b39 +#define HP_LD381_PRODUCT_ID 0x0f7f#define HP_LCM220_PRODUCT_ID 0x3139#define HP_LCM960_PRODUCT_ID 0x3239#define HP_LD220_PRODUCT_ID 0x3524
drivers/xen/xenbus/xenbus_comms.c +4 -0
@@ -313,6 +313,8 @@ static int process_msg(void) req->msg.type = state.msg.type; req->msg.len = state.msg.len; req->body = state.body; +/* write body, then update state */ +virt_wmb (); req->state = xb_req_state_got_reply; req->cb (req); }else
@@ -395,6 +397,8 @@ static int process_writes(void)if (state.req->state == xb_req_state_aborted)kfree (state.req);else { +/* write err, then update state */ +virt_wmb (); state.req->state = xb_req_state_got_reply;wake_up (&state.req->wq); }
drivers/xen/xenbus/xenbus_xs.c +6 -3
@@ -188,8 +188,11 @@ static bool xenbus_ok(void)static bool test_reply (struct xb_req_data *req) { -if (req->state == xb_req_state_got_reply || !xenbus_ok ()) +if (req->state == xb_req_state_got_reply || !xenbus_ok ()) { +/* read req->state before all other fields */ +virt_rmb ();return true; + }/* Make sure to reread req->state each time. */ barrier ();
@@ -199,7 +202,7 @@ static bool test_reply(struct xb_req_data *req)static void *read_reply (struct xb_req_data *req) { -while (req->state != xb_req_state_got_reply) { + do { wait_event(req->wq, test_reply(req)); if (!xenbus_ok())
@@ -213,7 +216,7 @@ static void *read_reply(struct xb_req_data *req)if (req->err)return ERR_PTR (req->err); - } + }while (req->state != xb_req_state_got_reply);return req->body; }
fs/afs/rxrpc.c +2 -2
@@ -173,7 +173,7 @@ void afs_put_call(struct afs_call *call)int n =atomic_dec_return (&call->usage);int o =atomic_read (&afs_outstanding_calls); -trace_afs_call (call, afs_call_trace_put, n +1 , o, +trace_afs_call (call, afs_call_trace_put, n, o,__builtin_return_address (0 )); ASSERTCMP(n, >=, 0);
@@ -619,7 +619,7 @@ static void afs_wake_up_async_call(struct sock *sk, struct rxrpc_call *rxcall, u =__atomic_add_unless (&call->usage,1 ,0 );if (u !=0 ) { -trace_afs_call (call, afs_call_trace_wake, u, +trace_afs_call (call, afs_call_trace_wake, u +1 ,atomic_read (&afs_outstanding_calls),__builtin_return_address (0 ));
fs/inode.c +1 -0
@@ -135,6 +135,7 @@ int inode_init_always(struct super_block *sb, struct inode *inode) inode->i_sb = sb; inode->i_blkbits = sb->s_blocksize_bits; inode->i_flags =0 ; +atomic64_set (&inode->i_sequence,0 );atomic_set (&inode->i_count,1 ); inode->i_op = &empty_iops; inode->i_fop = &no_open_fops;
fs/libfs.c +5 -3
@@ -802,7 +802,7 @@ int simple_attr_open(struct inode *inode, struct file *file, {struct simple_attr *attr; - attr =kmalloc (sizeof (*attr),GFP_KERNEL ); + attr =kzalloc (sizeof (*attr),GFP_KERNEL );if (!attr)return -ENOMEM ;
@@ -842,9 +842,11 @@ ssize_t simple_attr_read(struct file *file, char __user *buf,if (ret)return ret; -if (*ppos) {/* continued read */ +if (*ppos && attr->get_buf[0 ]) { +/* continued read */ size =strlen (attr->get_buf); - }else {/* first read */ + }else { +/* first read */ u64 val; ret = attr->get (attr->data, &val);if (ret)
include/linux/fs.h +1 -0
@@ -645,6 +645,7 @@ struct inode {struct rcu_head i_rcu; };u64 i_version; +atomic64_t i_sequence;/* see futex */ atomic_t i_count;atomic_t i_dio_count;atomic_t i_writecount;
include/linux/futex.h +10 -7
@@ -34,23 +34,26 @@ long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout,union futex_key {struct { +u64 i_seq;unsigned long pgoff; -struct inode *inode; -int offset; +unsigned int offset; } shared;struct { +union { +struct mm_struct *mm; +u64 __tmp; + };unsigned long address; -struct mm_struct *mm; -int offset; +unsigned int offset; } private;struct { +u64 ptr;unsigned long word; -void *ptr; -int offset; +unsigned int offset; } both; }; -#define FUTEX_KEY_INIT (union futex_key) { .both = { .ptr = NULL } } +#define FUTEX_KEY_INIT (union futex_key) { .both = { .ptr = 0ULL } }#ifdef CONFIG_FUTEX enum {
include/linux/page-flags.h +1 -1
@@ -264,7 +264,7 @@ static inline int TestClearPage##uname(struct page *page) { return 0; } __PAGEFLAG(Locked, locked, PF_NO_TAIL) PAGEFLAG(Waiters, waiters, PF_ONLY_HEAD) __CLEARPAGEFLAG(Waiters, waiters, PF_ONLY_HEAD) -PAGEFLAG(Error, error, PF_NO_COMPOUND) TESTCLEARFLAG(Error, error, PF_NO_COMPOUND) +PAGEFLAG(Error, error, PF_NO_TAIL) TESTCLEARFLAG(Error, error, PF_NO_TAIL) PAGEFLAG(Referenced, referenced, PF_HEAD) TESTCLEARFLAG(Referenced, referenced, PF_HEAD)__SETPAGEFLAG (Referenced, referenced,PF_HEAD )
include/linux/selection.h +3 -1
@@ -13,8 +13,8 @@struct tty_struct ; -extern struct vc_data *sel_cons;struct tty_struct ; +struct vc_data ;extern void clear_selection (void );extern int set_selection (const struct tiocl_selection __user *sel,struct tty_struct *tty);
@@ -23,6 +23,8 @@ extern int sel_loadlut(char __user *p);extern int mouse_reporting (void );extern void mouse_report (struct tty_struct * tty,int butt,int mrx,int mry); +bool vc_is_sel (struct vc_data *vc); +extern int console_blanked;extern const unsigned char color_table[];
include/linux/vmalloc.h +3 -2
@@ -106,8 +106,9 @@ extern int remap_vmalloc_range_partial(struct vm_area_struct *vma,extern int remap_vmalloc_range (struct vm_area_struct *vma,void *addr,unsigned long pgoff); -void vmalloc_sync_all (void ); - +void vmalloc_sync_mappings (void ); +void vmalloc_sync_unmappings (void ); +/* * Lowlevel-APIs (not for driver use!) */
include/linux/vt_kern.h +1 -1
@@ -142,7 +142,7 @@ static inline bool vt_force_oops_output(struct vc_data *vc)return false; } -extern char vt_dont_switch; +extern bool vt_dont_switch;extern int default_utf8;extern int global_cursor_default;
include/trace/events/afs.h +1 -1
@@ -40,7 +40,7 @@ enum afs_call_trace { EM(afs_call_trace_free, "FREE ") \ EM(afs_call_trace_put, "PUT ") \ EM(afs_call_trace_wake, "WAKE ") \ -E_ (afs_call_trace_work,"WORK " ) +E_ (afs_call_trace_work,"QUEUE" )/* * Export enum symbols via userspace.
include/uapi/linux/serio.h +5 -5
@@ -9,7 +9,7 @@#ifndef _UAPI_SERIO_H#define _UAPI_SERIO_H - +#include <linux/const.h> #include <linux/ioctl.h> #define SPIOCSTYPE _IOW('q', 0x01, unsigned long)
@@ -18,10 +18,10 @@/* * bit masks for use in "interrupt" flags (3rd argument) */ -#define SERIO_TIMEOUT BIT(0) -#define SERIO_PARITY BIT(1) -#define SERIO_FRAME BIT(2) -#define SERIO_OOB_DATA BIT(3) +#define SERIO_TIMEOUT _BITUL(0) +#define SERIO_PARITY _BITUL(1) +#define SERIO_FRAME _BITUL(2) +#define SERIO_OOB_DATA _BITUL(3)/* * Serio types
kernel/bpf/syscall.c +6 -3
@@ -1364,7 +1364,7 @@ static int bpf_prog_get_info_by_fd(struct bpf_prog *prog, union bpf_attr __user *uattr) {struct bpf_prog_info __user *uinfo =u64_to_user_ptr (attr->info.info); -struct bpf_prog_info info = {}; +struct bpf_prog_info info;u32 info_len = attr->info.info_len;char __user *uinsns;u32 ulen;
@@ -1375,6 +1375,7 @@ static int bpf_prog_get_info_by_fd(struct bpf_prog *prog,return err; info_len =min_t (u32,sizeof (info), info_len); +memset (&info,0 ,sizeof (info));if (copy_from_user (&info, uinfo, info_len))return -EFAULT ;
@@ -1420,7 +1421,7 @@ static int bpf_map_get_info_by_fd(struct bpf_map *map, union bpf_attr __user *uattr) {struct bpf_map_info __user *uinfo =u64_to_user_ptr (attr->info.info); -struct bpf_map_info info = {}; +struct bpf_map_info info;u32 info_len = attr->info.info_len;int err;
@@ -1429,6 +1430,7 @@ static int bpf_map_get_info_by_fd(struct bpf_map *map,return err; info_len =min_t (u32,sizeof (info), info_len); +memset (&info,0 ,sizeof (info)); info.type = map->map_type; info.id = map->id; info.key_size = map->key_size;
@@ -1474,7 +1476,7 @@ static int bpf_obj_get_info_by_fd(const union bpf_attr *attr, SYSCALL_DEFINE3(bpf, int, cmd, union bpf_attr __user *, uattr, unsigned int, size) { -union bpf_attr attr = {}; +union bpf_attr attr;int err;if (sysctl_unprivileged_bpf_disabled && !capable (CAP_SYS_ADMIN ))
@@ -1486,6 +1488,7 @@ SYSCALL_DEFINE3(bpf, int, cmd, union bpf_attr __user *, uattr, unsigned int, siz size =min_t (u32, size,sizeof (attr));/* copy attributes from user space, may be less than sizeof(bpf_attr) */ +memset (&attr,0 ,sizeof (attr));if (copy_from_user (&attr, uattr, size) !=0 )return -EFAULT ;
kernel/cgroup/cgroup-v1.c +2 -1
@@ -501,6 +501,7 @@ static void *cgroup_pidlist_next(struct seq_file *s, void *v, loff_t *pos)*/ p++;if (p >= end) { + (*pos)++;return NULL ; }else { *pos = *p;
@@ -823,7 +824,7 @@ void cgroup1_release_agent(struct work_struct *work) pathbuf =kmalloc (PATH_MAX ,GFP_KERNEL ); agentbuf =kstrdup (cgrp->root->release_agent_path,GFP_KERNEL ); -if (!pathbuf || !agentbuf) +if (!pathbuf || !agentbuf || !strlen (agentbuf)) goto out;spin_lock_irq (&css_set_lock);
kernel/futex.c +55 -38
141 lines not on this page · raw message
kernel/irq/manage.c +9 -2
@@ -224,7 +224,11 @@ int irq_set_affinity_locked(struct irq_data *data, const struct cpumask *mask,if (desc->affinity_notify) {kref_get (&desc->affinity_notify->kref); -schedule_work (&desc->affinity_notify->work); +if (!schedule_work (&desc->affinity_notify->work)) { +/* Work was already scheduled, drop our extra ref */ +kref_put (&desc->affinity_notify->kref, + desc->affinity_notify->release); + } }irqd_set (data,IRQD_AFFINITY_SET );
@@ -324,7 +328,10 @@ irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify)raw_spin_unlock_irqrestore (&desc->lock, flags);if (old_notify) { -cancel_work_sync (&old_notify->work); +if (cancel_work_sync (&old_notify->work)) { +/* Pending work had a ref, put that one too */ +kref_put (&old_notify->kref, old_notify->release); + }kref_put (&old_notify->kref, old_notify->release); }
kernel/notifier.c +1 -1
@@ -552,7 +552,7 @@ NOKPROBE_SYMBOL(notify_die);int register_die_notifier (struct notifier_block *nb) { -vmalloc_sync_all (); +vmalloc_sync_mappings ();return atomic_notifier_chain_register (&die_chain, nb); }EXPORT_SYMBOL_GPL (register_die_notifier);
mm/memcontrol.c +8 -2
@@ -3518,7 +3518,7 @@ static void __mem_cgroup_usage_unregister_event(struct mem_cgroup *memcg,struct mem_cgroup_thresholds *thresholds;struct mem_cgroup_threshold_ary *new;unsigned long usage; -int i, j, size; +int i, j, size, entries;mutex_lock (&memcg->thresholds_lock);
@@ -3538,14 +3538,20 @@ static void __mem_cgroup_usage_unregister_event(struct mem_cgroup *memcg,__mem_cgroup_threshold (memcg, type == _MEMSWAP);/* Calculate new number of threshold */ - size =0 ; + size = entries =0 ;for (i =0 ; i < thresholds->primary->size; i++) {if (thresholds->primary->entries[i].eventfd != eventfd) size++; +else + entries++; } new = thresholds->spare; +/* If no items related to eventfd have been cleared, nothing to do */ +if (!entries) + goto unlock; +/* Set thresholds array to NULL if we don't have thresholds */ if (!size) {kfree (new);
mm/nommu.c +7 -3
@@ -450,10 +450,14 @@ void vm_unmap_aliases(void)EXPORT_SYMBOL_GPL (vm_unmap_aliases);/* -* Implement a stub for vmalloc_sync_all() if the architecture chose not to -* have one. +* Implement a stub for vmalloc_sync_[un]mapping() if the architecture +* chose not to have one. */ -void __weak vmalloc_sync_all (void ) +void __weak vmalloc_sync_mappings (void ) +{ +} + +void __weak vmalloc_sync_unmappings (void ) { }
mm/slub.c +21 -11
@@ -1923,8 +1923,6 @@ static void *get_partial(struct kmem_cache *s, gfp_t flags, int node,if (node ==NUMA_NO_NODE ) searchnode =numa_mem_id (); -else if (!node_present_pages (node)) - searchnode =node_to_mem_node (node); object =get_partial_node (s,get_node (s, searchnode), c, flags);if (object || node !=NUMA_NO_NODE )
@@ -2521,17 +2519,27 @@ static void *___slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,struct page *page; page = c->page; -if (!page) +if (!page) { +/* +* if the node is not online or has no normal memory, just +* ignore the node constraint +*/ +if (unlikely (node !=NUMA_NO_NODE && + !node_state (node,N_NORMAL_MEMORY ))) + node =NUMA_NO_NODE ; goto new_slab; + } redo:if (unlikely (!node_match (page, node))) { -int searchnode = node; - -if (node !=NUMA_NO_NODE && !node_present_pages (node)) - searchnode =node_to_mem_node (node); - -if (unlikely (!node_match (page, searchnode))) { +/* +* same as above but node_match() being false already +* implies node != NUMA_NO_NODE +*/ +if (!node_state (node,N_NORMAL_MEMORY )) { + node =NUMA_NO_NODE ; + goto redo; + }else {stat (s,ALLOC_NODE_MISMATCH );deactivate_slab (s, page, c->freelist, c); goto new_slab;
@@ -2943,11 +2951,13 @@ static __always_inline void do_slab_free(struct kmem_cache *s,barrier ();if (likely (page == c->page)) { -set_freepointer (s, tail_obj, c->freelist); +void **freelist =READ_ONCE (c->freelist); + +set_freepointer (s, tail_obj, freelist);if (unlikely (!this_cpu_cmpxchg_double ( s->cpu_slab->freelist, s->cpu_slab->tid, - c->freelist, tid, + freelist, tid, head,next_tid (tid)))) {note_cmpxchg_failure ("slab_free" , s, tid);
mm/vmalloc.c +7 -4
@@ -1769,7 +1769,7 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,* First make sure the mappings are removed from all page-tables * before they are freed. */ -vmalloc_sync_all (); +vmalloc_sync_unmappings ();/* * In this function, newly allocated vm_struct has VM_UNINITIALIZED
@@ -2318,16 +2318,19 @@ int remap_vmalloc_range(struct vm_area_struct *vma, void *addr,EXPORT_SYMBOL (remap_vmalloc_range);/* -* Implement a stub for vmalloc_sync_all() if the architecture chose not to -* have one. +* Implement stubs for vmalloc_sync_[un]mappings () if the architecture chose +* not to have one. * * The purpose of this function is to make sure the vmalloc area * mappings are identical in all page-tables in the system. */ -void __weak vmalloc_sync_all (void ) +void __weak vmalloc_sync_mappings (void ) { } +void __weak vmalloc_sync_unmappings (void ) +{ +}static int f (pte_t *pte,pgtable_t table,unsigned long addr,void *data) {
net/dsa/tag_brcm.c +2 -0
@@ -134,6 +134,8 @@ static struct sk_buff *brcm_tag_rcv(struct sk_buff *skb, struct net_device *dev, skb->dev = ds->ports[source_port].netdev; + skb->offload_fwd_mark =1 ; +return skb; }
net/hsr/hsr_framereg.c +2 -8
@@ -468,13 +468,9 @@ int hsr_get_node_data(struct hsr_priv *hsr,struct hsr_port *port;unsigned long tdiff; - -rcu_read_lock (); node =find_node_by_AddrA (&hsr->node_db, addr); -if (!node) { -rcu_read_unlock (); -return -ENOENT ;/* No such entry */ - } +if (!node) +return -ENOENT ;ether_addr_copy (addr_b, node->MacAddressB);
@@ -509,7 +505,5 @@ int hsr_get_node_data(struct hsr_priv *hsr, *addr_b_ifindex =-1 ; } -rcu_read_unlock (); -return 0 ; }
net/hsr/hsr_netlink.c +42 -32
169 lines not on this page · raw message
net/hsr/hsr_slave.c +4 -4
@@ -152,16 +152,16 @@ int hsr_add_port(struct hsr_priv *hsr, struct net_device *dev,if (port ==NULL )return -ENOMEM ; + port->hsr = hsr; + port->dev = dev; + port->type = type; +if (type !=HSR_PT_MASTER ) { res =hsr_portdev_setup (dev, port);if (res) goto fail_dev_setup; } - port->hsr = hsr; - port->dev = dev; - port->type = type; -list_add_tail_rcu (&port->port_list, &hsr->ports);synchronize_rcu ();
net/ipv4/Kconfig +1 -0
@@ -297,6 +297,7 @@ config SYN_COOKIES config NET_IPVTI tristate "Virtual (secure) IP: tunneling" + depends on IPV6 || IPV6=n select INET_TUNNEL select NET_IP_TUNNEL depends on INET_XFRM_MODE_TUNNEL
net/ipv4/ip_vti.c +30 -8
@@ -208,17 +208,39 @@ static netdev_tx_t vti_xmit(struct sk_buff *skb, struct net_device *dev,int mtu;if (!dst) { -struct rtable *rt; - - fl->u.ip4.flowi4_oif = dev->ifindex; - fl->u.ip4.flowi4_flags |=FLOWI_FLAG_ANYSRC ; - rt =__ip_route_output_key (dev_net (dev), &fl->u.ip4); -if (IS_ERR (rt)) { +switch (skb->protocol) { +case htons (ETH_P_IP ): { +struct rtable *rt; + + fl->u.ip4.flowi4_oif = dev->ifindex; + fl->u.ip4.flowi4_flags |=FLOWI_FLAG_ANYSRC ; + rt =__ip_route_output_key (dev_net (dev), &fl->u.ip4); +if (IS_ERR (rt)) { + dev->stats.tx_carrier_errors++; + goto tx_error_icmp; + } + dst = &rt->dst; +skb_dst_set (skb, dst); +break ; + } +#if IS_ENABLED (CONFIG_IPV6 ) +case htons (ETH_P_IPV6 ): + fl->u.ip6.flowi6_oif = dev->ifindex; + fl->u.ip6.flowi6_flags |=FLOWI_FLAG_ANYSRC ; + dst =ip6_route_output (dev_net (dev),NULL , &fl->u.ip6); +if (dst->error) { +dst_release (dst); + dst =NULL ; + dev->stats.tx_carrier_errors++; + goto tx_error_icmp; + } +skb_dst_set (skb, dst);
Lines of this file are not shown. View the raw message.
scripts/parse-maintainers.pl +0 -0
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c +1 -1
Lines of this file are not shown. View the raw message.
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c +1 -1
Lines of this file are not shown. View the raw message.
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c +2 -0
Lines of this file are not shown. View the raw message.
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h +1 -1
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.