Linux 4.14.17
Greg KH
maintainerI'm announcing the release of the 4.14.17 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:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/boot/dts/bcm-nsp.dtsi | 4 arch/arm/boot/dts/bcm958623hr.dts | 4 arch/arm/boot/dts/bcm958625hr.dts | 4 arch/mips/kvm/mips.c | 7 arch/powerpc/kvm/powerpc.c | 7 arch/s390/include/asm/mmu_context.h | 2 arch/s390/include/asm/topology.h | 1 arch/s390/kernel/smp.c | 1 arch/s390/kvm/kvm-s390.c | 7 arch/x86/crypto/aesni-intel_asm.S | 199 ++++------------ arch/x86/crypto/aesni-intel_glue.c | 77 ++++-- arch/x86/include/asm/kvm_host.h | 3 arch/x86/include/asm/segment.h | 12 arch/x86/kvm/cpuid.h | 2 arch/x86/kvm/emulate.c | 39 ++- arch/x86/kvm/ioapic.c | 20 + arch/x86/kvm/vmx.c | 55 ++-- arch/x86/kvm/x86.c | 20 - arch/x86/mm/extable.c | 4 arch/x86/xen/enlighten_pv.c | 37 +- arch/x86/xen/xen-asm_64.S | 14 + crypto/Kconfig | 2 crypto/af_alg.c | 10 crypto/sha3_generic.c | 5 drivers/acpi/device_sysfs.c | 4 drivers/android/binder.c | 12 drivers/android/binder_alloc.c | 2 drivers/auxdisplay/Kconfig | 1 drivers/block/loop.c | 10 drivers/block/null_blk.c | 5 drivers/cpufreq/Kconfig | 2 drivers/crypto/inside-secure/safexcel_hash.c | 56 ++-- drivers/firmware/efi/Kconfig | 5 drivers/gpio/gpio-ath79.c | 3 drivers/gpio/gpio-iop.c | 4 drivers/gpio/gpio-stmpe.c | 20 - drivers/gpio/gpiolib.c | 3 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 47 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c | 4 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 18 + drivers/gpu/drm/bridge/lvds-encoder.c | 48 +++ drivers/gpu/drm/bridge/tc358767.c | 73 +++-- drivers/gpu/drm/omapdrm/displays/Kconfig | 1 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 3 drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 drivers/gpu/drm/vc4/vc4_irq.c | 3 drivers/gpu/drm/vc4/vc4_v3d.c | 3 drivers/hid/wacom_sys.c | 24 - drivers/hid/wacom_wac.c | 16 - drivers/hwmon/pmbus/pmbus_core.c | 21 - drivers/i2c/i2c-boardinfo.c | 2 drivers/iio/adc/stm32-adc.c | 3 drivers/iio/chemical/ccs811.c | 13 - drivers/input/rmi4/rmi_driver.c | 14 - drivers/input/rmi4/rmi_f03.c | 64 ++++- drivers/md/bcache/btree.c | 5 drivers/media/usb/usbtv/usbtv-core.c | 1 drivers/misc/mei/pci-me.c | 5 drivers/mtd/nand/denali_pci.c | 4 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 4 drivers/net/ethernet/intel/igb/igb_main.c | 2 drivers/net/ethernet/marvell/mvpp2.c | 20 - drivers/net/ethernet/xilinx/Kconfig | 1 drivers/net/phy/marvell10g.c | 5 drivers/net/wireless/ath/ath9k/channel.c | 2 drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 2 drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c | 6 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 9 drivers/net/wireless/st/cw1200/sta.c | 4 drivers/net/wireless/ti/wl1251/main.c | 2 drivers/net/wireless/ti/wlcore/cmd.c | 5 drivers/net/xen-netfront.c | 18 + drivers/nvme/host/fabrics.h | 30 ++ drivers/nvme/host/fc.c | 19 + drivers/nvme/host/pci.c | 15 - drivers/nvme/host/rdma.c | 60 ++-- drivers/nvme/target/fc.c | 9 drivers/nvme/target/loop.c | 25 +- drivers/power/reset/zx-reboot.c | 4 drivers/s390/crypto/zcrypt_api.c | 4 drivers/scsi/aacraid/aachba.c | 15 - drivers/scsi/aacraid/commsup.c | 11 drivers/scsi/ufs/ufshcd.c | 7 drivers/spi/spi-imx.c | 15 + drivers/staging/ccree/ssi_cipher.c | 1 drivers/staging/ccree/ssi_driver.c | 2 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 7 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h | 2 drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 6 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 14 - drivers/tty/serial/8250/8250_of.c | 5 drivers/tty/serial/8250/8250_uniphier.c | 5 drivers/tty/serial/imx.c | 14 - drivers/tty/tty_io.c | 8 drivers/tty/tty_ldisc.c | 4 drivers/usb/class/cdc-acm.c | 5 drivers/usb/gadget/composite.c | 7 drivers/usb/gadget/function/f_fs.c | 3 drivers/usb/gadget/udc/core.c | 2 drivers/usb/serial/Kconfig | 1 drivers/usb/serial/io_edgeport.c | 1 drivers/usb/serial/option.c | 5 drivers/usb/serial/pl2303.c | 1 drivers/usb/serial/pl2303.h | 1 drivers/usb/serial/usb-serial-simple.c | 7 drivers/usb/storage/uas.c | 7 fs/btrfs/file.c | 5 fs/btrfs/free-space-cache.c | 3 fs/btrfs/inode.c | 10 fs/btrfs/send.c | 124 ++++++++- fs/btrfs/tree-log.c | 2 fs/btrfs/volumes.c | 20 - fs/lockd/svc.c | 16 + fs/namespace.c | 1 fs/nfs_common/grace.c | 10 fs/nfsd/nfs4state.c | 34 +- fs/quota/dquot.c | 22 + fs/reiserfs/super.c | 1 fs/xfs/xfs_aops.c | 6 fs/xfs/xfs_bmap_item.c | 23 - fs/xfs/xfs_bmap_item.h | 3 fs/xfs/xfs_buf.c | 15 - fs/xfs/xfs_dquot.c | 14 - fs/xfs/xfs_dquot_item.c | 40 +++ fs/xfs/xfs_inode.c | 21 + fs/xfs/xfs_log_recover.c | 75 +++++- fs/xfs/xfs_refcount_item.c | 21 - fs/xfs/xfs_refcount_item.h | 3 include/crypto/gcm.h | 8 include/linux/kvm_host.h | 3 include/linux/tty.h | 2 include/net/mac80211.h | 8 include/trace/events/rxrpc.h | 2 include/uapi/linux/kfd_ioctl.h | 22 - kernel/events/core.c | 1 kernel/futex.c | 6 lib/test_firmware.c | 1 mm/kmemleak.c | 2 net/mac80211/mesh_hwmp.c | 15 - net/mac80211/mlme.c | 2 net/mac80211/tx.c | 29 ++ net/openvswitch/flow_netlink.c | 16 - net/rxrpc/af_rxrpc.c | 13 + net/rxrpc/ar-internal.h | 5 net/rxrpc/call_accept.c | 2 net/rxrpc/call_object.c | 19 + net/rxrpc/conn_client.c | 2 net/rxrpc/conn_object.c | 42 +-- net/rxrpc/net_ns.c | 3 net/rxrpc/sendmsg.c | 5 net/sctp/stream.c | 32 +- net/sunrpc/xprtsock.c | 1 scripts/faddr2line | 21 + security/integrity/ima/ima_policy.c | 2 sound/pci/hda/patch_realtek.c | 6 tools/gpio/gpio-event-mon.c | 1 tools/power/cpupower/bench/system.c | 2 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c | 9 tools/usb/usbip/src/usbip_bind.c | 9 tools/usb/usbip/src/usbip_list.c | 9 virt/kvm/arm/arm.c | 8 virt/kvm/kvm_main.c | 23 + 165 files changed, 1520 insertions(+), 728 deletions(-)
Aaron Armstrong Skomra (1):
HID: wacom: EKR: ensure devres groups at higher indexes are released
Abhishek Goel (2):
cpupowerutils: bench - Fix cpu online check cpupower : Fix cpupower working when cpu0 is offline
Andrew Elble (1):
nfsd: check for use of the closed special stateid
Andrey Gusakov (6):
drm/bridge: tc358767: do no fail on hi-res displays drm/bridge: tc358767: filter out too high modes drm/bridge: tc358767: fix DP0_MISC register set drm/bridge: tc358767: fix timing calculations drm/bridge: tc358767: fix AUXDATAn registers access drm/bridge: tc358767: fix 1-lane behavior
Antoine Tenart (4):
crypto: inside-secure - fix hash when length is a multiple of a block
crypto: inside-secure - avoid unmapping DMA memory that was not mapped
net: mvpp2: fix the txq_init error path
net: phy: marvell10g: fix the PHY id mask
Ard Biesheuvel (1):
crypto: sha3-generic - fixes for alignment and big endian operation
Arnd Bergmann (1):
drm/omap: displays: panel-dpi: add backlight dependency
Benjamin Herrenschmidt (1):
usb/gadget: Fix "high bandwidth" check in usb_gadget_ep_match_desc()
Carlos Maiolino (1):
xfs: Properly retry failed dquot items in case of error during buffer writeback
Chao Yu (1):
quota: propagate error from __dquot_initialize
Christian König (1):
drm/amdgpu: don't try to move pinned BOs
Christophe JAILLET (2):
bnxt_en: Fix an error handling path in 'bnxt_get_module_eeprom()' drm/omap: Fix error handling path in 'omap_dmm_probe()'
Chun-Yeow Yeoh (1):
mac80211: fix the update of path metric for RANN frame
Colin Ian King (2):
i2c: i2c-boardinfo: fix memory leaks on devinfo
usb: gadget: don't dereference g until after it has been null checked
Corentin LABBE (2):
crypto: gcm - add GCM IV size constant
crypto: aesni - Use GCM IV size constant
Darrick J. Wong (3):
xfs: always free inline data before resetting inode fork during ifree
xfs: log recovery should replay deferred ops in order
xfs: ubsan fixes
David Disseldorp (1):
null_blk: fix dev->badblocks leak
David Hildenbrand (1):
KVM: x86: fix em_fxstor() sleeping while in atomic
David Howells (3):
rxrpc: The mutex lock returned by rxrpc_accept_call() needs releasing
rxrpc: Provide a different lockdep key for call->user_mutex for kernel calls
rxrpc: Fix service endpoint expiry
Dmitry Eremin (1):
staging: lustre: separate a connection destroy from free struct kib_conn
Dmitry Torokhov (2):
Input: synaptics-rmi4 - unmask F03 interrupts when port is opened
Input: synaptics-rmi4 - do not delete interrupt memory too early
Dmitry V. Levin (1):
uapi: fix linux/kfd_ioctl.h userspace compilation errors
Eduardo Otubo (1):
xen-netfront: remove warning when unloading module
Emmanuel Grumbach (1):
iwlwifi: mvm: fix the TX queue hang timeout for MONITOR vif type
Eric Anholt (1):
drm/bridge: Fix lvds-encoder since the panel_bridge rework.
Fabio Estevam (1):
serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS
Fabrice Gasnier (1):
iio: adc: stm32: fix scan of multiple channels with DMA
Felix Kuehling (2):
drm/amdgpu: Fix SDMA load/unload sequence on HWS disabled mode drm/amdkfd: Fix SDMA oversubsription handling
Filipe Manana (1):
Btrfs: incremental send, fix wrong unlink path after renaming file
Florian Fainelli (2):
ARM: dts: NSP: Disable AHCI controller for HR NSP boards
ARM: dts: NSP: Fix PPI interrupt types
Ganesh Mahendran (1):
android: binder: use VM_ALLOC to get vm area
Gaurav Kohli (1):
tty: fix data race between tty_init_dev and flush of buf
Geert Uytterhoeven (1):
net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit
Gilad Ben-Yossef (2):
staging: ccree: NULLify backup_info when unused
staging: ccree: fix fips event irq handling build
Greg Kroah-Hartman (2):
USB: serial: pl2303: new device id for Chilitag Linux 4.14.17
Guilherme G. Piccoli (1):
scsi: aacraid: Prevent crash in case of free interrupt during scsi EH path
Gustavo A. R. Silva (1):
scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg
Hans de Goede (2):
ACPI / bus: Leave modalias empty for devices which are not present
USB: cdc-acm: Do not log urb submission errors on disconnect
Harald Freudenberger (1):
s390/zcrypt: Fix wrong comparison leading to strange load balancing
Hauke Mehrtens (1):
crypto: ecdh - fix typo in KPP dependency of CRYPTO_ECDH
Hemant Kumar (1):
usb: f_fs: Prevent gadget unbind if it is already unbound
Icenowy Zheng (1):
media: usbtv: add a new usbid
James Hogan (1):
cpufreq: Add Loongson machine dependencies
James Smart (1):
nvmet-fc: correct ref counting error when deferred rcv used
Jan H. Schönherr (1):
KVM: Let KVM_SET_SIGNAL_MASK work as advertised
Janakarajan Natarajan (1):
KVM: x86: Fix CPUID function for word 6 (80000001_ECX)
Jason Gerecke (1):
HID: wacom: Fix reporting of touch toggle (WACOM_HID_WD_MUTE_DEVICE) events
Jeff Layton (1):
reiserfs: remove unneeded i_version bump
Jesse Chan (4):
power: reset: zx-reboot: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
gpio: iop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
gpio: ath79: add missing MODULE_DESCRIPTION/LICENSE
mtd: nand: denali_pci: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
Jia-Ju Bai (1):
USB: serial: io_edgeport: fix possible sleep-in-atomic
Joel Stanley (1):
tools/gpio: Fix build error with musl libc
Johan Hovold (1):
USB: serial: simple: add Motorola Tetra driver
Johannes Berg (1):
mac80211: use QoS NDP for AP probing
Josef Bacik (1):
btrfs: fix deadlock when writing out space cache
Juergen Gross (1):
x86/xen: Support early interrupts in xen pv guests
Junaid Shahid (2):
crypto: aesni - Fix out-of-bounds access of the data buffer in generic-gcm-aesni
crypto: aesni - Fix out-of-bounds access of the AAD buffer in generic-gcm-aesni
Kai-Heng Feng (1):
nvme-pci: disable APST on Samsung SSD 960 EVO + ASUS PRIME B350M-A
Larry Finger (1):
staging: rtl8188eu: Fix incorrect response to SIOCGIWESSID
Linus Torvalds (1):
loop: fix concurrent lo_open/lo_release
Linus Walleij (1):
gpio: Fix kernel stack leak to userspace
Liran Alon (4):
KVM: nVMX/nSVM: Don't intercept #UD when running L2
KVM: x86: emulator: Return to user-mode on L1 CPL=0 emulation failure
KVM: x86: Don't re-execute instruction when not passing CR2 value
KVM: nVMX: Fix vmx_check_nested_events() return value in case an event was reinjected to L2
Liu Bo (2):
Btrfs: bail out gracefully rather than BUG_ON
Btrfs: fix list_add corruption and soft lockups in fsync
Liu, Changcheng (1):
scripts/faddr2line: extend usage on generic arch
Lyude Paul (1):
igb: Free IRQs when device is hotplugged
Markus Trippelsdorf (1):
VFS: Handle lazytime in do_mount()
Martijn Coenen (1):
ANDROID: binder: remove waitqueue when thread exits.
Martin Schwidefsky (1):
s390: fix alloc_pgste check in init_new_context again
Masahiro Yamada (1):
serial: 8250_of: fix return code when probe function fails to get reset
Matthew Garrett (1):
x86/efi: Clarify that reset attack mitigation needs appropriate userspace
Michael Lyle (1):
bcache: check return value of register_shrinker
Michal Hocko (1):
xfs: fortify xfs_alloc_buftarg error handling
Mike Rapoport (1):
ima/policy: fix parsing of fsuuid
Minwoo Im (2):
nvme-pci: avoid hmb desc array idx out-of-bound when hmmaxd set.
nvme-pci: fix NULL pointer dereference in nvme_free_host_mem()
Mirza Krak (1):
drm/rockchip: dw-mipi-dsi: fix possible un-balanced runtime PM enable
Narcisa Ana Maria Vasile (1):
iio: chemical: ccs811: Fix output of IIO_CONCENTRATION channels
Nikita Leshenko (3):
KVM: x86: ioapic: Fix level-triggered EOI and IOAPIC reconfigure race
KVM: x86: ioapic: Clear Remote IRR when entry is switched to edge-triggered
KVM: x86: ioapic: Preserve read-only values in the redirection table
Nikolay Borisov (1):
btrfs: Fix transaction abort during failure in btrfs_rm_dev_item
OKAMOTO Yoshiaki (1):
usb: option: Add support for FS040U modem
Oliver Neukum (2):
CDC-ACM: apply quirk for card reader
usb: uas: unconditionally bring back host after reset
Paolo Bonzini (1):
KVM: x86: emulate #UD while in guest mode
Patrice Chotard (1):
gpio: stmpe: i2c transfer are forbiden in atomic context
Peter Zijlstra (1):
futex: Fix OWNER_DEAD fixup
Raghava Aditya Renukunta (2):
scsi: aacraid: Fix udev inquiry race condition
scsi: aacraid: Fix hang in kdump
Robert Lippert (1):
hwmon: (pmbus) Use 64bit math for DIRECT format values
Sabrina Dubroca (2):
crypto: aesni - fix typo in generic_gcmaes_decrypt
crypto: aesni - add wrapper for generic gcm(aes)
Sagi Grimberg (4):
nvme-fabrics: introduce init command check for a queue that is not alive
nvme-fc: check if queue is ready in queue_rq
nvme-loop: check if queue is ready in queue_rq
nvme-rdma: don't complete requests before a send work request has completed
Sara Sharon (1):
iwlwifi: fix access to prph when transport is stopped
Shuah Khan (2):
usbip: prevent bind loops on devices attached to vhci_hcd
usbip: list: don't list devices attached to vhci_hcd
Stefan Agner (1):
spi: imx: do not access registers while clocks disabled
Stefan Schake (2):
drm/vc4: Account for interrupts in flight
drm/vc4: Move IRQ enable to PM path
Stephan Mueller (2):
crypto: aesni - handle zero length dst buffer
crypto: af_alg - whitelist mask and type
Takashi Iwai (1):
ALSA: hda - Reduce the suspend time consumption for ALC256
Tetsuo Handa (1):
quota: Check for register_shrinker() failure.
Thomas Meyer (1):
auxdisplay: img-ascii-lcd: Only build on archs that have IOMEM
Thomas Richter (1):
s390/topology: fix compile error in file arch/s390/kernel/smp.c
Tomas Winkler (1):
mei: me: allow runtime pm for platform with D0i3
Trond Myklebust (3):
nfsd: CLOSE SHOULD return the invalid special stateid for NFSv4.x (x>0)
nfsd: Ensure we check stateid validity in the seqid operation checks
SUNRPC: Allow connect to return EHOSTUNREACH
Vasily Averin (4):
grace: replace BUG_ON by WARN_ONCE in exit_net hook race of lockd inetaddr notifiers vs nlmsvc_rqst change
lockd: fix "list_add double add" caused by legacy signal interface perf/core: Fix memory leak triggered by perf --namespace
Wanpeng Li (4):
KVM: X86: Fix operand/address-size during instruction decoding
KVM: nVMX: Fix mmu context after VMLAUNCH/VMRESUME failure
KVM: X86: Fix softlockup when get the current kvmclock
KVM: VMX: Fix rflags cache during vCPU reset
Wei Yongjun (2):
serial: 8250_uniphier: fix error return code in uniphier_uart_probe()
test_firmware: fix missing unlock on error in config_num_requests_store()
Xin Long (3):
sctp: only allow the asoc reset when the asoc outq is empty
sctp: avoid flushing unsent queue when doing asoc reset
sctp: set sender next_tsn for the old result with ctsn_ack_point plus 1
Yisheng Xie (1):
kmemleak: add scheduling point to kmemleak_scan()
shaoyunl (1):
drm/amdkfd: Fix SDMA ring buffer size calculation
zhangliping (1):
openvswitch: fix the incorrect flow action alloc size
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 16 +SUBLEVEL = 17 EXTRAVERSION = NAME = Petit Gorille
arch/arm/boot/dts/bcm-nsp.dtsi +2 -2
@@ -85,7 +85,7 @@ timer@20200 { compatible = "arm,cortex-a9-global-timer"; reg = <0x20200 0x100>; - interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>; clocks = <&periph_clk>; };
@@ -93,7 +93,7 @@ compatible = "arm,cortex-a9-twd-timer"; reg = <0x20600 0x20>; interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | - IRQ_TYPE_LEVEL_HIGH)>; + IRQ_TYPE_EDGE_RISING)>; clocks = <&periph_clk>; };
arch/arm/boot/dts/bcm958623hr.dts +0 -4
@@ -141,10 +141,6 @@ status = "okay"; }; -&sata { - status = "okay"; -}; - &qspi { bspi-sel = <0>; flash: m25p80@0 {
arch/arm/boot/dts/bcm958625hr.dts +0 -4
@@ -177,10 +177,6 @@ status = "okay"; }; -&sata { - status = "okay"; -}; - &srab { compatible = "brcm,bcm58625-srab", "brcm,nsp-srab"; status = "okay";
arch/mips/kvm/mips.c +2 -5
@@ -445,10 +445,8 @@ int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu,int kvm_arch_vcpu_ioctl_run (struct kvm_vcpu *vcpu,struct kvm_run *run) {int r = -EINTR ; -sigset_t sigsaved; -if (vcpu->sigset_active) -sigprocmask (SIG_SETMASK , &vcpu->sigset, &sigsaved); +kvm_sigset_activate (vcpu);if (vcpu->mmio_needed) {if (!vcpu->mmio_is_write)
@@ -480,8 +478,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run)local_irq_enable (); out: -if (vcpu->sigset_active) -sigprocmask (SIG_SETMASK , &sigsaved,NULL ); +kvm_sigset_deactivate (vcpu);return r; }
arch/powerpc/kvm/powerpc.c +2 -5
@@ -1407,7 +1407,6 @@ int kvm_vcpu_ioctl_set_one_reg(struct kvm_vcpu *vcpu, struct kvm_one_reg *reg)int kvm_arch_vcpu_ioctl_run (struct kvm_vcpu *vcpu,struct kvm_run *run) {int r; -sigset_t sigsaved;if (vcpu->mmio_needed) { vcpu->mmio_needed =0 ;
@@ -1448,16 +1447,14 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run)#endif } -if (vcpu->sigset_active) -sigprocmask (SIG_SETMASK , &vcpu->sigset, &sigsaved); +kvm_sigset_activate (vcpu);if (run->immediate_exit) r = -EINTR ;else r =kvmppc_vcpu_run (run, vcpu); -if (vcpu->sigset_active) -sigprocmask (SIG_SETMASK , &sigsaved,NULL ); +kvm_sigset_deactivate (vcpu);return r; }
arch/s390/include/asm/mmu_context.h +1 -1
@@ -28,7 +28,7 @@ static inline int init_new_context(struct task_struct *tsk,#ifdef CONFIG_PGSTE mm->context.alloc_pgste = page_table_allocate_pgste ||test_thread_flag (TIF_PGSTE ) || - current->mm->context.alloc_pgste; + (current->mm && current->mm->context.alloc_pgste); mm->context.has_pgste =0 ; mm->context.use_skey =0 ; mm->context.use_cmma =0 ;
arch/s390/include/asm/topology.h +1 -0
@@ -51,6 +51,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu);static inline void topology_init_early (void ) { }static inline void topology_schedule_update (void ) { }static inline int topology_cpu_init (struct cpu *cpu) {return 0 ; } +static inline int topology_cpu_dedicated (int cpu_nr) {return 0 ; }static inline void topology_expect_change (void ) { }#endif /* CONFIG_SCHED_TOPOLOGY */
arch/s390/kernel/smp.c +1 -0
@@ -54,6 +54,7 @@#include <asm/sigp.h> #include <asm/idle.h> #include <asm/nmi.h> +#include <asm/topology.h> #include "entry.h" enum {
arch/s390/kvm/kvm-s390.c +2 -5
@@ -3378,7 +3378,6 @@ static void store_regs(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)int kvm_arch_vcpu_ioctl_run (struct kvm_vcpu *vcpu,struct kvm_run *kvm_run) {int rc; -sigset_t sigsaved;if (kvm_run->immediate_exit)return -EINTR ;
@@ -3388,8 +3387,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)return 0 ; } -if (vcpu->sigset_active) -sigprocmask (SIG_SETMASK , &vcpu->sigset, &sigsaved); +kvm_sigset_activate (vcpu);if (!kvm_s390_user_cpu_state_ctrl (vcpu->kvm)) {kvm_s390_vcpu_start (vcpu);
@@ -3423,8 +3421,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)disable_cpu_timer_accounting (vcpu);store_regs (vcpu, kvm_run); -if (vcpu->sigset_active) -sigprocmask (SIG_SETMASK , &sigsaved,NULL ); +kvm_sigset_deactivate (vcpu); vcpu->stat.exit_userspace++;return rc;
arch/x86/crypto/aesni-intel_asm.S +57 -142
301 lines not on this page · raw message
arch/x86/crypto/aesni-intel_glue.c +60 -17
148 lines not on this page · raw message
arch/x86/include/asm/kvm_host.h +2 -1
@@ -1156,7 +1156,8 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, unsigned long cr2,static inline int emulate_instruction (struct kvm_vcpu *vcpu,int emulation_type) { -return x86_emulate_instruction (vcpu,0 , emulation_type,NULL ,0 ); +return x86_emulate_instruction (vcpu,0 , + emulation_type |EMULTYPE_NO_REEXECUTE ,NULL ,0 ); }void kvm_enable_efer_bits (u64 );
arch/x86/include/asm/segment.h +12 -0
@@ -236,11 +236,23 @@*/ #define EARLY_IDT_HANDLER_SIZE 9 +/* +* xen_early_idt_handler_array is for Xen pv guests: for each entry in +* early_idt_handler_array it contains a prequel in the form of +* pop %rcx; pop %r11; jmp early_idt_handler_array[i]; summing up to +* max 8 bytes. +*/ +#define XEN_EARLY_IDT_HANDLER_SIZE 8 +#ifndef __ASSEMBLY__extern const char early_idt_handler_array[NUM_EXCEPTION_VECTORS ][EARLY_IDT_HANDLER_SIZE ];extern void early_ignore_irq (void ); +#if defined(CONFIG_X86_64 ) && defined(CONFIG_XEN_PV ) +extern const char xen_early_idt_handler_array[NUM_EXCEPTION_VECTORS ][XEN_EARLY_IDT_HANDLER_SIZE ]; +#endif +/* * Load a segment. Fall back on loading the zero segment if something goes * wrong. This variant assumes that loading zero fully clears the segment.
arch/x86/kvm/cpuid.h +1 -1
@@ -44,7 +44,7 @@ static const struct cpuid_reg reverse_cpuid[] = { [CPUID_8086_0001_EDX] = {0x80860001, 0, CPUID_EDX}, [CPUID_1_ECX] = { 1, 0, CPUID_ECX}, [CPUID_C000_0001_EDX] = {0xc0000001, 0, CPUID_EDX}, - [CPUID_8000_0001_ECX] = {0xc0000001, 0, CPUID_ECX}, + [CPUID_8000_0001_ECX] = {0x80000001, 0, CPUID_ECX}, [CPUID_7_0_EBX] = { 7, 0, CPUID_EBX}, [CPUID_D_1_EAX] = { 0xd, 1, CPUID_EAX}, [CPUID_F_0_EDX] = { 0xf, 0, CPUID_EDX},
arch/x86/kvm/emulate.c +33 -6
@@ -4023,6 +4023,26 @@ static int em_fxsave(struct x86_emulate_ctxt *ctxt) fxstate_size(ctxt)); } +/* +* FXRSTOR might restore XMM registers not provided by the guest. Fill +* in the host registers (via FXSAVE) instead, so they won't be modified. +* (preemption has to stay disabled until FXRSTOR). +* +* Use noinline to keep the stack for other functions called by callers small. +*/ +static noinline int fxregs_fixup(struct fxregs_state *fx_state, +const size_t used_size) +{ +struct fxregs_state fx_tmp; +int rc; + + rc = asm_safe("fxsave %[fx]", , [fx] "+m"(fx_tmp)); +memcpy ((void *)fx_state + used_size, (void *)&fx_tmp + used_size, +__fxstate_size (16 ) - used_size); + +return rc; +} +static int em_fxrstor (struct x86_emulate_ctxt *ctxt) {struct fxregs_state fx_state;
@@ -4033,19 +4053,19 @@ static int em_fxrstor(struct x86_emulate_ctxt *ctxt)if (rc !=X86EMUL_CONTINUE )return rc; + size =fxstate_size (ctxt); + rc =segmented_read_std (ctxt, ctxt->memop.addr.mem, &fx_state, size); +if (rc !=X86EMUL_CONTINUE ) +return rc; + ctxt->ops->get_fpu (ctxt); - size =fxstate_size (ctxt);if (size <__fxstate_size (16 )) { - rc = asm_safe("fxsave %[fx]", , [fx] "+m"(fx_state)); + rc =fxregs_fixup (&fx_state, size);if (rc !=X86EMUL_CONTINUE ) goto out; } - rc =segmented_read_std (ctxt, ctxt->memop.addr.mem, &fx_state, size); -if (rc !=X86EMUL_CONTINUE ) - goto out; -if (fx_state.mxcsr >>16 ) { rc =emulate_gp (ctxt,0 ); goto out;
@@ -5009,6 +5029,8 @@ int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len)bool op_prefix = false;bool has_seg_override = false;struct opcode opcode; +u16 dummy; +struct desc_struct desc; ctxt->memop.type =OP_NONE ; ctxt->memopp =NULL ;
@@ -5027,6 +5049,11 @@ int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len)switch (mode) {case X86EMUL_MODE_REAL :case X86EMUL_MODE_VM86 : + def_op_bytes = def_ad_bytes =2 ; + ctxt->ops->get_segment (ctxt, &dummy, &desc,NULL ,VCPU_SREG_CS ); +if (desc.d) + def_op_bytes = def_ad_bytes =4 ; +break ;case X86EMUL_MODE_PROT16 : def_op_bytes = def_ad_bytes =2 ;break ;
arch/x86/kvm/ioapic.c +17 -3
@@ -257,8 +257,7 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, ulong *ioapic_handled_vectors) index == RTC_GSI) {if (kvm_apic_match_dest (vcpu,NULL ,0 , e->fields.dest_id, e->fields.dest_mode) || - (e->fields.trig_mode ==IOAPIC_EDGE_TRIG && -kvm_apic_pending_eoi (vcpu, e->fields.vector))) +kvm_apic_pending_eoi (vcpu, e->fields.vector))__set_bit (e->fields.vector, ioapic_handled_vectors); }
@@ -277,6 +276,7 @@ static void ioapic_write_indirect(struct kvm_ioapic *ioapic, u32 val) {unsigned index;bool mask_before, mask_after; +int old_remote_irr, old_delivery_status;union kvm_ioapic_redirect_entry *e;switch (ioapic->ioregsel) {
@@ -299,14 +299,28 @@ static void ioapic_write_indirect(struct kvm_ioapic *ioapic, u32 val)return ; e = &ioapic->redirtbl[index]; mask_before = e->fields.mask; +/* Preserve read-only fields */ + old_remote_irr = e->fields.remote_irr; + old_delivery_status = e->fields.delivery_status;if (ioapic->ioregsel &1 ) { e->bits &=0xffffffff ; e->bits |= (u64 ) val <<32 ; }else { e->bits &= ~0xffffffffULL ; e->bits |= (u32 ) val; - e->fields.remote_irr =0 ; } + e->fields.remote_irr = old_remote_irr; + e->fields.delivery_status = old_delivery_status; + +/* +* Some OSes (Linux, Xen) assume that Remote IRR bit will +* be cleared by IOAPIC hardware when the entry is configured +* as edge-triggered. This behavior is used to simulate an +* explicit EOI on IOAPICs that don't have the EOI register. +*/ +if (e->fields.trig_mode ==IOAPIC_EDGE_TRIG ) + e->fields.remote_irr =0 ; + mask_after = e->fields.mask;if (mask_before != mask_after)kvm_fire_mask_notifiers (ioapic->kvm,KVM_IRQCHIP_IOAPIC , index, mask_after);
arch/x86/kvm/vmx.c +30 -25
124 lines not on this page · raw message
arch/x86/kvm/x86.c +10 -10
@@ -1795,10 +1795,13 @@ u64 get_kvmclock_ns(struct kvm *kvm)/* both __this_cpu_read() and rdtsc() should be on the same cpu */ get_cpu (); -kvm_get_time_scale (NSEC_PER_SEC ,__this_cpu_read (cpu_tsc_khz) *1000LL , - &hv_clock.tsc_shift, - &hv_clock.tsc_to_system_mul); - ret =__pvclock_read_cycles (&hv_clock,rdtsc ()); +if (__this_cpu_read (cpu_tsc_khz)) { +kvm_get_time_scale (NSEC_PER_SEC ,__this_cpu_read (cpu_tsc_khz) *1000LL , + &hv_clock.tsc_shift, + &hv_clock.tsc_to_system_mul); + ret =__pvclock_read_cycles (&hv_clock,rdtsc ()); + }else + ret =ktime_get_boot_ns () + ka->kvmclock_offset;put_cpu ();
@@ -5416,7 +5419,7 @@ static int handle_emulation_failure(struct kvm_vcpu *vcpu) vcpu->run->exit_reason =KVM_EXIT_INTERNAL_ERROR ; vcpu->run->internal.suberror =KVM_INTERNAL_ERROR_EMULATION ; vcpu->run->internal.ndata =0 ; - r =EMULATE_FAIL ; + r =EMULATE_USER_EXIT ; }kvm_queue_exception (vcpu,UD_VECTOR );
@@ -7242,12 +7245,10 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) {struct fpu *fpu = ¤t->thread.fpu;int r; -sigset_t sigsaved;fpu__initialize (fpu); -if (vcpu->sigset_active) -sigprocmask (SIG_SETMASK , &vcpu->sigset, &sigsaved); +kvm_sigset_activate (vcpu);if (unlikely (vcpu->arch.mp_state ==KVM_MP_STATE_UNINITIALIZED )) {if (kvm_run->immediate_exit) {
@@ -7290,8 +7291,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) out:post_kvm_run_save (vcpu); -if (vcpu->sigset_active) -sigprocmask (SIG_SETMASK , &sigsaved,NULL ); +kvm_sigset_deactivate (vcpu);return r; }
arch/x86/mm/extable.c +3 -1
@@ -1,6 +1,7 @@#include <linux/extable.h> #include <linux/uaccess.h> #include <linux/sched/debug.h> +#include <xen/xen.h> #include <asm/fpu/internal.h> #include <asm/traps.h>
@@ -212,8 +213,9 @@ void __init early_fixup_exception(struct pt_regs *regs, int trapnr)* Old CPUs leave the high bits of CS on the stack * undefined. I'm not sure which CPUs do this, but at least * the 486 DX works this way. +* Xen pv domains are not using the default __KERNEL_CS. */ -if (regs->cs != __KERNEL_CS) +if (!xen_pv_domain () && regs->cs != __KERNEL_CS) goto fail;/*
arch/x86/xen/enlighten_pv.c +24 -13
@@ -622,7 +622,7 @@ static struct trap_array_entry trap_array[] = { { simd_coprocessor_error, xen_simd_coprocessor_error, false }, }; -static bool get_trap_addr (void **addr,unsigned int ist) +static bool __ref get_trap_addr (void **addr,unsigned int ist) {unsigned int nr;bool ist_okay = false;
@@ -644,6 +644,14 @@ static bool get_trap_addr(void **addr, unsigned int ist) } } +if (nr ==ARRAY_SIZE (trap_array) && + *addr >= (void *)early_idt_handler_array[0 ] && + *addr < (void *)early_idt_handler_array[NUM_EXCEPTION_VECTORS ]) { + nr = (*addr - (void *)early_idt_handler_array[0 ]) / +EARLY_IDT_HANDLER_SIZE ; + *addr = (void *)xen_early_idt_handler_array[nr]; + } +if (WARN_ON (ist !=0 && !ist_okay))return false;
@@ -1261,6 +1269,21 @@ asmlinkage __visible void __init xen_start_kernel(void)xen_setup_gdt (0 );xen_init_irq_ops (); + +/* Let's presume PV guests always boot on vCPU with id 0. */ +per_cpu (xen_vcpu_id,0 ) =0 ; + +/* +* Setup xen_vcpu early because idt_setup_early_handler needs it for +* local_irq_disable(), irqs_disabled(). +* +* Don't do the full vcpu_info placement stuff until we have +* the cpu_possible_mask and a non-dummy shared_info. +*/ +xen_vcpu_info_reset (0 ); + +idt_setup_early_handler (); +xen_init_capabilities ();#ifdef CONFIG_X86_LOCAL_APIC
@@ -1294,18 +1317,6 @@ asmlinkage __visible void __init xen_start_kernel(void)*/ acpi_numa =-1 ;#endif -/* Let's presume PV guests always boot on vCPU with id 0. */ -per_cpu (xen_vcpu_id,0 ) =0 ; - -/* -* Setup xen_vcpu early because start_kernel needs it for -* local_irq_disable(), irqs_disabled(). -* -* Don't do the full vcpu_info placement stuff until we have -* the cpu_possible_mask and a non-dummy shared_info. -*/ -xen_vcpu_info_reset (0 ); -WARN_ON (xen_cpuhp_setup (xen_cpu_up_prepare_pv, xen_cpu_dead_pv));local_irq_disable ();
arch/x86/xen/xen-asm_64.S +14 -0
@@ -15,6 +15,7 @@ #include <xen/interface/xen.h> +#include <linux/init.h> #include <linux/linkage.h> .macro xen_pv_trap name
@@ -54,6 +55,19 @@ xen_pv_trap entry_INT80_compat #endif xen_pv_trap hypervisor_callback + __INIT +ENTRY(xen_early_idt_handler_array) + i = 0 + .rept NUM_EXCEPTION_VECTORS + pop %rcx + pop %r11 + jmp early_idt_handler_array + i*EARLY_IDT_HANDLER_SIZE + i = i + 1 + .fill xen_early_idt_handler_array + i*XEN_EARLY_IDT_HANDLER_SIZE - ., 1, 0xcc + .endr +END(xen_early_idt_handler_array) + __FINIT + hypercall_iret = hypercall_page + __HYPERVISOR_iret * 32 /* * Xen64 iret frame:
crypto/Kconfig +1 -1
@@ -130,7 +130,7 @@ config CRYPTO_DH config CRYPTO_ECDH tristate "ECDH algorithm" - select CRYTPO_KPP + select CRYPTO_KPP select CRYPTO_RNG_DEFAULT help Generic implementation of the ECDH algorithm
crypto/af_alg.c +6 -4
@@ -150,7 +150,7 @@ EXPORT_SYMBOL_GPL(af_alg_release_parent);static int alg_bind (struct socket *sock,struct sockaddr *uaddr,int addr_len) { -const u32 forbidden =CRYPTO_ALG_INTERNAL ; +const u32 allowed =CRYPTO_ALG_KERN_DRIVER_ONLY ;struct sock *sk = sock->sk;struct alg_sock *ask =alg_sk (sk);struct sockaddr_alg *sa = (void *)uaddr;
@@ -158,6 +158,10 @@ static int alg_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)void *private;int err; +/* If caller uses non-allowed flag, return error. */ +if ((sa->salg_feat & ~allowed) || (sa->salg_mask & ~allowed)) +return -EINVAL ; +if (sock->state ==SS_CONNECTED )return -EINVAL ;
@@ -176,9 +180,7 @@ static int alg_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)if (IS_ERR (type))return PTR_ERR (type); - private = type->bind (sa->salg_name, - sa->salg_feat & ~forbidden, - sa->salg_mask & ~forbidden); + private = type->bind (sa->salg_name, sa->salg_feat, sa->salg_mask);if (IS_ERR (private)) {module_put (type->owner);return PTR_ERR (private);
crypto/sha3_generic.c +3 -2
@@ -18,6 +18,7 @@#include <linux/types.h> #include <crypto/sha3.h> #include <asm/byteorder.h> +#include <asm/unaligned.h> #define KECCAK_ROUNDS 24
@@ -149,7 +150,7 @@ static int sha3_update(struct shash_desc *desc, const u8 *data,unsigned int i;for (i =0 ; i < sctx->rsizw; i++) - sctx->st[i] ^= ((u64 *) src)[i]; + sctx->st[i] ^=get_unaligned_le64 (src +8 * i);keccakf (sctx->st); done += sctx->rsiz;
@@ -174,7 +175,7 @@ static int sha3_final(struct shash_desc *desc, u8 *out) sctx->buf[sctx->rsiz -1 ] |=0x80 ;for (i =0 ; i < sctx->rsizw; i++) - sctx->st[i] ^= ((u64 *) sctx->buf)[i]; + sctx->st[i] ^=get_unaligned_le64 (sctx->buf +8 * i);keccakf (sctx->st);
drivers/acpi/device_sysfs.c +4 -0
@@ -146,6 +146,10 @@ static int create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias,int count;struct acpi_hardware_id *id; +/* Avoid unnecessarily loading modules for non present devices. */ +if (!acpi_device_is_present (acpi_dev)) +return 0 ; +/* * Since we skip ACPI_DT_NAMESPACE_HID from the modalias below, 0 should * be returned if ACPI_DT_NAMESPACE_HID is the only ACPI/PNP ID in the
drivers/android/binder.c +12 -0
@@ -4302,6 +4302,18 @@ static int binder_thread_release(struct binder_proc *proc,if (t)spin_lock (&t->lock); } + +/* +* If this thread used poll, make sure we remove the waitqueue +* from any epoll data structures holding it with POLLFREE. +* waitqueue_active() is safe to use here because we're holding +* the inner lock. +*/ +if ((thread->looper &BINDER_LOOPER_STATE_POLL ) && +waitqueue_active (&thread->wait)) { +wake_up_poll (&thread->wait,POLLHUP |POLLFREE ); + } +binder_inner_proc_unlock (thread->proc);if (send_reply)
drivers/android/binder_alloc.c +1 -1
@@ -668,7 +668,7 @@ int binder_alloc_mmap_handler(struct binder_alloc *alloc, goto err_already_mapped; } - area =get_vm_area (vma->vm_end - vma->vm_start,VM_IOREMAP ); + area =get_vm_area (vma->vm_end - vma->vm_start,VM_ALLOC );if (area ==NULL ) { ret = -ENOMEM ; failure_string ="get_vm_area" ;
drivers/auxdisplay/Kconfig +1 -0
@@ -136,6 +136,7 @@ config CFAG12864B_RATE config IMG_ASCII_LCD tristate "Imagination Technologies ASCII LCD Display" + depends on HAS_IOMEM default y if MIPS_MALTA || MIPS_SEAD3 select SYSCON help
drivers/block/loop.c +8 -2
@@ -1576,9 +1576,8 @@ static int lo_open(struct block_device *bdev, fmode_t mode)return err; } -static void lo_release (struct gendisk *disk,fmode_t mode) +static void __lo_release (struct loop_device *lo) { -struct loop_device *lo = disk->private_data;int err;if (atomic_dec_return (&lo->lo_refcnt))
@@ -1605,6 +1604,13 @@ static void lo_release(struct gendisk *disk, fmode_t mode)mutex_unlock (&lo->lo_ctl_mutex); } +static void lo_release (struct gendisk *disk,fmode_t mode) +{ +mutex_lock (&loop_index_mutex); +__lo_release (disk->private_data); +mutex_unlock (&loop_index_mutex); +} +static const struct block_device_operations lo_fops = { .owner =THIS_MODULE , .open = lo_open,
drivers/block/null_blk.c +4 -1
@@ -467,7 +467,6 @@ static void nullb_device_release(struct config_item *item) {struct nullb_device *dev =to_nullb_device (item); -badblocks_exit (&dev->badblocks);null_free_device_storage (dev, false);null_free_dev (dev); }
@@ -578,6 +577,10 @@ static struct nullb_device *null_alloc_dev(void)static void null_free_dev (struct nullb_device *dev) { +if (!dev) +return ; + +badblocks_exit (&dev->badblocks);kfree (dev); }
drivers/cpufreq/Kconfig +2 -0
@@ -275,6 +275,7 @@ config BMIPS_CPUFREQ config LOONGSON2_CPUFREQ tristate "Loongson2 CPUFreq Driver" + depends on LEMOTE_MACH2F help This option adds a CPUFreq driver for loongson processors which support software configurable cpu frequency.
@@ -287,6 +288,7 @@ config LOONGSON2_CPUFREQ config LOONGSON1_CPUFREQ tristate "Loongson1 CPUFreq Driver" + depends on LOONGSON1_LS1B help This option adds a CPUFreq driver for loongson1 processors which support software configurable cpu frequency.
drivers/crypto/inside-secure/safexcel_hash.c +37 -19
90 lines not on this page · raw message
drivers/firmware/efi/Kconfig +4 -1
@@ -159,7 +159,10 @@ config RESET_ATTACK_MITIGATION using the TCG Platform Reset Attack Mitigation specification. This protects against an attacker forcibly rebooting the system while it still contains secrets in RAM, booting another OS and extracting the - secrets. + secrets. This should only be enabled when userland is configured to + clear the MemoryOverwriteRequest flag on clean shutdown after secrets + have been evicted, since otherwise it will trigger even on clean + reboots. endmenu
drivers/gpio/gpio-ath79.c +3 -0
@@ -323,3 +323,6 @@ static struct platform_driver ath79_gpio_driver = { };module_platform_driver (ath79_gpio_driver); + +MODULE_DESCRIPTION ("Atheros AR71XX/AR724X/AR913X GPIO API support" ); +MODULE_LICENSE ("GPL v2" );
drivers/gpio/gpio-iop.c +4 -0
@@ -58,3 +58,7 @@ static int __init iop3xx_gpio_init(void)return platform_driver_register (&iop3xx_gpio_driver); }arch_initcall (iop3xx_gpio_init); + +MODULE_DESCRIPTION ("GPIO handling for Intel IOP3xx processors" ); +MODULE_AUTHOR ("Lennert Buytenhek <[email protected]>" ); +MODULE_LICENSE ("GPL" );
drivers/gpio/gpio-stmpe.c +10 -10
@@ -190,6 +190,16 @@ static void stmpe_gpio_irq_sync_unlock(struct irq_data *d) };int i, j; +/* +* STMPE1600: to be able to get IRQ from pins, +* a read must be done on GPMR register, or a write in +* GPSR or GPCR registers +*/ +if (stmpe->partnum ==STMPE1600 ) { +stmpe_reg_read (stmpe, stmpe->regs[STMPE_IDX_GPMR_LSB ]); +stmpe_reg_read (stmpe, stmpe->regs[STMPE_IDX_GPMR_CSB ]); + } +for (i =0 ; i <CACHE_NR_REGS ; i++) {/* STMPE801 and STMPE1600 don't have RE and FE registers */ if ((stmpe->partnum == STMPE801 ||
@@ -227,21 +237,11 @@ static void stmpe_gpio_irq_unmask(struct irq_data *d) {struct gpio_chip *gc =irq_data_get_irq_chip_data (d);struct stmpe_gpio *stmpe_gpio =gpiochip_get_data (gc); -struct stmpe *stmpe = stmpe_gpio->stmpe;int offset = d->hwirq;int regoffset = offset /8 ;int mask =BIT (offset %8 ); stmpe_gpio->regs[REG_IE ][regoffset] |= mask; - -/* -* STMPE1600 workaround: to be able to get IRQ from pins, -* a read must be done on GPMR register, or a write in -* GPSR or GPCR registers -*/ -if (stmpe->partnum ==STMPE1600 ) -stmpe_reg_read (stmpe, - stmpe->regs[STMPE_IDX_GPMR_LSB + regoffset]); } static void stmpe_dbg_show_one(struct seq_file *s,
drivers/gpio/gpiolib.c +3 -0
@@ -723,6 +723,9 @@ static irqreturn_t lineevent_irq_thread(int irq, void *p)struct gpioevent_data ge;int ret, level; +/* Do not leak kernel stack to userspace */ +memset (&ge,0 ,sizeof (ge)); + ge.timestamp =ktime_get_real_ns (); level =gpiod_get_value_cansleep (le->desc);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c +34 -13
72 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +4 -0
@@ -403,6 +403,10 @@ static bool amdgpu_cs_try_evict(struct amdgpu_cs_parser *p,if (candidate->robj == validated)break ; +/* We can't move pinned BOs here */ +if (bo->pin_count) +continue ; + other =amdgpu_mem_type_to_domain (bo->tbo.mem.mem_type);/* Check if this BO is in one of the domains we need space for */
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c +2 -2
@@ -205,8 +205,8 @@ static int update_mqd_sdma(struct mqd_manager *mm, void *mqd,struct cik_sdma_rlc_registers *m; m =get_sdma_mqd (mqd); - m->sdma_rlc_rb_cntl =ffs (q->queue_size /sizeof (unsigned int )) << -SDMA0_RLC0_RB_CNTL__RB_SIZE__SHIFT | + m->sdma_rlc_rb_cntl = (ffs (q->queue_size /sizeof (unsigned int )) -1 ) + <<SDMA0_RLC0_RB_CNTL__RB_SIZE__SHIFT | q->vmid <<SDMA0_RLC0_RB_CNTL__RB_VMID__SHIFT |1 <<SDMA0_RLC0_RB_CNTL__RPTR_WRITEBACK_ENABLE__SHIFT |6 <<SDMA0_RLC0_RB_CNTL__RPTR_WRITEBACK_TIMER__SHIFT ;
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +18 -0
@@ -184,6 +184,24 @@ int pqm_create_queue(struct process_queue_manager *pqm,switch (type) {case KFD_QUEUE_TYPE_SDMA : +if (dev->dqm->queue_count >= +CIK_SDMA_QUEUES_PER_ENGINE *CIK_SDMA_ENGINE_NUM ) { +pr_err ("Over-subscription is not allowed for SDMA.\n" ); + retval = -EPERM ; + goto err_create_queue; + } + + retval =create_cp_queue (pqm, dev, &q, properties, f, *qid); +if (retval !=0 ) + goto err_create_queue; + pqn->q = q; + pqn->kq =NULL ; + retval = dev->dqm->ops.create_queue (dev->dqm, q, &pdd->qpd, + &q->properties.vmid); +pr_debug ("DQM returned %d for create_queue\n" , retval); +print_queue (q); +break ; +case KFD_QUEUE_TYPE_COMPUTE :/* check if there is over subscription */ if ((sched_policy == KFD_SCHED_POLICY_HWS_NO_OVERSUBSCRIPTION) &&
drivers/gpu/drm/bridge/lvds-encoder.c +41 -7
74 lines not on this page · raw message
drivers/gpu/drm/bridge/tc358767.c +40 -33
152 lines not on this page · raw message
drivers/gpu/drm/omapdrm/displays/Kconfig +1 -0
@@ -35,6 +35,7 @@ config DRM_OMAP_CONNECTOR_ANALOG_TV config DRM_OMAP_PANEL_DPI tristate "Generic DPI panel" + depends on BACKLIGHT_CLASS_DEVICE help Driver for generic DPI panels.
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +2 -1
@@ -638,7 +638,8 @@ static int omap_dmm_probe(struct platform_device *dev) match =of_match_node (dmm_of_match, dev->dev.of_node);if (!match) {dev_err (&dev->dev,"failed to find matching device node\n" ); -return -ENODEV ; + ret = -ENODEV ; + goto fail; } omap_dmm->plat_data = match->data;
drivers/gpu/drm/rockchip/dw-mipi-dsi.c +1 -2
@@ -1275,8 +1275,6 @@ static int dw_mipi_dsi_bind(struct device *dev, struct device *master, goto err_pllref; } -pm_runtime_enable (dev); - dsi->dsi_host.ops = &dw_mipi_dsi_host_ops; dsi->dsi_host.dev = dev; ret =mipi_dsi_host_register (&dsi->dsi_host);
@@ -1291,6 +1289,7 @@ static int dw_mipi_dsi_bind(struct device *dev, struct device *master, }dev_set_drvdata (dev, dsi); +pm_runtime_enable (dev);return 0 ; err_mipi_dsi_host:
drivers/gpu/drm/vc4/vc4_irq.c +3 -0
@@ -225,6 +225,9 @@ vc4_irq_uninstall(struct drm_device *dev)/* Clear any pending interrupts we might have left. */ V3D_WRITE (V3D_INTCTL ,V3D_DRIVER_IRQS ); +/* Finish any interrupt handler still in flight. */ +disable_irq (dev->irq); +cancel_work_sync (&vc4->overflow_mem_work); }
drivers/gpu/drm/vc4/vc4_v3d.c +3 -0
@@ -327,6 +327,9 @@ static int vc4_v3d_runtime_resume(struct device *dev)return ret;vc4_v3d_init_hw (vc4->dev); + +/* We disabled the IRQ as part of vc4_irq_uninstall in suspend. */ +enable_irq (vc4->dev->irq);vc4_irq_postinstall (vc4->dev);return 0 ;
drivers/hid/wacom_sys.c +12 -12
@@ -2340,23 +2340,23 @@ static void wacom_remote_destroy_one(struct wacom *wacom, unsigned int index)int i;unsigned long flags; -spin_lock_irqsave (&remote->remote_lock, flags); - remote->remotes[index].registered = false; -spin_unlock_irqrestore (&remote->remote_lock, flags); +for (i =0 ; i <WACOM_MAX_REMOTES ; i++) { +if (remote->remotes[i].serial == serial) { -if (remote->remotes[index].battery.battery) -devres_release_group (&wacom->hdev->dev, - &remote->remotes[index].battery.bat_desc); +spin_lock_irqsave (&remote->remote_lock, flags); + remote->remotes[i].registered = false; +spin_unlock_irqrestore (&remote->remote_lock, flags); -if (remote->remotes[index].group.name) -devres_release_group (&wacom->hdev->dev, - &remote->remotes[index]); +if (remote->remotes[i].battery.battery) +devres_release_group (&wacom->hdev->dev, + &remote->remotes[i].battery.bat_desc); + +if (remote->remotes[i].group.name) +devres_release_group (&wacom->hdev->dev, + &remote->remotes[i]); -for (i =0 ; i <WACOM_MAX_REMOTES ; i++) { -if (remote->remotes[i].serial == serial) { remote->remotes[i].serial =0 ; remote->remotes[i].group.name =NULL ; - remote->remotes[i].registered = false; remote->remotes[i].battery.battery =NULL ; wacom->led.groups[i].select =WACOM_STATUS_UNKNOWN ; }
drivers/hid/wacom_wac.c +8 -8
@@ -1924,7 +1924,6 @@ static void wacom_wac_pad_event(struct hid_device *hdev, struct hid_field *fieldstruct wacom_features *features = &wacom_wac->features;unsigned equivalent_usage =wacom_equivalent_usage (usage->hid);int i; -bool is_touch_on = value;bool do_report = false;/*
@@ -1969,16 +1968,17 @@ static void wacom_wac_pad_event(struct hid_device *hdev, struct hid_field *fieldbreak ;case WACOM_HID_WD_MUTE_DEVICE : -if (wacom_wac->shared->touch_input && value) { - wacom_wac->shared->is_touch_on = !wacom_wac->shared->is_touch_on; - is_touch_on = wacom_wac->shared->is_touch_on; - } - -/* fall through*/ case WACOM_HID_WD_TOUCHONOFF :if (wacom_wac->shared->touch_input) { +bool *is_touch_on = &wacom_wac->shared->is_touch_on; + +if (equivalent_usage ==WACOM_HID_WD_MUTE_DEVICE && value) + *is_touch_on = !(*is_touch_on); +else if (equivalent_usage ==WACOM_HID_WD_TOUCHONOFF ) + *is_touch_on = value; +input_report_switch (wacom_wac->shared->touch_input, -SW_MUTE_DEVICE , !is_touch_on); +SW_MUTE_DEVICE , !(*is_touch_on));input_sync (wacom_wac->shared->touch_input); }break ;
drivers/hwmon/pmbus/pmbus_core.c +12 -9
@@ -21,6 +21,7 @@#include <linux/debugfs.h> #include <linux/kernel.h> +#include <linux/math64.h> #include <linux/module.h> #include <linux/init.h> #include <linux/err.h>
@@ -499,8 +500,8 @@ static long pmbus_reg2data_linear(struct pmbus_data *data,static long pmbus_reg2data_direct (struct pmbus_data *data,struct pmbus_sensor *sensor) { -long val = (s16 ) sensor->data; -long m, b,R ; +s64 b, val = (s16 )sensor->data; +s32 m,R ; m = data->info->m[sensor->class]; b = data->info->b[sensor->class];
@@ -528,11 +529,12 @@ static long pmbus_reg2data_direct(struct pmbus_data *data,R --; }while (R <0 ) { - val =DIV_ROUND_CLOSEST (val,10 ); + val =div_s64 (val +5LL ,10L );/* round closest */ R ++; } -return (val - b) / m; + val =div_s64 (val - b, m); +return clamp_val (val,LONG_MIN ,LONG_MAX ); }/*
@@ -656,7 +658,8 @@ static u16 pmbus_data2reg_linear(struct pmbus_data *data,static u16 pmbus_data2reg_direct (struct pmbus_data *data,struct pmbus_sensor *sensor,long val) { -long m, b,R ; +s64 b, val64 = val; +s32 m,R ; m = data->info->m[sensor->class]; b = data->info->b[sensor->class];
@@ -673,18 +676,18 @@ static u16 pmbus_data2reg_direct(struct pmbus_data *data,R -=3 ;/* Adjust R and b for data in milli-units */ b *=1000 ; } - val = val * m + b; + val64 = val64 * m + b;while (R >0 ) { - val *=10 ; + val64 *=10 ;R --; }while (R <0 ) { - val =DIV_ROUND_CLOSEST (val,10 ); + val64 =div_s64 (val64 +5LL ,10L );/* round closest */ R ++; } -return val; +return (u16 )clamp_val (val64,S16_MIN ,S16_MAX ); } static u16 pmbus_data2reg_vid(struct pmbus_data *data,
drivers/i2c/i2c-boardinfo.c +2 -0
@@ -86,6 +86,7 @@ int i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigproperty_entries_dup (info->properties);if (IS_ERR (devinfo->board_info.properties)) { status =PTR_ERR (devinfo->board_info.properties); +kfree (devinfo);break ; } }
@@ -98,6 +99,7 @@ int i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsig GFP_KERNEL);if (!devinfo->board_info.resources) { status = -ENOMEM ; +kfree (devinfo);break ; } }
drivers/iio/adc/stm32-adc.c +2 -1
@@ -1314,6 +1314,7 @@ static int stm32_adc_set_watermark(struct iio_dev *indio_dev, unsigned int val) {struct stm32_adc *adc =iio_priv (indio_dev);unsigned int watermark =STM32_DMA_BUFFER_SIZE /2 ; +unsigned int rx_buf_sz =STM32_DMA_BUFFER_SIZE ;/* * dma cyclic transfers are used, buffer is split into two periods.
@@ -1322,7 +1323,7 @@ static int stm32_adc_set_watermark(struct iio_dev *indio_dev, unsigned int val)* - one buffer (period) driver can push with iio_trigger_poll(). */ watermark =min (watermark, val * (unsigned )(sizeof (u16))); - adc->rx_buf_sz = watermark *2 ; + adc->rx_buf_sz =min (rx_buf_sz, watermark *2 * adc->num_conv);return 0 ; }
drivers/iio/chemical/ccs811.c +3 -10
@@ -91,7 +91,6 @@ static const struct iio_chan_spec ccs811_channels[] = { .channel2 = IIO_MOD_CO2, .modified = 1, .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | - BIT(IIO_CHAN_INFO_OFFSET) | BIT(IIO_CHAN_INFO_SCALE), .scan_index = 0, .scan_type = {
@@ -245,24 +244,18 @@ static int ccs811_read_raw(struct iio_dev *indio_dev,switch (chan->channel2) {case IIO_MOD_CO2 : *val =0 ; - *val2 =12834 ; + *val2 =100 ;return IIO_VAL_INT_PLUS_MICRO ;case IIO_MOD_VOC : *val =0 ; - *val2 =84246 ; -return IIO_VAL_INT_PLUS_MICRO ; + *val2 =100 ; +return IIO_VAL_INT_PLUS_NANO ;default :return -EINVAL ; }default :return -EINVAL ; } -case IIO_CHAN_INFO_OFFSET : -if (!(chan->type ==IIO_CONCENTRATION && - chan->channel2 ==IIO_MOD_CO2 )) -return -EINVAL ; - *val =-400 ; -return IIO_VAL_INT ;default :return -EINVAL ; }
drivers/input/rmi4/rmi_driver.c +7 -7
@@ -41,6 +41,13 @@ void rmi_free_function_list(struct rmi_device *rmi_dev)rmi_dbg (RMI_DEBUG_CORE , &rmi_dev->dev,"Freeing function list\n" ); +/* Doing it in the reverse order so F01 will be removed last */ +list_for_each_entry_safe_reverse (fn, tmp, + &data->function_list, node) { +list_del (&fn->node); +rmi_unregister_function (fn); + } +devm_kfree (&rmi_dev->dev, data->irq_memory); data->irq_memory =NULL ; data->irq_status =NULL ;
@@ -50,13 +57,6 @@ void rmi_free_function_list(struct rmi_device *rmi_dev) data->f01_container =NULL ; data->f34_container =NULL ; - -/* Doing it in the reverse order so F01 will be removed last */ -list_for_each_entry_safe_reverse (fn, tmp, - &data->function_list, node) { -list_del (&fn->node); -rmi_unregister_function (fn); - } }static int reset_one_function (struct rmi_function *fn)
drivers/input/rmi4/rmi_f03.c +54 -10
111 lines not on this page · raw message
drivers/md/bcache/btree.c +4 -1
@@ -807,7 +807,10 @@ int bch_btree_cache_alloc(struct cache_set *c) c->shrink.scan_objects = bch_mca_scan; c->shrink.seeks =4 ; c->shrink.batch = c->btree_pages *2 ; -register_shrinker (&c->shrink); + +if (register_shrinker (&c->shrink)) +pr_warn ("bcache: %s: could not register shrinker" , + __func__);return 0 ; }
drivers/media/usb/usbtv/usbtv-core.c +1 -0
@@ -144,6 +144,7 @@ static void usbtv_disconnect(struct usb_interface *intf)static const struct usb_device_id usbtv_id_table[] = { {USB_DEVICE (0x1b71 ,0x3002 ) }, + {USB_DEVICE (0x1f71 ,0x3301 ) }, {} };MODULE_DEVICE_TABLE (usb, usbtv_id_table);
drivers/misc/mei/pci-me.c +4 -1
@@ -238,8 +238,11 @@ static int mei_me_probe(struct pci_dev *pdev, const struct pci_device_id *ent)*/ mei_me_set_pm_domain (dev); -if (mei_pg_is_enabled (dev)) +if (mei_pg_is_enabled (dev)) {pm_runtime_put_noidle (&pdev->dev); +if (hw->d0i3_supported) +pm_runtime_allow (&pdev->dev); + }dev_dbg (&pdev->dev,"initialization successful.\n" );
drivers/mtd/nand/denali_pci.c +4 -0
@@ -124,3 +124,7 @@ static struct pci_driver denali_pci_driver = { };module_pci_driver (denali_pci_driver); + +MODULE_DESCRIPTION ("PCI driver for Denali NAND controller" ); +MODULE_AUTHOR ("Intel Corporation and its suppliers" ); +MODULE_LICENSE ("GPL v2" );
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +2 -2
@@ -2133,8 +2133,8 @@ static int bnxt_get_module_eeprom(struct net_device *dev,/* Read A2 portion of the EEPROM */ if (length) { start -=ETH_MODULE_SFF_8436_LEN ; -bnxt_read_sfp_module_eeprom_info (bp,I2C_DEV_ADDR_A2 ,1 , start, - length, data); + rc =bnxt_read_sfp_module_eeprom_info (bp,I2C_DEV_ADDR_A2 ,1 , + start, length, data); }return rc; }
drivers/net/ethernet/intel/igb/igb_main.c +1 -1
@@ -3331,7 +3331,7 @@ static int __igb_close(struct net_device *netdev, bool suspending)int igb_close (struct net_device *netdev) { -if (netif_device_present (netdev)) +if (netif_device_present (netdev) || netdev->dismantle)return __igb_close (netdev, false);return 0 ; }
drivers/net/ethernet/marvell/mvpp2.c +2 -18
@@ -5597,7 +5597,7 @@ static int mvpp2_txq_init(struct mvpp2_port *port,sizeof (*txq_pcpu->buffs), GFP_KERNEL);if (!txq_pcpu->buffs) - goto cleanup; +return -ENOMEM ; txq_pcpu->count =0 ; txq_pcpu->reserved_num =0 ;
@@ -5610,26 +5610,10 @@ static int mvpp2_txq_init(struct mvpp2_port *port, &txq_pcpu->tso_headers_dma, GFP_KERNEL);if (!txq_pcpu->tso_headers) - goto cleanup; +return -ENOMEM ; }return 0 ; -cleanup: -for_each_present_cpu (cpu) { - txq_pcpu =per_cpu_ptr (txq->pcpu, cpu); -kfree (txq_pcpu->buffs); - -dma_free_coherent (port->dev->dev.parent, - txq_pcpu->size *TSO_HEADER_SIZE , - txq_pcpu->tso_headers, - txq_pcpu->tso_headers_dma); - } - -dma_free_coherent (port->dev->dev.parent, - txq->size *MVPP2_DESC_ALIGNED_SIZE , - txq->descs, txq->descs_dma); - -return -ENOMEM ; }/* Free allocated TXQ resources */
drivers/net/ethernet/xilinx/Kconfig +1 -0
@@ -34,6 +34,7 @@ config XILINX_AXI_EMAC config XILINX_LL_TEMAC tristate "Xilinx LL TEMAC (LocalLink Tri-mode Ethernet MAC) driver" depends on (PPC || MICROBLAZE) + depends on !64BIT || BROKEN select PHYLIB ---help--- This driver supports the Xilinx 10/100/1000 LocalLink TEMAC
drivers/net/phy/marvell10g.c +3 -2
@@ -16,6 +16,7 @@* link takes priority and the other port is completely locked out. */ #include <linux/phy.h> +#include <linux/marvell_phy.h> enum {MV_PCS_BASE_T =0x0000 ,
@@ -338,7 +339,7 @@ static int mv3310_read_status(struct phy_device *phydev)static struct phy_driver mv3310_drivers[] = { { .phy_id =0x002b09aa , - .phy_id_mask =0xffffffff , + .phy_id_mask =MARVELL_PHY_ID_MASK , .name ="mv88x3310" , .features = SUPPORTED_10baseT_Full | SUPPORTED_100baseT_Full |
@@ -360,7 +361,7 @@ static struct phy_driver mv3310_drivers[] = {module_phy_driver (mv3310_drivers);static struct mdio_device_id __maybe_unused mv3310_tbl[] = { - {0x002b09aa ,0xffffffff }, + {0x002b09aa ,MARVELL_PHY_ID_MASK }, { }, };MODULE_DEVICE_TABLE (mdio, mv3310_tbl);
drivers/net/wireless/ath/ath9k/channel.c +1 -1
@@ -1112,7 +1112,7 @@ ath_chanctx_send_vif_ps_frame(struct ath_softc *sc, struct ath_vif *avp,if (!avp->assoc)return false; - skb =ieee80211_nullfunc_get (sc->hw, vif); + skb =ieee80211_nullfunc_get (sc->hw, vif, false);if (!skb)return false;
drivers/net/wireless/intel/iwlwifi/fw/dbg.h +0 -2
@@ -209,8 +209,6 @@ static inline void iwl_fw_dbg_stop_recording(struct iwl_fw_runtime *fwrt)static inline void iwl_fw_dump_conf_clear (struct iwl_fw_runtime *fwrt) { -iwl_fw_dbg_stop_recording (fwrt); - fwrt->dump.conf =FW_DBG_INVALID ; }
drivers/net/wireless/intel/iwlwifi/mvm/utils.c +2 -0
@@ -1181,6 +1181,8 @@ unsigned int iwl_mvm_get_wd_timeout(struct iwl_mvm *mvm,return le32_to_cpu (txq_timer->p2p_go);case NL80211_IFTYPE_P2P_DEVICE :return le32_to_cpu (txq_timer->p2p_device); +case NL80211_IFTYPE_MONITOR : +return default_timeout;default :WARN_ON (1 );return mvm->cfg->base_params->wd_timeout;
drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c +6 -0
@@ -49,6 +49,7 @@* *****************************************************************************/ #include "iwl-trans.h" +#include "iwl-prph.h" #include "iwl-context-info.h" #include "internal.h"
@@ -156,6 +157,11 @@ void _iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans, bool low_power) trans_pcie->is_down = true; +/* Stop dbgc before stopping device */ +iwl_write_prph (trans,DBGC_IN_SAMPLE ,0 ); +udelay (100 ); +iwl_write_prph (trans,DBGC_OUT_CTRL ,0 ); +/* tell the device to stop sending interrupts */ iwl_disable_interrupts (trans);
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +9 -0
@@ -1138,6 +1138,15 @@ static void _iwl_trans_pcie_stop_device(struct iwl_trans *trans, bool low_power) trans_pcie->is_down = true; +/* Stop dbgc before stopping device */ +if (trans->cfg->device_family ==IWL_DEVICE_FAMILY_7000 ) { +iwl_set_bits_prph (trans,MON_BUFF_SAMPLE_CTL ,0x100 ); + }else { +iwl_write_prph (trans,DBGC_IN_SAMPLE ,0 ); +udelay (100 ); +iwl_write_prph (trans,DBGC_OUT_CTRL ,0 ); + } +/* tell the device to stop sending interrupts */ iwl_disable_interrupts (trans);
drivers/net/wireless/st/cw1200/sta.c +2 -2
@@ -198,7 +198,7 @@ void __cw1200_cqm_bssloss_sm(struct cw1200_common *priv, priv->bss_loss_state++; - skb =ieee80211_nullfunc_get (priv->hw, priv->vif); + skb =ieee80211_nullfunc_get (priv->hw, priv->vif, false);WARN_ON (!skb);if (skb)cw1200_tx (priv->hw,NULL , skb);
@@ -2266,7 +2266,7 @@ static int cw1200_upload_null(struct cw1200_common *priv) .rate = 0xFF, }; - frame.skb =ieee80211_nullfunc_get (priv->hw, priv->vif); + frame.skb =ieee80211_nullfunc_get (priv->hw, priv->vif, false);if (!frame.skb)return -ENOMEM ;
drivers/net/wireless/ti/wl1251/main.c +1 -1
@@ -566,7 +566,7 @@ static int wl1251_build_null_data(struct wl1251 *wl) size =sizeof (struct wl12xx_null_data_template ); ptr =NULL ; }else { - skb =ieee80211_nullfunc_get (wl->hw, wl->vif); + skb =ieee80211_nullfunc_get (wl->hw, wl->vif, false);if (!skb) goto out; size = skb->len;
drivers/net/wireless/ti/wlcore/cmd.c +3 -2
@@ -1069,7 +1069,8 @@ int wl12xx_cmd_build_null_data(struct wl1271 *wl, struct wl12xx_vif *wlvif) ptr =NULL ; }else { skb =ieee80211_nullfunc_get (wl->hw, -wl12xx_wlvif_to_vif (wlvif)); +wl12xx_wlvif_to_vif (wlvif), + false);if (!skb) goto out; size = skb->len;
@@ -1096,7 +1097,7 @@ int wl12xx_cmd_build_klv_null_data(struct wl1271 *wl,struct sk_buff *skb =NULL ;int ret = -ENOMEM ; - skb =ieee80211_nullfunc_get (wl->hw, vif); + skb =ieee80211_nullfunc_get (wl->hw, vif, false);if (!skb) goto out;
drivers/net/xen-netfront.c +18 -0
@@ -87,6 +87,8 @@ struct netfront_cb {/* IRQ name is queue name with "-tx" or "-rx" appended */ #define IRQ_NAME_SIZE (QUEUE_NAME_SIZE + 3) +static DECLARE_WAIT_QUEUE_HEAD (module_unload_q); +struct netfront_stats {u64 packets;u64 bytes;
@@ -2021,10 +2023,12 @@ static void netback_changed(struct xenbus_device *dev,break ;case XenbusStateClosed: +wake_up_all (&module_unload_q);if (dev->state == XenbusStateClosed)break ;/* Missed the backend's CLOSING state -- fallthrough */ case XenbusStateClosing: +wake_up_all (&module_unload_q);xenbus_frontend_closed (dev);break ; }
@@ -2130,6 +2134,20 @@ static int xennet_remove(struct xenbus_device *dev)dev_dbg (&dev->dev,"%s\n" , dev->nodename); +if (xenbus_read_driver_state (dev->otherend) != XenbusStateClosed) { +xenbus_switch_state (dev, XenbusStateClosing); +wait_event (module_unload_q, +xenbus_read_driver_state (dev->otherend) == + XenbusStateClosing); + +xenbus_switch_state (dev, XenbusStateClosed); +wait_event (module_unload_q, +xenbus_read_driver_state (dev->otherend) == + XenbusStateClosed || +xenbus_read_driver_state (dev->otherend) == + XenbusStateUnknown); + } +xennet_disconnect_backend (info);unregister_netdev (info->netdev);
drivers/nvme/host/fabrics.h +30 -0
@@ -142,4 +142,34 @@ void nvmf_free_options(struct nvmf_ctrl_options *opts);int nvmf_get_address (struct nvme_ctrl *ctrl,char *buf,int size);bool nvmf_should_reconnect (struct nvme_ctrl *ctrl); +static inline blk_status_t nvmf_check_init_req (struct nvme_ctrl *ctrl, +struct request *rq) +{ +struct nvme_command *cmd =nvme_req (rq)->cmd; + +/* +* We cannot accept any other command until the connect command has +* completed, so only allow connect to pass. +*/ +if (!blk_rq_is_passthrough (rq) || + cmd->common.opcode != nvme_fabrics_command || + cmd->fabrics.fctype != nvme_fabrics_type_connect) { +/* +* Reconnecting state means transport disruption, which can take +* a long time and even might fail permanently, fail fast to +* give upper layers a chance to failover. +* Deleting state means that the ctrl will never accept commands +* again, fail it permanently. +*/ +if (ctrl->state ==NVME_CTRL_RECONNECTING || + ctrl->state ==NVME_CTRL_DELETING ) { +nvme_req (rq)->status =NVME_SC_ABORT_REQ ; +return BLK_STS_IOERR ; + } +return BLK_STS_RESOURCE ;/* try again later */ + } + +return BLK_STS_OK ; +} +#endif /* _NVME_FABRICS_H */
drivers/nvme/host/fc.c +18 -1
@@ -41,6 +41,7 @@enum nvme_fc_queue_flags {NVME_FC_Q_CONNECTED = (1 <<0 ), +NVME_FC_Q_LIVE = (1 <<1 ), };#define NVMEFC_QUEUE_DELAY 3/* ms units */
@@ -1654,6 +1655,7 @@ nvme_fc_free_queue(struct nvme_fc_queue *queue)if (!test_and_clear_bit (NVME_FC_Q_CONNECTED , &queue->flags))return ; +clear_bit (NVME_FC_Q_LIVE , &queue->flags);/* * Current implementation never disconnects a single queue. * It always terminates a whole association. So there is never
@@ -1661,7 +1663,6 @@ nvme_fc_free_queue(struct nvme_fc_queue *queue)*/ queue->connection_id =0 ; -clear_bit (NVME_FC_Q_CONNECTED , &queue->flags); } static void
@@ -1740,6 +1741,8 @@ nvme_fc_connect_io_queues(struct nvme_fc_ctrl *ctrl, u16 qsize) ret =nvmf_connect_io_queue (&ctrl->ctrl, i);if (ret)break ; + +set_bit (NVME_FC_Q_LIVE , &ctrl->queues[i].flags); }return ret;
@@ -2048,6 +2051,14 @@ nvme_fc_start_fcp_op(struct nvme_fc_ctrl *ctrl, struct nvme_fc_queue *queue,return BLK_STS_RESOURCE ; } +static inline blk_status_t nvme_fc_is_ready (struct nvme_fc_queue *queue, +struct request *rq) +{ +if (unlikely (!test_bit (NVME_FC_Q_LIVE , &queue->flags))) +return nvmf_check_init_req (&queue->ctrl->ctrl, rq); +return BLK_STS_OK ; +} +static blk_status_t nvme_fc_queue_rq (struct blk_mq_hw_ctx *hctx,const struct blk_mq_queue_data *bd)
@@ -2063,6 +2074,10 @@ nvme_fc_queue_rq(struct blk_mq_hw_ctx *hctx,u32 data_len;blk_status_t ret; + ret =nvme_fc_is_ready (queue, rq); +if (unlikely (ret)) +return ret; + ret =nvme_setup_cmd (ns, rq, sqe);if (ret)return ret;
@@ -2398,6 +2413,8 @@ nvme_fc_create_association(struct nvme_fc_ctrl *ctrl)if (ret) goto out_disconnect_admin_queue; +set_bit (NVME_FC_Q_LIVE , &ctrl->queues[0 ].flags); +/* * Check controller capabilities *
drivers/nvme/host/pci.c +12 -3
@@ -1617,6 +1617,7 @@ static void nvme_free_host_mem(struct nvme_dev *dev) dev->nr_host_mem_descs *sizeof (*dev->host_mem_descs), dev->host_mem_descs, dev->host_mem_descs_dma); dev->host_mem_descs =NULL ; + dev->nr_host_mem_descs =0 ; } static int __nvme_alloc_host_mem(struct nvme_dev *dev, u64 preferred,
@@ -1645,7 +1646,7 @@ static int __nvme_alloc_host_mem(struct nvme_dev *dev, u64 preferred,if (!bufs) goto out_free_descs; -for (size =0 ; size < preferred; size += len) { +for (size =0 ; size < preferred && i < max_entries; size += len) {dma_addr_t dma_addr; len =min_t (u64, chunk_size, preferred - size);
@@ -2282,7 +2283,7 @@ static int nvme_dev_map(struct nvme_dev *dev)return -ENODEV ; } -static unsigned long check_dell_samsung_bug (struct pci_dev *pdev) +static unsigned long check_vendor_combination_bug (struct pci_dev *pdev) {if (pdev->vendor ==0x144d && pdev->device ==0xa802 ) {/*
@@ -2297,6 +2298,14 @@ static unsigned long check_dell_samsung_bug(struct pci_dev *pdev) (dmi_match(DMI_PRODUCT_NAME, "XPS 15 9550") || dmi_match(DMI_PRODUCT_NAME, "Precision 5510")))return NVME_QUIRK_NO_DEEPEST_PS ; + }else if (pdev->vendor ==0x144d && pdev->device ==0xa804 ) { +/* +* Samsung SSD 960 EVO drops off the PCIe bus after system +* suspend on a Ryzen board, ASUS PRIME B350M-A. +*/ +if (dmi_match (DMI_BOARD_VENDOR ,"ASUSTeK COMPUTER INC." ) && +dmi_match (DMI_BOARD_NAME ,"PRIME B350M-A" )) +return NVME_QUIRK_NO_APST ; }return 0 ;
@@ -2336,7 +2345,7 @@ static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id)if (result) goto unmap; - quirks |=check_dell_samsung_bug (pdev); + quirks |=check_vendor_combination_bug (pdev); result =nvme_init_ctrl (&dev->ctrl, &pdev->dev, &nvme_pci_ctrl_ops, quirks);
drivers/nvme/host/rdma.c +30 -30
102 lines not on this page · raw message
drivers/nvme/target/fc.c +6 -3
@@ -532,15 +532,15 @@ nvmet_fc_free_fcp_iod(struct nvmet_fc_tgt_queue *queue, tgtport->ops->fcp_req_release (&tgtport->fc_target_port, fcpreq); +/* release the queue lookup reference on the completed IO */ +nvmet_fc_tgt_q_put (queue); +spin_lock_irqsave (&queue->qlock, flags); deferfcp =list_first_entry_or_null (&queue->pending_cmd_list, struct nvmet_fc_defer_fcp_req, req_list);if (!deferfcp) {list_add_tail (&fod->fcp_list, &fod->queue->fod_list);spin_unlock_irqrestore (&queue->qlock, flags); - -/* Release reference taken at queue lookup and fod allocation */ -nvmet_fc_tgt_q_put (queue);return ; }
@@ -759,6 +759,9 @@ nvmet_fc_delete_target_queue(struct nvmet_fc_tgt_queue *queue) tgtport->ops->fcp_req_release (&tgtport->fc_target_port, deferfcp->fcp_req); +/* release the queue lookup reference */ +nvmet_fc_tgt_q_put (queue); +kfree (deferfcp);spin_lock_irqsave (&queue->qlock, flags);
drivers/nvme/target/loop.c +24 -1
@@ -61,10 +61,15 @@ static inline struct nvme_loop_ctrl *to_loop_ctrl(struct nvme_ctrl *ctrl) return container_of(ctrl, struct nvme_loop_ctrl, ctrl); } +enum nvme_loop_queue_flags { +NVME_LOOP_Q_LIVE =0 , +}; +struct nvme_loop_queue {struct nvmet_cq nvme_cq;struct nvmet_sq nvme_sq;struct nvme_loop_ctrl *ctrl; +unsigned long flags; };static struct nvmet_port *nvmet_loop_port;
@@ -153,6 +158,14 @@ nvme_loop_timeout(struct request *rq, bool reserved)return BLK_EH_HANDLED ; } +static inline blk_status_t nvme_loop_is_ready (struct nvme_loop_queue *queue, +struct request *rq) +{ +if (unlikely (!test_bit (NVME_LOOP_Q_LIVE , &queue->flags))) +return nvmf_check_init_req (&queue->ctrl->ctrl, rq); +return BLK_STS_OK ; +} +static blk_status_t nvme_loop_queue_rq (struct blk_mq_hw_ctx *hctx,const struct blk_mq_queue_data *bd) {
@@ -162,6 +175,10 @@ static blk_status_t nvme_loop_queue_rq(struct blk_mq_hw_ctx *hctx,struct nvme_loop_iod *iod =blk_mq_rq_to_pdu (req);blk_status_t ret; + ret =nvme_loop_is_ready (queue, req); +if (unlikely (ret)) +return ret; + ret =nvme_setup_cmd (ns, req, &iod->cmd);if (ret)return ret;
@@ -275,6 +292,7 @@ static const struct blk_mq_ops nvme_loop_admin_mq_ops = {static void nvme_loop_destroy_admin_queue (struct nvme_loop_ctrl *ctrl) { +clear_bit (NVME_LOOP_Q_LIVE , &ctrl->queues[0 ].flags);nvmet_sq_destroy (&ctrl->queues[0 ].nvme_sq);blk_cleanup_queue (ctrl->ctrl.admin_q);blk_mq_free_tag_set (&ctrl->admin_tag_set);
@@ -305,8 +323,10 @@ static void nvme_loop_destroy_io_queues(struct nvme_loop_ctrl *ctrl) {int i; -for (i =1 ; i < ctrl->ctrl.queue_count; i++) +for (i =1 ; i < ctrl->ctrl.queue_count; i++) { +clear_bit (NVME_LOOP_Q_LIVE , &ctrl->queues[i].flags);nvmet_sq_destroy (&ctrl->queues[i].nvme_sq); + } }static int nvme_loop_init_io_queues (struct nvme_loop_ctrl *ctrl)
@@ -346,6 +366,7 @@ static int nvme_loop_connect_io_queues(struct nvme_loop_ctrl *ctrl) ret =nvmf_connect_io_queue (&ctrl->ctrl, i);if (ret)return ret; +set_bit (NVME_LOOP_Q_LIVE , &ctrl->queues[i].flags); }return 0 ;
@@ -387,6 +408,8 @@ static int nvme_loop_configure_admin_queue(struct nvme_loop_ctrl *ctrl)if (error) goto out_cleanup_queue; +set_bit (NVME_LOOP_Q_LIVE , &ctrl->queues[0 ].flags); + error =nvmf_reg_read64 (&ctrl->ctrl,NVME_REG_CAP , &ctrl->ctrl.cap);if (error) { dev_err(ctrl->ctrl.device,
drivers/power/reset/zx-reboot.c +4 -0
@@ -82,3 +82,7 @@ static struct platform_driver zx_reboot_driver = { }, };module_platform_driver (zx_reboot_driver); + +MODULE_DESCRIPTION ("ZTE SoCs reset driver" ); +MODULE_AUTHOR ("Jun Nie <[email protected]>" ); +MODULE_LICENSE ("GPL v2" );
drivers/s390/crypto/zcrypt_api.c +2 -2
@@ -218,8 +218,8 @@ static inline bool zcrypt_queue_compare(struct zcrypt_queue *zq, weight +=atomic_read (&zq->load); pref_weight +=atomic_read (&pref_zq->load);if (weight == pref_weight) -return &zq->queue->total_request_count > - &pref_zq->queue->total_request_count; +return zq->queue->total_request_count > + pref_zq->queue->total_request_count;return weight > pref_weight; }
drivers/scsi/aacraid/aachba.c +11 -4
@@ -913,8 +913,15 @@ static void setinqstr(struct aac_dev *dev, void *data, int tindex)memset (str,' ' ,sizeof (*str));if (sup_adap_info->adapter_type_text[0 ]) { -char *cp = sup_adap_info->adapter_type_text;int c; +char *cp; +char *cname =kmemdup (sup_adap_info->adapter_type_text, +sizeof (sup_adap_info->adapter_type_text), +GFP_ATOMIC ); +if (!cname) +return ; + + cp = cname;if ((cp[0 ] =='A' ) && (cp[1 ] =='O' ) && (cp[2 ] =='C' ))inqstrcpy ("SMC" , str->vid);else {
@@ -923,7 +930,7 @@ static void setinqstr(struct aac_dev *dev, void *data, int tindex) ++cp; c = *cp; *cp ='\0' ; -inqstrcpy (sup_adap_info->adapter_type_text, str->vid); +inqstrcpy (cname, str->vid); *cp = c;while (*cp && *cp !=' ' ) ++cp;
@@ -937,8 +944,8 @@ static void setinqstr(struct aac_dev *dev, void *data, int tindex) cp[sizeof (str->pid)] ='\0' ; }inqstrcpy (cp, str->pid); -if (c) - cp[sizeof (str->pid)] = c; + +kfree (cname); }else {struct aac_driver_ident *mp =aac_get_driver_ident (dev->cardtype);
drivers/scsi/aacraid/commsup.c +2 -9
@@ -1583,6 +1583,7 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced, u8 reset_type)* will ensure that i/o is queisced and the card is flushed in that * case. */ +aac_free_irq (aac);aac_fib_map_free (aac);dma_free_coherent (&aac->pdev->dev, aac->comm_size, aac->comm_addr, aac->comm_phys);
@@ -1590,7 +1591,6 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced, u8 reset_type) aac->comm_phys =0 ;kfree (aac->queues); aac->queues =NULL ; -aac_free_irq (aac);kfree (aac->fsa_dev); aac->fsa_dev =NULL ;
@@ -1672,14 +1672,7 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced, u8 reset_type) out: aac->in_reset =0 ;scsi_unblock_requests (host); -/* -* Issue bus rescan to catch any configuration that might have -* occurred -*/ -if (!retval) { -dev_info (&aac->pdev->dev,"Issuing bus rescan\n" ); -scsi_scan_host (host); - } +if (jafo) {spin_lock_irq (host->host_lock); }
drivers/scsi/ufs/ufshcd.c +5 -2
@@ -6555,12 +6555,15 @@ static int ufshcd_config_vreg(struct device *dev, struct ufs_vreg *vreg, bool on) { int ret = 0; -struct regulator *reg = vreg->reg; -const char *name = vreg->name; +struct regulator *reg; +const char *name;int min_uV, uA_load;BUG_ON (!vreg); + reg = vreg->reg; + name = vreg->name; +if (regulator_count_voltages (reg) >0 ) { min_uV = on ? vreg->min_uV :0 ; ret =regulator_set_voltage (reg, min_uV, vreg->max_uV);
drivers/spi/spi-imx.c +13 -2
@@ -1496,12 +1496,23 @@ static int spi_imx_remove(struct platform_device *pdev) {struct spi_master *master =platform_get_drvdata (pdev);struct spi_imx_data *spi_imx =spi_master_get_devdata (master); +int ret;spi_bitbang_stop (&spi_imx->bitbang); + ret =clk_enable (spi_imx->clk_per); +if (ret) +return ret; + + ret =clk_enable (spi_imx->clk_ipg); +if (ret) { +clk_disable (spi_imx->clk_per); +return ret; + } +writel (0 , spi_imx->base +MXC_CSPICTRL ); -clk_unprepare (spi_imx->clk_ipg); -clk_unprepare (spi_imx->clk_per); +clk_disable_unprepare (spi_imx->clk_ipg); +clk_disable_unprepare (spi_imx->clk_per);spi_imx_sdma_exit (spi_imx);spi_master_put (master);
drivers/staging/ccree/ssi_cipher.c +1 -0
@@ -904,6 +904,7 @@ static int ssi_ablkcipher_decrypt(struct ablkcipher_request *req)scatterwalk_map_and_copy (req_ctx->backup_info, req->src, (req->nbytes - ivsize), ivsize,0 ); req_ctx->is_giv = false; + req_ctx->backup_info =NULL ;return ssi_blkcipher_process (tfm, req_ctx, req->dst, req->src, req->nbytes, req->info, ivsize, (void *)req,DRV_CRYPTO_DIRECTION_DECRYPT ); }
drivers/staging/ccree/ssi_driver.c +1 -1
@@ -141,7 +141,7 @@ static irqreturn_t cc_isr(int irq, void *dev_id) irr &= ~SSI_COMP_IRQ_MASK ;complete_request (drvdata); } -#ifdef CC_SUPPORT_FIPS +#ifdef CONFIG_CRYPTO_FIPS /* TEE FIPS interrupt */ if (likely ((irr &SSI_GPR0_IRQ_MASK ) !=0 )) {/* Mask interrupt - will be unmasked in Deferred service handler */
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c +3 -4
@@ -825,14 +825,15 @@ struct kib_conn *kiblnd_create_conn(struct kib_peer *peer, struct rdma_cm_id *cmreturn conn; failed_2: -kiblnd_destroy_conn (conn, true); +kiblnd_destroy_conn (conn); +LIBCFS_FREE (conn,sizeof (*conn)); failed_1:LIBCFS_FREE (init_qp_attr,sizeof (*init_qp_attr)); failed_0:return NULL ; } -void kiblnd_destroy_conn (struct kib_conn *conn,bool free_conn) +void kiblnd_destroy_conn (struct kib_conn *conn) {struct rdma_cm_id *cmid = conn->ibc_cmid;struct kib_peer *peer = conn->ibc_peer;
@@ -895,8 +896,6 @@ void kiblnd_destroy_conn(struct kib_conn *conn, bool free_conn)rdma_destroy_id (cmid);atomic_dec (&net->ibn_nconns); } - -LIBCFS_FREE (conn,sizeof (*conn)); }int kiblnd_close_peer_conns_locked (struct kib_peer *peer,int why)
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h +1 -1
@@ -1015,7 +1015,7 @@ int kiblnd_close_peer_conns_locked(struct kib_peer *peer, int why);struct kib_conn *kiblnd_create_conn (struct kib_peer *peer,struct rdma_cm_id *cmid,int state,int version); -void kiblnd_destroy_conn (struct kib_conn *conn,bool free_conn); +void kiblnd_destroy_conn (struct kib_conn *conn);void kiblnd_close_conn (struct kib_conn *conn,int error);void kiblnd_close_conn_locked (struct kib_conn *conn,int error);
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c +4 -2
@@ -3313,11 +3313,13 @@ kiblnd_connd(void *arg)spin_unlock_irqrestore (lock, flags); dropped_lock =1 ; -kiblnd_destroy_conn (conn, !peer); +kiblnd_destroy_conn (conn);spin_lock_irqsave (lock, flags); -if (!peer) +if (!peer) { +kfree (conn);continue ; + } conn->ibc_peer = peer;if (peer->ibp_reconnected <KIB_RECONN_HIGH_RACE )
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +4 -10
@@ -1395,19 +1395,13 @@ static int rtw_wx_get_essid(struct net_device *dev,if ((check_fwstate (pmlmepriv, _FW_LINKED)) || (check_fwstate (pmlmepriv,WIFI_ADHOC_MASTER_STATE ))) { len = pcur_bss->Ssid.SsidLength; - - wrqu->essid.length = len; -memcpy (extra, pcur_bss->Ssid.Ssid, len); - - wrqu->essid.flags =1 ; }else { - ret =-1 ; - goto exit; + len =0 ; + *extra =0 ; } - -exit: - + wrqu->essid.length = len; + wrqu->essid.flags =1 ;return ret; }
drivers/tty/serial/8250/8250_of.c +4 -1
@@ -141,8 +141,11 @@ static int of_platform_serial_setup(struct platform_device *ofdev, } info->rst =devm_reset_control_get_optional_shared (&ofdev->dev,NULL ); -if (IS_ERR (info->rst)) +if (IS_ERR (info->rst)) { + ret =PTR_ERR (info->rst); goto err_dispose; + } + ret =reset_control_deassert (info->rst);if (ret) goto err_dispose;
drivers/tty/serial/8250/8250_uniphier.c +3 -2
@@ -259,12 +259,13 @@ static int uniphier_uart_probe(struct platform_device *pdev) up.dl_read = uniphier_serial_dl_read; up.dl_write = uniphier_serial_dl_write; - priv->line =serial8250_register_8250_port (&up); -if (priv->line <0 ) { + ret =serial8250_register_8250_port (&up); +if (ret <0 ) {dev_err (dev,"failed to register 8250 port\n" );clk_disable_unprepare (priv->clk);return ret; } + priv->line = ret;platform_set_drvdata (pdev, priv);
drivers/tty/serial/imx.c +8 -6
@@ -2275,12 +2275,14 @@ static void serial_imx_enable_wakeup(struct imx_port *sport, bool on) val &= ~UCR3_AWAKEN ;writel (val, sport->port.membase +UCR3 ); - val =readl (sport->port.membase +UCR1 ); -if (on) - val |=UCR1_RTSDEN ; -else - val &= ~UCR1_RTSDEN ; -writel (val, sport->port.membase +UCR1 ); +if (sport->have_rtscts) { + val =readl (sport->port.membase +UCR1 ); +if (on) + val |=UCR1_RTSDEN ; +else + val &= ~UCR1_RTSDEN ; +writel (val, sport->port.membase +UCR1 ); + } }static int imx_serial_port_suspend_noirq (struct device *dev)
drivers/tty/tty_io.c +7 -1
@@ -1322,6 +1322,9 @@ struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx)"%s: %s driver does not set tty->port. This will crash the kernel later. Fix the driver!\n" , __func__, tty->driver->name); + retval =tty_ldisc_lock (tty,5 *HZ ); +if (retval) + goto err_release_lock; tty->port->itty = tty;/*
@@ -1332,6 +1335,7 @@ struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx) retval =tty_ldisc_setup (tty, tty->link);if (retval) goto err_release_tty; +tty_ldisc_unlock (tty);/* Return the tty locked so that it cannot vanish under the caller */ return tty;
@@ -1344,9 +1348,11 @@ struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx)/* call the tty release_tty routine to clean out this slot */ err_release_tty: -tty_unlock (tty); +tty_ldisc_unlock (tty);tty_info_ratelimited (tty,"ldisc open failed (%d), clearing slot %d\n" , retval, idx); +err_release_lock: +tty_unlock (tty);release_tty (tty, idx);return ERR_PTR (retval); }
drivers/tty/tty_ldisc.c +2 -2
@@ -336,7 +336,7 @@ static inline void __tty_ldisc_unlock(struct tty_struct *tty)ldsem_up_write (&tty->ldisc_sem); } -static int tty_ldisc_lock (struct tty_struct *tty,unsigned long timeout) +int tty_ldisc_lock (struct tty_struct *tty,unsigned long timeout) {int ret;
@@ -347,7 +347,7 @@ static int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout)return 0 ; } -static void tty_ldisc_unlock (struct tty_struct *tty) +void tty_ldisc_unlock (struct tty_struct *tty) {clear_bit (TTY_LDISC_HALTED , &tty->flags);__tty_ldisc_unlock (tty);
drivers/usb/class/cdc-acm.c +4 -1
@@ -438,7 +438,7 @@ static int acm_submit_read_urb(struct acm *acm, int index, gfp_t mem_flags) res =usb_submit_urb (acm->read_urbs[index], mem_flags);if (res) { -if (res != -EPERM ) { +if (res != -EPERM && res != -ENODEV ) {dev_err (&acm->data->dev,"urb %d failed submission with %d\n" , index, res);
@@ -1765,6 +1765,9 @@ static const struct usb_device_id acm_ids[] = { { USB_DEVICE(0x0ace, 0x1611), /* ZyDAS 56K USB MODEM - new version */ .driver_info =SINGLE_RX_URB ,/* firmware bug */ }, + { USB_DEVICE(0x11ca, 0x0201), /* VeriFone Mx870 Gadget Serial */ + .driver_info = SINGLE_RX_URB, + }, { USB_DEVICE(0x22b8, 0x7000), /* Motorola Q Phone */ .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ },
drivers/usb/gadget/composite.c +5 -2
@@ -150,7 +150,6 @@ int config_ep_by_speed(struct usb_gadget *g,struct usb_function *f, struct usb_ep *_ep) { - struct usb_composite_dev *cdev = get_gadget_data(g); struct usb_endpoint_descriptor *chosen_desc = NULL;struct usb_descriptor_header **speed_desc =NULL ;
@@ -229,8 +228,12 @@ int config_ep_by_speed(struct usb_gadget *g, _ep->maxburst = comp_desc->bMaxBurst +1 ;break ;default : -if (comp_desc->bMaxBurst !=0 ) +if (comp_desc->bMaxBurst !=0 ) { +struct usb_composite_dev *cdev; + + cdev =get_gadget_data (g);ERROR (cdev,"ep0 bMaxBurst must be 0\n" ); + } _ep->maxburst =1 ;break ; }
drivers/usb/gadget/function/f_fs.c +2 -1
@@ -3704,7 +3704,8 @@ static void ffs_closed(struct ffs_data *ffs) ci = opts->func_inst.group.cg_item.ci_parent->ci_parent;ffs_dev_unlock (); -unregister_gadget_item (ci); +if (test_bit (FFS_FL_BOUND , &ffs->flags)) +unregister_gadget_item (ci);return ; done:ffs_dev_unlock ();
drivers/usb/gadget/udc/core.c +1 -1
@@ -923,7 +923,7 @@ int usb_gadget_ep_match_desc(struct usb_gadget *gadget,return 0 ;/* "high bandwidth" works only at high speed */ -if (!gadget_is_dualspeed (gadget) &&usb_endpoint_maxp (desc) & (3 <<11 )) +if (!gadget_is_dualspeed (gadget) &&usb_endpoint_maxp_mult (desc) >1 )return 0 ;
Lines of this file are not shown. View the raw message.
fs/btrfs/send.c +106 -18
124 lines not on this page · raw message
fs/xfs/xfs_log_recover.c +67 -8
75 lines not on this page · raw message
net/rxrpc/conn_object.c +24 -18
42 lines not on this page · raw message
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c +6 -3
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.