Skip to contentSkip to conversation

Linux 4.14.3

DISCUSSION Greg KH 1 participant 2 messages Nov 30, 2017 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.14.3 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/mm/dump.c                                  |    4 
 arch/arm/mm/init.c                                  |    4 
 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi          |    8 
 arch/arm64/include/asm/pgtable.h                    |   14 
 arch/mips/Kconfig                                   |    2 
 arch/mips/bcm47xx/leds.c                            |    2 
 arch/mips/boot/dts/brcm/Makefile                    |    1 
 arch/mips/include/asm/asmmacro.h                    |   16 
 arch/mips/include/asm/cmpxchg.h                     |    2 
 arch/mips/kernel/ptrace.c                           |   17 +
 arch/mips/kernel/r4k_fpu.S                          |   20 -
 arch/mips/math-emu/cp1emu.c                         |   28 -
 arch/mips/pci/pci-mt7620.c                          |    2 
 arch/mips/ralink/mt7620.c                           |    4 
 arch/parisc/kernel/syscall.S                        |    6 
 arch/powerpc/kernel/exceptions-64s.S                |    2 
 arch/powerpc/kernel/signal.c                        |    2 
 arch/powerpc/kvm/book3s_hv_builtin.c                |   12 
 arch/powerpc/lib/code-patching.c                    |    6 
 arch/powerpc/mm/hugetlbpage-radix.c                 |   26 +
 arch/powerpc/mm/mmap.c                              |   55 +--
 arch/powerpc/mm/mmu_context_book3s64.c              |    8 
 arch/powerpc/mm/pgtable-radix.c                     |   10 
 arch/powerpc/mm/slice.c                             |   50 +-
 arch/powerpc/perf/imc-pmu.c                         |   12 
 arch/s390/include/asm/switch_to.h                   |    2 
 arch/s390/kernel/dis.c                              |    5 
 arch/s390/kernel/early.c                            |    4 
 arch/s390/kernel/guarded_storage.c                  |    2 
 arch/s390/kernel/machine_kexec.c                    |    1 
 arch/s390/kernel/process.c                          |    1 
 arch/s390/kernel/relocate_kernel.S                  |    3 
 arch/s390/kernel/runtime_instr.c                    |    4 
 arch/x86/entry/entry_64.S                           |   14 
 arch/x86/events/intel/core.c                        |   35 +-
 arch/x86/kernel/mpparse.c                           |    6 
 arch/x86/kvm/svm.c                                  |    7 
 arch/x86/kvm/vmx.c                                  |  152 ++++++--
 arch/x86/lib/x86-opcode-map.txt                     |    2 
 block/blk-core.c                                    |    2 
 block/blk-timeout.c                                 |    3 
 drivers/acpi/device_pm.c                            |   21 -
 drivers/acpi/ec.c                                   |   12 
 drivers/ata/libata-eh.c                             |    2 
 drivers/base/power/opp/of.c                         |    1 
 drivers/block/nbd.c                                 |   26 -
 drivers/bluetooth/btqcomsmd.c                       |   34 ++
 drivers/clk/ti/clk-dra7-atl.c                       |    3 
 drivers/dax/super.c                                 |    3 
 drivers/infiniband/core/cm.c                        |   11 
 drivers/infiniband/core/mad.c                       |    3 
 drivers/infiniband/core/security.c                  |   51 +--
 drivers/infiniband/hw/hfi1/chip.c                   |   35 +-
 drivers/infiniband/hw/hfi1/hfi.h                    |    2 
 drivers/infiniband/hw/hfi1/sysfs.c                  |    2 
 drivers/infiniband/hw/hfi1/vnic_main.c              |    7 
 drivers/infiniband/ulp/srp/ib_srp.c                 |   25 +
 drivers/infiniband/ulp/srpt/ib_srpt.c               |    9 
 drivers/irqchip/irq-gic-v3.c                        |    9 
 drivers/mailbox/bcm-flexrm-mailbox.c                |   22 +
 drivers/md/bcache/alloc.c                           |    3 
 drivers/md/bitmap.c                                 |    4 
 drivers/md/dm-bufio.c                               |   15 
 drivers/md/dm-cache-target.c                        |   86 +++--
 drivers/md/dm-core.h                                |    3 
 drivers/md/dm-crypt.c                               |    4 
 drivers/md/dm-integrity.c                           |    2 
 drivers/md/dm-mpath.c                               |    2 
 drivers/md/dm-table.c                               |   33 -
 drivers/md/dm-zoned-target.c                        |   13 
 drivers/md/dm.c                                     |   18 -
 drivers/md/md.c                                     |    4 
 drivers/md/raid1.c                                  |   24 -
 drivers/media/platform/qcom/venus/core.h            |    2 
 drivers/media/platform/qcom/venus/helpers.c         |    7 
 drivers/media/platform/qcom/venus/hfi.c             |    1 
 drivers/media/platform/qcom/venus/hfi_venus.c       |   12 
 drivers/media/platform/qcom/venus/vdec.c            |   34 +-
 drivers/media/platform/qcom/venus/venc.c            |    7 
 drivers/media/rc/ir-lirc-codec.c                    |    9 
 drivers/media/rc/ir-nec-decoder.c                   |   29 +
 drivers/media/usb/as102/as102_fw.c                  |   28 +
 drivers/media/usb/cx231xx/cx231xx-cards.c           |    2 
 drivers/media/v4l2-core/v4l2-ctrls.c                |   16 
 drivers/mfd/lpc_ich.c                               |    1 
 drivers/mtd/devices/docg3.c                         |    7 
 drivers/mtd/nand/atmel/nand-controller.c            |    1 
 drivers/mtd/nand/mtk_ecc.c                          |   13 
 drivers/mtd/nand/nand_base.c                        |   10 
 drivers/mtd/nand/nandsim.c                          |   13 
 drivers/mtd/nand/omap2.c                            |  339 +++++++++++++-------
 drivers/mtd/spi-nor/intel-spi.c                     |    4 
 drivers/net/ethernet/intel/e1000e/defines.h         |    1 
 drivers/net/ethernet/intel/e1000e/mac.c             |   11 
 drivers/net/ethernet/intel/e1000e/netdev.c          |   45 +-
 drivers/net/ethernet/intel/e1000e/phy.c             |    7 
 drivers/net/ethernet/intel/fm10k/fm10k_main.c       |    2 
 drivers/net/ethernet/intel/i40e/i40e_main.c         |    2 
 drivers/net/ethernet/intel/i40e/i40e_txrx.c         |    2 
 drivers/net/ethernet/intel/i40evf/i40e_txrx.c       |    2 
 drivers/net/ethernet/intel/igb/igb_main.c           |    2 
 drivers/net/ethernet/intel/igbvf/netdev.c           |    2 
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c       |    2 
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c   |    2 
 drivers/net/ethernet/marvell/mvneta.c               |   13 
 drivers/net/wireless/intel/iwlwifi/cfg/9000.c       |   73 +++-
 drivers/net/wireless/intel/iwlwifi/cfg/a000.c       |   10 
 drivers/net/wireless/intel/iwlwifi/fw/api/scan.h    |   59 ++-
 drivers/net/wireless/intel/iwlwifi/fw/file.h        |    1 
 drivers/net/wireless/intel/iwlwifi/iwl-config.h     |    5 
 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h        |    6 
 drivers/net/wireless/intel/iwlwifi/mvm/scan.c       |   86 +++--
 drivers/net/wireless/intel/iwlwifi/pcie/drv.c       |  183 +++++++---
 drivers/net/wireless/intersil/p54/main.c            |    7 
 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c      |    6 
 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c |    6 
 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c |    1 
 drivers/nvdimm/dimm.c                               |    1 
 drivers/nvdimm/dimm_devs.c                          |    7 
 drivers/nvdimm/label.c                              |    2 
 drivers/nvdimm/namespace_devs.c                     |    2 
 drivers/nvdimm/nd.h                                 |    1 
 drivers/nvdimm/pfn_devs.c                           |    8 
 drivers/nvdimm/region_devs.c                        |    8 
 drivers/pci/host/pci-hyperv.c                       |    8 
 drivers/pci/pcie/aspm.c                             |    4 
 drivers/pci/quirks.c                                |   27 +
 drivers/scsi/lpfc/lpfc_attr.c                       |    6 
 drivers/scsi/lpfc/lpfc_bsg.c                        |    4 
 drivers/scsi/lpfc/lpfc_els.c                        |    7 
 drivers/scsi/lpfc/lpfc_hbadisc.c                    |    5 
 drivers/scsi/lpfc/lpfc_init.c                       |   15 
 drivers/scsi/lpfc/lpfc_nportdisc.c                  |    2 
 drivers/scsi/lpfc/lpfc_nvmet.c                      |   15 
 drivers/scsi/lpfc/lpfc_sli.c                        |   34 +-
 drivers/scsi/qla2xxx/qla_os.c                       |    2 
 drivers/scsi/sd_zbc.c                               |    6 
 drivers/target/iscsi/iscsi_target.c                 |   30 -
 drivers/target/target_core_pr.c                     |    1 
 drivers/target/target_core_tmr.c                    |   12 
 drivers/target/target_core_transport.c              |   26 +
 drivers/tty/serdev/core.c                           |   19 -
 drivers/vhost/scsi.c                                |    5 
 fs/9p/vfs_inode.c                                   |    3 
 fs/9p/vfs_inode_dotl.c                              |    3 
 fs/autofs4/waitq.c                                  |   15 
 fs/btrfs/extent-tree.c                              |   42 +-
 fs/buffer.c                                         |   10 
 fs/crypto/crypto.c                                  |    7 
 fs/dax.c                                            |    6 
 fs/ecryptfs/messaging.c                             |    7 
 fs/ext4/extents.c                                   |    6 
 fs/ext4/inline.c                                    |   10 
 fs/ext4/inode.c                                     |    5 
 fs/ext4/ioctl.c                                     |   16 
 fs/ext4/super.c                                     |    5 
 fs/f2fs/file.c                                      |    6 
 fs/isofs/isofs.h                                    |    2 
 fs/isofs/rock.h                                     |    2 
 fs/isofs/util.c                                     |    2 
 fs/lockd/svc.c                                      |   20 -
 fs/nfs/dir.c                                        |    4 
 fs/nfs/file.c                                       |   18 -
 fs/nfs/nfs4proc.c                                   |   32 +
 fs/nfs/nfs4trace.h                                  |   24 -
 fs/nfs/super.c                                      |    2 
 fs/nfsd/nfs4state.c                                 |   25 +
 fs/nilfs2/segment.c                                 |    6 
 fs/notify/fanotify/fanotify.c                       |   33 +
 fs/notify/fsnotify.c                                |   10 
 fs/notify/mark.c                                    |  107 +++---
 fs/overlayfs/namei.c                                |    2 
 include/linux/genhd.h                               |    1 
 include/linux/irq.h                                 |   11 
 include/net/tls.h                                   |    4 
 include/sound/control.h                             |    4 
 include/target/target_core_base.h                   |    1 
 include/trace/events/sunrpc.h                       |   17 -
 include/uapi/linux/rxrpc.h                          |   10 
 include/uapi/linux/tls.h                            |    4 
 kernel/irq/manage.c                                 |   13 
 kernel/sched/core.c                                 |    3 
 kernel/sched/cpufreq_schedutil.c                    |    6 
 kernel/sched/rt.c                                   |  316 ++++++------------
 kernel/sched/sched.h                                |   24 +
 kernel/sched/topology.c                             |    6 
 lib/mpi/mpi-pow.c                                   |    2 
 mm/z3fold.c                                         |   10 
 net/9p/client.c                                     |    5 
 net/9p/trans_fd.c                                   |    6 
 net/9p/trans_virtio.c                               |   13 
 net/9p/trans_xen.c                                  |    4 
 net/ceph/crypto.c                                   |    4 
 net/nfc/core.c                                      |    2 
 net/sunrpc/xprtrdma/svc_rdma_backchannel.c          |    6 
 sound/core/pcm_lib.c                                |    6 
 sound/core/timer_compat.c                           |   12 
 sound/core/vmaster.c                                |    6 
 sound/hda/hdmi_chmap.c                              |    2 
 sound/pci/hda/hda_codec.c                           |   10 
 sound/pci/hda/hda_intel.c                           |    3 
 sound/pci/hda/patch_realtek.c                       |    5 
 sound/soc/sunxi/sun8i-codec.c                       |   61 +++
 sound/usb/clock.c                                   |    9 
 sound/usb/mixer.c                                   |   15 
 206 files changed, 2164 insertions(+), 1242 deletions(-)

Al Viro (1):
fix a page leak in vhost_scsi_iov_to_sgl() error recovery

Aleksandar Markovic (1):
MIPS: math-emu: Fix final emulation phase for certain instructions

Andi Kleen (1):
perf/x86/intel: Hide TSX events when RTM is not supported

Andreas Rohner (1):
nilfs2: fix race condition that causes file system corruption

Andrew Elble (1):
nfsd: deal with revoked delegations appropriately

Andrey Konovalov (1):
p54: don't unregister leds when they are not initialized

Andy Lutomirski (2):
x86/entry/64: Fix entry_SYSCALL_64_after_hwframe() IRQ tracing x86/entry/64: Add missing irqflags tracing to native_load_gs_index()

Anna Schumaker (1):
NFS: Avoid RCU usage in tracepoints

Anup Patel (1):
mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence

Arnd Bergmann (2):
isofs: fix timestamps beyond 2027
rtlwifi: fix uninitialized rtlhal->last_suspend_sec time

Artur Paszkiewicz (1):
md: don't check MD_SB_CHANGE_CLEAN in md_allow_write

Balbir Singh (1):
powerpc/mm/radix: Fix crashes on Power9 DD1 with radix MMU and STRICT_RWX

Bart Van Assche (4):
scsi: qla2xxx: Suppress a kernel complaint in qla_init_base_qpair()
block: Fix a race between blk_cleanup_queue() and timeout handling IB/srpt: Do not accept invalid initiator port names IB/srp: Avoid that a cable pull can trigger a kernel crash

Ben Hutchings (1):
MIPS: cmpxchg64() and HAVE_VIRT_CPU_ACCOUNTING_GEN don't work for 32-bit SMP

Benjamin Coddington (1):
NFS: Revert "NFS: Move the flock open mode check into nfs_flock()"

Benjamin Poirier (4):
e1000e: Fix error path in link detection
e1000e: Fix return value test
e1000e: Separate signaling for link check/link up
e1000e: Avoid receiver overrun interrupt bursts

Bin Meng (1):
spi-nor: intel-spi: Fix broken software sequencing codes

Bjorn Helgaas (2):
PCI/ASPM: Account for downstream device's Port Common_Mode_Restore_Time PCI/ASPM: Use correct capability pointer to program LTR_L1.2_THRESHOLD

Boris Brezillon (3):
mtd: Avoid probe failures when mtd->dbg.dfs_dir is invalid
mtd: nand: Export nand_reset() symbol
mtd: nand: atmel: Actually use the PM ops

Brent Taylor (1):
mtd: nand: Fix writing mtdoops to nand flash.

Brian King (7):
i40e: Use smp_rmb rather than read_barrier_depends
igb: Use smp_rmb rather than read_barrier_depends
igbvf: Use smp_rmb rather than read_barrier_depends
ixgbevf: Use smp_rmb rather than read_barrier_depends
i40evf: Use smp_rmb rather than read_barrier_depends
fm10k: Use smp_rmb rather than read_barrier_depends
ixgbe: Fix skb list corruption on Power systems

Catalin Marinas (1):
arm64: Implement arch-specific pte_access_permitted()

Christophe Leroy (1):
powerpc: Fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX

Chuck Lever (2):
nfs: Fix ugly referral attributes
svcrdma: Preserve CB send buffer across retransmits

Coly Li (1):

      bcache: check ca->alloc_thread initialized before wake up it

Damien Le Moal (2):
dm zoned: ignore last smaller runt zone
scsi: sd_zbc: Fix sd_zbc_read_zoned_characteristics()

Dan Carpenter (1):
eCryptfs: use after free in ecryptfs_release_messaging()

Dan Williams (5):
libnvdimm, dimm: clear 'locked' status on successful DIMM enable libnvdimm, pfn: make 'resource' attribute only readable by root libnvdimm, namespace: fix label initialization to use valid seq numbers libnvdimm, region : make 'resource' attribute only readable by root libnvdimm, namespace: make 'resource' attribute only readable by root

Daniel Jurgens (1):
IB/core: Only maintain real QPs in the security lists

Dexuan Cui (1):
PCI: hv: Use effective affinity mask

Dick Kennedy (5):
scsi: lpfc: fix pci hot plug crash in timer management routines
scsi: lpfc: fix pci hot plug crash in list_add call
scsi: lpfc: Fix crash receiving ELS while detaching driver
scsi: lpfc: Fix FCP hba_wqidx assignment
scsi: lpfc: Fix oops if nvmet_fc_register_targetport fails

Dmitry V. Levin (2):
uapi: fix linux/tls.h userspace compilation error
uapi: fix linux/rxrpc.h userspace compilation errors

Eric Biggers (4):
lib/mpi: call cond_resched() from mpi_powm() loop
dm bufio: fix integer overflow when limiting maximum cache size
fscrypt: lock mutex before checking for bounce page pool
libceph: don't WARN() if user tries to add invalid key

Greg Edwards (1):
fs: guard_bio_eod() needs to consider partitions

Greg Kroah-Hartman (1):

      Linux 4.14.3

Heiko Carstens (5):
s390: fix transactional execution control register handling s390/noexec: execute kexec datamover without DAT s390/runtime instrumention: fix possible memory corruption s390/guarded storage: fix possible memory corruption s390/disassembler: add missing end marker for e7 table

Henrik Eriksson (1):
ALSA: pcm: update tstamp only if audio_tstamp changed

Hou Tao (1):
dm: fix race between dm_get_from_kobject() and __dm_destroy()

Ihab Zhaika (3):
iwlwifi: add new cards for a000 series
iwlwifi: add new cards for 8265 series
iwlwifi: add new cards for 8260 series

Jaegeuk Kim (1):
f2fs: expose some sectors to user in inline data or dentry case

James Hogan (2):
MIPS: Fix odd fp register warnings with MIPS64r2
MIPS: Fix MIPS64 FP save/restore on 32-bit kernels

Jeff Moyer (1):
dax: fix PMD faults on zero-length files

Joakim Tjernlund (1):
mfd: lpc_ich: Avoton/Rangeley uses SPI_BYT method

Joe Thornber (1):
dm cache: fix race condition in the writeback mode overwrite_bio optimisation

Johan Hovold (5):
serdev: fix registration of second slave irqchip/gic-v3: Fix ppi-partitions lookup
clk: ti: dra7-atl-clock: fix child-node lookups
NFC: fix device-allocation error return
cx231xx-cards: fix NULL-deref on missing association descriptor

John Crispin (1):
MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver

John David Anglin (1):
parisc: Fix validity check of pointer size argument in new CAS implementation

Josef Bacik (3):
nbd: wait uninterruptible for the dead timeout
nbd: don't start req until after the dead connection logic
btrfs: change how we decide to commit transactions during flushing

Joshua Watt (1):
NFS: Fix typo in nomigration mount option

Kailang Yang (2):
ALSA: hda/realtek - Fix ALC275 no sound issue
ALSA: hda/realtek - Fix ALC700 family no sound issue

Ladi Prosek (1):
KVM: nVMX: set IDTR and GDTR limits when loading L1 host state

Larry Finger (1):
rtlwifi: rtl8192ee: Fix memory leak when loading firmware

Loic Poulain (1):
Bluetooth: btqcomsmd: Add support for BD address setup

Luca Coelho (3):
iwlwifi: pcie: sort IDs for the 9000 series for easier comparisons
iwlwifi: fix PCI IDs and configuration mapping for 9000 series
iwlwifi: mvm: support version 7 of the SCAN_REQ_UMAC FW command

Lv Zheng (1):
ACPI / EC: Fix regression related to triggering source of EC event handling

Maciej W. Rozycki (1):
MIPS: Fix an n32 core file generation regset support regression

Marc Zyngier (1):
genirq: Track whether the trigger type has been set

Masahiro Yamada (1):
MIPS: dts: remove bogus bcm96358nb4ser.dtb from dtb-y entry

Masami Hiramatsu (1):
x86/decoder: Add new TEST instruction pattern

Mathias Kresin (2):
MIPS: ralink: Fix MT7628 pinmux
MIPS: ralink: Fix typo in mt7628 pinmux function

Maxime Ripard (3):
ASoC: sun8i-codec: Invert Master / Slave condition
ASoC: sun8i-codec: Fix left and right channels inversion
ASoC: sun8i-codec: Set the BCLK divider

Michael Ellerman (3):
powerpc/perf/imc: Use cpu_to_node() not topology_physical_package_id() powerpc/64s: Fix masking of SRR1 bits on instruction fault powerpc/64s/hash: Fix 512T hint detection to use >= 128T

Michael J. Ruhl (1):
IB/hfi1: Fix incorrect available receive user context count

Michele Baldessari (1):
media: Don't do DMA on stack for firmware upload in the AS102 driver

Mike Snitzer (1):
dm: discard support requires all targets in a table support discards

Miklos Szeredi (4):
fanotify: fix fsnotify_prepare_user_wait() failure
fsnotify: clean up fsnotify_prepare/finish_user_wait()
fsnotify: pin both inode and vfsmount mark
fsnotify: fix pinning group in fsnotify_prepare_user_wait()

Mikulas Patocka (4):
dm integrity: allow unaligned bv_offset
dm crypt: allow unaligned bv_offset
dm: allocate struct mapped_device with kvzalloc
dax: fix general protection fault in dax_alloc_inode

Ming Lei (1):
dm mpath: remove annoying message of 'blk_get_request() returned -11'

Mirko Parthey (1):
MIPS: BCM47XX: Fix LED inversion for WRT54GSv1

Nate Dailey (1):
raid1: prevent freeze_array/wait_all_barriers deadlock

Naveen N. Rao (1):
powerpc/signal: Properly handle return value from uprobe_deny_signal()

Neil Armstrong (1):
ARM64: dts: meson-gxl: Add alternate ARM Trusted Firmware reserved memory zone

NeilBrown (3):
autofs: don't fail mount for transient error
NFS: revalidate "." etc correctly on "open".
md: fix deadlock error in recent patch.

Nicholas Bellinger (6):
iscsi-target: Make TASK_REASSIGN use proper se_cmd->cmd_kref
iscsi-target: Fix non-immediate TMR reference leak
target: Fix QUEUE_FULL + SCSI task attribute handling
target: Fix caw_sem leak in transport_generic_request_failure
target: Fix quiese during transport_write_pending_qf endless loop
target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK

Nicholas Piggin (4):
powerpc/64s/radix: Fix 128TB-512TB virtual address boundary case allocation powerpc/64s/hash: Fix 128TB-512TB virtual address boundary case allocation powerpc/64s/hash: Fix fork() with 512TB process address space powerpc/64s/hash: Allow MAP_FIXED allocations to cross 128TB boundary

Oren Givon (2):
iwlwifi: fix wrong struct for a000 device
iwlwifi: add a new a000 device

Paolo Bonzini (2):
KVM: SVM: obey guest PAT
kvm: vmx: Reinstate support for CPUs without virtual NMI

Parav Pandit (2):
IB/cm: Fix memory corruption in handling CM request IB/core: Avoid crash on pkey enforcement failed in received MADs

Paul E. McKenney (1):
sched: Make resched_cpu() unconditional

Paul Mackerras (1):
KVM: PPC: Book3S HV: Don't call real-mode XICS hypercall handlers if not enabled

Philip Derrin (2):
ARM: 8722/1: mm: make STRICT_KERNEL_RWX effective for LPAE
ARM: 8721/1: mm: dump: check hardware RO bit for LPAE

Rameshwar Prasad Sahu (1):
ata: fixes kernel crash while tracing ata_eh_link_autopsy event

Ricardo Ribalda Delgado (1):
media: v4l2-ctrl: Fix flags field on Control events

Roger Quadros (1):
mtd: nand: omap2: Fix subpage write

Ross Zwisler (2):
ext4: prevent data corruption with inline data + DAX
ext4: prevent data corruption with journaling + DAX

Sasha Neftin (1):
e1000e: fix buffer overrun while the I219 is processing DMA transactions

Sean Young (2):
media: rc: check for integer overflow
media: rc: nec decoder should not send both repeat and keycode

Shaohua Li (1):
md/bitmap: revert a patch

Simon Guinot (1):
net: mvneta: fix handling of the Tx descriptor counter

Stanimir Varbanov (3):
media: venus: fix wrong size on dma_free
media: venus: venc: fix bytesused v4l2_plane field
media: venus: reimplement decoder stop command

Stanislaw Gruszka (1):
rt2x00usb: mark device removed when get ENOENT usb error

Steven Rostedt (Red Hat) (1):
sched/rt: Simplify the IPI based RT balancing logic

Takashi Iwai (6):
ALSA: usb-audio: Add sanity checks to FE parser
ALSA: usb-audio: Fix potential out-of-bound access at parsing SU
ALSA: usb-audio: Add sanity checks in v2 clock parsers
ALSA: timer: Remove kernel warning at compat ioctl error paths
ALSA: hda: Fix too short HDMI/DP chmap reporting
ALSA: hda - Fix yet remaining issue with vmaster 0dB initialization

Theodore Ts'o (1):
ext4: fix interaction between i_size, fallocate, and delalloc after a crash

Thomas Backlund (1):
iwlwifi: fix firmware names for 9000 and A000 series hw

Tobias Jordan (1):
PM / OPP: Add missing of_node_put(np)

Tom Lendacky (1):
x86/boot: Fix boot failure when SMP MP-table is based at 0

Trond Myklebust (1):
SUNRPC: Fix tracepoint storage issues with svc_recv and svc_rqst_status

Tuomas Tynkkynen (3):
9p: Fix missing commas in mount options
fs/9p: Compare qid.path in v9fs_test_inode
net/9p: Switch to wait_event_killable()

Vadim Lomovtsev (2):
PCI: Set Cavium ACS capability quirk flags to assert RR/CR/SV/UF
PCI: Apply Cavium ThunderX ACS quirk to more Root Ports

Vasily Averin (1):
lockd: double unregister of inetaddr notifiers

Vasily Gorbik (1):
s390/disassembler: increase show_code buffer size

Vijendar Mukunda (1):
ALSA: hda: Add Raven PCI ID

Ville Syrjälä (1):
ACPI / PM: Fix acpi_pm_notifier_lock vs flush_workqueue() deadlock

Viresh Kumar (1):
cpufreq: schedutil: Reset cached_raw_freq when not in sync with next_freq

Vitaly Wool (1):
mm/z3fold.c: use kref to prevent page free/compact race

Vivek Goyal (1):
ovl: Put upperdentry if ovl_check_origin() fails

Xiaolei Li (1):
mtd: nand: mtk: fix infinite ECC decode IRQ issue

tangwenji (2):
target: fix null pointer regression in core_tmr_drain_tmr_list
target: fix buffer offset in core_scsi3_pri_read_full_status

author maintainer
#1 lore raw
Makefile +1 -1
index 75d89dc2b94a..ede4de0d8634 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 14
-SUBLEVEL = 2
+SUBLEVEL = 3
 EXTRAVERSION =
 NAME = Petit Gorille
 
arch/arm/mm/dump.c +2 -2
index 35ff45470dbf..fc3b44028cfb 100644
@@ -129,8 +129,8 @@ static const struct prot_bits section_bits[] = {
 		.val	= PMD_SECT_USER,
 		.set	= "USR",
 	}, {
-		.mask	= L_PMD_SECT_RDONLY,
-		.val	= L_PMD_SECT_RDONLY,
+		.mask	= L_PMD_SECT_RDONLY | PMD_SECT_AP2,
+		.val	= L_PMD_SECT_RDONLY | PMD_SECT_AP2,
 		.set	= "ro",
 		.clear	= "RW",
 #elif __LINUX_ARM_ARCH__ >= 6
arch/arm/mm/init.c +2 -2
index ad80548325fe..0f6d1537f330 100644
@@ -639,8 +639,8 @@ static struct section_perm ro_perms[] = {
 		.start  = (unsigned long)_stext,
 		.end    = (unsigned long)__init_begin,
 #ifdef CONFIG_ARM_LPAE
-		.mask   = ~L_PMD_SECT_RDONLY,
-		.prot   = L_PMD_SECT_RDONLY,
+		.mask   = ~(L_PMD_SECT_RDONLY | PMD_SECT_AP2),
+		.prot   = L_PMD_SECT_RDONLY | PMD_SECT_AP2,
 #else
 		.mask   = ~(PMD_SECT_APX | PMD_SECT_AP_WRITE),
 		.prot   = PMD_SECT_APX | PMD_SECT_AP_WRITE,
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +8 -0
index d8dd3298b15c..fb8d76a17bc5 100644
@@ -49,6 +49,14 @@
 
 / {
 	compatible = "amlogic,meson-gxl";
+
+	reserved-memory {
+		/* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
+		secmon_reserved_alt: secmon@05000000 {
+			reg = <0x0 0x05000000 0x0 0x300000>;
+			no-map;
+		};
+	};
 };
 
 &ethmac {
arch/arm64/include/asm/pgtable.h +14 -0
index b46e54c2399b..c9530b5b5ca8 100644
@@ -98,6 +98,8 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
 	((pte_val(pte) & (PTE_VALID | PTE_USER | PTE_UXN)) == (PTE_VALID | PTE_UXN))
 #define pte_valid_young(pte) \
 	((pte_val(pte) & (PTE_VALID | PTE_AF)) == (PTE_VALID | PTE_AF))
+#define pte_valid_user(pte) \
+	((pte_val(pte) & (PTE_VALID | PTE_USER)) == (PTE_VALID | PTE_USER))
 
 /*
  * Could the pte be present in the TLB? We must check mm_tlb_flush_pending
@@ -107,6 +109,18 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
 #define pte_accessible(mm, pte)	\
 	(mm_tlb_flush_pending(mm) ? pte_present(pte) : pte_valid_young(pte))
 
+/*
+ * p??_access_permitted() is true for valid user mappings (subject to the
+ * write permission check) other than user execute-only which do not have the
+ * PTE_USER bit set. PROT_NONE mappings do not have the PTE_VALID bit set.
+ */
+#define pte_access_permitted(pte, write) \
+	(pte_valid_user(pte) && (!(write) || pte_write(pte)))
+#define pmd_access_permitted(pmd, write) \
+	(pte_access_permitted(pmd_pte(pmd), (write)))
+#define pud_access_permitted(pud, write) \
+	(pte_access_permitted(pud_pte(pud), (write)))
+
 static inline pte_t clear_pte_bit(pte_t pte, pgprot_t prot)
 {
 	pte_val(pte) &= ~pgprot_val(prot);
arch/mips/Kconfig +1 -1
index 5d3284d20678..c3d798b44030 100644
@@ -65,7 +65,7 @@ config MIPS
 	select HAVE_PERF_EVENTS
 	select HAVE_REGS_AND_STACK_ACCESS_API
 	select HAVE_SYSCALL_TRACEPOINTS
-	select HAVE_VIRT_CPU_ACCOUNTING_GEN
+	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
 	select IRQ_FORCED_THREADING
 	select MODULES_USE_ELF_RELA if MODULES && 64BIT
 	select MODULES_USE_ELF_REL if MODULES
arch/mips/bcm47xx/leds.c +1 -1
index d4f2407a42c6..8307a8a02667 100644
@@ -331,7 +331,7 @@ bcm47xx_leds_linksys_wrt54g3gv2[] __initconst = {
 /* Verified on: WRT54GS V1.0 */
 static const struct gpio_led
 bcm47xx_leds_linksys_wrt54g_type_0101[] __initconst = {
-	BCM47XX_GPIO_LED(0, "green", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF),
+	BCM47XX_GPIO_LED(0, "green", "wlan", 1, LEDS_GPIO_DEFSTATE_OFF),
 	BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON),
 	BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF),
 };
arch/mips/boot/dts/brcm/Makefile +0 -1
index 9e09cc4556b3..398994312361 100644
@@ -23,7 +23,6 @@ dtb-$(CONFIG_DT_NONE) += \
 	bcm63268-comtrend-vr-3032u.dtb \
 	bcm93384wvg.dtb \
 	bcm93384wvg_viper.dtb \
-	bcm96358nb4ser.dtb \
 	bcm96368mvwg.dtb \
 	bcm9ejtagprb.dtb \
 	bcm97125cbmb.dtb \
arch/mips/include/asm/asmmacro.h +9 -7
index 83054f79f72a..feb069cbf44e 100644
@@ -19,6 +19,9 @@
 #include <asm/asmmacro-64.h>
 #endif
 
+/* preprocessor replaces the fp in ".set fp=64" with $30 otherwise */
+#undef fp
+
 /*
  * Helper macros for generating raw instruction encodings.
  */
@@ -105,6 +108,7 @@
 	.macro	fpu_save_16odd thread
 	.set	push
 	.set	mips64r2
+	.set	fp=64
 	SET_HARDFLOAT
 	sdc1	$f1,  THREAD_FPR1(\thread)
 	sdc1	$f3,  THREAD_FPR3(\thread)
@@ -126,8 +130,8 @@
 	.endm
 
 	.macro	fpu_save_double thread status tmp
-#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2) || \
-		defined(CONFIG_CPU_MIPS32_R6)
+#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPSR2) || \
+		defined(CONFIG_CPU_MIPSR6)
 	sll	\tmp, \status, 5
 	bgez	\tmp, 10f
 	fpu_save_16odd \thread
@@ -163,6 +167,7 @@
 	.macro	fpu_restore_16odd thread
 	.set	push
 	.set	mips64r2
+	.set	fp=64
 	SET_HARDFLOAT
 	ldc1	$f1,  THREAD_FPR1(\thread)
 	ldc1	$f3,  THREAD_FPR3(\thread)
@@ -184,8 +189,8 @@
 	.endm
 
 	.macro	fpu_restore_double thread status tmp
-#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2) || \
-		defined(CONFIG_CPU_MIPS32_R6)
+#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPSR2) || \
+		defined(CONFIG_CPU_MIPSR6)
 	sll	\tmp, \status, 5
 	bgez	\tmp, 10f				# 16 register mode?
 
@@ -234,9 +239,6 @@
 	.endm
 
 #ifdef TOOLCHAIN_SUPPORTS_MSA
-/* preprocessor replaces the fp in ".set fp=64" with $30 otherwise */
-#undef fp
-
 	.macro	_cfcmsa	rd, cs
 	.set	push
 	.set	mips32r2
arch/mips/include/asm/cmpxchg.h +2 -0
index 7e25c5cc353a..89e9fb7976fe 100644
@@ -204,8 +204,10 @@ static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
 #else
 #include <asm-generic/cmpxchg-local.h>
 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n))
+#ifndef CONFIG_SMP
 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n))
 #endif
+#endif
 
 #undef __scbeqz
 
arch/mips/kernel/ptrace.c +17 -0
index 1395654cfc8d..5a09c2901a76 100644
@@ -618,6 +618,19 @@ static const struct user_regset_view user_mips64_view = {
 	.n		= ARRAY_SIZE(mips64_regsets),
 };
 
+#ifdef CONFIG_MIPS32_N32
+
+static const struct user_regset_view user_mipsn32_view = {
+	.name		= "mipsn32",
+	.e_flags	= EF_MIPS_ABI2,
+	.e_machine	= ELF_ARCH,
+	.ei_osabi	= ELF_OSABI,
+	.regsets	= mips64_regsets,
+	.n		= ARRAY_SIZE(mips64_regsets),
+};
+
+#endif /* CONFIG_MIPS32_N32 */
+
 #endif /* CONFIG_64BIT */
 
 const struct user_regset_view *task_user_regset_view(struct task_struct *task)
@@ -628,6 +641,10 @@ const struct user_regset_view *task_user_regset_view(struct task_struct *task)
 #ifdef CONFIG_MIPS32_O32
 	if (test_tsk_thread_flag(task, TIF_32BIT_REGS))
 		return &user_mips_view;
+#endif
+#ifdef CONFIG_MIPS32_N32
+	if (test_tsk_thread_flag(task, TIF_32BIT_ADDR))
+		return &user_mipsn32_view;
 #endif
 	return &user_mips64_view;
 #endif
arch/mips/kernel/r4k_fpu.S +10 -10
index 0a83b1708b3c..8e3a6020c613 100644
@@ -40,8 +40,8 @@
  */
 LEAF(_save_fp)
 EXPORT_SYMBOL(_save_fp)
-#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2) || \
-		defined(CONFIG_CPU_MIPS32_R6)
+#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPSR2) || \
+		defined(CONFIG_CPU_MIPSR6)
 	mfc0	t0, CP0_STATUS
 #endif
 	fpu_save_double a0 t0 t1		# clobbers t1
@@ -52,8 +52,8 @@ EXPORT_SYMBOL(_save_fp)
  * Restore a thread's fp context.
  */
 LEAF(_restore_fp)
-#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2) || \
-		defined(CONFIG_CPU_MIPS32_R6)
+#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPSR2) || \
+		defined(CONFIG_CPU_MIPSR6)
 	mfc0	t0, CP0_STATUS
 #endif
 	fpu_restore_double a0 t0 t1		# clobbers t1
@@ -246,11 +246,11 @@ LEAF(_save_fp_context)
 	cfc1	t1, fcr31
 	.set	pop
 
-#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2) || \
-		defined(CONFIG_CPU_MIPS32_R6)
+#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPSR2) || \
+		defined(CONFIG_CPU_MIPSR6)
 	.set	push
 	SET_HARDFLOAT
-#ifdef CONFIG_CPU_MIPS32_R2
+#ifdef CONFIG_CPU_MIPSR2
 	.set	mips32r2
 	.set	fp=64
 	mfc0	t0, CP0_STATUS
@@ -314,11 +314,11 @@ LEAF(_save_fp_context)
 LEAF(_restore_fp_context)
 	EX	lw t1, 0(a1)
 
-#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPS32_R2)  || \
-		defined(CONFIG_CPU_MIPS32_R6)
+#if defined(CONFIG_64BIT) || defined(CONFIG_CPU_MIPSR2)  || \
+		defined(CONFIG_CPU_MIPSR6)
 	.set	push
 	SET_HARDFLOAT
-#ifdef CONFIG_CPU_MIPS32_R2
+#ifdef CONFIG_CPU_MIPSR2
 	.set	mips32r2
 	.set	fp=64
 	mfc0	t0, CP0_STATUS
arch/mips/math-emu/cp1emu.c +14 -14
index 16d9ef5a78c5..6f57212f5659 100644
@@ -1795,7 +1795,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			SPFROMREG(fs, MIPSInst_FS(ir));
 			SPFROMREG(fd, MIPSInst_FD(ir));
 			rv.s = ieee754sp_maddf(fd, fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fmsubf_op: {
@@ -1809,7 +1809,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			SPFROMREG(fs, MIPSInst_FS(ir));
 			SPFROMREG(fd, MIPSInst_FD(ir));
 			rv.s = ieee754sp_msubf(fd, fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case frint_op: {
@@ -1834,7 +1834,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			SPFROMREG(fs, MIPSInst_FS(ir));
 			rv.w = ieee754sp_2008class(fs);
 			rfmt = w_fmt;
-			break;
+			goto copcsr;
 		}
 
 		case fmin_op: {
@@ -1847,7 +1847,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			SPFROMREG(ft, MIPSInst_FT(ir));
 			SPFROMREG(fs, MIPSInst_FS(ir));
 			rv.s = ieee754sp_fmin(fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fmina_op: {
@@ -1860,7 +1860,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			SPFROMREG(ft, MIPSInst_FT(ir));
 			SPFROMREG(fs, MIPSInst_FS(ir));
 			rv.s = ieee754sp_fmina(fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fmax_op: {
@@ -1873,7 +1873,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			SPFROMREG(ft, MIPSInst_FT(ir));
 			SPFROMREG(fs, MIPSInst_FS(ir));
 			rv.s = ieee754sp_fmax(fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fmaxa_op: {
@@ -1886,7 +1886,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			SPFROMREG(ft, MIPSInst_FT(ir));
 			SPFROMREG(fs, MIPSInst_FS(ir));
 			rv.s = ieee754sp_fmaxa(fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fabs_op:
@@ -2165,7 +2165,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			DPFROMREG(fs, MIPSInst_FS(ir));
 			DPFROMREG(fd, MIPSInst_FD(ir));
 			rv.d = ieee754dp_maddf(fd, fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fmsubf_op: {
@@ -2179,7 +2179,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			DPFROMREG(fs, MIPSInst_FS(ir));
 			DPFROMREG(fd, MIPSInst_FD(ir));
 			rv.d = ieee754dp_msubf(fd, fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case frint_op: {
@@ -2204,7 +2204,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			DPFROMREG(fs, MIPSInst_FS(ir));
 			rv.l = ieee754dp_2008class(fs);
 			rfmt = l_fmt;
-			break;
+			goto copcsr;
 		}
 
 		case fmin_op: {
@@ -2217,7 +2217,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			DPFROMREG(ft, MIPSInst_FT(ir));
 			DPFROMREG(fs, MIPSInst_FS(ir));
 			rv.d = ieee754dp_fmin(fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fmina_op: {
@@ -2230,7 +2230,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			DPFROMREG(ft, MIPSInst_FT(ir));
 			DPFROMREG(fs, MIPSInst_FS(ir));
 			rv.d = ieee754dp_fmina(fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fmax_op: {
@@ -2243,7 +2243,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			DPFROMREG(ft, MIPSInst_FT(ir));
 			DPFROMREG(fs, MIPSInst_FS(ir));
 			rv.d = ieee754dp_fmax(fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fmaxa_op: {
@@ -2256,7 +2256,7 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,
 			DPFROMREG(ft, MIPSInst_FT(ir));
 			DPFROMREG(fs, MIPSInst_FS(ir));
 			rv.d = ieee754dp_fmaxa(fs, ft);
-			break;
+			goto copcsr;
 		}
 
 		case fabs_op:
arch/mips/pci/pci-mt7620.c +1 -1
index 90fba9bf98da..27ac00c36bc0 100644
@@ -121,7 +121,7 @@ static int wait_pciephy_busy(void)
 		else
 			break;
 		if (retry++ > WAITRETRY_MAX) {
-			printk(KERN_WARN "PCIE-PHY retry failed.\n");
+			pr_warn("PCIE-PHY retry failed.\n");
 			return -1;
 		}
 	}
arch/mips/ralink/mt7620.c +2 -2
index 9be8b08ae46b..41b71c4352c2 100644
@@ -145,8 +145,8 @@ static struct rt2880_pmx_func i2c_grp_mt7628[] = {
 	FUNC("i2c", 0, 4, 2),
 };
 
-static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("reclk", 0, 36, 1) };
-static struct rt2880_pmx_func perst_grp_mt7628[] = { FUNC("perst", 0, 37, 1) };
+static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("refclk", 0, 37, 1) };
+static struct rt2880_pmx_func perst_grp_mt7628[] = { FUNC("perst", 0, 36, 1) };
 static struct rt2880_pmx_func wdt_grp_mt7628[] = { FUNC("wdt", 0, 38, 1) };
 static struct rt2880_pmx_func spi_grp_mt7628[] = { FUNC("spi", 0, 7, 4) };
 
arch/parisc/kernel/syscall.S +3 -3
index 41e60a9c7db2..e775f80ae28c 100644
@@ -690,15 +690,15 @@ cas_action:
 	/* ELF32 Process entry path */
 lws_compare_and_swap_2:
 #ifdef CONFIG_64BIT
-	/* Clip the input registers */
+	/* Clip the input registers. We don't need to clip %r23 as we
+	   only use it for word operations */
 	depdi	0, 31, 32, %r26
 	depdi	0, 31, 32, %r25
 	depdi	0, 31, 32, %r24
-	depdi	0, 31, 32, %r23
 #endif
 
 	/* Check the validity of the size pointer */
-	subi,>>= 4, %r23, %r0
+	subi,>>= 3, %r23, %r0
 	b,n	lws_exit_nosys
 
 	/* Jump to the functions which will load the old and new values into
arch/powerpc/kernel/exceptions-64s.S +1 -1
index 1c80bd292e48..06598142d755 100644
@@ -542,7 +542,7 @@ EXC_COMMON_BEGIN(instruction_access_common)
 	RECONCILE_IRQ_STATE(r10, r11)
 	ld	r12,_MSR(r1)
 	ld	r3,_NIP(r1)
-	andis.	r4,r12,DSISR_BAD_FAULT_64S@h
+	andis.	r4,r12,DSISR_SRR1_MATCH_64S@h
 	li	r5,0x400
 	std	r3,_DAR(r1)
 	std	r4,_DSISR(r1)
arch/powerpc/kernel/signal.c +1 -1
index e9436c5e1e09..3d7539b90010 100644
@@ -103,7 +103,7 @@ static void check_syscall_restart(struct pt_regs *regs, struct k_sigaction *ka,
 static void do_signal(struct task_struct *tsk)
 {
 	sigset_t *oldset = sigmask_to_save();
-	struct ksignal ksig;
+	struct ksignal ksig = { .sig = 0 };
 	int ret;
 	int is32 = is_32bit_task();
 
arch/powerpc/kvm/book3s_hv_builtin.c +12 -0
index 90644db9d38e..8e0cf8f186df 100644
@@ -529,6 +529,8 @@ static inline bool is_rm(void)
 
 unsigned long kvmppc_rm_h_xirr(struct kvm_vcpu *vcpu)
 {
+	if (!kvmppc_xics_enabled(vcpu))
+		return H_TOO_HARD;
 	if (xive_enabled()) {
 		if (is_rm())
 			return xive_rm_h_xirr(vcpu);
@@ -541,6 +543,8 @@ unsigned long kvmppc_rm_h_xirr(struct kvm_vcpu *vcpu)
 
 unsigned long kvmppc_rm_h_xirr_x(struct kvm_vcpu *vcpu)
 {
+	if (!kvmppc_xics_enabled(vcpu))
+		return H_TOO_HARD;
 	vcpu->arch.gpr[5] = get_tb();
 	if (xive_enabled()) {
 		if (is_rm())
@@ -554,6 +558,8 @@ unsigned long kvmppc_rm_h_xirr_x(struct kvm_vcpu *vcpu)
 
 unsigned long kvmppc_rm_h_ipoll(struct kvm_vcpu *vcpu, unsigned long server)
 {
+	if (!kvmppc_xics_enabled(vcpu))
+		return H_TOO_HARD;
 	if (xive_enabled()) {
 		if (is_rm())
 			return xive_rm_h_ipoll(vcpu, server);
@@ -567,6 +573,8 @@ unsigned long kvmppc_rm_h_ipoll(struct kvm_vcpu *vcpu, unsigned long server)
 int kvmppc_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server,
 		    unsigned long mfrr)
 {
+	if (!kvmppc_xics_enabled(vcpu))
+		return H_TOO_HARD;
 	if (xive_enabled()) {
 		if (is_rm())
 			return xive_rm_h_ipi(vcpu, server, mfrr);
@@ -579,6 +587,8 @@ int kvmppc_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server,
 
 int kvmppc_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr)
 {
+	if (!kvmppc_xics_enabled(vcpu))
+		return H_TOO_HARD;
 	if (xive_enabled()) {
 		if (is_rm())
 			return xive_rm_h_cppr(vcpu, cppr);
@@ -591,6 +601,8 @@ int kvmppc_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr)
 
 int kvmppc_rm_h_eoi(struct kvm_vcpu *vcpu, unsigned long xirr)
 {
+	if (!kvmppc_xics_enabled(vcpu))
+		return H_TOO_HARD;
 	if (xive_enabled()) {
 		if (is_rm())
 			return xive_rm_h_eoi(vcpu, xirr);
arch/powerpc/lib/code-patching.c +2 -4
index c9de03e0c1f1..d469224c4ada 100644
@@ -21,6 +21,7 @@
 #include <asm/tlbflush.h>
 #include <asm/page.h>
 #include <asm/code-patching.h>
+#include <asm/setup.h>
 
 static int __patch_instruction(unsigned int *addr, unsigned int instr)
 {
@@ -146,11 +147,8 @@ int patch_instruction(unsigned int *addr, unsigned int instr)
 	 * During early early boot patch_instruction is called
 	 * when text_poke_area is not ready, but we still need
 	 * to allow patching. We just do the plain old patching
-	 * We use slab_is_available and per cpu read * via this_cpu_read
-	 * of text_poke_area. Per-CPU areas might not be up early
-	 * this can create problems with just using this_cpu_read()
 	 */
-	if (!slab_is_available() || !this_cpu_read(text_poke_area))
+	if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
 		return __patch_instruction(addr, instr);
 
 	local_irq_save(flags);
arch/powerpc/mm/hugetlbpage-radix.c +17 -9
index 558e9d3891bf..bd022d16745c 100644
@@ -49,17 +49,28 @@ radix__hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
 	struct mm_struct *mm = current->mm;
 	struct vm_area_struct *vma;
 	struct hstate *h = hstate_file(file);
+	int fixed = (flags & MAP_FIXED);
+	unsigned long high_limit;
 	struct vm_unmapped_area_info info;
 
-	if (unlikely(addr > mm->context.addr_limit && addr < TASK_SIZE))
-		mm->context.addr_limit = TASK_SIZE;
+	high_limit = DEFAULT_MAP_WINDOW;
+	if (addr >= high_limit || (fixed && (addr + len > high_limit)))
+		high_limit = TASK_SIZE;
 
 	if (len & ~huge_page_mask(h))
 		return -EINVAL;
-	if (len > mm->task_size)
+	if (len > high_limit)
 		return -ENOMEM;
+	if (fixed) {
+		if (addr > high_limit - len)
+			return -ENOMEM;
+	}
 
-	if (flags & MAP_FIXED) {
+	if (unlikely(addr > mm->context.addr_limit &&
+		     mm->context.addr_limit != TASK_SIZE))
+		mm->context.addr_limit = TASK_SIZE;
+
+	if (fixed) {
 		if (prepare_hugepage_range(file, addr, len))
 			return -EINVAL;
 		return addr;
@@ -68,7 +79,7 @@ radix__hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
 	if (addr) {
 		addr = ALIGN(addr, huge_page_size(h));
 		vma = find_vma(mm, addr);
-		if (mm->task_size - len >= addr &&
+		if (high_limit - len >= addr &&
 		    (!vma || addr + len <= vm_start_gap(vma)))
 			return addr;
 	}
@@ -79,12 +90,9 @@ radix__hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
 	info.flags = VM_UNMAPPED_AREA_TOPDOWN;
 	info.length = len;
 	info.low_limit = PAGE_SIZE;
-	info.high_limit = current->mm->mmap_base;
+	info.high_limit = mm->mmap_base + (high_limit - DEFAULT_MAP_WINDOW);
 	info.align_mask = PAGE_MASK & ~huge_page_mask(h);
 	info.align_offset = 0;
 
-	if (addr > DEFAULT_MAP_WINDOW)
-		info.high_limit += mm->context.addr_limit - DEFAULT_MAP_WINDOW;
-
 	return vm_unmapped_area(&info);
 }
arch/powerpc/mm/mmap.c +33 -22

105 lines not on this page · raw message

arch/powerpc/mm/mmu_context_book3s64.c +4 -4
index 05e15386d4cb..b94fb62e60fd 100644
@@ -93,11 +93,11 @@ static int hash__init_new_context(struct mm_struct *mm)
 		return index;
 
 	/*
-	 * We do switch_slb() early in fork, even before we setup the
-	 * mm->context.addr_limit. Default to max task size so that we copy the
-	 * default values to paca which will help us to handle slb miss early.
+	 * In the case of exec, use the default limit,
+	 * otherwise inherit it from the mm we are duplicating.
 	 */
-	mm->context.addr_limit = DEFAULT_MAP_WINDOW_USER64;
+	if (!mm->context.addr_limit)
+		mm->context.addr_limit = DEFAULT_MAP_WINDOW_USER64;
 
 	/*
 	 * The old code would re-promote on fork, we don't do that when using
arch/powerpc/mm/pgtable-radix.c +10 -0
index 39c252b54d16..cfbbee941a76 100644
@@ -169,6 +169,16 @@ void radix__mark_rodata_ro(void)
 {
 	unsigned long start, end;
 
+	/*
+	 * mark_rodata_ro() will mark itself as !writable at some point.
+	 * Due to DD1 workaround in radix__pte_update(), we'll end up with
+	 * an invalid pte and the system will crash quite severly.
+	 */
+	if (cpu_has_feature(CPU_FTR_POWER9_DD1)) {
+		pr_warn("Warning: Unable to mark rodata read only on P9 DD1\n");
+		return;
+	}
+
 	start = (unsigned long)_stext;
 	end = (unsigned long)__init_begin;
 
arch/powerpc/mm/slice.c +24 -26

90 lines not on this page · raw message

arch/powerpc/perf/imc-pmu.c +6 -6
index 36344117c680..cf64e16f92c2 100644
@@ -467,7 +467,7 @@ static int nest_imc_event_init(struct perf_event *event)
 	 * Nest HW counter memory resides in a per-chip reserve-memory (HOMER).
 	 * Get the base memory addresss for this cpu.
 	 */
-	chip_id = topology_physical_package_id(event->cpu);
+	chip_id = cpu_to_chip_id(event->cpu);
 	pcni = pmu->mem_info;
 	do {
 		if (pcni->id == chip_id) {
@@ -524,19 +524,19 @@ static int nest_imc_event_init(struct perf_event *event)
  */
 static int core_imc_mem_init(int cpu, int size)
 {
-	int phys_id, rc = 0, core_id = (cpu / threads_per_core);
+	int nid, rc = 0, core_id = (cpu / threads_per_core);
 	struct imc_mem_info *mem_info;
 
 	/*
 	 * alloc_pages_node() will allocate memory for core in the
 	 * local node only.
 	 */
-	phys_id = topology_physical_package_id(cpu);
+	nid = cpu_to_node(cpu);
 	mem_info = &core_imc_pmu->mem_info[core_id];
 	mem_info->id = core_id;
 
 	/* We need only vbase for core counters */
-	mem_info->vbase = page_address(alloc_pages_node(phys_id,
+	mem_info->vbase = page_address(alloc_pages_node(nid,
 					  GFP_KERNEL | __GFP_ZERO | __GFP_THISNODE |
 					  __GFP_NOWARN, get_order(size)));
 	if (!mem_info->vbase)
@@ -797,14 +797,14 @@ static int core_imc_event_init(struct perf_event *event)
 static int thread_imc_mem_alloc(int cpu_id, int size)
 {
 	u64 ldbar_value, *local_mem = per_cpu(thread_imc_mem, cpu_id);
-	int phys_id = topology_physical_package_id(cpu_id);
+	int nid = cpu_to_node(cpu_id);
 
 	if (!local_mem) {
 		/*
 		 * This case could happen only once at start, since we dont
 		 * free the memory in cpu offline path.
 		 */
-		local_mem = page_address(alloc_pages_node(phys_id,
+		local_mem = page_address(alloc_pages_node(nid,
 				  GFP_KERNEL | __GFP_ZERO | __GFP_THISNODE |
 				  __GFP_NOWARN, get_order(size)));
 		if (!local_mem)
arch/s390/include/asm/switch_to.h +1 -1
index c21fe1d57c00..ec7b476c1ac5 100644
@@ -37,8 +37,8 @@ static inline void restore_access_regs(unsigned int *acrs)
 		save_ri_cb(prev->thread.ri_cb);				\
 		save_gs_cb(prev->thread.gs_cb);				\
 	}								\
+	update_cr_regs(next);						\
 	if (next->mm) {							\
-		update_cr_regs(next);					\
 		set_cpu_flag(CIF_FPU);					\
 		restore_access_regs(&next->thread.acrs[0]);		\
 		restore_ri_cb(next->thread.ri_cb, prev->thread.ri_cb);	\
arch/s390/kernel/dis.c +3 -2
index f7e82302a71e..2394557653d5 100644
@@ -1548,6 +1548,7 @@ static struct s390_insn opcode_e7[] = {
 	{ "vfsq", 0xce, INSTR_VRR_VV000MM },
 	{ "vfs", 0xe2, INSTR_VRR_VVV00MM },
 	{ "vftci", 0x4a, INSTR_VRI_VVIMM },
+	{ "", 0, INSTR_INVALID }
 };
 
 static struct s390_insn opcode_eb[] = {
@@ -1953,7 +1954,7 @@ void show_code(struct pt_regs *regs)
 {
 	char *mode = user_mode(regs) ? "User" : "Krnl";
 	unsigned char code[64];
-	char buffer[64], *ptr;
+	char buffer[128], *ptr;
 	mm_segment_t old_fs;
 	unsigned long addr;
 	int start, end, opsize, hops, i;
@@ -2016,7 +2017,7 @@ void show_code(struct pt_regs *regs)
 		start += opsize;
 		pr_cont("%s", buffer);
 		ptr = buffer;
-		ptr += sprintf(ptr, "\n          ");
+		ptr += sprintf(ptr, "\n\t  ");
 		hops++;
 	}
 	pr_cont("\n");
arch/s390/kernel/early.c +3 -1
index b945448b9eae..f7b280f0ab16 100644
@@ -375,8 +375,10 @@ static __init void detect_machine_facilities(void)
 		S390_lowcore.machine_flags |= MACHINE_FLAG_IDTE;
 	if (test_facility(40))
 		S390_lowcore.machine_flags |= MACHINE_FLAG_LPP;
-	if (test_facility(50) && test_facility(73))
+	if (test_facility(50) && test_facility(73)) {
 		S390_lowcore.machine_flags |= MACHINE_FLAG_TE;
+		__ctl_set_bit(0, 55);
+	}
 	if (test_facility(51))
 		S390_lowcore.machine_flags |= MACHINE_FLAG_TLB_LC;
 	if (test_facility(129)) {
arch/s390/kernel/guarded_storage.c +2 -0
index bff39b66c9ff..9ee794e14f33 100644
@@ -14,9 +14,11 @@
 
 void exit_thread_gs(void)
 {
+	preempt_disable();
 	kfree(current->thread.gs_cb);
 	kfree(current->thread.gs_bc_cb);
 	current->thread.gs_cb = current->thread.gs_bc_cb = NULL;
+	preempt_enable();
 }
 
 static int gs_enable(void)
arch/s390/kernel/machine_kexec.c +1 -0
index b0ba2c26b45e..d6f7782e75c9 100644
@@ -269,6 +269,7 @@ static void __do_machine_kexec(void *data)
 	s390_reset_system();
 	data_mover = (relocate_kernel_t) page_to_phys(image->control_code_page);
 
+	__arch_local_irq_stnsm(0xfb); /* disable DAT - avoid no-execute */
 	/* Call the moving routine */
 	(*data_mover)(&image->head, image->start);
 
arch/s390/kernel/process.c +1 -0
index a4a84fb08046..203b7cd7c348 100644
@@ -100,6 +100,7 @@ int copy_thread_tls(unsigned long clone_flags, unsigned long new_stackp,
 	memset(&p->thread.per_user, 0, sizeof(p->thread.per_user));
 	memset(&p->thread.per_event, 0, sizeof(p->thread.per_event));
 	clear_tsk_thread_flag(p, TIF_SINGLE_STEP);
+	p->thread.per_flags = 0;
 	/* Initialize per thread user and system timer values */
 	p->thread.user_timer = 0;
 	p->thread.guest_timer = 0;
arch/s390/kernel/relocate_kernel.S +0 -3
index ca37e5d5b40c..9c2c96da23d0 100644
@@ -29,7 +29,6 @@
 ENTRY(relocate_kernel)
 		basr	%r13,0		# base address
 	.base:
-		stnsm	sys_msk-.base(%r13),0xfb	# disable DAT
 		stctg	%c0,%c15,ctlregs-.base(%r13)
 		stmg	%r0,%r15,gprregs-.base(%r13)
 		lghi	%r0,3
@@ -103,8 +102,6 @@ ENTRY(relocate_kernel)
 		.align	8
 	load_psw:
 		.long	0x00080000,0x80000000
-	sys_msk:
-		.quad	0
 	ctlregs:
 		.rept	16
 		.quad	0
arch/s390/kernel/runtime_instr.c +2 -2
index 32aefb215e59..d85c64821a6b 100644
@@ -50,11 +50,13 @@ void exit_thread_runtime_instr(void)
 {
 	struct task_struct *task = current;
 
+	preempt_disable();
 	if (!task->thread.ri_cb)
 		return;
 	disable_runtime_instr();
 	kfree(task->thread.ri_cb);
 	task->thread.ri_cb = NULL;
+	preempt_enable();
 }
 
 SYSCALL_DEFINE1(s390_runtime_instr, int, command)
@@ -65,9 +67,7 @@ SYSCALL_DEFINE1(s390_runtime_instr, int, command)
 		return -EOPNOTSUPP;
 
 	if (command == S390_RUNTIME_INSTR_STOP) {
-		preempt_disable();
 		exit_thread_runtime_instr();
-		preempt_enable();
 		return 0;
 	}
 
arch/x86/entry/entry_64.S +10 -4
index bcfc5668dcb2..518d9286b3d1 100644
@@ -51,15 +51,19 @@ ENTRY(native_usergs_sysret64)
 END(native_usergs_sysret64)
 #endif /* CONFIG_PARAVIRT */
 
-.macro TRACE_IRQS_IRETQ
+.macro TRACE_IRQS_FLAGS flags:req
 #ifdef CONFIG_TRACE_IRQFLAGS
-	bt	$9, EFLAGS(%rsp)		/* interrupts off? */
+	bt	$9, \flags		/* interrupts off? */
 	jnc	1f
 	TRACE_IRQS_ON
 1:
 #endif
 .endm
 
+.macro TRACE_IRQS_IRETQ
+	TRACE_IRQS_FLAGS EFLAGS(%rsp)
+.endm
+
 /*
  * When dynamic function tracer is enabled it will add a breakpoint
  * to all locations that it is about to modify, sync CPUs, update
@@ -148,8 +152,6 @@ ENTRY(entry_SYSCALL_64)
 	movq	%rsp, PER_CPU_VAR(rsp_scratch)
 	movq	PER_CPU_VAR(cpu_current_top_of_stack), %rsp
 
-	TRACE_IRQS_OFF
-
 	/* Construct struct pt_regs on stack */
 	pushq	$__USER_DS			/* pt_regs->ss */
 	pushq	PER_CPU_VAR(rsp_scratch)	/* pt_regs->sp */
@@ -170,6 +172,8 @@ GLOBAL(entry_SYSCALL_64_after_hwframe)
 	sub	$(6*8), %rsp			/* pt_regs->bp, bx, r12-15 not saved */
 	UNWIND_HINT_REGS extra=0
 
+	TRACE_IRQS_OFF
+
 	/*
 	 * If we need to do entry work or if we guess we'll need to do
 	 * exit work, go straight to the slow path.
@@ -923,11 +927,13 @@ ENTRY(native_load_gs_index)
 	FRAME_BEGIN
 	pushfq
 	DISABLE_INTERRUPTS(CLBR_ANY & ~CLBR_RDI)
+	TRACE_IRQS_OFF
 	SWAPGS
 .Lgs_change:
 	movl	%edi, %gs
 2:	ALTERNATIVE "", "mfence", X86_BUG_SWAPGS_FENCE
 	SWAPGS
+	TRACE_IRQS_FLAGS (%rsp)
 	popfq
 	FRAME_END
 	ret
arch/x86/events/intel/core.c +23 -12
index 9fb9a1f1e47b..f94855000d4e 100644
@@ -3730,6 +3730,19 @@ EVENT_ATTR_STR(cycles-t,	cycles_t,	"event=0x3c,in_tx=1");
 EVENT_ATTR_STR(cycles-ct,	cycles_ct,	"event=0x3c,in_tx=1,in_tx_cp=1");
 
 static struct attribute *hsw_events_attrs[] = {
+	EVENT_PTR(mem_ld_hsw),
+	EVENT_PTR(mem_st_hsw),
+	EVENT_PTR(td_slots_issued),
+	EVENT_PTR(td_slots_retired),
+	EVENT_PTR(td_fetch_bubbles),
+	EVENT_PTR(td_total_slots),
+	EVENT_PTR(td_total_slots_scale),
+	EVENT_PTR(td_recovery_bubbles),
+	EVENT_PTR(td_recovery_bubbles_scale),
+	NULL
+};
+
+static struct attribute *hsw_tsx_events_attrs[] = {
 	EVENT_PTR(tx_start),
 	EVENT_PTR(tx_commit),
 	EVENT_PTR(tx_abort),
@@ -3742,18 +3755,16 @@ static struct attribute *hsw_events_attrs[] = {
 	EVENT_PTR(el_conflict),
 	EVENT_PTR(cycles_t),
 	EVENT_PTR(cycles_ct),
-	EVENT_PTR(mem_ld_hsw),
-	EVENT_PTR(mem_st_hsw),
-	EVENT_PTR(td_slots_issued),
-	EVENT_PTR(td_slots_retired),
-	EVENT_PTR(td_fetch_bubbles),
-	EVENT_PTR(td_total_slots),
-	EVENT_PTR(td_total_slots_scale),
-	EVENT_PTR(td_recovery_bubbles),
-	EVENT_PTR(td_recovery_bubbles_scale),
 	NULL
 };
 
+static __init struct attribute **get_hsw_events_attrs(void)
+{
+	return boot_cpu_has(X86_FEATURE_RTM) ?
+		merge_attr(hsw_events_attrs, hsw_tsx_events_attrs) :
+		hsw_events_attrs;
+}
+
 static ssize_t freeze_on_smi_show(struct device *cdev,
 				  struct device_attribute *attr,
 				  char *buf)
@@ -4182,7 +4193,7 @@ __init int intel_pmu_init(void)
 
 		x86_pmu.hw_config = hsw_hw_config;
 		x86_pmu.get_event_constraints = hsw_get_event_constraints;
-		x86_pmu.cpu_events = hsw_events_attrs;
+		x86_pmu.cpu_events = get_hsw_events_attrs();
 		x86_pmu.lbr_double_abort = true;
 		extra_attr = boot_cpu_has(X86_FEATURE_RTM) ?
 			hsw_format_attr : nhm_format_attr;
@@ -4221,7 +4232,7 @@ __init int intel_pmu_init(void)
 
 		x86_pmu.hw_config = hsw_hw_config;
 		x86_pmu.get_event_constraints = hsw_get_event_constraints;
-		x86_pmu.cpu_events = hsw_events_attrs;
+		x86_pmu.cpu_events = get_hsw_events_attrs();
 		x86_pmu.limit_period = bdw_limit_period;
 		extra_attr = boot_cpu_has(X86_FEATURE_RTM) ?
 			hsw_format_attr : nhm_format_attr;
@@ -4279,7 +4290,7 @@ __init int intel_pmu_init(void)
 		extra_attr = boot_cpu_has(X86_FEATURE_RTM) ?
 			hsw_format_attr : nhm_format_attr;
 		extra_attr = merge_attr(extra_attr, skl_format_attr);
-		x86_pmu.cpu_events = hsw_events_attrs;
+		x86_pmu.cpu_events = get_hsw_events_attrs();
 		intel_pmu_pebs_data_source_skl(
 			boot_cpu_data.x86_model == INTEL_FAM6_SKYLAKE_X);
 		pr_cont("Skylake events, ");
arch/x86/kernel/mpparse.c +4 -2
index 410c5dadcee3..3a4b12809ab5 100644
@@ -431,6 +431,7 @@ static inline void __init construct_default_ISA_mptable(int mpc_default_type)
 }
 
 static unsigned long mpf_base;
+static bool mpf_found;
 
 static unsigned long __init get_mpc_size(unsigned long physptr)
 {
@@ -504,7 +505,7 @@ void __init default_get_smp_config(unsigned int early)
 	if (!smp_found_config)
 		return;
 
-	if (!mpf_base)
+	if (!mpf_found)
 		return;
 
 	if (acpi_lapic && early)
@@ -593,6 +594,7 @@ static int __init smp_scan_config(unsigned long base, unsigned long length)
 			smp_found_config = 1;
 #endif
 			mpf_base = base;
+			mpf_found = true;
 
 			pr_info("found SMP MP-table at [mem %#010lx-%#010lx] mapped at [%p]\n",
 				base, base + sizeof(*mpf) - 1, mpf);
@@ -858,7 +860,7 @@ static int __init update_mp_table(void)
 	if (!enable_update_mptable)
 		return 0;
 
-	if (!mpf_base)
+	if (!mpf_found)
 		return 0;
 
 	mpf = early_memremap(mpf_base, sizeof(*mpf));
arch/x86/kvm/svm.c +7 -0
index 0e68f0b3cbf7..ca209a4a7834 100644
@@ -3657,6 +3657,13 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr)
 	u32 ecx = msr->index;
 	u64 data = msr->data;
 	switch (ecx) {
+	case MSR_IA32_CR_PAT:
+		if (!kvm_mtrr_valid(vcpu, MSR_IA32_CR_PAT, data))
+			return 1;
+		vcpu->arch.pat = data;
+		svm->vmcb->save.g_pat = data;
+		mark_dirty(svm->vmcb, VMCB_NPT);
+		break;
 	case MSR_IA32_TSC:
 		kvm_write_tsc(vcpu, msr);
 		break;
arch/x86/kvm/vmx.c +108 -44

248 lines not on this page · raw message

arch/x86/lib/x86-opcode-map.txt +1 -1
index 12e377184ee4..c4d55919fac1 100644
@@ -896,7 +896,7 @@ EndTable
 
 GrpTable: Grp3_1
 0: TEST Eb,Ib
-1:
+1: TEST Eb,Ib
 2: NOT Eb
 3: NEG Eb
 4: MUL AL,Eb
block/blk-core.c +2 -0
index 048be4aa6024..33ee583cfe45 100644
@@ -333,6 +333,7 @@ EXPORT_SYMBOL(blk_stop_queue);
 void blk_sync_queue(struct request_queue *q)
 {
 	del_timer_sync(&q->timeout);
+	cancel_work_sync(&q->timeout_work);
 
 	if (q->mq_ops) {
 		struct blk_mq_hw_ctx *hctx;
@@ -844,6 +845,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
 	setup_timer(&q->backing_dev_info->laptop_mode_wb_timer,
 		    laptop_mode_timer_fn, (unsigned long) q);
 	setup_timer(&q->timeout, blk_rq_timed_out_timer, (unsigned long) q);
+	INIT_WORK(&q->timeout_work, NULL);
 	INIT_LIST_HEAD(&q->queue_head);
 	INIT_LIST_HEAD(&q->timeout_list);
 	INIT_LIST_HEAD(&q->icq_list);
block/blk-timeout.c +0 -3
index 17ec83bb0900..6427be7ac363 100644
@@ -134,8 +134,6 @@ void blk_timeout_work(struct work_struct *work)
 	struct request *rq, *tmp;
 	int next_set = 0;
 
-	if (blk_queue_enter(q, true))
-		return;
 	spin_lock_irqsave(q->queue_lock, flags);
 
 	list_for_each_entry_safe(rq, tmp, &q->timeout_list, timeout_list)
@@ -145,7 +143,6 @@ void blk_timeout_work(struct work_struct *work)
 		mod_timer(&q->timeout, round_jiffies_up(next));
 
 	spin_unlock_irqrestore(q->queue_lock, flags);
-	blk_queue_exit(q);
 }
 
 /**
drivers/acpi/device_pm.c +12 -9
index fbcc73f7a099..18af71057b44 100644
@@ -387,6 +387,7 @@ EXPORT_SYMBOL(acpi_bus_power_manageable);
 
 #ifdef CONFIG_PM
 static DEFINE_MUTEX(acpi_pm_notifier_lock);
+static DEFINE_MUTEX(acpi_pm_notifier_install_lock);
 
 void acpi_pm_wakeup_event(struct device *dev)
 {
@@ -443,24 +444,25 @@ acpi_status acpi_add_pm_notifier(struct acpi_device *adev, struct device *dev,
 	if (!dev && !func)
 		return AE_BAD_PARAMETER;
 
-	mutex_lock(&acpi_pm_notifier_lock);
+	mutex_lock(&acpi_pm_notifier_install_lock);
 
 	if (adev->wakeup.flags.notifier_present)
 		goto out;
 
-	adev->wakeup.ws = wakeup_source_register(dev_name(&adev->dev));
-	adev->wakeup.context.dev = dev;
-	adev->wakeup.context.func = func;
-
 	status = acpi_install_notify_handler(adev->handle, ACPI_SYSTEM_NOTIFY,
 					     acpi_pm_notify_handler, NULL);
 	if (ACPI_FAILURE(status))
 		goto out;
 
+	mutex_lock(&acpi_pm_notifier_lock);
+	adev->wakeup.ws = wakeup_source_register(dev_name(&adev->dev));
+	adev->wakeup.context.dev = dev;
+	adev->wakeup.context.func = func;
 	adev->wakeup.flags.notifier_present = true;
+	mutex_unlock(&acpi_pm_notifier_lock);
 
  out:
-	mutex_unlock(&acpi_pm_notifier_lock);
+	mutex_unlock(&acpi_pm_notifier_install_lock);
 	return status;
 }
 
@@ -472,7 +474,7 @@ acpi_status acpi_remove_pm_notifier(struct acpi_device *adev)
 {
 	acpi_status status = AE_BAD_PARAMETER;
 
-	mutex_lock(&acpi_pm_notifier_lock);
+	mutex_lock(&acpi_pm_notifier_install_lock);
 
 	if (!adev->wakeup.flags.notifier_present)
 		goto out;
@@ -483,14 +485,15 @@ acpi_status acpi_remove_pm_notifier(struct acpi_device *adev)
 	if (ACPI_FAILURE(status))
 		goto out;
 
+	mutex_lock(&acpi_pm_notifier_lock);
 	adev->wakeup.context.func = NULL;
 	adev->wakeup.context.dev = NULL;
 	wakeup_source_unregister(adev->wakeup.ws);
-
 	adev->wakeup.flags.notifier_present = false;
+	mutex_unlock(&acpi_pm_notifier_lock);
 
  out:
-	mutex_unlock(&acpi_pm_notifier_lock);
+	mutex_unlock(&acpi_pm_notifier_install_lock);
 	return status;
 }
 
drivers/acpi/ec.c +7 -5
index 236b14324780..82b3ce5e937e 100644
@@ -486,8 +486,11 @@ static inline void __acpi_ec_enable_event(struct acpi_ec *ec)
 {
 	if (!test_and_set_bit(EC_FLAGS_QUERY_ENABLED, &ec->flags))
 		ec_log_drv("event unblocked");
-	if (!test_bit(EC_FLAGS_QUERY_PENDING, &ec->flags))
-		advance_transaction(ec);
+	/*
+	 * Unconditionally invoke this once after enabling the event
+	 * handling mechanism to detect the pending events.
+	 */
+	advance_transaction(ec);
 }
 
 static inline void __acpi_ec_disable_event(struct acpi_ec *ec)
@@ -1456,11 +1459,10 @@ static int ec_install_handlers(struct acpi_ec *ec, bool handle_events)
 			if (test_bit(EC_FLAGS_STARTED, &ec->flags) &&
 			    ec->reference_count >= 1)
 				acpi_ec_enable_gpe(ec, true);
-
-			/* EC is fully operational, allow queries */
-			acpi_ec_enable_event(ec);
 		}
 	}
+	/* EC is fully operational, allow queries */
+	acpi_ec_enable_event(ec);
 
 	return 0;
 }
drivers/ata/libata-eh.c +1 -1
index e4effef0c83f..ea20e0eb4d5a 100644
@@ -2264,8 +2264,8 @@ static void ata_eh_link_autopsy(struct ata_link *link)
 		if (dev->flags & ATA_DFLAG_DUBIOUS_XFER)
 			eflags |= ATA_EFLAG_DUBIOUS_XFER;
 		ehc->i.action |= ata_eh_speed_down(dev, eflags, all_err_mask);
+		trace_ata_eh_link_autopsy(dev, ehc->i.action, all_err_mask);
 	}
-	trace_ata_eh_link_autopsy(dev, ehc->i.action, all_err_mask);
 	DPRINTK("EXIT\n");
 }
 
drivers/base/power/opp/of.c +1 -0
index 0b718886479b..87509cb69f79 100644
@@ -397,6 +397,7 @@ static int _of_add_opp_table_v2(struct device *dev, struct device_node *opp_np)
 			dev_err(dev, "%s: Failed to add OPP, %d\n", __func__,
 				ret);
 			_dev_pm_opp_remove_table(opp_table, dev, false);
+			of_node_put(np);
 			goto put_opp_table;
 		}
 	}
drivers/block/nbd.c +10 -16
index 9adfb5445f8d..5f2a4240a204 100644
@@ -288,15 +288,6 @@ static enum blk_eh_timer_return nbd_xmit_timeout(struct request *req,
 		cmd->status = BLK_STS_TIMEOUT;
 		return BLK_EH_HANDLED;
 	}
-
-	/* If we are waiting on our dead timer then we could get timeout
-	 * callbacks for our request.  For this we just want to reset the timer
-	 * and let the queue side take care of everything.
-	 */
-	if (!completion_done(&cmd->send_complete)) {
-		nbd_config_put(nbd);
-		return BLK_EH_RESET_TIMER;
-	}
 	config = nbd->config;
 
 	if (config->num_connections > 1) {
@@ -723,9 +714,9 @@ static int wait_for_reconnect(struct nbd_device *nbd)
 		return 0;
 	if (test_bit(NBD_DISCONNECTED, &config->runtime_flags))
 		return 0;
-	wait_event_interruptible_timeout(config->conn_wait,
-					 atomic_read(&config->live_connections),
-					 config->dead_conn_timeout);
+	wait_event_timeout(config->conn_wait,
+			   atomic_read(&config->live_connections),
+			   config->dead_conn_timeout);
 	return atomic_read(&config->live_connections);
 }
 
@@ -740,6 +731,7 @@ static int nbd_handle_cmd(struct nbd_cmd *cmd, int index)
 	if (!refcount_inc_not_zero(&nbd->config_refs)) {
 		dev_err_ratelimited(disk_to_dev(nbd->disk),
 				    "Socks array is empty\n");
+		blk_mq_start_request(req);
 		return -EINVAL;
 	}
 	config = nbd->config;
@@ -748,6 +740,7 @@ static int nbd_handle_cmd(struct nbd_cmd *cmd, int index)
 		dev_err_ratelimited(disk_to_dev(nbd->disk),
 				    "Attempted send on invalid socket\n");
 		nbd_config_put(nbd);
+		blk_mq_start_request(req);
 		return -EINVAL;
 	}
 	cmd->status = BLK_STS_OK;
@@ -771,6 +764,7 @@ static int nbd_handle_cmd(struct nbd_cmd *cmd, int index)
 			 */
 			sock_shutdown(nbd);
 			nbd_config_put(nbd);
+			blk_mq_start_request(req);
 			return -EIO;
 		}
 		goto again;
@@ -781,6 +775,7 @@ static int nbd_handle_cmd(struct nbd_cmd *cmd, int index)
 	 * here so that it gets put _after_ the request that is already on the
 	 * dispatch list.
 	 */
+	blk_mq_start_request(req);
 	if (unlikely(nsock->pending && nsock->pending != req)) {
 		blk_mq_requeue_request(req, true);
 		ret = 0;
@@ -793,10 +788,10 @@ static int nbd_handle_cmd(struct nbd_cmd *cmd, int index)
 	ret = nbd_send_cmd(nbd, cmd, index);
 	if (ret == -EAGAIN) {
 		dev_err_ratelimited(disk_to_dev(nbd->disk),
-				    "Request send failed trying another connection\n");
+				    "Request send failed, requeueing\n");
 		nbd_mark_nsock_dead(nbd, nsock, 1);
-		mutex_unlock(&nsock->tx_lock);
-		goto again;
+		blk_mq_requeue_request(req, true);
+		ret = 0;
 	}
 out:
 	mutex_unlock(&nsock->tx_lock);
@@ -820,7 +815,6 @@ static blk_status_t nbd_queue_rq(struct blk_mq_hw_ctx *hctx,
 	 * done sending everything over the wire.
 	 */
 	init_completion(&cmd->send_complete);
-	blk_mq_start_request(bd->rq);
 
 	/* We can be called directly from the user space process, which means we
 	 * could possibly have signals pending so our sendmsg will fail.  In
drivers/bluetooth/btqcomsmd.c +34 -0
index d00c4fdae924..bd810d01538a 100644
@@ -26,6 +26,7 @@
 struct btqcomsmd {
 	struct hci_dev *hdev;
 
+	bdaddr_t bdaddr;
 	struct rpmsg_endpoint *acl_channel;
 	struct rpmsg_endpoint *cmd_channel;
 };
@@ -100,6 +101,38 @@ static int btqcomsmd_close(struct hci_dev *hdev)
 	return 0;
 }
 
+static int btqcomsmd_setup(struct hci_dev *hdev)
+{
+	struct btqcomsmd *btq = hci_get_drvdata(hdev);
+	struct sk_buff *skb;
+	int err;
+
+	skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, HCI_INIT_TIMEOUT);
+	if (IS_ERR(skb))
+		return PTR_ERR(skb);
+	kfree_skb(skb);
+
+	/* Devices do not have persistent storage for BD address. If no
+	 * BD address has been retrieved during probe, mark the device
+	 * as having an invalid BD address.
+	 */
+	if (!bacmp(&btq->bdaddr, BDADDR_ANY)) {
+		set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
+		return 0;
+	}
+
+	/* When setting a configured BD address fails, mark the device
+	 * as having an invalid BD address.
+	 */
+	err = qca_set_bdaddr_rome(hdev, &btq->bdaddr);
+	if (err) {
+		set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
+		return 0;
+	}
+
+	return 0;
+}
+
 static int btqcomsmd_probe(struct platform_device *pdev)
 {
 	struct btqcomsmd *btq;
@@ -135,6 +168,7 @@ static int btqcomsmd_probe(struct platform_device *pdev)
 	hdev->open = btqcomsmd_open;
 	hdev->close = btqcomsmd_close;
 	hdev->send = btqcomsmd_send;
+	hdev->setup = btqcomsmd_setup;
 	hdev->set_bdaddr = qca_set_bdaddr_rome;
 
 	ret = hci_register_dev(hdev);
drivers/clk/ti/clk-dra7-atl.c +1 -2
index 13eb04f72389..148815470431 100644
@@ -274,8 +274,7 @@ static int of_dra7_atl_clk_probe(struct platform_device *pdev)
 
 		/* Get configuration for the ATL instances */
 		snprintf(prop, sizeof(prop), "atl%u", i);
-		of_node_get(node);
-		cfg_node = of_find_node_by_name(node, prop);
+		cfg_node = of_get_child_by_name(node, prop);
 		if (cfg_node) {
 			ret = of_property_read_u32(cfg_node, "bws",
 						   &cdesc->bws);
drivers/dax/super.c +3 -0
index 557b93703532..c4cd034a3820 100644
@@ -344,6 +344,9 @@ static struct inode *dax_alloc_inode(struct super_block *sb)
 	struct inode *inode;
 
 	dax_dev = kmem_cache_alloc(dax_cache, GFP_KERNEL);
+	if (!dax_dev)
+		return NULL;
+
 	inode = &dax_dev->inode;
 	inode->i_rdev = 0;
 	return inode;
drivers/infiniband/core/cm.c +7 -4
index 4c4b46586af2..2af79e4f3235 100644
@@ -1575,7 +1575,7 @@ static void cm_format_req_event(struct cm_work *work,
 	param->bth_pkey = cm_get_bth_pkey(work);
 	param->port = cm_id_priv->av.port->port_num;
 	param->primary_path = &work->path[0];
-	if (req_msg->alt_local_lid)
+	if (cm_req_has_alt_path(req_msg))
 		param->alternate_path = &work->path[1];
 	else
 		param->alternate_path = NULL;
@@ -1856,7 +1856,8 @@ static int cm_req_handler(struct cm_work *work)
 	cm_process_routed_req(req_msg, work->mad_recv_wc->wc);
 
 	memset(&work->path[0], 0, sizeof(work->path[0]));
-	memset(&work->path[1], 0, sizeof(work->path[1]));
+	if (cm_req_has_alt_path(req_msg))
+		memset(&work->path[1], 0, sizeof(work->path[1]));
 	grh = rdma_ah_read_grh(&cm_id_priv->av.ah_attr);
 	ret = ib_get_cached_gid(work->port->cm_dev->ib_device,
 				work->port->port_num,
@@ -3817,14 +3818,16 @@ static void cm_recv_handler(struct ib_mad_agent *mad_agent,
 	struct cm_port *port = mad_agent->context;
 	struct cm_work *work;
 	enum ib_cm_event_type event;
+	bool alt_path = false;
 	u16 attr_id;
 	int paths = 0;
 	int going_down = 0;
 
 	switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) {
 	case CM_REQ_ATTR_ID:
-		paths = 1 + (((struct cm_req_msg *) mad_recv_wc->recv_buf.mad)->
-						    alt_local_lid != 0);
+		alt_path = cm_req_has_alt_path((struct cm_req_msg *)
+						mad_recv_wc->recv_buf.mad);
+		paths = 1 + (alt_path != 0);
 		event = IB_CM_REQ_RECEIVED;
 		break;
 	case CM_MRA_ATTR_ID:
drivers/infiniband/core/mad.c +2 -1
index f8f53bb90837..cb91245e9163 100644
@@ -1974,14 +1974,15 @@ static void ib_mad_complete_recv(struct ib_mad_agent_private *mad_agent_priv,
 	unsigned long flags;
 	int ret;
 
+	INIT_LIST_HEAD(&mad_recv_wc->rmpp_list);
 	ret = ib_mad_enforce_security(mad_agent_priv,
 				      mad_recv_wc->wc->pkey_index);
 	if (ret) {
 		ib_free_recv_mad(mad_recv_wc);
 		deref_mad_agent(mad_agent_priv);
+		return;
 	}
 
-	INIT_LIST_HEAD(&mad_recv_wc->rmpp_list);
 	list_add(&mad_recv_wc->recv_buf.list, &mad_recv_wc->rmpp_list);
 	if (ib_mad_kernel_rmpp_agent(&mad_agent_priv->agent)) {
 		mad_recv_wc = ib_process_rmpp_recv_wc(mad_agent_priv,
drivers/infiniband/core/security.c +28 -23

88 lines not on this page · raw message

drivers/infiniband/hw/hfi1/chip.c +21 -14
index 0be42787759f..312444386f54 100644
@@ -13074,7 +13074,7 @@ static int request_msix_irqs(struct hfi1_devdata *dd)
 	first_sdma = last_general;
 	last_sdma = first_sdma + dd->num_sdma;
 	first_rx = last_sdma;
-	last_rx = first_rx + dd->n_krcv_queues + HFI1_NUM_VNIC_CTXT;
+	last_rx = first_rx + dd->n_krcv_queues + dd->num_vnic_contexts;
 
 	/* VNIC MSIx interrupts get mapped when VNIC contexts are created */
 	dd->first_dyn_msix_idx = first_rx + dd->n_krcv_queues;
@@ -13294,8 +13294,9 @@ static int set_up_interrupts(struct hfi1_devdata *dd)
 	 *		slow source, SDMACleanupDone)
 	 *	N interrupts - one per used SDMA engine
 	 *	M interrupt - one per kernel receive context
+	 *	V interrupt - one for each VNIC context
 	 */
-	total = 1 + dd->num_sdma + dd->n_krcv_queues + HFI1_NUM_VNIC_CTXT;
+	total = 1 + dd->num_sdma + dd->n_krcv_queues + dd->num_vnic_contexts;
 
 	/* ask for MSI-X interrupts */
 	request = request_msix(dd, total);
@@ -13356,10 +13357,12 @@ static int set_up_interrupts(struct hfi1_devdata *dd)
  *                             in array of contexts
  *	freectxts  - number of free user contexts
  *	num_send_contexts - number of PIO send contexts being used
+ *	num_vnic_contexts - number of contexts reserved for VNIC
  */
 static int set_up_context_variables(struct hfi1_devdata *dd)
 {
 	unsigned long num_kernel_contexts;
+	u16 num_vnic_contexts = HFI1_NUM_VNIC_CTXT;
 	int total_contexts;
 	int ret;
 	unsigned ngroups;
@@ -13393,6 +13396,14 @@ static int set_up_context_variables(struct hfi1_devdata *dd)
 			   num_kernel_contexts);
 		num_kernel_contexts = dd->chip_send_contexts - num_vls - 1;
 	}
+
+	/* Accommodate VNIC contexts if possible */
+	if ((num_kernel_contexts + num_vnic_contexts) > dd->chip_rcv_contexts) {
+		dd_dev_err(dd, "No receive contexts available for VNIC\n");
+		num_vnic_contexts = 0;
+	}
+	total_contexts = num_kernel_contexts + num_vnic_contexts;
+
 	/*
 	 * User contexts:
 	 *	- default to 1 user context per real (non-HT) CPU core if
@@ -13402,19 +13413,16 @@ static int set_up_context_variables(struct hfi1_devdata *dd)
 		num_user_contexts =
 			cpumask_weight(&node_affinity.real_cpu_mask);
 
-	total_contexts = num_kernel_contexts + num_user_contexts;
-
 	/*
 	 * Adjust the counts given a global max.
 	 */
-	if (total_contexts > dd->chip_rcv_contexts) {
+	if (total_contexts + num_user_contexts > dd->chip_rcv_contexts) {
 		dd_dev_err(dd,
 			   "Reducing # user receive contexts to: %d, from %d\n",
-			   (int)(dd->chip_rcv_contexts - num_kernel_contexts),
+			   (int)(dd->chip_rcv_contexts - total_contexts),
 			   (int)num_user_contexts);
-		num_user_contexts = dd->chip_rcv_contexts - num_kernel_contexts;
 		/* recalculate */
-		total_contexts = num_kernel_contexts + num_user_contexts;
+		num_user_contexts = dd->chip_rcv_contexts - total_contexts;
 	}
 
 	/* each user context requires an entry in the RMT */
@@ -13427,25 +13435,24 @@ static int set_up_context_variables(struct hfi1_devdata *dd)
 			   user_rmt_reduced);
 		/* recalculate */
 		num_user_contexts = user_rmt_reduced;
-		total_contexts = num_kernel_contexts + num_user_contexts;
 	}
 
-	/* Accommodate VNIC contexts */
-	if ((total_contexts + HFI1_NUM_VNIC_CTXT) <= dd->chip_rcv_contexts)
-		total_contexts += HFI1_NUM_VNIC_CTXT;
+	total_contexts += num_user_contexts;
 
 	/* the first N are kernel contexts, the rest are user/vnic contexts */
 	dd->num_rcv_contexts = total_contexts;
 	dd->n_krcv_queues = num_kernel_contexts;
 	dd->first_dyn_alloc_ctxt = num_kernel_contexts;
+	dd->num_vnic_contexts = num_vnic_contexts;
 	dd->num_user_contexts = num_user_contexts;
 	dd->freectxts = num_user_contexts;
 	dd_dev_info(dd,
-		    "rcv contexts: chip %d, used %d (kernel %d, user %d)\n",
+		    "rcv contexts: chip %d, used %d (kernel %d, vnic %u, user %u)\n",
 		    (int)dd->chip_rcv_contexts,
 		    (int)dd->num_rcv_contexts,
 		    (int)dd->n_krcv_queues,
-		    (int)dd->num_rcv_contexts - dd->n_krcv_queues);
+		    dd->num_vnic_contexts,
+		    dd->num_user_contexts);
 
 	/*
 	 * Receive array allocation:
drivers/infiniband/hw/hfi1/hfi.h +2 -0
index 3ac9c307a285..6ff44dc606eb 100644
@@ -1047,6 +1047,8 @@ struct hfi1_devdata {
 	u64 z_send_schedule;
 
 	u64 __percpu *send_schedule;
+	/* number of reserved contexts for VNIC usage */
+	u16 num_vnic_contexts;
 	/* number of receive contexts in use by the driver */
 	u32 num_rcv_contexts;
 	/* number of pio send contexts in use by the driver */
drivers/infiniband/hw/hfi1/sysfs.c +1 -1
index 6d2702ef34ac..25e867393463 100644
@@ -543,7 +543,7 @@ static ssize_t show_nctxts(struct device *device,
 	 * give a more accurate picture of total contexts available.
 	 */
 	return scnprintf(buf, PAGE_SIZE, "%u\n",
-			 min(dd->num_rcv_contexts - dd->first_dyn_alloc_ctxt,
+			 min(dd->num_user_contexts,
 			     (u32)dd->sc_sizes[SC_USER].count));
 }
 
drivers/infiniband/hw/hfi1/vnic_main.c +5 -2
index f419cbb05928..1a17708be46a 100644
@@ -840,6 +840,9 @@ struct net_device *hfi1_vnic_alloc_rn(struct ib_device *device,
 	struct rdma_netdev *rn;
 	int i, size, rc;
 
+	if (!dd->num_vnic_contexts)
+		return ERR_PTR(-ENOMEM);
+
 	if (!port_num || (port_num > dd->num_pports))
 		return ERR_PTR(-EINVAL);
 
@@ -848,7 +851,7 @@ struct net_device *hfi1_vnic_alloc_rn(struct ib_device *device,
 
 	size = sizeof(struct opa_vnic_rdma_netdev) + sizeof(*vinfo);
 	netdev = alloc_netdev_mqs(size, name, name_assign_type, setup,
-				  dd->chip_sdma_engines, HFI1_NUM_VNIC_CTXT);
+				  dd->chip_sdma_engines, dd->num_vnic_contexts);
 	if (!netdev)
 		return ERR_PTR(-ENOMEM);
 
@@ -856,7 +859,7 @@ struct net_device *hfi1_vnic_alloc_rn(struct ib_device *device,
 	vinfo = opa_vnic_dev_priv(netdev);
 	vinfo->dd = dd;
 	vinfo->num_tx_q = dd->chip_sdma_engines;
-	vinfo->num_rx_q = HFI1_NUM_VNIC_CTXT;
+	vinfo->num_rx_q = dd->num_vnic_contexts;
 	vinfo->netdev = netdev;
 	rn->free_rdma_netdev = hfi1_vnic_free_rn;
 	rn->set_id = hfi1_vnic_set_vesw_id;
drivers/infiniband/ulp/srp/ib_srp.c +19 -6
index fa5ccdb3bb2a..60d7b493ed2d 100644
@@ -665,12 +665,19 @@ static void srp_path_rec_completion(int status,
 static int srp_lookup_path(struct srp_rdma_ch *ch)
 {
 	struct srp_target_port *target = ch->target;
-	int ret;
+	int ret = -ENODEV;
 
 	ch->path.numb_path = 1;
 
 	init_completion(&ch->done);
 
+	/*
+	 * Avoid that the SCSI host can be removed by srp_remove_target()
+	 * before srp_path_rec_completion() is called.
+	 */
+	if (!scsi_host_get(target->scsi_host))
+		goto out;
+
 	ch->path_query_id = ib_sa_path_rec_get(&srp_sa_client,
 					       target->srp_host->srp_dev->dev,
 					       target->srp_host->port,
@@ -684,18 +691,24 @@ static int srp_lookup_path(struct srp_rdma_ch *ch)
 					       GFP_KERNEL,
 					       srp_path_rec_completion,
 					       ch, &ch->path_query);
-	if (ch->path_query_id < 0)
-		return ch->path_query_id;
+	ret = ch->path_query_id;
+	if (ret < 0)
+		goto put;
 
 	ret = wait_for_completion_interruptible(&ch->done);
 	if (ret < 0)
-		return ret;
+		goto put;
 
-	if (ch->status < 0)
+	ret = ch->status;
+	if (ret < 0)
 		shost_printk(KERN_WARNING, target->scsi_host,
 			     PFX "Path record query failed\n");
 
-	return ch->status;
+put:
+	scsi_host_put(target->scsi_host);
+
+out:
+	return ret;
 }
 
 static int srp_send_req(struct srp_rdma_ch *ch, bool multich)
drivers/infiniband/ulp/srpt/ib_srpt.c +4 -5
index 9e8e9220f816..95178b4e3565 100644
@@ -2777,7 +2777,7 @@ static int srpt_parse_i_port_id(u8 i_port_id[16], const char *name)
 {
 	const char *p;
 	unsigned len, count, leading_zero_bytes;
-	int ret, rc;
+	int ret;
 
 	p = name;
 	if (strncasecmp(p, "0x", 2) == 0)
@@ -2789,10 +2789,9 @@ static int srpt_parse_i_port_id(u8 i_port_id[16], const char *name)
 	count = min(len / 2, 16U);
 	leading_zero_bytes = 16 - count;
 	memset(i_port_id, 0, leading_zero_bytes);
-	rc = hex2bin(i_port_id + leading_zero_bytes, p, count);
-	if (rc < 0)
-		pr_debug("hex2bin failed for srpt_parse_i_port_id: %d\n", rc);
-	ret = 0;
+	ret = hex2bin(i_port_id + leading_zero_bytes, p, count);
+	if (ret < 0)
+		pr_debug("hex2bin failed for srpt_parse_i_port_id: %d\n", ret);
 out:
 	return ret;
 }
drivers/irqchip/irq-gic-v3.c +6 -3
index b5df99c6f680..3b35271114ee 100644
@@ -1071,18 +1071,18 @@ static void __init gic_populate_ppi_partitions(struct device_node *gic_node)
 	int nr_parts;
 	struct partition_affinity *parts;
 
-	parts_node = of_find_node_by_name(gic_node, "ppi-partitions");
+	parts_node = of_get_child_by_name(gic_node, "ppi-partitions");
 	if (!parts_node)
 		return;
 
 	nr_parts = of_get_child_count(parts_node);
 
 	if (!nr_parts)
-		return;
+		goto out_put_node;
 
 	parts = kzalloc(sizeof(*parts) * nr_parts, GFP_KERNEL);
 	if (WARN_ON(!parts))
-		return;
+		goto out_put_node;
 
 	for_each_child_of_node(parts_node, child_part) {
 		struct partition_affinity *part;
@@ -1149,6 +1149,9 @@ static void __init gic_populate_ppi_partitions(struct device_node *gic_node)
 
 		gic_data.ppi_descs[i] = desc;
 	}
+
+out_put_node:
+	of_node_put(parts_node);
 }
 
 static void __init gic_of_setup_kvm_info(struct device_node *node)
drivers/mailbox/bcm-flexrm-mailbox.c +19 -3
index ae6146311934..f052a3eb2098 100644
@@ -1365,8 +1365,8 @@ static void flexrm_shutdown(struct mbox_chan *chan)
 	/* Disable/inactivate ring */
 	writel_relaxed(0x0, ring->regs + RING_CONTROL);
 
-	/* Flush ring with timeout of 1s */
-	timeout = 1000;
+	/* Set ring flush state */
+	timeout = 1000; /* timeout of 1s */
 	writel_relaxed(BIT(CONTROL_FLUSH_SHIFT),
 			ring->regs + RING_CONTROL);
 	do {
@@ -1374,7 +1374,23 @@ static void flexrm_shutdown(struct mbox_chan *chan)
 		    FLUSH_DONE_MASK)
 			break;
 		mdelay(1);
-	} while (timeout--);
+	} while (--timeout);
+	if (!timeout)
+		dev_err(ring->mbox->dev,
+			"setting ring%d flush state timedout\n", ring->num);
+
+	/* Clear ring flush state */
+	timeout = 1000; /* timeout of 1s */
+	writel_relaxed(0x0, ring + RING_CONTROL);
+	do {
+		if (!(readl_relaxed(ring + RING_FLUSH_DONE) &
+		      FLUSH_DONE_MASK))
+			break;
+		mdelay(1);
+	} while (--timeout);
+	if (!timeout)
+		dev_err(ring->mbox->dev,
+			"clearing ring%d flush state timedout\n", ring->num);
 
 	/* Abort all in-flight requests */
 	for (reqid = 0; reqid < RING_MAX_REQ_COUNT; reqid++) {
drivers/md/bcache/alloc.c +2 -1
index 08035634795c..c9934139d609 100644
@@ -407,7 +407,8 @@ long bch_bucket_alloc(struct cache *ca, unsigned reserve, bool wait)
 
 	finish_wait(&ca->set->bucket_wait, &w);
 out:
-	wake_up_process(ca->alloc_thread);
+	if (ca->alloc_thread)
+		wake_up_process(ca->alloc_thread);
 
 	trace_bcache_alloc(ca, reserve);
 
drivers/md/bitmap.c +2 -2
index d2121637b4ab..cae57b5be817 100644
@@ -625,7 +625,7 @@ static int bitmap_read_sb(struct bitmap *bitmap)
 		err = read_sb_page(bitmap->mddev,
 				   offset,
 				   sb_page,
-				   0, PAGE_SIZE);
+				   0, sizeof(bitmap_super_t));
 	}
 	if (err)
 		return err;
@@ -2123,7 +2123,7 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks,
 	if (store.sb_page && bitmap->storage.sb_page)
 		memcpy(page_address(store.sb_page),
 		       page_address(bitmap->storage.sb_page),
-		       PAGE_SIZE);
+		       sizeof(bitmap_super_t));
 	bitmap_file_unmap(&bitmap->storage);
 	bitmap->storage = store;
 
drivers/md/dm-bufio.c +6 -9
index d216a8f7bc22..8e3adcb46851 100644
@@ -974,7 +974,8 @@ static void __get_memory_limit(struct dm_bufio_client *c,
 		buffers = c->minimum_buffers;
 
 	*limit_buffers = buffers;
-	*threshold_buffers = buffers * DM_BUFIO_WRITEBACK_PERCENT / 100;
+	*threshold_buffers = mult_frac(buffers,
+				       DM_BUFIO_WRITEBACK_PERCENT, 100);
 }
 
 /*
@@ -1910,19 +1911,15 @@ static int __init dm_bufio_init(void)
 	memset(&dm_bufio_caches, 0, sizeof dm_bufio_caches);
 	memset(&dm_bufio_cache_names, 0, sizeof dm_bufio_cache_names);
 
-	mem = (__u64)((totalram_pages - totalhigh_pages) *
-		      DM_BUFIO_MEMORY_PERCENT / 100) << PAGE_SHIFT;
+	mem = (__u64)mult_frac(totalram_pages - totalhigh_pages,
+			       DM_BUFIO_MEMORY_PERCENT, 100) << PAGE_SHIFT;
 
 	if (mem > ULONG_MAX)
 		mem = ULONG_MAX;
 
 #ifdef CONFIG_MMU
-	/*
-	 * Get the size of vmalloc space the same way as VMALLOC_TOTAL
-	 * in fs/proc/internal.h
-	 */
-	if (mem > (VMALLOC_END - VMALLOC_START) * DM_BUFIO_VMALLOC_PERCENT / 100)
-		mem = (VMALLOC_END - VMALLOC_START) * DM_BUFIO_VMALLOC_PERCENT / 100;
+	if (mem > mult_frac(VMALLOC_TOTAL, DM_BUFIO_VMALLOC_PERCENT, 100))
+		mem = mult_frac(VMALLOC_TOTAL, DM_BUFIO_VMALLOC_PERCENT, 100);
 #endif
 
 	dm_bufio_default_cache_size = mem;
drivers/md/dm-cache-target.c +53 -33

115 lines not on this page · raw message

drivers/md/dm-core.h +2 -1
index 203144762f36..6a14f945783c 100644
@@ -29,7 +29,6 @@ struct dm_kobject_holder {
  * DM targets must _not_ deference a mapped_device to directly access its members!
  */
 struct mapped_device {
-	struct srcu_struct io_barrier;
 	struct mutex suspend_lock;
 
 	/*
@@ -127,6 +126,8 @@ struct mapped_device {
 	struct blk_mq_tag_set *tag_set;
 	bool use_blk_mq:1;
 	bool init_tio_pdu:1;
+
+	struct srcu_struct io_barrier;
 };
 
 void dm_init_md_queue(struct mapped_device *md);
drivers/md/dm-crypt.c +2 -2
index 96ab46512e1f..9fc12f556534 100644
@@ -1075,7 +1075,7 @@ static int crypt_convert_block_aead(struct crypt_config *cc,
 	BUG_ON(cc->integrity_iv_size && cc->integrity_iv_size != cc->iv_size);
 
 	/* Reject unexpected unaligned bio. */
-	if (unlikely(bv_in.bv_offset & (cc->sector_size - 1)))
+	if (unlikely(bv_in.bv_len & (cc->sector_size - 1)))
 		return -EIO;
 
 	dmreq = dmreq_of_req(cc, req);
@@ -1168,7 +1168,7 @@ static int crypt_convert_block_skcipher(struct crypt_config *cc,
 	int r = 0;
 
 	/* Reject unexpected unaligned bio. */
-	if (unlikely(bv_in.bv_offset & (cc->sector_size - 1)))
+	if (unlikely(bv_in.bv_len & (cc->sector_size - 1)))
 		return -EIO;
 
 	dmreq = dmreq_of_req(cc, req);
drivers/md/dm-integrity.c +1 -1
index 096fe9b66c50..5e6737a44468 100644
@@ -1376,7 +1376,7 @@ static int dm_integrity_map(struct dm_target *ti, struct bio *bio)
 		struct bvec_iter iter;
 		struct bio_vec bv;
 		bio_for_each_segment(bv, bio, iter) {
-			if (unlikely((bv.bv_offset | bv.bv_len) & ((ic->sectors_per_block << SECTOR_SHIFT) - 1))) {
+			if (unlikely(bv.bv_len & ((ic->sectors_per_block << SECTOR_SHIFT) - 1))) {
 				DMERR("Bio vector (%u,%u) is not aligned on %u-sector boundary",
 					bv.bv_offset, bv.bv_len, ic->sectors_per_block);
 				return DM_MAPIO_KILL;
drivers/md/dm-mpath.c +0 -2
index 11f273d2f018..e8094d8fbe0d 100644
@@ -499,8 +499,6 @@ static int multipath_clone_and_map(struct dm_target *ti, struct request *rq,
 	if (IS_ERR(clone)) {
 		/* EBUSY, ENODEV or EWOULDBLOCK: requeue */
 		bool queue_dying = blk_queue_dying(q);
-		DMERR_LIMIT("blk_get_request() returned %ld%s - requeuing",
-			    PTR_ERR(clone), queue_dying ? " (path offline)" : "");
 		if (queue_dying) {
 			atomic_inc(&m->pg_init_in_progress);
 			activate_or_offline_path(pgpath);
drivers/md/dm-table.c +14 -19
index ef7b8f201f73..4287fc9f3527 100644
@@ -1758,13 +1758,12 @@ static bool dm_table_supports_write_zeroes(struct dm_table *t)
 	return true;
 }
 
-
-static int device_discard_capable(struct dm_target *ti, struct dm_dev *dev,
-				  sector_t start, sector_t len, void *data)
+static int device_not_discard_capable(struct dm_target *ti, struct dm_dev *dev,
+				      sector_t start, sector_t len, void *data)
 {
 	struct request_queue *q = bdev_get_queue(dev->bdev);
 
-	return q && blk_queue_discard(q);
+	return q && !blk_queue_discard(q);
 }
 
 static bool dm_table_supports_discards(struct dm_table *t)
@@ -1772,28 +1771,24 @@ static bool dm_table_supports_discards(struct dm_table *t)
 	struct dm_target *ti;
 	unsigned i;
 
-	/*
-	 * Unless any target used by the table set discards_supported,
-	 * require at least one underlying device to support discards.
-	 * t->devices includes internal dm devices such as mirror logs
-	 * so we need to use iterate_devices here, which targets
-	 * supporting discard selectively must provide.
-	 */
 	for (i = 0; i < dm_table_get_num_targets(t); i++) {
 		ti = dm_table_get_target(t, i);
 
 		if (!ti->num_discard_bios)
-			continue;
-
-		if (ti->discards_supported)
-			return true;
+			return false;
 
-		if (ti->type->iterate_devices &&
-		    ti->type->iterate_devices(ti, device_discard_capable, NULL))
-			return true;
+		/*
+		 * Either the target provides discard support (as implied by setting
+		 * 'discards_supported') or it relies on _all_ data devices having
+		 * discard support.
+		 */
+		if (!ti->discards_supported &&
+		    (!ti->type->iterate_devices ||
+		     ti->type->iterate_devices(ti, device_not_discard_capable, NULL)))
+			return false;
 	}
 
-	return false;
+	return true;
 }
 
 void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
drivers/md/dm-zoned-target.c +9 -4
index b87c1741da4b..6d7bda6f8190 100644
@@ -660,6 +660,7 @@ static int dmz_get_zoned_device(struct dm_target *ti, char *path)
 	struct dmz_target *dmz = ti->private;
 	struct request_queue *q;
 	struct dmz_dev *dev;
+	sector_t aligned_capacity;
 	int ret;
 
 	/* Get the target device */
@@ -685,15 +686,17 @@ static int dmz_get_zoned_device(struct dm_target *ti, char *path)
 		goto err;
 	}
 
+	q = bdev_get_queue(dev->bdev);
 	dev->capacity = i_size_read(dev->bdev->bd_inode) >> SECTOR_SHIFT;
-	if (ti->begin || (ti->len != dev->capacity)) {
+	aligned_capacity = dev->capacity & ~(blk_queue_zone_sectors(q) - 1);
+	if (ti->begin ||
+	    ((ti->len != dev->capacity) && (ti->len != aligned_capacity))) {
 		ti->error = "Partial mapping not supported";
 		ret = -EINVAL;
 		goto err;
 	}
 
-	q = bdev_get_queue(dev->bdev);
-	dev->zone_nr_sectors = q->limits.chunk_sectors;
+	dev->zone_nr_sectors = blk_queue_zone_sectors(q);
 	dev->zone_nr_sectors_shift = ilog2(dev->zone_nr_sectors);
 
 	dev->zone_nr_blocks = dmz_sect2blk(dev->zone_nr_sectors);
@@ -929,8 +932,10 @@ static int dmz_iterate_devices(struct dm_target *ti,
 			       iterate_devices_callout_fn fn, void *data)
 {
 	struct dmz_target *dmz = ti->private;
+	struct dmz_dev *dev = dmz->dev;
+	sector_t capacity = dev->capacity & ~(dev->zone_nr_sectors - 1);
 
-	return fn(ti, dmz->ddev, 0, dmz->dev->capacity, data);
+	return fn(ti, dmz->ddev, 0, capacity, data);
 }
 
 static struct target_type dmz_type = {
drivers/md/dm.c +11 -7
index 4be85324f44d..804419635cc7 100644
@@ -1695,7 +1695,7 @@ static struct mapped_device *alloc_dev(int minor)
 	struct mapped_device *md;
 	void *old_md;
 
-	md = kzalloc_node(sizeof(*md), GFP_KERNEL, numa_node_id);
+	md = kvzalloc_node(sizeof(*md), GFP_KERNEL, numa_node_id);
 	if (!md) {
 		DMWARN("unable to allocate device, out of memory.");
 		return NULL;
@@ -1795,7 +1795,7 @@ static struct mapped_device *alloc_dev(int minor)
 bad_minor:
 	module_put(THIS_MODULE);
 bad_module_get:
-	kfree(md);
+	kvfree(md);
 	return NULL;
 }
 
@@ -1814,7 +1814,7 @@ static void free_dev(struct mapped_device *md)
 	free_minor(minor);
 
 	module_put(THIS_MODULE);
-	kfree(md);
+	kvfree(md);
 }
 
 static void __bind_mempools(struct mapped_device *md, struct dm_table *t)
@@ -2709,11 +2709,15 @@ struct mapped_device *dm_get_from_kobject(struct kobject *kobj)
 
 	md = container_of(kobj, struct mapped_device, kobj_holder.kobj);
 
-	if (test_bit(DMF_FREEING, &md->flags) ||
-	    dm_deleting_md(md))
-		return NULL;
-
+	spin_lock(&_minor_lock);
+	if (test_bit(DMF_FREEING, &md->flags) || dm_deleting_md(md)) {
+		md = NULL;
+		goto out;
+	}
 	dm_get(md);
+out:
+	spin_unlock(&_minor_lock);
+
 	return md;
 }
 
drivers/md/md.c +2 -2
index 0ff1bbf6c90e..e019cf8c0d13 100644
@@ -8039,7 +8039,8 @@ bool md_write_start(struct mddev *mddev, struct bio *bi)
 	if (did_change)
 		sysfs_notify_dirent_safe(mddev->sysfs_state);
 	wait_event(mddev->sb_wait,
-		   !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags) && !mddev->suspended);
+		   !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags) ||
+		   mddev->suspended);
 	if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) {
 		percpu_ref_put(&mddev->writes_pending);
 		return false;
@@ -8110,7 +8111,6 @@ void md_allow_write(struct mddev *mddev)
 		sysfs_notify_dirent_safe(mddev->sysfs_state);
 		/* wait for the dirty state to be recorded in the metadata */
 		wait_event(mddev->sb_wait,
-			   !test_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags) &&
 			   !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags));
 	} else
 		spin_unlock(&mddev->lock);
drivers/md/raid1.c +6 -18
index f3f3e40dc9d8..e4e8f9e565b7 100644
@@ -990,14 +990,6 @@ static void wait_barrier(struct r1conf *conf, sector_t sector_nr)
 	_wait_barrier(conf, idx);
 }
 
-static void wait_all_barriers(struct r1conf *conf)
-{
-	int idx;
-
-	for (idx = 0; idx < BARRIER_BUCKETS_NR; idx++)
-		_wait_barrier(conf, idx);
-}
-
 static void _allow_barrier(struct r1conf *conf, int idx)
 {
 	atomic_dec(&conf->nr_pending[idx]);
@@ -1011,14 +1003,6 @@ static void allow_barrier(struct r1conf *conf, sector_t sector_nr)
 	_allow_barrier(conf, idx);
 }
 
-static void allow_all_barriers(struct r1conf *conf)
-{
-	int idx;
-
-	for (idx = 0; idx < BARRIER_BUCKETS_NR; idx++)
-		_allow_barrier(conf, idx);
-}
-
 /* conf->resync_lock should be held */
 static int get_unqueued_pending(struct r1conf *conf)
 {
@@ -1654,8 +1638,12 @@ static void print_conf(struct r1conf *conf)
 
 static void close_sync(struct r1conf *conf)
 {
-	wait_all_barriers(conf);
-	allow_all_barriers(conf);
+	int idx;
+
+	for (idx = 0; idx < BARRIER_BUCKETS_NR; idx++) {
+		_wait_barrier(conf, idx);
+		_allow_barrier(conf, idx);
+	}
 
 	mempool_destroy(conf->r1buf_pool);
 	conf->r1buf_pool = NULL;
drivers/media/platform/qcom/venus/core.h +0 -2
index cba092bcb76d..a0fe80df0cbd 100644
@@ -194,7 +194,6 @@ struct venus_buffer {
  * @fh:	 a holder of v4l file handle structure
  * @streamon_cap: stream on flag for capture queue
  * @streamon_out: stream on flag for output queue
- * @cmd_stop:	a flag to signal encoder/decoder commands
  * @width:	current capture width
  * @height:	current capture height
  * @out_width:	current output width
@@ -258,7 +257,6 @@ struct venus_inst {
 	} controls;
 	struct v4l2_fh fh;
 	unsigned int streamon_cap, streamon_out;
-	bool cmd_stop;
 	u32 width;
 	u32 height;
 	u32 out_width;
drivers/media/platform/qcom/venus/helpers.c +0 -7
index 9b2a401a4891..0ce9559a2924 100644
@@ -623,13 +623,6 @@ void venus_helper_vb2_buf_queue(struct vb2_buffer *vb)
 
 	mutex_lock(&inst->lock);
 
-	if (inst->cmd_stop) {
-		vbuf->flags |= V4L2_BUF_FLAG_LAST;
-		v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_DONE);
-		inst->cmd_stop = false;
-		goto unlock;
-	}
-
 	v4l2_m2m_buf_queue(m2m_ctx, vbuf);
 
 	if (!(inst->streamon_out & inst->streamon_cap))
drivers/media/platform/qcom/venus/hfi.c +1 -0
index c09490876516..ba29fd4d4984 100644
@@ -484,6 +484,7 @@ int hfi_session_process_buf(struct venus_inst *inst, struct hfi_frame_data *fd)
 
 	return -EINVAL;
 }
+EXPORT_SYMBOL_GPL(hfi_session_process_buf);
 
 irqreturn_t hfi_isr_thread(int irq, void *dev_id)
 {
drivers/media/platform/qcom/venus/hfi_venus.c +4 -8
index 1caae8feaa36..734ce11b0ed0 100644
@@ -344,7 +344,7 @@ static int venus_alloc(struct venus_hfi_device *hdev, struct mem_desc *desc,
 	desc->attrs = DMA_ATTR_WRITE_COMBINE;
 	desc->size = ALIGN(size, SZ_4K);
 
-	desc->kva = dma_alloc_attrs(dev, size, &desc->da, GFP_KERNEL,
+	desc->kva = dma_alloc_attrs(dev, desc->size, &desc->da, GFP_KERNEL,
 				    desc->attrs);
 	if (!desc->kva)
 		return -ENOMEM;
@@ -710,10 +710,8 @@ static int venus_interface_queues_init(struct venus_hfi_device *hdev)
 	if (ret)
 		return ret;
 
-	hdev->ifaceq_table.kva = desc.kva;
-	hdev->ifaceq_table.da = desc.da;
-	hdev->ifaceq_table.size = IFACEQ_TABLE_SIZE;
-	offset = hdev->ifaceq_table.size;
+	hdev->ifaceq_table = desc;
+	offset = IFACEQ_TABLE_SIZE;
 
 	for (i = 0; i < IFACEQ_NUM; i++) {
 		queue = &hdev->queues[i];
@@ -755,9 +753,7 @@ static int venus_interface_queues_init(struct venus_hfi_device *hdev)
 	if (ret) {
 		hdev->sfr.da = 0;
 	} else {
-		hdev->sfr.da = desc.da;
-		hdev->sfr.kva = desc.kva;
-		hdev->sfr.size = ALIGNED_SFR_SIZE;
+		hdev->sfr = desc;
 		sfr = hdev->sfr.kva;
 		sfr->buf_size = ALIGNED_SFR_SIZE;
 	}
drivers/media/platform/qcom/venus/vdec.c +23 -11
index da611a5eb670..c9e9576bb08a 100644
@@ -469,8 +469,14 @@ static int vdec_subscribe_event(struct v4l2_fh *fh,
 static int
 vdec_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd)
 {
-	if (cmd->cmd != V4L2_DEC_CMD_STOP)
+	switch (cmd->cmd) {
+	case V4L2_DEC_CMD_STOP:
+		if (cmd->flags & V4L2_DEC_CMD_STOP_TO_BLACK)
+			return -EINVAL;
+		break;
+	default:
 		return -EINVAL;
+	}
 
 	return 0;
 }
@@ -479,6 +485,7 @@ static int
 vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd)
 {
 	struct venus_inst *inst = to_inst(file);
+	struct hfi_frame_data fdata = {0};
 	int ret;
 
 	ret = vdec_try_decoder_cmd(file, fh, cmd);
@@ -486,12 +493,23 @@ vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd)
 		return ret;
 
 	mutex_lock(&inst->lock);
-	inst->cmd_stop = true;
-	mutex_unlock(&inst->lock);
 
-	hfi_session_flush(inst);
+	/*
+	 * Implement V4L2_DEC_CMD_STOP by enqueue an empty buffer on decoder
+	 * input to signal EOS.
+	 */
+	if (!(inst->streamon_out & inst->streamon_cap))
+		goto unlock;
+
+	fdata.buffer_type = HFI_BUFFER_INPUT;
+	fdata.flags |= HFI_BUFFERFLAG_EOS;
+	fdata.device_addr = 0xdeadbeef;
 
-	return 0;
+	ret = hfi_session_process_buf(inst, &fdata);
+
+unlock:
+	mutex_unlock(&inst->lock);
+	return ret;
 }
 
 static const struct v4l2_ioctl_ops vdec_ioctl_ops = {
@@ -718,7 +736,6 @@ static int vdec_start_streaming(struct vb2_queue *q, unsigned int count)
 	inst->reconfig = false;
 	inst->sequence_cap = 0;
 	inst->sequence_out = 0;
-	inst->cmd_stop = false;
 
 	ret = vdec_init_session(inst);
 	if (ret)
@@ -807,11 +824,6 @@ static void vdec_buf_done(struct venus_inst *inst, unsigned int buf_type,
 		vb->timestamp = timestamp_us * NSEC_PER_USEC;
 		vbuf->sequence = inst->sequence_cap++;
 
-		if (inst->cmd_stop) {
-			vbuf->flags |= V4L2_BUF_FLAG_LAST;
-			inst->cmd_stop = false;
-		}
-
 		if (vbuf->flags & V4L2_BUF_FLAG_LAST) {
 			const struct v4l2_event ev = { .type = V4L2_EVENT_EOS };
 
drivers/media/platform/qcom/venus/venc.c +3 -4
index 6f123a387cf9..3fcf0e9b7b29 100644
@@ -963,13 +963,12 @@ static void venc_buf_done(struct venus_inst *inst, unsigned int buf_type,
 	if (!vbuf)
 		return;
 
-	vb = &vbuf->vb2_buf;
-	vb->planes[0].bytesused = bytesused;
-	vb->planes[0].data_offset = data_offset;
-
 	vbuf->flags = flags;
 
 	if (type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
+		vb = &vbuf->vb2_buf;
+		vb2_set_plane_payload(vb, 0, bytesused + data_offset);
+		vb->planes[0].data_offset = data_offset;
 		vb->timestamp = timestamp_us * NSEC_PER_USEC;
 		vbuf->sequence = inst->sequence_cap++;
 	} else {
drivers/media/rc/ir-lirc-codec.c +6 -3
index d2223c04e9ad..4c8f456238bc 100644
@@ -298,11 +298,14 @@ static long ir_lirc_ioctl(struct file *filep, unsigned int cmd,
 		if (!dev->max_timeout)
 			return -ENOTTY;
 
+		/* Check for multiply overflow */
+		if (val > U32_MAX / 1000)
+			return -EINVAL;
+
 		tmp = val * 1000;
 
-		if (tmp < dev->min_timeout ||
-		    tmp > dev->max_timeout)
-				return -EINVAL;
+		if (tmp < dev->min_timeout || tmp > dev->max_timeout)
+			return -EINVAL;
 
 		if (dev->s_timeout)
 			ret = dev->s_timeout(dev, tmp);
drivers/media/rc/ir-nec-decoder.c +17 -12
index 817c18f2ddd1..a95d09acc22a 100644
@@ -87,8 +87,6 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev)
 			data->state = STATE_BIT_PULSE;
 			return 0;
 		} else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) {
-			rc_repeat(dev);
-			IR_dprintk(1, "Repeat last key\n");
 			data->state = STATE_TRAILER_PULSE;
 			return 0;
 		}
@@ -151,19 +149,26 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev)
 		if (!geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2))
 			break;
 
-		address     = bitrev8((data->bits >> 24) & 0xff);
-		not_address = bitrev8((data->bits >> 16) & 0xff);
-		command	    = bitrev8((data->bits >>  8) & 0xff);
-		not_command = bitrev8((data->bits >>  0) & 0xff);
+		if (data->count == NEC_NBITS) {
+			address     = bitrev8((data->bits >> 24) & 0xff);
+			not_address = bitrev8((data->bits >> 16) & 0xff);
+			command	    = bitrev8((data->bits >>  8) & 0xff);
+			not_command = bitrev8((data->bits >>  0) & 0xff);
+
+			scancode = ir_nec_bytes_to_scancode(address,
+							    not_address,
+							    command,
+							    not_command,
+							    &rc_proto);
 
-		scancode = ir_nec_bytes_to_scancode(address, not_address,
-						    command, not_command,
-						    &rc_proto);
+			if (data->is_nec_x)
+				data->necx_repeat = true;
 
-		if (data->is_nec_x)
-			data->necx_repeat = true;
+			rc_keydown(dev, rc_proto, scancode, 0);
+		} else {
+			rc_repeat(dev);
+		}
 
-		rc_keydown(dev, rc_proto, scancode, 0);
 		data->state = STATE_INACTIVE;
 		return 0;
 	}
drivers/media/usb/as102/as102_fw.c +17 -11
index 5a28ce3a1d49..38dbc128340d 100644
@@ -101,18 +101,23 @@ static int as102_firmware_upload(struct as10x_bus_adapter_t *bus_adap,
 				 unsigned char *cmd,
 				 const struct firmware *firmware) {
 
-	struct as10x_fw_pkt_t fw_pkt;
+	struct as10x_fw_pkt_t *fw_pkt;
 	int total_read_bytes = 0, errno = 0;
 	unsigned char addr_has_changed = 0;
 
+	fw_pkt = kmalloc(sizeof(*fw_pkt), GFP_KERNEL);
+	if (!fw_pkt)
+		return -ENOMEM;
+
+
 	for (total_read_bytes = 0; total_read_bytes < firmware->size; ) {
 		int read_bytes = 0, data_len = 0;
 
 		/* parse intel hex line */
 		read_bytes = parse_hex_line(
 				(u8 *) (firmware->data + total_read_bytes),
-				fw_pkt.raw.address,
-				fw_pkt.raw.data,
+				fw_pkt->raw.address,
+				fw_pkt->raw.data,
 				&data_len,
 				&addr_has_changed);
 
@@ -122,28 +127,28 @@ static int as102_firmware_upload(struct as10x_bus_adapter_t *bus_adap,
 		/* detect the end of file */
 		total_read_bytes += read_bytes;
 		if (total_read_bytes == firmware->size) {
-			fw_pkt.u.request[0] = 0x00;
-			fw_pkt.u.request[1] = 0x03;
+			fw_pkt->u.request[0] = 0x00;
+			fw_pkt->u.request[1] = 0x03;
 
 			/* send EOF command */
 			errno = bus_adap->ops->upload_fw_pkt(bus_adap,
 							     (uint8_t *)
-							     &fw_pkt, 2, 0);
+							     fw_pkt, 2, 0);
 			if (errno < 0)
 				goto error;
 		} else {
 			if (!addr_has_changed) {
 				/* prepare command to send */
-				fw_pkt.u.request[0] = 0x00;
-				fw_pkt.u.request[1] = 0x01;
+				fw_pkt->u.request[0] = 0x00;
+				fw_pkt->u.request[1] = 0x01;
 
-				data_len += sizeof(fw_pkt.u.request);
-				data_len += sizeof(fw_pkt.raw.address);
+				data_len += sizeof(fw_pkt->u.request);
+				data_len += sizeof(fw_pkt->raw.address);
 
 				/* send cmd to device */
 				errno = bus_adap->ops->upload_fw_pkt(bus_adap,
 								     (uint8_t *)
-								     &fw_pkt,
+								     fw_pkt,
 								     data_len,
 								     0);
 				if (errno < 0)
@@ -152,6 +157,7 @@ static int as102_firmware_upload(struct as10x_bus_adapter_t *bus_adap,
 		}
 	}
 error:
+	kfree(fw_pkt);
 	return (errno == 0) ? total_read_bytes : errno;
 }
 
drivers/media/usb/cx231xx/cx231xx-cards.c +1 -1
index e0daa9b6c2a0..9b742d569fb5 100644
@@ -1684,7 +1684,7 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
 	nr = dev->devno;
 
 	assoc_desc = udev->actconfig->intf_assoc[0];
-	if (assoc_desc->bFirstInterface != ifnum) {
+	if (!assoc_desc || assoc_desc->bFirstInterface != ifnum) {
 		dev_err(d, "Not found matching IAD interface\n");
 		retval = -ENODEV;
 		goto err_if;
drivers/media/v4l2-core/v4l2-ctrls.c +12 -4
index dd1db678718c..8033d6f73501 100644
@@ -1227,6 +1227,16 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
 }
 EXPORT_SYMBOL(v4l2_ctrl_fill);
 
+static u32 user_flags(const struct v4l2_ctrl *ctrl)
+{
+	u32 flags = ctrl->flags;
+
+	if (ctrl->is_ptr)
+		flags |= V4L2_CTRL_FLAG_HAS_PAYLOAD;
+
+	return flags;
+}
+
 static void fill_event(struct v4l2_event *ev, struct v4l2_ctrl *ctrl, u32 changes)
 {
 	memset(ev->reserved, 0, sizeof(ev->reserved));
@@ -1234,7 +1244,7 @@ static void fill_event(struct v4l2_event *ev, struct v4l2_ctrl *ctrl, u32 change
 	ev->id = ctrl->id;
 	ev->u.ctrl.changes = changes;
 	ev->u.ctrl.type = ctrl->type;
-	ev->u.ctrl.flags = ctrl->flags;
+	ev->u.ctrl.flags = user_flags(ctrl);
 	if (ctrl->is_ptr)
 		ev->u.ctrl.value64 = 0;
 	else
@@ -2577,10 +2587,8 @@ int v4l2_query_ext_ctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_query_ext_ctr
 	else
 		qc->id = ctrl->id;
 	strlcpy(qc->name, ctrl->name, sizeof(qc->name));
-	qc->flags = ctrl->flags;
+	qc->flags = user_flags(ctrl);
 	qc->type = ctrl->type;
-	if (ctrl->is_ptr)
-		qc->flags |= V4L2_CTRL_FLAG_HAS_PAYLOAD;
 	qc->elem_size = ctrl->elem_size;
 	qc->elems = ctrl->elems;
 	qc->nr_of_dims = ctrl->nr_of_dims;
drivers/mfd/lpc_ich.c +1 -0
index 450ae36645aa..cf1120abbf52 100644
@@ -522,6 +522,7 @@ static struct lpc_ich_info lpc_chipset_info[] = {
 		.name = "Avoton SoC",
 		.iTCO_version = 3,
 		.gpio_version = AVOTON_GPIO,
+		.spi_type = INTEL_SPI_BYT,
 	},
 	[LPC_BAYTRAIL] = {
 		.name = "Bay Trail SoC",
drivers/mtd/devices/docg3.c +6 -1
index 84b16133554b..0806f72102c0 100644
@@ -1814,8 +1814,13 @@ static void __init doc_dbg_register(struct mtd_info *floor)
 	struct dentry *root = floor->dbg.dfs_dir;
 	struct docg3 *docg3 = floor->priv;
 
-	if (IS_ERR_OR_NULL(root))
+	if (IS_ERR_OR_NULL(root)) {
+		if (IS_ENABLED(CONFIG_DEBUG_FS) &&
+		    !IS_ENABLED(CONFIG_MTD_PARTITIONED_MASTER))
+			dev_warn(floor->dev.parent,
+				 "CONFIG_MTD_PARTITIONED_MASTER must be enabled to expose debugfs stuff\n");
 		return;
+	}
 
 	debugfs_create_file("docg3_flashcontrol", S_IRUSR, root, docg3,
 			    &flashcontrol_fops);
drivers/mtd/nand/atmel/nand-controller.c +1 -0
index f25eca79f4e5..68c9d98a3347 100644
@@ -2547,6 +2547,7 @@ static struct platform_driver atmel_nand_controller_driver = {
 	.driver = {
 		.name = "atmel-nand-controller",
 		.of_match_table = of_match_ptr(atmel_nand_controller_of_ids),
+		.pm = &atmel_nand_controller_pm_ops,
 	},
 	.probe = atmel_nand_controller_probe,
 	.remove = atmel_nand_controller_remove,
drivers/mtd/nand/mtk_ecc.c +11 -2
index 7f3b065b6b8f..c51d214d169e 100644
@@ -115,6 +115,11 @@ static irqreturn_t mtk_ecc_irq(int irq, void *id)
 		op = ECC_DECODE;
 		dec = readw(ecc->regs + ECC_DECDONE);
 		if (dec & ecc->sectors) {
+			/*
+			 * Clear decode IRQ status once again to ensure that
+			 * there will be no extra IRQ.
+			 */
+			readw(ecc->regs + ECC_DECIRQ_STA);
 			ecc->sectors = 0;
 			complete(&ecc->done);
 		} else {
@@ -130,8 +135,6 @@ static irqreturn_t mtk_ecc_irq(int irq, void *id)
 		}
 	}
 
-	writel(0, ecc->regs + ECC_IRQ_REG(op));
-
 	return IRQ_HANDLED;
 }
 
@@ -307,6 +310,12 @@ void mtk_ecc_disable(struct mtk_ecc *ecc)
 
 	/* disable it */
 	mtk_ecc_wait_idle(ecc, op);
+	if (op == ECC_DECODE)
+		/*
+		 * Clear decode IRQ status in case there is a timeout to wait
+		 * decode IRQ.
+		 */
+		readw(ecc->regs + ECC_DECIRQ_STA);
 	writew(0, ecc->regs + ECC_IRQ_REG(op));
 	writew(ECC_OP_DISABLE, ecc->regs + ECC_CTL_REG(op));
 
drivers/mtd/nand/nand_base.c +7 -3
index 12edaae17d81..3f1d806e590a 100644
@@ -1246,6 +1246,7 @@ int nand_reset(struct nand_chip *chip, int chipnr)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(nand_reset);
 
 /**
  * nand_check_erased_buf - check if a buffer contains (almost) only 0xff data
@@ -2799,15 +2800,18 @@ static int panic_nand_write(struct mtd_info *mtd, loff_t to, size_t len,
 			    size_t *retlen, const uint8_t *buf)
 {
 	struct nand_chip *chip = mtd_to_nand(mtd);
+	int chipnr = (int)(to >> chip->chip_shift);
 	struct mtd_oob_ops ops;
 	int ret;
 
-	/* Wait for the device to get ready */
-	panic_nand_wait(mtd, chip, 400);
-
 	/* Grab the device */
 	panic_nand_get_device(chip, mtd, FL_WRITING);
 
+	chip->select_chip(mtd, chipnr);
+
+	/* Wait for the device to get ready */
+	panic_nand_wait(mtd, chip, 400);
+
 	memset(&ops, 0, sizeof(ops));
 	ops.len = len;
 	ops.datbuf = (uint8_t *)buf;
drivers/mtd/nand/nandsim.c +9 -4
index 246b4393118e..44322a363ba5 100644
@@ -520,11 +520,16 @@ static int nandsim_debugfs_create(struct nandsim *dev)
 	struct dentry *root = nsmtd->dbg.dfs_dir;
 	struct dentry *dent;
 
-	if (!IS_ENABLED(CONFIG_DEBUG_FS))
+	/*
+	 * Just skip debugfs initialization when the debugfs directory is
+	 * missing.
+	 */
+	if (IS_ERR_OR_NULL(root)) {
+		if (IS_ENABLED(CONFIG_DEBUG_FS) &&
+		    !IS_ENABLED(CONFIG_MTD_PARTITIONED_MASTER))
+			NS_WARN("CONFIG_MTD_PARTITIONED_MASTER must be enabled to expose debugfs stuff\n");
 		return 0;
-
-	if (IS_ERR_OR_NULL(root))
-		return -1;
+	}
 
 	dent = debugfs_create_file("nandsim_wear_report", S_IRUSR,
 				   root, dev, &dfs_fops);
drivers/mtd/nand/omap2.c +224 -115

163 lines not on this page · raw message

drivers/mtd/spi-nor/intel-spi.c +2 -2
index 8a596bfeddff..7802ac3ba934 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/e1000e/defines.h +1 -0
index 0641c0098738..afb7ebe20b24 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/e1000e/mac.c +8 -3
index b322011ec282..f457c5703d0c 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/e1000e/netdev.c +32 -13

45 lines not on this page · raw message

drivers/net/ethernet/intel/e1000e/phy.c +4 -3
index d78d47b41a71..86ff0969efb6 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/fm10k/fm10k_main.c +1 -1
index 9dffaba85ae6..103c0a742d03 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_main.c +1 -1
index 6498da8806cb..ea20aacd5e1d 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_txrx.c +1 -1
index 120c68f78951..3c07ff171ddc 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40evf/i40e_txrx.c +1 -1
index c32c62462c84..07a4e6e13925 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/igb/igb_main.c +1 -1
index ea69af267d63..b0031c5ff767 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/igbvf/netdev.c +1 -1
index 1ed556911b14..6f5888bd9194 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +1 -1
index 6d5f31e94358..879a9c4cef59 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +1 -1
index 032f8ac06357..90ecc4b06462 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/mvneta.c +8 -5
index 64a04975bcf8..bc93b69cfd1e 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/cfg/9000.c +65 -8

73 lines not on this page · raw message

drivers/net/wireless/intel/iwlwifi/cfg/a000.c +5 -5
index a440140ed8dd..7eade165b747 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/fw/api/scan.h +46 -13

59 lines not on this page · raw message

drivers/net/wireless/intel/iwlwifi/fw/file.h +1 -0
index 279248cd9cfb..e988e4c371c4 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/iwl-config.h +5 -0
index 71cb1ecde0f7..e226179c32fa 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/mvm/mvm.h +6 -0
index 949e63418299..8dcdb522b846 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/mvm/scan.c +65 -21

86 lines not on this page · raw message

drivers/net/wireless/intel/iwlwifi/pcie/drv.c +134 -49

183 lines not on this page · raw message

drivers/net/wireless/intersil/p54/main.c +3 -4
index d5a3bf91a03e..ab6d39e12069 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ralink/rt2x00/rt2x00usb.c +3 -3
index e2f4f5778267..086aad22743d 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c +4 -2
index 7eae27f8e173..f9563ae301ad 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c +1 -0
index 1d431d4bf6d2..9ac1511de7ba 100644

Lines of this file are not shown. View the raw message.

drivers/nvdimm/dimm.c +1 -0
index e0f0e3ce1a32..98466d762c8f 100644

Lines of this file are not shown. View the raw message.

drivers/nvdimm/dimm_devs.c +7 -0
index f0d1b7e5de01..5f1385b96b13 100644

Lines of this file are not shown. View the raw message.

drivers/nvdimm/label.c +1 -1
index 9c5f108910e3..de66c02f6140 100644

Lines of this file are not shown. View the raw message.

drivers/nvdimm/namespace_devs.c +1 -1
index 3e4d1e7998da..0af988739a06 100644

Lines of this file are not shown. View the raw message.

drivers/nvdimm/nd.h +1 -0
index 9c758a91372b..156be00e1f76 100644

Lines of this file are not shown. View the raw message.

drivers/nvdimm/pfn_devs.c +8 -0
index 9576c444f0ab..65cc171c721d 100644

Lines of this file are not shown. View the raw message.

drivers/nvdimm/region_devs.c +6 -2
index 829d760f651c..abaf38c61220 100644

Lines of this file are not shown. View the raw message.

drivers/pci/host/pci-hyperv.c +5 -3
index 0fe3ea164ee5..04dac6a42c9f 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/aspm.c +2 -2
index 83e4a892b14b..cae54f8320be 100644

Lines of this file are not shown. View the raw message.

drivers/pci/quirks.c +21 -6
index 911b3b65c8b2..f66f9375177c 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_attr.c +4 -2
index c17677f494af..dc6519b2c53a 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_bsg.c +3 -1
index fe9e1c079c20..d89816222b23 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_els.c +6 -1
index 468a66371de9..3ebf6ccba6e6 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_hbadisc.c +4 -1
index 20808349a80e..499df9d17339 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_init.c +8 -7
index 100bc4c8798d..6acf1bb1d320 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_nportdisc.c +1 -1
index f3ad7cac355d..b6957d944b9a 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_nvmet.c +11 -4
index 0b7c1a49e203..3c5b054a56ac 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_sli.c +26 -8
index 8b119f87b51d..455f3ce9fda9 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_os.c +1 -1
index dce42a416876..6eaaa326e508 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/sd_zbc.c +3 -3
index 8aa54779aac1..2eb61d54bbb4 100644

Lines of this file are not shown. View the raw message.

drivers/target/iscsi/iscsi_target.c +14 -16
index 5001261f5d69..d9ba4ee2c62b 100644

Lines of this file are not shown. View the raw message.

drivers/target/target_core_pr.c +1 -0
index dd2cd8048582..9f25c9c6f67d 100644

Lines of this file are not shown. View the raw message.

drivers/target/target_core_tmr.c +11 -1
index e22847bd79b9..9c7bc1ca341a 100644

Lines of this file are not shown. View the raw message.

drivers/target/target_core_transport.c +23 -3
index 836d552b0385..e6d51135d105 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serdev/core.c +16 -3
index c68fb3a8ea1c..97db76afced2 100644

Lines of this file are not shown. View the raw message.

drivers/vhost/scsi.c +3 -2
index 046f6d280af5..e47c5bc3ddca 100644

Lines of this file are not shown. View the raw message.

fs/9p/vfs_inode.c +3 -0
index 2a5de610dd8f..bdabb2765d1b 100644

Lines of this file are not shown. View the raw message.

fs/9p/vfs_inode_dotl.c +3 -0
index 70f9887c59a9..7f6ae21a27b3 100644

Lines of this file are not shown. View the raw message.

fs/autofs4/waitq.c +14 -1
index 4ac49d038bf3..8fc41705c7cd 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/extent-tree.c +28 -14

42 lines not on this page · raw message

fs/buffer.c +9 -1
index 170df856bdb9..b96f3b98a6ef 100644

Lines of this file are not shown. View the raw message.

fs/crypto/crypto.c +2 -5
index c7835df7e7b8..d262a93d9b31 100644

Lines of this file are not shown. View the raw message.

fs/dax.c +3 -3
index f001d8c72a06..191306cd8b6b 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/messaging.c +4 -3
index 286f10b0363b..4f457d5c4933 100644

Lines of this file are not shown. View the raw message.

fs/ext4/extents.c +4 -2
index 97f0fd06728d..07bca11749d4 100644

Lines of this file are not shown. View the raw message.

fs/ext4/inline.c +0 -10
index 28c5c3abddb3..fd9501977f1c 100644

Lines of this file are not shown. View the raw message.

fs/ext4/inode.c +0 -5
index 90afeb7293a6..38eb621edd80 100644

Lines of this file are not shown. View the raw message.

fs/ext4/ioctl.c +13 -3
index 75d83471f65c..d97f40396765 100644

Lines of this file are not shown. View the raw message.

fs/ext4/super.c +5 -0
index b0915b734a38..f29351c66610 100644

Lines of this file are not shown. View the raw message.

fs/f2fs/file.c +6 -0
index 517e112c8a9a..6ce467872376 100644

Lines of this file are not shown. View the raw message.

fs/isofs/isofs.h +1 -1
index 57d4c3e2e94a..8e42b4fbefdc 100644

Lines of this file are not shown. View the raw message.

fs/isofs/rock.h +1 -1
index ef03625431bb..ac5cc587d718 100644

Lines of this file are not shown. View the raw message.

fs/isofs/util.c +1 -1
index 42544bf0e222..e88dba721661 100644

Lines of this file are not shown. View the raw message.

fs/lockd/svc.c +9 -11
index b995bdc13976..f04ecfc7ece0 100644

Lines of this file are not shown. View the raw message.

fs/nfs/dir.c +2 -2
index 5ceaeb1f6fb6..b03b3bc05f96 100644

Lines of this file are not shown. View the raw message.

fs/nfs/file.c +2 -16
index 0214dd1e1060..81cca49a8375 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4proc.c +22 -10
index f90090e8c959..2241d52710f7 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4trace.h +6 -18
index e7c6275519b0..71d2ca04a9f8 100644

Lines of this file are not shown. View the raw message.

fs/nfs/super.c +1 -1
index c9d24bae3025..216f67d628b3 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs4state.c +24 -1
index 0c04f81aa63b..d386d569edbc 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/segment.c +4 -2
index 70ded52dc1dd..50e12956c737 100644

Lines of this file are not shown. View the raw message.

fs/notify/fanotify/fanotify.c +20 -13
index 09640b546363..3c7053207297 100644

Lines of this file are not shown. View the raw message.

fs/notify/fsnotify.c +7 -3
index 0c4583b61717..074716293829 100644

Lines of this file are not shown. View the raw message.

fs/notify/mark.c +52 -55

107 lines not on this page · raw message

fs/overlayfs/namei.c +1 -1
index a12dc10bf726..bc6d5c5a3443 100644

Lines of this file are not shown. View the raw message.

include/linux/genhd.h +1 -0
index 44790523057f..5ade8f2a6987 100644

Lines of this file are not shown. View the raw message.

include/linux/irq.h +10 -1
index 4536286cc4d2..0d53626405bf 100644

Lines of this file are not shown. View the raw message.

include/net/tls.h +4 -0
index b89d397dd62f..c06db1eadac2 100644

Lines of this file are not shown. View the raw message.

include/sound/control.h +3 -1
index a1f1152bc687..ca13a44ae9d4 100644

Lines of this file are not shown. View the raw message.

include/target/target_core_base.h +1 -0
index f5db145e68ec..0d924e968c94 100644

Lines of this file are not shown. View the raw message.

include/trace/events/sunrpc.h +10 -7
index 25a7739514cd..3868b4752324 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/rxrpc.h +5 -5
index 9656aad8f8f7..9d4afea308a4 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/tls.h +0 -4
index d5e0682ab837..293b2cdad88d 100644

Lines of this file are not shown. View the raw message.

kernel/irq/manage.c +12 -1
index 4bff6a10ae8e..b02caa442776 100644

Lines of this file are not shown. View the raw message.

kernel/sched/core.c +1 -2
index d17c5da523a0..8fa7b6f9e19b 100644

Lines of this file are not shown. View the raw message.

kernel/sched/cpufreq_schedutil.c +5 -1
index ba0da243fdd8..2f52ec0f1539 100644

Lines of this file are not shown. View the raw message.

kernel/sched/rt.c +115 -201

316 lines not on this page · raw message

kernel/sched/sched.h +17 -7
index 3b448ba82225..b732e779fe7d 100644

Lines of this file are not shown. View the raw message.

kernel/sched/topology.c +6 -0
index 6798276d29af..093f2ceba2e2 100644

Lines of this file are not shown. View the raw message.

lib/mpi/mpi-pow.c +2 -0
index e24388a863a7..468fb7cd1221 100644

Lines of this file are not shown. View the raw message.

mm/z3fold.c +8 -2
index b2ba2ba585f3..39e19125d6a0 100644

Lines of this file are not shown. View the raw message.

net/9p/client.c +2 -3
index 4674235b0d9b..b433aff5ff13 100644

Lines of this file are not shown. View the raw message.

net/9p/trans_fd.c +3 -3
index 903a190319b9..985046ae4231 100644

Lines of this file are not shown. View the raw message.

net/9p/trans_virtio.c +6 -7
index f24b25c25106..f3a4efcf1456 100644

Lines of this file are not shown. View the raw message.

net/9p/trans_xen.c +2 -2
index 6ad3e043c617..325c56043007 100644

Lines of this file are not shown. View the raw message.

net/ceph/crypto.c +3 -1
index 489610ac1cdd..bf9d079cbafd 100644

Lines of this file are not shown. View the raw message.

net/nfc/core.c +1 -1
index 5cf33df888c3..c699d64a0753 100644

Lines of this file are not shown. View the raw message.

net/sunrpc/xprtrdma/svc_rdma_backchannel.c +5 -1
index 992594b7cc6b..af7893501e40 100644

Lines of this file are not shown. View the raw message.

sound/core/pcm_lib.c +4 -2
index a93a4235a332..10e7ef7a8804 100644

Lines of this file are not shown. View the raw message.

sound/core/timer_compat.c +6 -6
index 59127b6ef39e..e00f7e399e46 100644

Lines of this file are not shown. View the raw message.

sound/core/vmaster.c +4 -2
index e43af18d4383..8632301489fa 100644

Lines of this file are not shown. View the raw message.

sound/hda/hdmi_chmap.c +1 -1
index 81acc20c2535..f21633cd9b38 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_codec.c +7 -3
index a0989d231fd0..417abbb1f72c 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_intel.c +3 -0
index f958d8d54d15..c71dcacea807 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +4 -1
index dce0682c5001..7c39114d124f 100644

Lines of this file are not shown. View the raw message.

sound/soc/sunxi/sun8i-codec.c +56 -5

61 lines not on this page · raw message

sound/usb/clock.c +6 -3
index 26dd5f20f149..eb3396ffba4c 100644

Lines of this file are not shown. View the raw message.

sound/usb/mixer.c +14 -1
index 91bc8f18791e..2b835cca41b1 100644

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.