Skip to contentSkip to conversation

Linux 4.1.11

DISCUSSION Greg KH 1 participant 2 messages Oct 23, 2015 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.1.11 kernel.

All users of the 4.1 kernel series must upgrade.

The updated 4.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.1.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

------------

 Documentation/HOWTO                            |   28 ++---
 Makefile                                       |    2 
 arch/arm/Makefile                              |    8 +
 arch/arm/boot/dts/imx25-pdk.dts                |    5 -
 arch/arm/boot/dts/imx51-apf51dev.dts           |    2 
 arch/arm/boot/dts/imx53-ard.dts                |    4 
 arch/arm/boot/dts/imx53-m53evk.dts             |    4 
 arch/arm/boot/dts/imx53-qsb-common.dtsi        |    4 
 arch/arm/boot/dts/imx53-smd.dts                |    4 
 arch/arm/boot/dts/imx53-tqma53.dtsi            |    4 
 arch/arm/boot/dts/imx53-tx53.dtsi              |    4 
 arch/arm/boot/dts/imx53-voipac-bsb.dts         |    4 
 arch/arm/boot/dts/imx6qdl-rex.dtsi             |    2 
 arch/arm/boot/dts/omap3-beagle.dts             |    2 
 arch/arm/boot/dts/omap5-uevm.dts               |    4 
 arch/arm/kernel/kgdb.c                         |    8 +
 arch/arm/kernel/signal.c                       |   15 ++-
 arch/arm/kvm/interrupts_head.S                 |    6 -
 arch/arm/kvm/mmu.c                             |    6 -
 arch/arm/mach-exynos/mcpm-exynos.c             |   27 +++++
 arch/arm/mach-exynos/regs-pmu.h                |    6 +
 arch/arm64/kernel/efi.c                        |    3 
 arch/arm64/kernel/entry-ftrace.S               |   22 ++++
 arch/arm64/mm/fault.c                          |    1 
 arch/m68k/include/asm/linkage.h                |   30 ++++++
 arch/mips/loongson/common/env.c                |    3 
 arch/mips/mm/dma-default.c                     |    2 
 arch/powerpc/kvm/book3s.c                      |    6 +
 arch/powerpc/kvm/book3s_hv_rmhandlers.S        |    1 
 arch/powerpc/platforms/powernv/pci.c           |    5 -
 arch/powerpc/sysdev/fsl_msi.c                  |    5 -
 arch/powerpc/sysdev/mpic_pasemi_msi.c          |    6 -
 arch/powerpc/sysdev/mpic_u3msi.c               |    5 -
 arch/powerpc/sysdev/ppc4xx_msi.c               |    5 -
 arch/s390/boot/compressed/Makefile             |    2 
 arch/s390/kernel/compat_signal.c               |   27 ++++-
 arch/x86/kernel/alternative.c                  |    5 +
 arch/x86/kernel/apic/apic.c                    |    7 +
 arch/x86/kernel/cpu/perf_event_intel.c         |    5 -
 arch/x86/kernel/crash.c                        |    7 -
 arch/x86/kernel/entry_64.S                     |   16 +++
 arch/x86/kernel/paravirt.c                     |   16 ++-
 arch/x86/kernel/process_64.c                   |   52 ++++++++--
 arch/x86/kernel/tsc.c                          |   17 ++-
 arch/x86/kvm/svm.c                             |    2 
 arch/x86/kvm/vmx.c                             |    2 
 arch/x86/mm/init_64.c                          |    2 
 arch/x86/platform/efi/efi.c                    |   67 +++++++++++++
 arch/x86/xen/enlighten.c                       |   23 ++++
 drivers/base/cacheinfo.c                       |   10 +-
 drivers/base/property.c                        |    5 -
 drivers/base/regmap/regmap-debugfs.c           |    5 -
 drivers/clk/ti/clk-3xxx.c                      |    2 
 drivers/cpufreq/cpufreq-dt.c                   |    3 
 drivers/cpufreq/intel_pstate.c                 |   10 +-
 drivers/dma/dw/core.c                          |    4 
 drivers/firmware/efi/libstub/arm-stub.c        |   88 ++++++++++++++---
 drivers/gpu/drm/drm_dp_mst_topology.c          |    5 -
 drivers/gpu/drm/drm_lock.c                     |    6 +
 drivers/gpu/drm/i915/intel_bios.c              |   12 ++
 drivers/gpu/drm/qxl/qxl_display.c              |   14 +-
 drivers/gpu/drm/radeon/atombios_encoders.c     |    8 -
 drivers/hwmon/nct6775.c                        |   16 ++-
 drivers/infiniband/ulp/isert/ib_isert.c        |   47 +++++++++
 drivers/irqchip/irq-atmel-aic5.c               |   24 +++-
 drivers/irqchip/irq-gic-v3-its.c               |    6 +
 drivers/leds/led-class.c                       |    7 +
 drivers/macintosh/windfarm_core.c              |    2 
 drivers/md/bitmap.c                            |    3 
 drivers/md/dm-cache-policy-cleaner.c           |    2 
 drivers/md/dm-crypt.c                          |   17 +++
 drivers/md/dm-raid.c                           |    3 
 drivers/md/dm.c                                |    6 -
 drivers/md/persistent-data/dm-btree-internal.h |    6 +
 drivers/md/persistent-data/dm-btree-remove.c   |   12 --
 drivers/md/persistent-data/dm-btree-spine.c    |   37 +++++++
 drivers/md/persistent-data/dm-btree.c          |    7 -
 drivers/md/raid0.c                             |   75 +++++++--------
 drivers/mmc/core/host.c                        |    4 
 drivers/mmc/host/dw_mmc.c                      |  109 ++++++++++++++-------
 drivers/mmc/host/sdhci-esdhc-imx.c             |   50 ++++++++--
 drivers/mmc/host/sdhci.c                       |   67 +++++--------
 drivers/mmc/host/sdhci.h                       |    8 -
 drivers/mtd/nand/pxa3xx_nand.c                 |    3 
 drivers/mtd/nand/sunxi_nand.c                  |   27 ++---
 drivers/mtd/ubi/io.c                           |    5 +
 drivers/mtd/ubi/vtbl.c                         |    1 
 drivers/mtd/ubi/wl.c                           |    1 
 drivers/net/ethernet/intel/igb/igb_main.c      |    2 
 drivers/net/wireless/ath/ath10k/htc.c          |    4 
 drivers/net/wireless/ath/ath10k/htt_tx.c       |    8 +
 drivers/net/wireless/ath/ath10k/mac.c          |   16 +++
 drivers/net/wireless/ath/ath10k/pci.c          |    8 +
 drivers/net/wireless/ath/ath10k/wmi.c          |    1 
 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c    |    8 +
 drivers/net/wireless/rsi/rsi_91x_usb_ops.c     |    8 +
 drivers/net/xen-netfront.c                     |    3 
 drivers/pci/access.c                           |   27 -----
 drivers/pci/bus.c                              |    2 
 drivers/pci/quirks.c                           |   20 +++-
 drivers/pcmcia/sa1100_generic.c                |    1 
 drivers/pcmcia/sa11xx_base.c                   |    3 
 drivers/platform/x86/toshiba_acpi.c            |    8 -
 drivers/power/avs/Kconfig                      |    2 
 drivers/scsi/3w-9xxx.c                         |   28 ++++-
 drivers/scsi/ipr.c                             |    2 
 drivers/scsi/scsi_error.c                      |   11 ++
 drivers/spi/spi-pxa2xx.c                       |    4 
 drivers/spi/spi-xtensa-xtfpga.c                |    4 
 drivers/spi/spi.c                              |    3 
 drivers/spi/spidev.c                           |    3 
 drivers/staging/android/ion/ion.c              |    6 -
 drivers/staging/speakup/fakekey.c              |    1 
 drivers/target/iscsi/iscsi_target.c            |   33 +++---
 drivers/target/iscsi/iscsi_target.h            |    2 
 drivers/target/iscsi/iscsi_target_configfs.c   |   14 +-
 drivers/target/iscsi/iscsi_target_login.c      |    8 -
 drivers/target/iscsi/iscsi_target_tpg.c        |   15 +--
 drivers/target/iscsi/iscsi_target_tpg.h        |    2 
 drivers/target/target_core_pr.c                |    3 
 drivers/target/target_core_ua.c                |    8 -
 drivers/target/target_core_xcopy.c             |    6 -
 drivers/tty/n_tty.c                            |   15 +--
 drivers/tty/serial/8250/8250_core.c            |    8 +
 drivers/tty/serial/amba-pl011.c                |    4 
 drivers/tty/serial/atmel_serial.c              |    2 
 drivers/tty/tty_io.c                           |   31 +++++-
 drivers/usb/chipidea/ci_hdrc_imx.c             |    2 
 drivers/usb/chipidea/udc.c                     |   84 ++++++++--------
 drivers/usb/core/config.c                      |    5 -
 drivers/usb/core/quirks.c                      |   13 ++
 drivers/usb/host/xhci-mem.c                    |   17 +--
 drivers/usb/host/xhci-ring.c                   |   79 ++++++++++++---
 drivers/usb/host/xhci.c                        |   15 ++-
 drivers/usb/misc/chaoskey.c                    |    2 
 drivers/usb/musb/musb_cppi41.c                 |    6 -
 drivers/usb/musb/musb_dsps.c                   |    7 +
 drivers/usb/phy/phy-generic.c                  |    3 
 drivers/usb/serial/option.c                    |   24 ++++
 drivers/usb/serial/whiteheat.c                 |   31 ++++++
 drivers/video/fbdev/Kconfig                    |    2 
 drivers/watchdog/sunxi_wdt.c                   |    2 
 fs/block_dev.c                                 |    7 +
 fs/btrfs/extent_io.c                           |   80 +++++++++++++---
 fs/btrfs/inode.c                               |    3 
 fs/cifs/cifsencrypt.c                          |   53 ++++++++++
 fs/cifs/inode.c                                |   34 ------
 fs/cifs/smb2ops.c                              |    8 +
 fs/cifs/smb2pdu.c                              |   76 ++++++++++++---
 fs/dcache.c                                    |   12 ++
 fs/internal.h                                  |    1 
 fs/namei.c                                     |   39 ++++++-
 fs/nfs/filelayout/filelayout.c                 |   31 ++----
 fs/nfs/pagelist.c                              |    2 
 fs/nfs/read.c                                  |    3 
 fs/nfs/write.c                                 |    5 -
 fs/ocfs2/dlm/dlmmaster.c                       |    9 +
 fs/ocfs2/dlm/dlmrecovery.c                     |    8 +
 fs/open.c                                      |   49 +++++----
 fs/overlayfs/inode.c                           |   25 ++---
 fs/overlayfs/overlayfs.h                       |    1 
 fs/overlayfs/super.c                           |    1 
 fs/ubifs/xattr.c                               |    3 
 include/linux/dcache.h                         |    2 
 include/linux/fs.h                             |    2 
 include/linux/mmc/core.h                       |    1 
 include/linux/security.h                       |    2 
 include/net/netfilter/nf_queue.h               |    2 
 include/net/netfilter/nf_tables.h              |    2 
 include/target/iscsi/iscsi_target_core.h       |    1 
 include/xen/interface/sched.h                  |    8 +
 ipc/msg.c                                      |   14 +-
 ipc/shm.c                                      |   13 +-
 ipc/util.c                                     |    8 -
 kernel/events/core.c                           |    8 -
 kernel/events/internal.h                       |   10 ++
 kernel/events/ring_buffer.c                    |   27 +++++
 kernel/irq/proc.c                              |   19 +++
 kernel/sched/core.c                            |   25 +++--
 kernel/sched/fair.c                            |   25 ++---
 kernel/sched/sched.h                           |    5 -
 kernel/time/timekeeping.c                      |    2 
 lib/iommu-common.c                             |    6 -
 mm/hugetlb.c                                   |    8 +
 mm/migrate.c                                   |    2 
 mm/slab.c                                      |   13 ++
 net/batman-adv/distributed-arp-table.c         |    7 -
 net/batman-adv/multicast.c                     |   81 ++++++++++++----
 net/batman-adv/network-coding.c                |    7 -
 net/batman-adv/originator.c                    |    5 +
 net/batman-adv/soft-interface.c                |   10 +-
 net/batman-adv/translation-table.c             |   37 +++++--
 net/batman-adv/types.h                         |   15 +--
 net/bluetooth/smp.c                            |   12 +-
 net/ipv4/inet_connection_sock.c                |    2 
 net/netfilter/core.c                           |    1 
 net/netfilter/ipvs/ip_vs_core.c                |   16 ++-
 net/netfilter/ipvs/ip_vs_ctl.c                 |   78 +++++++++------
 net/netfilter/ipvs/ip_vs_sched.c               |   12 +-
 net/netfilter/ipvs/ip_vs_sync.c                |    2 
 net/netfilter/ipvs/ip_vs_xmit.c                |   34 ++++++
 net/netfilter/nf_conntrack_expect.c            |    3 
 net/netfilter/nf_conntrack_netlink.c           |    5 -
 net/netfilter/nf_internals.h                   |    1 
 net/netfilter/nf_log.c                         |    9 +
 net/netfilter/nf_queue.c                       |   17 +++
 net/netfilter/nf_tables_core.c                 |    7 +
 net/netfilter/nfnetlink.c                      |    8 +
 net/netfilter/nfnetlink_queue_core.c           |   24 ++++
 net/netfilter/nft_compat.c                     |   24 +++-
 net/sunrpc/xprtrdma/svc_rdma_sendto.c          |   10 +-
 sound/arm/Kconfig                              |   15 +--
 sound/pci/hda/patch_cirrus.c                   |    1 
 sound/pci/hda/patch_realtek.c                  |   32 ++++--
 sound/pci/hda/patch_sigmatel.c                 |    6 +
 sound/soc/au1x/db1200.c                        |    4 
 sound/soc/codecs/sgtl5000.c                    |    4 
 sound/soc/dwc/designware_i2s.c                 |    4 
 sound/soc/pxa/Kconfig                          |    2 
 sound/soc/pxa/pxa2xx-ac97.c                    |    4 
 sound/synth/emux/emux_oss.c                    |    3 
 tools/lib/traceevent/event-parse.c             |   23 ++++
 tools/perf/arch/alpha/Build                    |    1 
 tools/perf/arch/mips/Build                     |    1 
 tools/perf/arch/parisc/Build                   |    1 
 tools/perf/builtin-stat.c                      |    5 -
 tools/perf/util/header.c                       |    4 
 tools/perf/util/hist.c                         |    3 
 tools/perf/util/symbol-elf.c                   |   35 ++-----
 virt/kvm/eventfd.c                             |  124 ++++++++++++++-----------
 virt/kvm/kvm_main.c                            |   19 +++
 231 files changed, 2252 insertions(+), 957 deletions(-)

Adrian Hunter (1):
perf tools: Fix copying of /proc/kcore

Al Viro (1):
fix a braino in ovl_d_select_inode()

Alex Gartrell (1):
ipvs: skb_orphan in case of forwarding

Alex Williamson (2):
PCI: Fix devfn for VPD access through function 0
PCI: Use function 0 VPD for identical functions, regular VPD for others

Alexander Inyukhin (1):
USB: chaoskey read offset bug

Alexey Brodkin (1):
mmc: dw_mmc: handle data blocks > than 4kB if IDMAC is used

Andreas Schwab (1):
m68k: Define asmlinkage_protect

Andy Grover (1):
target/iscsi: Fix np_ip bracket issue by removing np_ip

Andy Lutomirski (2):
x86/paravirt: Replace the paravirt nop with a bona fide empty function x86/nmi/64: Fix a paravirt stack-clobbering bug in the NMI code

Andy Shevchenko (2):
dmaengine: dw: properly read DWC_PARAMS register device property: fix potential NULL pointer dereference

Antoine Ténart (1):
mtd: pxa3xx_nand: add a default chunk size

Ard Biesheuvel (2):
ARM: 8429/1: disable GCC SRA optimization
arm64/efi: Fix boot crash by not padding between EFI_MEMORY_RUNTIME regions

Arnaldo Carvalho de Melo (2):
perf hists: Update the column width for the "srcline" sort key perf header: Fixup reading of HEADER_NRCPUS feature

Azael Avalos (1):
toshiba_acpi: Fix hotkeys registration on some toshiba models

Ben Dooks (1):
clk: ti: fix dual-registration of uart4_ick

Ben Hutchings (2):
perf tools: Add empty Build files for architectures lacking them
genirq: Fix race in register_irq_proc()

Ben Segall (1):
sched/fair: Prevent throttling in early pick_next_task_fair()

Bin Liu (1):
usb: musb: dsps: fix polling in device-only mode

Bjorn Helgaas (1):
PCI: Clear IORESOURCE_UNSET when clipping a bridge window

Boris BREZILLON (2):
mtd: nand: sunxi: fix sunxi_nand_chips_cleanup()
mtd: nand: sunxi: fix OOB handling in ->write_xxx() functions

Borislav Petkov (1):
cpu/cacheinfo: Fix teardown path

Carl Frederik Werner (1):
ARM: dts: omap3-beagle: make i2c3, ddc and tfp410 gpio work again

Chanho Park (1):
ARM: EXYNOS: reset Little cores when cpu is up

Chas Williams (1):
net/xen-netfront: only napi_synchronize() if running

Christian Borntraeger (1):
s390/boot/decompression: disable floating point in decompressor

Christian Engelmayer (1):
rsi: Fix possible leak when loading firmware

Christoph Hellwig (1):
3w-9xxx: don't unmap bounce buffered commands

Chuck Lever (1):
svcrdma: Fix send_reply() scatter/gather set-up

Daniel Vetter (1):
drm: Reject DRI1 hw lock ioctl functions for kms drivers

Dave Airlie (2):
drm/qxl: only report first monitor as connected if we have no state drm/dp/mst: drop cancel work sync in the mstb destroy path (v2)

Dave Martin (1):
serial/amba-pl011: Disable interrupts around TX softirq

David Howells (2):
overlay: Call ovl_drop_write() earlier in ovl_dentry_open()
overlayfs: Make f_path always point to the overlay and f_inode to the underlay

David Woodhouse (1):
x86/platform: Fix Geode LX timekeeping in the generic x86 build

Dirk Müller (1):
Use WARN_ON_ONCE for missing X86_FEATURE_NRIPS

Dominik Dingel (1):
sched: access local runqueue directly in single_task_running

Dong Aisheng (4):
mmc: sdhci-esdhc-imx: fix cd regression for dt platform
dts: imx51: fix sd card gpio polarity specified in device tree
dts: imx53: fix sd card gpio polarity specified in device tree
dts: imx25: fix sd card gpio polarity specified in device tree

Doug Anderson (1):
ARM: 8425/1: kgdb: Don't try to stop the machine when setting breakpoints

Eric Dumazet (1):
inet: fix potential deadlock in reqsk_queue_unlink()

Eric W. Biederman (4):
netfilter: nf_qeueue: Drop queue entries on nf_unregister_hook
netfilter: nftables: Do not run chains in the wrong network namespace
dcache: Handle escaped paths in prepend_path
vfs: Test for and handle paths that are unreachable from their mnt_root

Fabiano Fidêncio (1):
drm/qxl: recreate the primary surface when the bo is not primary

Fabio Estevam (2):
mmc: sdhci-esdhc-imx: Move mmc_of_parse() to the dt probe
mmc: sdhci-esdhc-imx: Do not break platform data boards

Felipe Balbi (1):
usb: musb: cppi41: allow it to work again

Felipe F. Tonello (1):
ARM: dts: fix usb pin control for imx-rex dts

Filipe Manana (2):
Btrfs: fix read corruption of compressed and shared extents
Btrfs: update fix for read corruption of compressed and shared extents

Florian Westphal (1):
netfilter: nf_log: don't zap all loggers on unregister

Francesco Lavra (1):
watchdog: sunxi: fix activation of system reset

Gabriel Krisman Bertazi (1):
ipr: Enable SIS pipe commands for SIS-32 devices.

Gautham R. Shenoy (1):
KVM: PPC: Book3S HV: Pass the correct trap argument to kvmhv_commence_exit

Gianluca Renzi (1):
ASoC: sgtl5000: fix wrong register MIC_BIAS_VOLTAGE setup on probe

Grazvydas Ignotas (1):
ARM: dts: omap5-uevm.dts: fix i2c5 pinctrl offsets

Greg Kroah-Hartman (1):

      Linux 4.1.11

Guenter Roeck (3):
hwmon: (nct6775) Swap STEP_UP_TIME and STEP_DOWN_TIME registers for most chips
spi: Fix documentation of spi_alloc_master()
MIPS: Fix console output for Fulong2e system

Haibo Chen (1):
mmc: sdhci: fix dma memory leak in sdhci_pre_req()

Heiko Stuebner (1):
PM / AVS: rockchip-io: depend on CONFIG_POWER_AVS

James Hogan (1):
MIPS: dma-default: Fix 32-bit fall back to GFP_DMA

Jani Nikula (1):
drm/i915/bios: handle MIPI Sequence Block v3+ gracefully

Jann Horn (2):
security: fix typo in security_task_prctl drivers/tty: require read access for controlling terminal

Jason Wang (4):
kvm: don't try to register to KVM_FAST_MMIO_BUS for non mmio eventfd
kvm: fix zero length mmio searching
kvm: factor out core eventfd assign/deassign logic
kvm: fix double free for fast mmio eventfd

Jeff Mahoney (1):
btrfs: skip waiting on ordered range for special files

Jeff Moyer (1):
blockdev: don't set S_DAX for misaligned partitions

Jenny Derzhavetz (2):
iser-target: remove command with state ISTATE_REMOVE
iser-target: Put the reference on commands waiting for unsol data

Joe Stringer (1):
netfilter: nf_conntrack: Support expectations in different zones

Joe Thornber (2):
dm btree: add ref counting ops for the leaves of top level btrees dm cache: fix NULL pointer when switching from cleaner policy

Johan Hedberg (1):

      Bluetooth: Delay check for conn->smp in smp_conn_security()

Johan Hovold (1):
USB: whiteheat: fix potential null-deref at probe

John Flatness (1):
ALSA: hda - Apply SPDIF pin ctl to MacBookPro 12,1

John Stultz (1):
time: Fix timekeeping_freqadjust()'s incorrect use of abs() instead of abs64()

Joonsoo Kim (1):
mm/slab: fix unexpected index mapping result of kmalloc_size(INDEX_NODE+1)

Joseph Qi (1):
ocfs2/dlm: fix deadlock when dispatch assert master

Julian Anastasov (4):
ipvs: do not use random local source address for tunnels
ipvs: fix crash if scheduler is changed
ipvs: fix crash with sync protocol v0 and FTP
ipvs: call skb_sender_cpu_clear

Junichi Nomura (1):
dm: fix AB-BA deadlock in __dm_destroy()

Kan Liang (1):
perf stat: Get correct cpu id for print_aggr

Kapileshwar Singh (1):
tools lib traceevent: Fix string handling in heterogeneous arch environments

Kinglong Mee (2):
NFS: Do cleanup before resetting pageio read/write to mds nfs/filelayout: Fix NULL reference caused by double freeing of fh_array

Kosuke Tatsukawa (1):
tty: fix stall caused by missing memory barrier in drivers/tty/n_tty.c

Lars-Peter Clausen (1):

      ASoC: db1200: Fix DAI link format for db1300 and db1550

Laura Abbott (1):
ALSA: hda: Add dock support for ThinkPad T550

Lee, Chun-Yi (1):
x86/kexec: Fix kexec crash in syscall kexec_file_load()

Li Bin (1):
arm64: ftrace: fix function_graph tracer panic

Li Jun (1):
usb: chipidea: imx: fix a typo for imx6sx

Linus Lüssing (6):
batman-adv: Make DAT capability changes atomic
batman-adv: Make NC capability changes atomic
batman-adv: Make TT capability changes atomic
batman-adv: Make MCAST capability changes atomic
batman-adv: Fix potential synchronization issues in mcast tvlv handler
batman-adv: Fix potentially broken skb network header access

Linus Torvalds (1):
Initialize msg/shm IPC objects before doing ipc_addid()

Linus Walleij (1):
fbdev: select versatile helpers for the integrator

Liu.Zhao (1):
USB: option: add ZTE PIDs

Ludovic Desroches (1):
irqchip/atmel-aic5: Use per chip mask caches in mask/unmask()

Mans Rullgard (1):
serial: 8250: add uart_config entry for PORT_RT2880

Marc Zyngier (2):
arm: KVM: Disable virtual timer even if the guest is not using it irqchip/gic-v3-its: Add missing cache flushes

Marek Lindner (2):
batman-adv: fix kernel crash due to missing NULL checks
batman-adv: protect tt_local_entry from concurrent delete events

Marek Majtyka (1):
arm: KVM: Fix incorrect device to IPA mapping

Mario Carrillo (1):

      docs: update HOWTO for 3.x -> 4.x versioning

Mark Brown (2):
regmap: debugfs: Ensure we don't underflow when printing access masks
regmap: debugfs: Don't bother actually printing when calculating max length

Mark Salyzyn (1):
arm64: readahead: fault retry breaks mmap file read random detection

Martin Schwidefsky (1):
s390/compat: correct uc_sigmask of the compat signal frame

Mathias Nyman (4):
xhci: give command abortion one more chance before killing xhci
xhci: change xhci 1.0 only restrictions to support xhci 1.1
xhci: init command timeout timer earlier to avoid deleting it uninitialized
usb: Use the USB_SS_MULT() macro to get the burst multiplier.

Matt Fleming (1):
x86/efi: Fix boot crash by mapping EFI memmap entries bottom-up at runtime, instead of top-down

Max Filippov (1):
spi: xtensa-xtfpga: fix register endianness

Mel Gorman (1):
mm: hugetlbfs: skip shared VMAs when unmapping private pages to satisfy a fault

Michal Hocko (1):
scsi: fix scsi_error_handler vs. scsi_host_dev_release race

Michal Kazior (2):
ath10k: fix dma_mapping_error() handling
ath10k: reject 11b tx fragmentation configuration

Michel Dänzer (1):
drm/radeon: Restore LCD backlight level on resume (>= R5xx)

Mike Snitzer (1):
dm crypt: constrain crypt device's max_segment_size to PAGE_SIZE

Mikulas Patocka (1):
dm raid: fix round up of default region size

Naoya Horiguchi (1):
mm: migrate: hugetlb: putback destination hugepage to active list

NeilBrown (3):
md/raid0: update queue parameter in a safer location. md/raid0: apply base queue limits *before* disk_stack_limits md/bitmap: don't pass -1 to bitmap_storage_alloc.

Nicholas Bellinger (2):
target: Attach EXTENDED_COPY local I/O descriptors to xcopy_pt_sess
target: Fix v4.1 UNIT_ATTENTION se_node_acl->device_list[] NULL pointer

Pablo Neira Ayuso (5):
netfilter: nfnetlink: work around wrong endianess in res_id field
netfilter: nf_tables: Use 32 bit addressing register from nft_type_to_reg()
netfilter: ctnetlink: put back references to master ct and expect objects
netfilter: nf_log: wait for rcu grace after logger unregistration
netfilter: nft_compat: skip family comparison in case of NFPROTO_UNSPEC

Paul Bolle (1):
windfarm: decrement client count when unregistering

Paul Mackerras (1):
powerpc/MSI: Fix race condition in tearing down MSI interrupts

Peng Tao (1):
nfs: fix pg_test page count calculation

Peter Chen (1):
usb: chipidea: udc: using the correct stall implementation

Peter Seiderer (1):
cifs: use server timestamp for ntlmv2 authentication

Peter Zijlstra (3):
perf/x86/intel: Fix constraint access
perf: Fix AUX buffer refcounting
sched/core: Fix TASK_DEAD race in finish_task_switch()

Prarit Bhargava (1):
intel_pstate: Fix overflow in busy_scaled due to long delay

Reyad Attiyat (1):
usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers

Ricardo Ribalda Delgado (1):
leds/led-class: Add missing put_device()

Richard Weinberger (2):
UBIFS: Kill unneeded locking in ubifs_init_security
UBI: Validate data_size

Robert Jarzmik (2):
ASoC: pxa: pxa2xx-ac97: fix dma requestor lines
ASoC: fix broken pxa SoC support

Roger Quadros (4):
usb: xhci: lock mutex on xhci_stop
usb: xhci: Clear XHCI_STATE_DYING on start
usb: xhci: exit early in xhci_setup_device() if we're halted or dying
usb: phy: phy-generic: Fix reset behaviour on legacy boot

Russell King (2):
ARM: fix Thumb2 signal handling when ARMv6 is enabled
pcmcia: sa11x0: fix missing clk_put() in sa11x0 socket drivers

Shaohua Li (1):
x86/apic: Serialize LVTT and TSC_DEADLINE writes

Shawn Lin (1):
staging: ion: fix corruption of ion_import_dma_buf

Sowmini Varadhan (1):

      lib/iommu-common.c: do not try to deref a null iommu->lazy_flush() pointer when n < pool->hint

Stefan Assmann (1):
igb: do not re-init SR-IOV during probe

Stephen Smalley (1):
x86/mm: Set NX on gap between __ex_table and rodata

Steve French (3):
Fix sec=krb5 on smb3 mounts
disabling oplocks/leases via module parm enable_oplocks broken for SMB3 Do not fall back to SMBWriteX in set_file_size error cases

Sudip Mukherjee (1):
spi: spidev: fix possible NULL dereference

Takashi Iwai (3):
ALSA: hda - Disable power_save_node for Thinkpads
ALSA: synth: Fix conflicting OSS device registration on AWE32
ALSA: hda - Disable power_save_node for IDT 92HD73xx chips

Tan, Jui Nee (1):
spi: spi-pxa2xx: Check status register to determine if SSSR_TINT is disabled

Thomas Gleixner (2):
x86/alternatives: Make optimize_nops() interrupt safe and synced x86/process: Add proper bound checks in 64bit get_wchan()

Thomas Huth (1):

      KVM: PPC: Book3S: Take the kvm->srcu lock in kvmppc_h_logical_ci_load/store()

Trond Myklebust (2):
NFS: Fix a write performance regression
namei: results of d_is_negative() should be checked after dentry revalidation

Ulf Hansson (1):
mmc: core: Don't return an error for CD/WP GPIOs when GPIOLIB is unset

Uwe Kleine-König (1):
serial: atmel: fix error path of probe function

Vincent Palatin (1):
usb: Add device quirk for Logitech PTZ cameras

Viresh Kumar (1):
cpufreq: dt: Tolerance applies on both sides of target voltage

Vitaly Kuznetsov (1):
x86/xen: Support kexec/kdump in HVM guests by doing a soft reset

Wanpeng Li (1):
KVM: vmx: fix VPID is 0000H in non-root operation

Yao-Wen Mao (1):
USB: Add reset-resume quirk for two Plantronics usb headphones.

Yitian Bu (1):
ASoC: dwc: correct irq clear method

[email protected] (1):
staging: speakup: fix speakup-r regression

shengyong (1):
UBI: return ENOSPC if no enough space available

author maintainer
#1 lore raw
Documentation/HOWTO +14 -14
index 93aa8604630e..21152d397b88 100644
@@ -218,16 +218,16 @@ The development process
 Linux kernel development process currently consists of a few different
 main kernel "branches" and lots of different subsystem-specific kernel
 branches.  These different branches are:
-  - main 3.x kernel tree
-  - 3.x.y -stable kernel tree
-  - 3.x -git kernel patches
+  - main 4.x kernel tree
+  - 4.x.y -stable kernel tree
+  - 4.x -git kernel patches
   - subsystem specific kernel trees and patches
-  - the 3.x -next kernel tree for integration tests
+  - the 4.x -next kernel tree for integration tests
 
-3.x kernel tree
+4.x kernel tree
 -----------------
-3.x kernels are maintained by Linus Torvalds, and can be found on
-kernel.org in the pub/linux/kernel/v3.x/ directory.  Its development
+4.x kernels are maintained by Linus Torvalds, and can be found on
+kernel.org in the pub/linux/kernel/v4.x/ directory.  Its development
 process is as follows:
   - As soon as a new kernel is released a two weeks window is open,
     during this period of time maintainers can submit big diffs to
@@ -262,20 +262,20 @@ mailing list about kernel releases:
 	released according to perceived bug status, not according to a
 	preconceived timeline."
 
-3.x.y -stable kernel tree
+4.x.y -stable kernel tree
 ---------------------------
 Kernels with 3-part versions are -stable kernels. They contain
 relatively small and critical fixes for security problems or significant
-regressions discovered in a given 3.x kernel.
+regressions discovered in a given 4.x kernel.
 
 This is the recommended branch for users who want the most recent stable
 kernel and are not interested in helping test development/experimental
 versions.
 
-If no 3.x.y kernel is available, then the highest numbered 3.x
+If no 4.x.y kernel is available, then the highest numbered 4.x
 kernel is the current stable kernel.
 
-3.x.y are maintained by the "stable" team <[email protected]>, and
+4.x.y are maintained by the "stable" team <[email protected]>, and
 are released as needs dictate.  The normal release period is approximately
 two weeks, but it can be longer if there are no pressing problems.  A
 security-related problem, instead, can cause a release to happen almost
@@ -285,7 +285,7 @@ The file Documentation/stable_kernel_rules.txt in the kernel tree
 documents what kinds of changes are acceptable for the -stable tree, and
 how the release process works.
 
-3.x -git patches
+4.x -git patches
 ------------------
 These are daily snapshots of Linus' kernel tree which are managed in a
 git repository (hence the name.) These patches are usually released
@@ -317,9 +317,9 @@ revisions to it, and maintainers can mark patches as under review,
 accepted, or rejected.  Most of these patchwork sites are listed at
 http://patchwork.kernel.org/.
 
-3.x -next kernel tree for integration tests
+4.x -next kernel tree for integration tests
 ---------------------------------------------
-Before updates from subsystem trees are merged into the mainline 3.x
+Before updates from subsystem trees are merged into the mainline 4.x
 tree, they need to be integration-tested.  For this purpose, a special
 testing repository exists into which virtually all subsystem trees are
 pulled on an almost daily basis:
Makefile +1 -1
index d02f16b510dc..c7d877b1c248 100644
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 1
-SUBLEVEL = 10
+SUBLEVEL = 11
 EXTRAVERSION =
 NAME = Series 4800
 
arch/arm/Makefile +8 -0
index 985227cbbd1b..47f10e7ad1f6 100644
@@ -50,6 +50,14 @@ AS		+= -EL
 LD		+= -EL
 endif
 
+#
+# The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and
+# later may result in code being generated that handles signed short and signed
+# char struct members incorrectly. So disable it.
+# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932)
+#
+KBUILD_CFLAGS	+= $(call cc-option,-fno-ipa-sra)
+
 # This selects which instruction set is used.
 # Note that GCC does not numerically define an architecture version
 # macro, but instead defines a whole series of macros which makes
arch/arm/boot/dts/imx25-pdk.dts +3 -2
index dd45e6971bc3..9351296356dc 100644
@@ -10,6 +10,7 @@
  */
 
 /dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include "imx25.dtsi"
 
@@ -114,8 +115,8 @@
 &esdhc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc1>;
-	cd-gpios = <&gpio2 1 0>;
-	wp-gpios = <&gpio2 0 0>;
+	cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
 
arch/arm/boot/dts/imx51-apf51dev.dts +1 -1
index 93d3ea12328c..0f3fe29b816e 100644
@@ -98,7 +98,7 @@
 &esdhc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc1>;
-	cd-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
+	cd-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
 	bus-width = <4>;
 	status = "okay";
 };
arch/arm/boot/dts/imx53-ard.dts +2 -2
index e9337ad52f59..3bc18835fb4b 100644
@@ -103,8 +103,8 @@
 &esdhc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc1>;
-	cd-gpios = <&gpio1 1 0>;
-	wp-gpios = <&gpio1 9 0>;
+	cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
 
arch/arm/boot/dts/imx53-m53evk.dts +2 -2
index d0e0f57eb432..53f40885c530 100644
@@ -124,8 +124,8 @@
 &esdhc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc1>;
-	cd-gpios = <&gpio1 1 0>;
-	wp-gpios = <&gpio1 9 0>;
+	cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
 
arch/arm/boot/dts/imx53-qsb-common.dtsi +2 -2
index 181ae5ebf23f..1f55187ed9ce 100644
@@ -147,8 +147,8 @@
 &esdhc3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc3>;
-	cd-gpios = <&gpio3 11 0>;
-	wp-gpios = <&gpio3 12 0>;
+	cd-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>;
 	bus-width = <8>;
 	status = "okay";
 };
arch/arm/boot/dts/imx53-smd.dts +2 -2
index 1d325576bcc0..fc89ce1e5763 100644
@@ -41,8 +41,8 @@
 &esdhc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc1>;
-	cd-gpios = <&gpio3 13 0>;
-	wp-gpios = <&gpio4 11 0>;
+	cd-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
 
arch/arm/boot/dts/imx53-tqma53.dtsi +2 -2
index 4f1f0e2868bf..e03373a58760 100644
@@ -41,8 +41,8 @@
 	pinctrl-0 = <&pinctrl_esdhc2>,
 		    <&pinctrl_esdhc2_cdwp>;
 	vmmc-supply = <&reg_3p3v>;
-	wp-gpios = <&gpio1 2 0>;
-	cd-gpios = <&gpio1 4 0>;
+	wp-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+	cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
 	status = "disabled";
 };
 
arch/arm/boot/dts/imx53-tx53.dtsi +2 -2
index 704bd72cbfec..d3e50b22064f 100644
@@ -183,7 +183,7 @@
 };
 
 &esdhc1 {
-	cd-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>;
+	cd-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
 	fsl,wp-controller;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc1>;
@@ -191,7 +191,7 @@
 };
 
 &esdhc2 {
-	cd-gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>;
+	cd-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
 	fsl,wp-controller;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc2>;
arch/arm/boot/dts/imx53-voipac-bsb.dts +2 -2
index c17d3ad6dba5..fc51b87ad208 100644
@@ -119,8 +119,8 @@
 &esdhc2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc2>;
-	cd-gpios = <&gpio3 25 0>;
-	wp-gpios = <&gpio2 19 0>;
+	cd-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
 	vmmc-supply = <&reg_3p3v>;
 	status = "okay";
 };
arch/arm/boot/dts/imx6qdl-rex.dtsi +0 -2
index 488a640796ac..394a4ace351a 100644
@@ -35,7 +35,6 @@
 			compatible = "regulator-fixed";
 			reg = <1>;
 			pinctrl-names = "default";
-			pinctrl-0 = <&pinctrl_usbh1>;
 			regulator-name = "usbh1_vbus";
 			regulator-min-microvolt = <5000000>;
 			regulator-max-microvolt = <5000000>;
@@ -47,7 +46,6 @@
 			compatible = "regulator-fixed";
 			reg = <2>;
 			pinctrl-names = "default";
-			pinctrl-0 = <&pinctrl_usbotg>;
 			regulator-name = "usb_otg_vbus";
 			regulator-min-microvolt = <5000000>;
 			regulator-max-microvolt = <5000000>;
arch/arm/boot/dts/omap3-beagle.dts +1 -1
index a5474113cd50..67659a0ed13e 100644
@@ -202,7 +202,7 @@
 
 	tfp410_pins: pinmux_tfp410_pins {
 		pinctrl-single,pins = <
-			0x194 (PIN_OUTPUT | MUX_MODE4)	/* hdq_sio.gpio_170 */
+			0x196 (PIN_OUTPUT | MUX_MODE4)	/* hdq_sio.gpio_170 */
 		>;
 	};
 
arch/arm/boot/dts/omap5-uevm.dts +2 -2
index 74777a6e200a..1b958e92d674 100644
@@ -174,8 +174,8 @@
 
 	i2c5_pins: pinmux_i2c5_pins {
 		pinctrl-single,pins = <
-			0x184 (PIN_INPUT | MUX_MODE0)		/* i2c5_scl */
-			0x186 (PIN_INPUT | MUX_MODE0)		/* i2c5_sda */
+			0x186 (PIN_INPUT | MUX_MODE0)		/* i2c5_scl */
+			0x188 (PIN_INPUT | MUX_MODE0)		/* i2c5_sda */
 		>;
 	};
 
arch/arm/kernel/kgdb.c +5 -3
index a6ad93c9bce3..fd9eefce0a7b 100644
@@ -259,15 +259,17 @@ int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt)
 	if (err)
 		return err;
 
-	patch_text((void *)bpt->bpt_addr,
-		   *(unsigned int *)arch_kgdb_ops.gdb_bpt_instr);
+	/* Machine is already stopped, so we can use __patch_text() directly */
+	__patch_text((void *)bpt->bpt_addr,
+		     *(unsigned int *)arch_kgdb_ops.gdb_bpt_instr);
 
 	return err;
 }
 
 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt)
 {
-	patch_text((void *)bpt->bpt_addr, *(unsigned int *)bpt->saved_instr);
+	/* Machine is already stopped, so we can use __patch_text() directly */
+	__patch_text((void *)bpt->bpt_addr, *(unsigned int *)bpt->saved_instr);
 
 	return 0;
 }
arch/arm/kernel/signal.c +10 -5
index 423663e23791..586eef26203d 100644
@@ -343,12 +343,17 @@ setup_return(struct pt_regs *regs, struct ksignal *ksig,
 		 */
 		thumb = handler & 1;
 
-#if __LINUX_ARM_ARCH__ >= 7
+#if __LINUX_ARM_ARCH__ >= 6
 		/*
-		 * Clear the If-Then Thumb-2 execution state
-		 * ARM spec requires this to be all 000s in ARM mode
-		 * Snapdragon S4/Krait misbehaves on a Thumb=>ARM
-		 * signal transition without this.
+		 * Clear the If-Then Thumb-2 execution state.  ARM spec
+		 * requires this to be all 000s in ARM mode.  Snapdragon
+		 * S4/Krait misbehaves on a Thumb=>ARM signal transition
+		 * without this.
+		 *
+		 * We must do this whenever we are running on a Thumb-2
+		 * capable CPU, which includes ARMv6T2.  However, we elect
+		 * to do this whenever we're on an ARMv6 or later CPU for
+		 * simplicity.
 		 */
 		cpsr &= ~PSR_IT_MASK;
 #endif
arch/arm/kvm/interrupts_head.S +4 -2
index 48efe2ee452c..58048b333d31 100644
@@ -518,8 +518,7 @@ ARM_BE8(rev	r6, r6  )
 
 	mrc	p15, 0, r2, c14, c3, 1	@ CNTV_CTL
 	str	r2, [vcpu, #VCPU_TIMER_CNTV_CTL]
-	bic	r2, #1			@ Clear ENABLE
-	mcr	p15, 0, r2, c14, c3, 1	@ CNTV_CTL
+
 	isb
 
 	mrrc	p15, 3, rr_lo_hi(r2, r3), c14	@ CNTV_CVAL
@@ -532,6 +531,9 @@ ARM_BE8(rev	r6, r6  )
 	mcrr	p15, 4, r2, r2, c14	@ CNTVOFF
 
 1:
+	mov	r2, #0			@ Clear ENABLE
+	mcr	p15, 0, r2, c14, c3, 1	@ CNTV_CTL
+
 	@ Allow physical timer/counter access for the host
 	mrc	p15, 4, r2, c14, c1, 0	@ CNTHCTL
 	orr	r2, r2, #(CNTHCTL_PL1PCEN | CNTHCTL_PL1PCTEN)
arch/arm/kvm/mmu.c +4 -2
index 1d5accbd3dcf..191dcfab9f60 100644
@@ -1790,8 +1790,10 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
 		if (vma->vm_flags & VM_PFNMAP) {
 			gpa_t gpa = mem->guest_phys_addr +
 				    (vm_start - mem->userspace_addr);
-			phys_addr_t pa = (vma->vm_pgoff << PAGE_SHIFT) +
-					 vm_start - vma->vm_start;
+			phys_addr_t pa;
+
+			pa = (phys_addr_t)vma->vm_pgoff << PAGE_SHIFT;
+			pa += vm_start - vma->vm_start;
 
 			/* IO region dirty page logging not allowed */
 			if (memslot->flags & KVM_MEM_LOG_DIRTY_PAGES)
arch/arm/mach-exynos/mcpm-exynos.c +26 -1
index 9bdf54795f05..56978199c479 100644
@@ -20,6 +20,7 @@
 #include <asm/cputype.h>
 #include <asm/cp15.h>
 #include <asm/mcpm.h>
+#include <asm/smp_plat.h>
 
 #include "regs-pmu.h"
 #include "common.h"
@@ -70,7 +71,31 @@ static int exynos_cpu_powerup(unsigned int cpu, unsigned int cluster)
 		cluster >= EXYNOS5420_NR_CLUSTERS)
 		return -EINVAL;
 
-	exynos_cpu_power_up(cpunr);
+	if (!exynos_cpu_power_state(cpunr)) {
+		exynos_cpu_power_up(cpunr);
+
+		/*
+		 * This assumes the cluster number of the big cores(Cortex A15)
+		 * is 0 and the Little cores(Cortex A7) is 1.
+		 * When the system was booted from the Little core,
+		 * they should be reset during power up cpu.
+		 */
+		if (cluster &&
+		    cluster == MPIDR_AFFINITY_LEVEL(cpu_logical_map(0), 1)) {
+			/*
+			 * Before we reset the Little cores, we should wait
+			 * the SPARE2 register is set to 1 because the init
+			 * codes of the iROM will set the register after
+			 * initialization.
+			 */
+			while (!pmu_raw_readl(S5P_PMU_SPARE2))
+				udelay(10);
+
+			pmu_raw_writel(EXYNOS5420_KFC_CORE_RESET(cpu),
+					EXYNOS_SWRESET);
+		}
+	}
+
 	return 0;
 }
 
arch/arm/mach-exynos/regs-pmu.h +6 -0
index b7614333d296..fba9068ed260 100644
@@ -513,6 +513,12 @@ static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)
 #define SPREAD_ENABLE						0xF
 #define SPREAD_USE_STANDWFI					0xF
 
+#define EXYNOS5420_KFC_CORE_RESET0				BIT(8)
+#define EXYNOS5420_KFC_ETM_RESET0				BIT(20)
+
+#define EXYNOS5420_KFC_CORE_RESET(_nr)				\
+	((EXYNOS5420_KFC_CORE_RESET0 | EXYNOS5420_KFC_ETM_RESET0) << (_nr))
+
 #define EXYNOS5420_BB_CON1					0x0784
 #define EXYNOS5420_BB_SEL_EN					BIT(31)
 #define EXYNOS5420_BB_PMOS_EN					BIT(7)
arch/arm64/kernel/efi.c +2 -1
index 352962bc2e78..5170fd5c8e97 100644
@@ -257,7 +257,8 @@ static bool __init efi_virtmap_init(void)
 		 */
 		if (!is_normal_ram(md))
 			prot = __pgprot(PROT_DEVICE_nGnRE);
-		else if (md->type == EFI_RUNTIME_SERVICES_CODE)
+		else if (md->type == EFI_RUNTIME_SERVICES_CODE ||
+			 !PAGE_ALIGNED(md->phys_addr))
 			prot = PAGE_KERNEL_EXEC;
 		else
 			prot = PAGE_KERNEL;
arch/arm64/kernel/entry-ftrace.S +20 -2
index 08cafc518b9a..0f03a8fe2314 100644
@@ -178,6 +178,24 @@ ENTRY(ftrace_stub)
 ENDPROC(ftrace_stub)
 
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
+	/* save return value regs*/
+	.macro save_return_regs
+	sub sp, sp, #64
+	stp x0, x1, [sp]
+	stp x2, x3, [sp, #16]
+	stp x4, x5, [sp, #32]
+	stp x6, x7, [sp, #48]
+	.endm
+
+	/* restore return value regs*/
+	.macro restore_return_regs
+	ldp x0, x1, [sp]
+	ldp x2, x3, [sp, #16]
+	ldp x4, x5, [sp, #32]
+	ldp x6, x7, [sp, #48]
+	add sp, sp, #64
+	.endm
+
 /*
  * void ftrace_graph_caller(void)
  *
@@ -204,11 +222,11 @@ ENDPROC(ftrace_graph_caller)
  * only when CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST is enabled.
  */
 ENTRY(return_to_handler)
-	str	x0, [sp, #-16]!
+	save_return_regs
 	mov	x0, x29			//     parent's fp
 	bl	ftrace_return_to_handler// addr = ftrace_return_to_hander(fp);
 	mov	x30, x0			// restore the original return address
-	ldr	x0, [sp], #16
+	restore_return_regs
 	ret
 END(return_to_handler)
 #endif /* CONFIG_FUNCTION_GRAPH_TRACER */
arch/arm64/mm/fault.c +1 -0
index 96da13167d4a..fa5efaa5c3ac 100644
@@ -279,6 +279,7 @@ retry:
 			 * starvation.
 			 */
 			mm_flags &= ~FAULT_FLAG_ALLOW_RETRY;
+			mm_flags |= FAULT_FLAG_TRIED;
 			goto retry;
 		}
 	}
arch/m68k/include/asm/linkage.h +30 -0
index 5a822bb790f7..066e74f666ae 100644
@@ -4,4 +4,34 @@
 #define __ALIGN .align 4
 #define __ALIGN_STR ".align 4"
 
+/*
+ * Make sure the compiler doesn't do anything stupid with the
+ * arguments on the stack - they are owned by the *caller*, not
+ * the callee. This just fools gcc into not spilling into them,
+ * and keeps it from doing tailcall recursion and/or using the
+ * stack slots for temporaries, since they are live and "used"
+ * all the way to the end of the function.
+ */
+#define asmlinkage_protect(n, ret, args...) \
+	__asmlinkage_protect##n(ret, ##args)
+#define __asmlinkage_protect_n(ret, args...) \
+	__asm__ __volatile__ ("" : "=r" (ret) : "0" (ret), ##args)
+#define __asmlinkage_protect0(ret) \
+	__asmlinkage_protect_n(ret)
+#define __asmlinkage_protect1(ret, arg1) \
+	__asmlinkage_protect_n(ret, "m" (arg1))
+#define __asmlinkage_protect2(ret, arg1, arg2) \
+	__asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2))
+#define __asmlinkage_protect3(ret, arg1, arg2, arg3) \
+	__asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3))
+#define __asmlinkage_protect4(ret, arg1, arg2, arg3, arg4) \
+	__asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \
+			      "m" (arg4))
+#define __asmlinkage_protect5(ret, arg1, arg2, arg3, arg4, arg5) \
+	__asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \
+			      "m" (arg4), "m" (arg5))
+#define __asmlinkage_protect6(ret, arg1, arg2, arg3, arg4, arg5, arg6) \
+	__asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \
+			      "m" (arg4), "m" (arg5), "m" (arg6))
+
 #endif
arch/mips/loongson/common/env.c +3 -0
index 22f04ca2ff3e..2efb18aafa4f 100644
@@ -64,6 +64,9 @@ void __init prom_init_env(void)
 	}
 	if (memsize == 0)
 		memsize = 256;
+
+	loongson_sysconf.nr_uarts = 1;
+
 	pr_info("memsize=%u, highmemsize=%u\n", memsize, highmemsize);
 #else
 	struct boot_params *boot_p;
arch/mips/mm/dma-default.c +1 -1
index 609d1241b0c4..371eec113659 100644
@@ -100,7 +100,7 @@ static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp)
 	else
 #endif
 #if defined(CONFIG_ZONE_DMA) && !defined(CONFIG_ZONE_DMA32)
-	     if (dev->coherent_dma_mask < DMA_BIT_MASK(64))
+	     if (dev->coherent_dma_mask < DMA_BIT_MASK(sizeof(phys_addr_t) * 8))
 		dma_flag = __GFP_DMA;
 	else
 #endif
arch/powerpc/kvm/book3s.c +6 -0
index 453a8a47a467..964c0ce584ce 100644
@@ -826,12 +826,15 @@ int kvmppc_h_logical_ci_load(struct kvm_vcpu *vcpu)
 	unsigned long size = kvmppc_get_gpr(vcpu, 4);
 	unsigned long addr = kvmppc_get_gpr(vcpu, 5);
 	u64 buf;
+	int srcu_idx;
 	int ret;
 
 	if (!is_power_of_2(size) || (size > sizeof(buf)))
 		return H_TOO_HARD;
 
+	srcu_idx = srcu_read_lock(&vcpu->kvm->srcu);
 	ret = kvm_io_bus_read(vcpu, KVM_MMIO_BUS, addr, size, &buf);
+	srcu_read_unlock(&vcpu->kvm->srcu, srcu_idx);
 	if (ret != 0)
 		return H_TOO_HARD;
 
@@ -866,6 +869,7 @@ int kvmppc_h_logical_ci_store(struct kvm_vcpu *vcpu)
 	unsigned long addr = kvmppc_get_gpr(vcpu, 5);
 	unsigned long val = kvmppc_get_gpr(vcpu, 6);
 	u64 buf;
+	int srcu_idx;
 	int ret;
 
 	switch (size) {
@@ -889,7 +893,9 @@ int kvmppc_h_logical_ci_store(struct kvm_vcpu *vcpu)
 		return H_TOO_HARD;
 	}
 
+	srcu_idx = srcu_read_lock(&vcpu->kvm->srcu);
 	ret = kvm_io_bus_write(vcpu, KVM_MMIO_BUS, addr, size, &buf);
+	srcu_read_unlock(&vcpu->kvm->srcu, srcu_idx);
 	if (ret != 0)
 		return H_TOO_HARD;
 
arch/powerpc/kvm/book3s_hv_rmhandlers.S +1 -0
index 3b2d2c5b6376..ffd98b2bfa16 100644
@@ -1171,6 +1171,7 @@ mc_cont:
 	bl	kvmhv_accumulate_time
 #endif
 
+	mr 	r3, r12
 	/* Increment exit count, poke other threads to exit */
 	bl	kvmhv_commence_exit
 	nop
arch/powerpc/platforms/powernv/pci.c +3 -2
index bca2aeb6e4b6..3ff29cf6d05c 100644
@@ -99,6 +99,7 @@ static void pnv_teardown_msi_irqs(struct pci_dev *pdev)
 	struct pci_controller *hose = pci_bus_to_host(pdev->bus);
 	struct pnv_phb *phb = hose->private_data;
 	struct msi_desc *entry;
+	irq_hw_number_t hwirq;
 
 	if (WARN_ON(!phb))
 		return;
@@ -106,10 +107,10 @@ static void pnv_teardown_msi_irqs(struct pci_dev *pdev)
 	list_for_each_entry(entry, &pdev->msi_list, list) {
 		if (entry->irq == NO_IRQ)
 			continue;
+		hwirq = virq_to_hw(entry->irq);
 		irq_set_msi_desc(entry->irq, NULL);
-		msi_bitmap_free_hwirqs(&phb->msi_bmp,
-			virq_to_hw(entry->irq) - phb->msi_base, 1);
 		irq_dispose_mapping(entry->irq);
+		msi_bitmap_free_hwirqs(&phb->msi_bmp, hwirq - phb->msi_base, 1);
 	}
 }
 #endif /* CONFIG_PCI_MSI */
arch/powerpc/sysdev/fsl_msi.c +3 -2
index f086c6f22dc9..fd16cb5d83f3 100644
@@ -128,15 +128,16 @@ static void fsl_teardown_msi_irqs(struct pci_dev *pdev)
 {
 	struct msi_desc *entry;
 	struct fsl_msi *msi_data;
+	irq_hw_number_t hwirq;
 
 	list_for_each_entry(entry, &pdev->msi_list, list) {
 		if (entry->irq == NO_IRQ)
 			continue;
+		hwirq = virq_to_hw(entry->irq);
 		msi_data = irq_get_chip_data(entry->irq);
 		irq_set_msi_desc(entry->irq, NULL);
-		msi_bitmap_free_hwirqs(&msi_data->bitmap,
-				       virq_to_hw(entry->irq), 1);
 		irq_dispose_mapping(entry->irq);
+		msi_bitmap_free_hwirqs(&msi_data->bitmap, hwirq, 1);
 	}
 
 	return;
arch/powerpc/sysdev/mpic_pasemi_msi.c +4 -2
index a3f660eed6de..89496cf4e04d 100644
@@ -65,6 +65,7 @@ static struct irq_chip mpic_pasemi_msi_chip = {
 static void pasemi_msi_teardown_msi_irqs(struct pci_dev *pdev)
 {
 	struct msi_desc *entry;
+	irq_hw_number_t hwirq;
 
 	pr_debug("pasemi_msi_teardown_msi_irqs, pdev %p\n", pdev);
 
@@ -72,10 +73,11 @@ static void pasemi_msi_teardown_msi_irqs(struct pci_dev *pdev)
 		if (entry->irq == NO_IRQ)
 			continue;
 
+		hwirq = virq_to_hw(entry->irq);
 		irq_set_msi_desc(entry->irq, NULL);
-		msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap,
-				       virq_to_hw(entry->irq), ALLOC_CHUNK);
 		irq_dispose_mapping(entry->irq);
+		msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap,
+				       hwirq, ALLOC_CHUNK);
 	}
 
 	return;
arch/powerpc/sysdev/mpic_u3msi.c +3 -2
index b2cef1809389..13a34b237559 100644
@@ -107,15 +107,16 @@ static u64 find_u4_magic_addr(struct pci_dev *pdev, unsigned int hwirq)
 static void u3msi_teardown_msi_irqs(struct pci_dev *pdev)
 {
 	struct msi_desc *entry;
+	irq_hw_number_t hwirq;
 
         list_for_each_entry(entry, &pdev->msi_list, list) {
 		if (entry->irq == NO_IRQ)
 			continue;
 
+		hwirq = virq_to_hw(entry->irq);
 		irq_set_msi_desc(entry->irq, NULL);
-		msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap,
-				       virq_to_hw(entry->irq), 1);
 		irq_dispose_mapping(entry->irq);
+		msi_bitmap_free_hwirqs(&msi_mpic->msi_bitmap, hwirq, 1);
 	}
 
 	return;
arch/powerpc/sysdev/ppc4xx_msi.c +3 -2
index 6e2e6aa378bb..02a137daa182 100644
@@ -124,16 +124,17 @@ void ppc4xx_teardown_msi_irqs(struct pci_dev *dev)
 {
 	struct msi_desc *entry;
 	struct ppc4xx_msi *msi_data = &ppc4xx_msi;
+	irq_hw_number_t hwirq;
 
 	dev_dbg(&dev->dev, "PCIE-MSI: tearing down msi irqs\n");
 
 	list_for_each_entry(entry, &dev->msi_list, list) {
 		if (entry->irq == NO_IRQ)
 			continue;
+		hwirq = virq_to_hw(entry->irq);
 		irq_set_msi_desc(entry->irq, NULL);
-		msi_bitmap_free_hwirqs(&msi_data->bitmap,
-				virq_to_hw(entry->irq), 1);
 		irq_dispose_mapping(entry->irq);
+		msi_bitmap_free_hwirqs(&msi_data->bitmap, hwirq, 1);
 	}
 }
 
arch/s390/boot/compressed/Makefile +1 -1
index d4788111c161..fac6ac9790fa 100644
@@ -10,7 +10,7 @@ targets += misc.o piggy.o sizes.h head.o
 
 KBUILD_CFLAGS := -m64 -D__KERNEL__ $(LINUX_INCLUDE) -O2
 KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
-KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks
+KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks -msoft-float
 KBUILD_CFLAGS += $(call cc-option,-mpacked-stack)
 KBUILD_CFLAGS += $(call cc-option,-ffreestanding)
 
arch/s390/kernel/compat_signal.c +23 -4
index fe8d6924efaa..c78ba51ae285 100644
@@ -48,6 +48,19 @@ typedef struct
 	struct ucontext32 uc;
 } rt_sigframe32;
 
+static inline void sigset_to_sigset32(unsigned long *set64,
+				      compat_sigset_word *set32)
+{
+	set32[0] = (compat_sigset_word) set64[0];
+	set32[1] = (compat_sigset_word)(set64[0] >> 32);
+}
+
+static inline void sigset32_to_sigset(compat_sigset_word *set32,
+				      unsigned long *set64)
+{
+	set64[0] = (unsigned long) set32[0] | ((unsigned long) set32[1] << 32);
+}
+
 int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from)
 {
 	int err;
@@ -303,10 +316,12 @@ COMPAT_SYSCALL_DEFINE0(sigreturn)
 {
 	struct pt_regs *regs = task_pt_regs(current);
 	sigframe32 __user *frame = (sigframe32 __user *)regs->gprs[15];
+	compat_sigset_t cset;
 	sigset_t set;
 
-	if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32))
+	if (__copy_from_user(&cset.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32))
 		goto badframe;
+	sigset32_to_sigset(cset.sig, set.sig);
 	set_current_blocked(&set);
 	if (restore_sigregs32(regs, &frame->sregs))
 		goto badframe;
@@ -323,10 +338,12 @@ COMPAT_SYSCALL_DEFINE0(rt_sigreturn)
 {
 	struct pt_regs *regs = task_pt_regs(current);
 	rt_sigframe32 __user *frame = (rt_sigframe32 __user *)regs->gprs[15];
+	compat_sigset_t cset;
 	sigset_t set;
 
-	if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set)))
+	if (__copy_from_user(&cset, &frame->uc.uc_sigmask, sizeof(cset)))
 		goto badframe;
+	sigset32_to_sigset(cset.sig, set.sig);
 	set_current_blocked(&set);
 	if (compat_restore_altstack(&frame->uc.uc_stack))
 		goto badframe;
@@ -397,7 +414,7 @@ static int setup_frame32(struct ksignal *ksig, sigset_t *set,
 		return -EFAULT;
 
 	/* Create struct sigcontext32 on the signal stack */
-	memcpy(&sc.oldmask, &set->sig, _SIGMASK_COPY_SIZE32);
+	sigset_to_sigset32(set->sig, sc.oldmask);
 	sc.sregs = (__u32)(unsigned long __force) &frame->sregs;
 	if (__copy_to_user(&frame->sc, &sc, sizeof(frame->sc)))
 		return -EFAULT;
@@ -458,6 +475,7 @@ static int setup_frame32(struct ksignal *ksig, sigset_t *set,
 static int setup_rt_frame32(struct ksignal *ksig, sigset_t *set,
 			    struct pt_regs *regs)
 {
+	compat_sigset_t cset;
 	rt_sigframe32 __user *frame;
 	unsigned long restorer;
 	size_t frame_size;
@@ -505,11 +523,12 @@ static int setup_rt_frame32(struct ksignal *ksig, sigset_t *set,
 	store_sigregs();
 
 	/* Create ucontext on the signal stack. */
+	sigset_to_sigset32(set->sig, cset.sig);
 	if (__put_user(uc_flags, &frame->uc.uc_flags) ||
 	    __put_user(0, &frame->uc.uc_link) ||
 	    __compat_save_altstack(&frame->uc.uc_stack, regs->gprs[15]) ||
 	    save_sigregs32(regs, &frame->uc.uc_mcontext) ||
-	    __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)) ||
+	    __copy_to_user(&frame->uc.uc_sigmask, &cset, sizeof(cset)) ||
 	    save_sigregs_ext32(regs, &frame->uc.uc_mcontext_ext))
 		return -EFAULT;
 
arch/x86/kernel/alternative.c +5 -0
index aef653193160..d1918a8c4393 100644
@@ -325,10 +325,15 @@ done:
 
 static void __init_or_module optimize_nops(struct alt_instr *a, u8 *instr)
 {
+	unsigned long flags;
+
 	if (instr[0] != 0x90)
 		return;
 
+	local_irq_save(flags);
 	add_nops(instr + (a->instrlen - a->padlen), a->padlen);
+	sync_core();
+	local_irq_restore(flags);
 
 	DUMP_BYTES(instr, a->instrlen, "%p: [%d:%d) optimized NOPs: ",
 		   instr, a->instrlen - a->padlen, a->padlen);
arch/x86/kernel/apic/apic.c +7 -0
index cde732c1b495..307a49828826 100644
@@ -336,6 +336,13 @@ static void __setup_APIC_LVTT(unsigned int clocks, int oneshot, int irqen)
 	apic_write(APIC_LVTT, lvtt_value);
 
 	if (lvtt_value & APIC_LVT_TIMER_TSCDEADLINE) {
+		/*
+		 * See Intel SDM: TSC-Deadline Mode chapter. In xAPIC mode,
+		 * writing to the APIC LVTT and TSC_DEADLINE MSR isn't serialized.
+		 * According to Intel, MFENCE can do the serialization here.
+		 */
+		asm volatile("mfence" : : : "memory");
+
 		printk_once(KERN_DEBUG "TSC deadline timer enabled\n");
 		return;
 	}
arch/x86/kernel/cpu/perf_event_intel.c +4 -1
index 2813ea0f142e..22212615a137 100644
@@ -2098,9 +2098,12 @@ static struct event_constraint *
 intel_get_event_constraints(struct cpu_hw_events *cpuc, int idx,
 			    struct perf_event *event)
 {
-	struct event_constraint *c1 = cpuc->event_constraint[idx];
+	struct event_constraint *c1 = NULL;
 	struct event_constraint *c2;
 
+	if (idx >= 0) /* fake does < 0 */
+		c1 = cpuc->event_constraint[idx];
+
 	/*
 	 * first time only
 	 * - static constraint: no change across incremental scheduling calls
arch/x86/kernel/crash.c +3 -4
index c76d3e37c6e1..403ace539b73 100644
@@ -184,10 +184,9 @@ void native_machine_crash_shutdown(struct pt_regs *regs)
 }
 
 #ifdef CONFIG_KEXEC_FILE
-static int get_nr_ram_ranges_callback(unsigned long start_pfn,
-				unsigned long nr_pfn, void *arg)
+static int get_nr_ram_ranges_callback(u64 start, u64 end, void *arg)
 {
-	int *nr_ranges = arg;
+	unsigned int *nr_ranges = arg;
 
 	(*nr_ranges)++;
 	return 0;
@@ -213,7 +212,7 @@ static void fill_up_crash_elf_data(struct crash_elf_data *ced,
 
 	ced->image = image;
 
-	walk_system_ram_range(0, -1, &nr_ranges,
+	walk_system_ram_res(0, -1, &nr_ranges,
 				get_nr_ram_ranges_callback);
 
 	ced->max_nr_ranges = nr_ranges;
arch/x86/kernel/entry_64.S +15 -1
index 4bd6c197563d..6c9cb6073832 100644
@@ -1393,7 +1393,18 @@ END(error_exit)
 /* Runs on exception stack */
 ENTRY(nmi)
 	INTR_FRAME
+	/*
+	 * Fix up the exception frame if we're on Xen.
+	 * PARAVIRT_ADJUST_EXCEPTION_FRAME is guaranteed to push at most
+	 * one value to the stack on native, so it may clobber the rdx
+	 * scratch slot, but it won't clobber any of the important
+	 * slots past it.
+	 *
+	 * Xen is a different story, because the Xen frame itself overlaps
+	 * the "NMI executing" variable.
+	 */
 	PARAVIRT_ADJUST_EXCEPTION_FRAME
+
 	/*
 	 * We allow breakpoints in NMIs. If a breakpoint occurs, then
 	 * the iretq it performs will take us out of NMI context.
@@ -1445,9 +1456,12 @@ ENTRY(nmi)
 	 * we don't want to enable interrupts, because then we'll end
 	 * up in an awkward situation in which IRQs are on but NMIs
 	 * are off.
+	 *
+	 * We also must not push anything to the stack before switching
+	 * stacks lest we corrupt the "NMI executing" variable.
 	 */
 
-	SWAPGS
+	SWAPGS_UNSAFE_STACK
 	cld
 	movq	%rsp, %rdx
 	movq	PER_CPU_VAR(kernel_stack), %rsp
arch/x86/kernel/paravirt.c +12 -4
index c614dd492f5f..1f316f066c49 100644
@@ -41,10 +41,18 @@
 #include <asm/timer.h>
 #include <asm/special_insns.h>
 
-/* nop stub */
-void _paravirt_nop(void)
-{
-}
+/*
+ * nop stub, which must not clobber anything *including the stack* to
+ * avoid confusing the entry prologues.
+ */
+extern void _paravirt_nop(void);
+asm (".pushsection .entry.text, \"ax\"\n"
+     ".global _paravirt_nop\n"
+     "_paravirt_nop:\n\t"
+     "ret\n\t"
+     ".size _paravirt_nop, . - _paravirt_nop\n\t"
+     ".type _paravirt_nop, @function\n\t"
+     ".popsection");
 
 /* identity function, which can be inlined */
 u32 _paravirt_ident_32(u32 x)
arch/x86/kernel/process_64.c +42 -10

69 lines not on this page · raw message

arch/x86/kernel/tsc.c +10 -7
index 505449700e0c..21187ebee7d0 100644
@@ -21,6 +21,7 @@
 #include <asm/hypervisor.h>
 #include <asm/nmi.h>
 #include <asm/x86_init.h>
+#include <asm/geode.h>
 
 unsigned int __read_mostly cpu_khz;	/* TSC clocks / usec, not used here */
 EXPORT_SYMBOL(cpu_khz);
@@ -1004,15 +1005,17 @@ EXPORT_SYMBOL_GPL(mark_tsc_unstable);
 
 static void __init check_system_tsc_reliable(void)
 {
-#ifdef CONFIG_MGEODE_LX
-	/* RTSC counts during suspend */
+#if defined(CONFIG_MGEODEGX1) || defined(CONFIG_MGEODE_LX) || defined(CONFIG_X86_GENERIC)
+	if (is_geode_lx()) {
+		/* RTSC counts during suspend */
 #define RTSC_SUSP 0x100
-	unsigned long res_low, res_high;
+		unsigned long res_low, res_high;
 
-	rdmsr_safe(MSR_GEODE_BUSCONT_CONF0, &res_low, &res_high);
-	/* Geode_LX - the OLPC CPU has a very reliable TSC */
-	if (res_low & RTSC_SUSP)
-		tsc_clocksource_reliable = 1;
+		rdmsr_safe(MSR_GEODE_BUSCONT_CONF0, &res_low, &res_high);
+		/* Geode_LX - the OLPC CPU has a very reliable TSC */
+		if (res_low & RTSC_SUSP)
+			tsc_clocksource_reliable = 1;
+	}
 #endif
 	if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE))
 		tsc_clocksource_reliable = 1;
arch/x86/kvm/svm.c +1 -1
index 4911bf19122b..7858cd9acfe4 100644
@@ -512,7 +512,7 @@ static void skip_emulated_instruction(struct kvm_vcpu *vcpu)
 	struct vcpu_svm *svm = to_svm(vcpu);
 
 	if (svm->vmcb->control.next_rip != 0) {
-		WARN_ON(!static_cpu_has(X86_FEATURE_NRIPS));
+		WARN_ON_ONCE(!static_cpu_has(X86_FEATURE_NRIPS));
 		svm->next_rip = svm->vmcb->control.next_rip;
 	}
 
arch/x86/kvm/vmx.c +2 -0
index 2d73807f0d31..bc3041e1abbc 100644
@@ -6144,6 +6144,8 @@ static __init int hardware_setup(void)
 	memcpy(vmx_msr_bitmap_longmode_x2apic,
 			vmx_msr_bitmap_longmode, PAGE_SIZE);
 
+	set_bit(0, vmx_vpid_bitmap); /* 0 is reserved for host */
+
 	if (enable_apicv) {
 		for (msr = 0x800; msr <= 0x8ff; msr++)
 			vmx_disable_intercept_msr_read_x2apic(msr);
arch/x86/mm/init_64.c +1 -1
index 3fba623e3ba5..f9977a7a9444 100644
@@ -1132,7 +1132,7 @@ void mark_rodata_ro(void)
 	 * has been zapped already via cleanup_highmem().
 	 */
 	all_end = roundup((unsigned long)_brk_end, PMD_SIZE);
-	set_memory_nx(rodata_start, (all_end - rodata_start) >> PAGE_SHIFT);
+	set_memory_nx(text_end, (all_end - text_end) >> PAGE_SHIFT);
 
 	rodata_test();
 
arch/x86/platform/efi/efi.c +66 -1

79 lines not on this page · raw message

arch/x86/xen/enlighten.c +23 -0
index a671e837228d..0cc657160cb6 100644
@@ -33,6 +33,10 @@
 #include <linux/memblock.h>
 #include <linux/edd.h>
 
+#ifdef CONFIG_KEXEC_CORE
+#include <linux/kexec.h>
+#endif
+
 #include <xen/xen.h>
 #include <xen/events.h>
 #include <xen/interface/xen.h>
@@ -1798,6 +1802,21 @@ static struct notifier_block xen_hvm_cpu_notifier = {
 	.notifier_call	= xen_hvm_cpu_notify,
 };
 
+#ifdef CONFIG_KEXEC_CORE
+static void xen_hvm_shutdown(void)
+{
+	native_machine_shutdown();
+	if (kexec_in_progress)
+		xen_reboot(SHUTDOWN_soft_reset);
+}
+
+static void xen_hvm_crash_shutdown(struct pt_regs *regs)
+{
+	native_machine_crash_shutdown(regs);
+	xen_reboot(SHUTDOWN_soft_reset);
+}
+#endif
+
 static void __init xen_hvm_guest_init(void)
 {
 	if (xen_pv_domain())
@@ -1817,6 +1836,10 @@ static void __init xen_hvm_guest_init(void)
 	x86_init.irqs.intr_init = xen_init_IRQ;
 	xen_hvm_init_time_ops();
 	xen_hvm_init_mmu_ops();
+#ifdef CONFIG_KEXEC_CORE
+	machine_ops.shutdown = xen_hvm_shutdown;
+	machine_ops.crash_shutdown = xen_hvm_crash_shutdown;
+#endif
 }
 #endif
 
drivers/base/cacheinfo.c +8 -2
index df0c66cb7ad3..fdba441457ec 100644
@@ -148,7 +148,11 @@ static void cache_shared_cpu_map_remove(unsigned int cpu)
 
 			if (sibling == cpu) /* skip itself */
 				continue;
+
 			sib_cpu_ci = get_cpu_cacheinfo(sibling);
+			if (!sib_cpu_ci->info_list)
+				continue;
+
 			sib_leaf = sib_cpu_ci->info_list + index;
 			cpumask_clear_cpu(cpu, &sib_leaf->shared_cpu_map);
 			cpumask_clear_cpu(sibling, &this_leaf->shared_cpu_map);
@@ -159,6 +163,9 @@ static void cache_shared_cpu_map_remove(unsigned int cpu)
 
 static void free_cache_attributes(unsigned int cpu)
 {
+	if (!per_cpu_cacheinfo(cpu))
+		return;
+
 	cache_shared_cpu_map_remove(cpu);
 
 	kfree(per_cpu_cacheinfo(cpu));
@@ -514,8 +521,7 @@ static int cacheinfo_cpu_callback(struct notifier_block *nfb,
 		break;
 	case CPU_DEAD:
 		cache_remove_dev(cpu);
-		if (per_cpu_cacheinfo(cpu))
-			free_cache_attributes(cpu);
+		free_cache_attributes(cpu);
 		break;
 	}
 	return notifier_from_errno(rc);
drivers/base/property.c +3 -2
index 1d0b116cae95..0a60ef1500cd 100644
@@ -26,9 +26,10 @@
  */
 void device_add_property_set(struct device *dev, struct property_set *pset)
 {
-	if (pset)
-		pset->fwnode.type = FWNODE_PDATA;
+	if (!pset)
+		return;
 
+	pset->fwnode.type = FWNODE_PDATA;
 	set_secondary_fwnode(dev, &pset->fwnode);
 }
 EXPORT_SYMBOL_GPL(device_add_property_set);
drivers/base/regmap/regmap-debugfs.c +2 -3
index 5799a0b9e6cc..c8941f39c919 100644
@@ -32,8 +32,7 @@ static DEFINE_MUTEX(regmap_debugfs_early_lock);
 /* Calculate the length of a fixed format  */
 static size_t regmap_calc_reg_len(int max_val, char *buf, size_t buf_size)
 {
-	snprintf(buf, buf_size, "%x", max_val);
-	return strlen(buf);
+	return snprintf(NULL, 0, "%x", max_val);
 }
 
 static ssize_t regmap_name_read_file(struct file *file,
@@ -432,7 +431,7 @@ static ssize_t regmap_access_read_file(struct file *file,
 		/* If we're in the region the user is trying to read */
 		if (p >= *ppos) {
 			/* ...but not beyond it */
-			if (buf_pos >= count - 1 - tot_len)
+			if (buf_pos + tot_len + 1 >= count)
 				break;
 
 			/* Format the register */
drivers/clk/ti/clk-3xxx.c +1 -1
index 757636d166cf..4ab28cfb8d2a 100644
@@ -163,7 +163,6 @@ static struct ti_dt_clk omap3xxx_clks[] = {
 	DT_CLK(NULL, "gpio2_ick", "gpio2_ick"),
 	DT_CLK(NULL, "wdt3_ick", "wdt3_ick"),
 	DT_CLK(NULL, "uart3_ick", "uart3_ick"),
-	DT_CLK(NULL, "uart4_ick", "uart4_ick"),
 	DT_CLK(NULL, "gpt9_ick", "gpt9_ick"),
 	DT_CLK(NULL, "gpt8_ick", "gpt8_ick"),
 	DT_CLK(NULL, "gpt7_ick", "gpt7_ick"),
@@ -308,6 +307,7 @@ static struct ti_dt_clk am35xx_clks[] = {
 static struct ti_dt_clk omap36xx_clks[] = {
 	DT_CLK(NULL, "omap_192m_alwon_fck", "omap_192m_alwon_fck"),
 	DT_CLK(NULL, "uart4_fck", "uart4_fck"),
+	DT_CLK(NULL, "uart4_ick", "uart4_ick"),
 	{ .node_name = NULL },
 };
 
drivers/cpufreq/cpufreq-dt.c +2 -1
index bab67db54b7e..663045ce6fac 100644
@@ -255,7 +255,8 @@ static int cpufreq_init(struct cpufreq_policy *policy)
 			rcu_read_unlock();
 
 			tol_uV = opp_uV * priv->voltage_tolerance / 100;
-			if (regulator_is_supported_voltage(cpu_reg, opp_uV,
+			if (regulator_is_supported_voltage(cpu_reg,
+							   opp_uV - tol_uV,
 							   opp_uV + tol_uV)) {
 				if (opp_uV < min_uV)
 					min_uV = opp_uV;
drivers/cpufreq/intel_pstate.c +5 -5
index 6f9d27f9001c..e8d16997c5cb 100644
@@ -48,9 +48,9 @@ static inline int32_t mul_fp(int32_t x, int32_t y)
 	return ((int64_t)x * (int64_t)y) >> FRAC_BITS;
 }
 
-static inline int32_t div_fp(int32_t x, int32_t y)
+static inline int32_t div_fp(s64 x, s64 y)
 {
-	return div_s64((int64_t)x << FRAC_BITS, y);
+	return div64_s64((int64_t)x << FRAC_BITS, y);
 }
 
 static inline int ceiling_fp(int32_t x)
@@ -795,7 +795,7 @@ static inline void intel_pstate_set_sample_time(struct cpudata *cpu)
 static inline int32_t intel_pstate_get_scaled_busy(struct cpudata *cpu)
 {
 	int32_t core_busy, max_pstate, current_pstate, sample_ratio;
-	u32 duration_us;
+	s64 duration_us;
 	u32 sample_time;
 
 	/*
@@ -822,8 +822,8 @@ static inline int32_t intel_pstate_get_scaled_busy(struct cpudata *cpu)
 	 * to adjust our busyness.
 	 */
 	sample_time = pid_params.sample_rate_ms  * USEC_PER_MSEC;
-	duration_us = (u32) ktime_us_delta(cpu->sample.time,
-					   cpu->last_sample_time);
+	duration_us = ktime_us_delta(cpu->sample.time,
+				     cpu->last_sample_time);
 	if (duration_us > sample_time * 3) {
 		sample_ratio = div_fp(int_tofp(sample_time),
 				      int_tofp(duration_us));
drivers/dma/dw/core.c +2 -2
index 1022c2e1a2b0..9e504d3b0d4f 100644
@@ -1591,7 +1591,6 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)
 	INIT_LIST_HEAD(&dw->dma.channels);
 	for (i = 0; i < nr_channels; i++) {
 		struct dw_dma_chan	*dwc = &dw->chan[i];
-		int			r = nr_channels - i - 1;
 
 		dwc->chan.device = &dw->dma;
 		dma_cookie_init(&dwc->chan);
@@ -1603,7 +1602,7 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)
 
 		/* 7 is highest priority & 0 is lowest. */
 		if (pdata->chan_priority == CHAN_PRIORITY_ASCENDING)
-			dwc->priority = r;
+			dwc->priority = nr_channels - i - 1;
 		else
 			dwc->priority = i;
 
@@ -1622,6 +1621,7 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)
 		/* Hardware configuration */
 		if (autocfg) {
 			unsigned int dwc_params;
+			unsigned int r = DW_DMA_MAX_NR_CHANNELS - i - 1;
 			void __iomem *addr = chip->regs + r * sizeof(u32);
 
 			dwc_params = dma_read_byaddr(addr, DWC_PARAMS);
drivers/firmware/efi/libstub/arm-stub.c +73 -15

118 lines not on this page · raw message

drivers/gpu/drm/drm_dp_mst_topology.c +3 -2
index b0487c9f018c..7f467fdc9107 100644
@@ -804,8 +804,6 @@ static void drm_dp_destroy_mst_branch_device(struct kref *kref)
 	struct drm_dp_mst_port *port, *tmp;
 	bool wake_tx = false;
 
-	cancel_work_sync(&mstb->mgr->work);
-
 	/*
 	 * destroy all ports - don't need lock
 	 * as there are no more references to the mst branch
@@ -1977,6 +1975,8 @@ void drm_dp_mst_topology_mgr_suspend(struct drm_dp_mst_topology_mgr *mgr)
 	drm_dp_dpcd_writeb(mgr->aux, DP_MSTM_CTRL,
 			   DP_MST_EN | DP_UPSTREAM_IS_SRC);
 	mutex_unlock(&mgr->lock);
+	flush_work(&mgr->work);
+	flush_work(&mgr->destroy_connector_work);
 }
 EXPORT_SYMBOL(drm_dp_mst_topology_mgr_suspend);
 
@@ -2730,6 +2730,7 @@ EXPORT_SYMBOL(drm_dp_mst_topology_mgr_init);
  */
 void drm_dp_mst_topology_mgr_destroy(struct drm_dp_mst_topology_mgr *mgr)
 {
+	flush_work(&mgr->work);
 	flush_work(&mgr->destroy_connector_work);
 	mutex_lock(&mgr->payload_lock);
 	kfree(mgr->payloads);
drivers/gpu/drm/drm_lock.c +6 -0
index f861361a635e..4924d381b664 100644
@@ -61,6 +61,9 @@ int drm_legacy_lock(struct drm_device *dev, void *data,
 	struct drm_master *master = file_priv->master;
 	int ret = 0;
 
+	if (drm_core_check_feature(dev, DRIVER_MODESET))
+		return -EINVAL;
+
 	++file_priv->lock_count;
 
 	if (lock->context == DRM_KERNEL_CONTEXT) {
@@ -153,6 +156,9 @@ int drm_legacy_unlock(struct drm_device *dev, void *data, struct drm_file *file_
 	struct drm_lock *lock = data;
 	struct drm_master *master = file_priv->master;
 
+	if (drm_core_check_feature(dev, DRIVER_MODESET))
+		return -EINVAL;
+
 	if (lock->context == DRM_KERNEL_CONTEXT) {
 		DRM_ERROR("Process %d using kernel context %d\n",
 			  task_pid_nr(current), lock->context);
drivers/gpu/drm/i915/intel_bios.c +11 -1
index c684085cb56a..fadf9865709e 100644
@@ -41,7 +41,7 @@ find_section(struct bdb_header *bdb, int section_id)
 {
 	u8 *base = (u8 *)bdb;
 	int index = 0;
-	u16 total, current_size;
+	u32 total, current_size;
 	u8 current_id;
 
 	/* skip to first section */
@@ -56,6 +56,10 @@ find_section(struct bdb_header *bdb, int section_id)
 		current_size = *((u16 *)(base + index));
 		index += 2;
 
+		/* The MIPI Sequence Block v3+ has a separate size field. */
+		if (current_id == BDB_MIPI_SEQUENCE && *(base + index) >= 3)
+			current_size = *((const u32 *)(base + index + 1));
+
 		if (index + current_size > total)
 			return NULL;
 
@@ -845,6 +849,12 @@ parse_mipi(struct drm_i915_private *dev_priv, struct bdb_header *bdb)
 		return;
 	}
 
+	/* Fail gracefully for forward incompatible sequence block. */
+	if (sequence->version >= 3) {
+		DRM_ERROR("Unable to parse MIPI Sequence Block v3+\n");
+		return;
+	}
+
 	DRM_DEBUG_DRIVER("Found MIPI sequence block\n");
 
 	block_size = get_blocksize(sequence);
drivers/gpu/drm/qxl/qxl_display.c +8 -6
index 32248791bc4b..52921a871230 100644
@@ -618,7 +618,7 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
 		  adjusted_mode->hdisplay,
 		  adjusted_mode->vdisplay);
 
-	if (qcrtc->index == 0)
+	if (bo->is_primary == false)
 		recreate_primary = true;
 
 	if (bo->surf.stride * bo->surf.height > qdev->vram_size) {
@@ -886,13 +886,15 @@ static enum drm_connector_status qxl_conn_detect(
 		drm_connector_to_qxl_output(connector);
 	struct drm_device *ddev = connector->dev;
 	struct qxl_device *qdev = ddev->dev_private;
-	int connected;
+	bool connected = false;
 
 	/* The first monitor is always connected */
-	connected = (output->index == 0) ||
-		    (qdev->client_monitors_config &&
-		     qdev->client_monitors_config->count > output->index &&
-		     qxl_head_enabled(&qdev->client_monitors_config->heads[output->index]));
+	if (!qdev->client_monitors_config) {
+		if (output->index == 0)
+			connected = true;
+	} else
+		connected = qdev->client_monitors_config->count > output->index &&
+		     qxl_head_enabled(&qdev->client_monitors_config->heads[output->index]);
 
 	DRM_DEBUG("#%d connected: %d\n", output->index, connected);
 	if (!connected)
drivers/gpu/drm/radeon/atombios_encoders.c +4 -4
index dd39f434b4a7..b4ff4c134fbb 100644
@@ -1624,8 +1624,9 @@ radeon_atom_encoder_dpms_avivo(struct drm_encoder *encoder, int mode)
 		} else
 			atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
 		if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) {
-			args.ucAction = ATOM_LCD_BLON;
-			atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
+			struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
+
+			atombios_set_backlight_level(radeon_encoder, dig->backlight_level);
 		}
 		break;
 	case DRM_MODE_DPMS_STANDBY:
@@ -1706,8 +1707,7 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)
 				atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_DP_VIDEO_ON, 0);
 		}
 		if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT))
-			atombios_dig_transmitter_setup(encoder,
-						       ATOM_TRANSMITTER_ACTION_LCD_BLON, 0, 0);
+			atombios_set_backlight_level(radeon_encoder, dig->backlight_level);
 		if (ext_encoder)
 			atombios_external_encoder_setup(encoder, ext_encoder, ATOM_ENABLE);
 		break;
drivers/hwmon/nct6775.c +10 -6
index bd1c99deac71..2aaedbe0b023 100644
@@ -354,6 +354,10 @@ static const u16 NCT6775_REG_TEMP_CRIT[ARRAY_SIZE(nct6775_temp_label) - 1]
 
 /* NCT6776 specific data */
 
+/* STEP_UP_TIME and STEP_DOWN_TIME regs are swapped for all chips but NCT6775 */
+#define NCT6776_REG_FAN_STEP_UP_TIME NCT6775_REG_FAN_STEP_DOWN_TIME
+#define NCT6776_REG_FAN_STEP_DOWN_TIME NCT6775_REG_FAN_STEP_UP_TIME
+
 static const s8 NCT6776_ALARM_BITS[] = {
 	0, 1, 2, 3, 8, 21, 20, 16,	/* in0.. in7 */
 	17, -1, -1, -1, -1, -1, -1,	/* in8..in14 */
@@ -3528,8 +3532,8 @@ static int nct6775_probe(struct platform_device *pdev)
 		data->REG_FAN_PULSES = NCT6776_REG_FAN_PULSES;
 		data->FAN_PULSE_SHIFT = NCT6775_FAN_PULSE_SHIFT;
 		data->REG_FAN_TIME[0] = NCT6775_REG_FAN_STOP_TIME;
-		data->REG_FAN_TIME[1] = NCT6775_REG_FAN_STEP_UP_TIME;
-		data->REG_FAN_TIME[2] = NCT6775_REG_FAN_STEP_DOWN_TIME;
+		data->REG_FAN_TIME[1] = NCT6776_REG_FAN_STEP_UP_TIME;
+		data->REG_FAN_TIME[2] = NCT6776_REG_FAN_STEP_DOWN_TIME;
 		data->REG_TOLERANCE_H = NCT6776_REG_TOLERANCE_H;
 		data->REG_PWM[0] = NCT6775_REG_PWM;
 		data->REG_PWM[1] = NCT6775_REG_FAN_START_OUTPUT;
@@ -3600,8 +3604,8 @@ static int nct6775_probe(struct platform_device *pdev)
 		data->REG_FAN_PULSES = NCT6779_REG_FAN_PULSES;
 		data->FAN_PULSE_SHIFT = NCT6775_FAN_PULSE_SHIFT;
 		data->REG_FAN_TIME[0] = NCT6775_REG_FAN_STOP_TIME;
-		data->REG_FAN_TIME[1] = NCT6775_REG_FAN_STEP_UP_TIME;
-		data->REG_FAN_TIME[2] = NCT6775_REG_FAN_STEP_DOWN_TIME;
+		data->REG_FAN_TIME[1] = NCT6776_REG_FAN_STEP_UP_TIME;
+		data->REG_FAN_TIME[2] = NCT6776_REG_FAN_STEP_DOWN_TIME;
 		data->REG_TOLERANCE_H = NCT6776_REG_TOLERANCE_H;
 		data->REG_PWM[0] = NCT6775_REG_PWM;
 		data->REG_PWM[1] = NCT6775_REG_FAN_START_OUTPUT;
@@ -3677,8 +3681,8 @@ static int nct6775_probe(struct platform_device *pdev)
 		data->REG_FAN_PULSES = NCT6779_REG_FAN_PULSES;
 		data->FAN_PULSE_SHIFT = NCT6775_FAN_PULSE_SHIFT;
 		data->REG_FAN_TIME[0] = NCT6775_REG_FAN_STOP_TIME;
-		data->REG_FAN_TIME[1] = NCT6775_REG_FAN_STEP_UP_TIME;
-		data->REG_FAN_TIME[2] = NCT6775_REG_FAN_STEP_DOWN_TIME;
+		data->REG_FAN_TIME[1] = NCT6776_REG_FAN_STEP_UP_TIME;
+		data->REG_FAN_TIME[2] = NCT6776_REG_FAN_STEP_DOWN_TIME;
 		data->REG_TOLERANCE_H = NCT6776_REG_TOLERANCE_H;
 		data->REG_PWM[0] = NCT6775_REG_PWM;
 		data->REG_PWM[1] = NCT6775_REG_FAN_START_OUTPUT;
drivers/infiniband/ulp/isert/ib_isert.c +45 -2

68 lines not on this page · raw message

drivers/irqchip/irq-atmel-aic5.c +16 -8
index a2e8c3f876cb..c2c578f0b268 100644
@@ -88,28 +88,36 @@ static void aic5_mask(struct irq_data *d)
 {
 	struct irq_domain *domain = d->domain;
 	struct irq_domain_chip_generic *dgc = domain->gc;
-	struct irq_chip_generic *gc = dgc->gc[0];
+	struct irq_chip_generic *bgc = dgc->gc[0];
+	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
 
-	/* Disable interrupt on AIC5 */
-	irq_gc_lock(gc);
+	/*
+	 * Disable interrupt on AIC5. We always take the lock of the
+	 * first irq chip as all chips share the same registers.
+	 */
+	irq_gc_lock(bgc);
 	irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR);
 	irq_reg_writel(gc, 1, AT91_AIC5_IDCR);
 	gc->mask_cache &= ~d->mask;
-	irq_gc_unlock(gc);
+	irq_gc_unlock(bgc);
 }
 
 static void aic5_unmask(struct irq_data *d)
 {
 	struct irq_domain *domain = d->domain;
 	struct irq_domain_chip_generic *dgc = domain->gc;
-	struct irq_chip_generic *gc = dgc->gc[0];
+	struct irq_chip_generic *bgc = dgc->gc[0];
+	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
 
-	/* Enable interrupt on AIC5 */
-	irq_gc_lock(gc);
+	/*
+	 * Enable interrupt on AIC5. We always take the lock of the
+	 * first irq chip as all chips share the same registers.
+	 */
+	irq_gc_lock(bgc);
 	irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR);
 	irq_reg_writel(gc, 1, AT91_AIC5_IECR);
 	gc->mask_cache |= d->mask;
-	irq_gc_unlock(gc);
+	irq_gc_unlock(bgc);
 }
 
 static int aic5_retrigger(struct irq_data *d)
drivers/irqchip/irq-gic-v3-its.c +5 -1
index c00e2db351ba..9a791dd52199 100644
@@ -921,8 +921,10 @@ retry_baser:
 			 * non-cacheable as well.
 			 */
 			shr = tmp & GITS_BASER_SHAREABILITY_MASK;
-			if (!shr)
+			if (!shr) {
 				cache = GITS_BASER_nC;
+				__flush_dcache_area(base, alloc_size);
+			}
 			goto retry_baser;
 		}
 
@@ -1163,6 +1165,8 @@ static struct its_device *its_create_device(struct its_node *its, u32 dev_id,
 		return NULL;
 	}
 
+	__flush_dcache_area(itt, sz);
+
 	dev->its = its;
 	dev->itt = itt;
 	dev->nr_ites = nr_ites;
drivers/leds/led-class.c +5 -2
index 7fb2a19ac649..557f8a53a062 100644
@@ -223,12 +223,15 @@ static int led_classdev_next_name(const char *init_name, char *name,
 {
 	unsigned int i = 0;
 	int ret = 0;
+	struct device *dev;
 
 	strlcpy(name, init_name, len);
 
-	while (class_find_device(leds_class, NULL, name, match_name) &&
-	       (ret < len))
+	while ((ret < len) &&
+	       (dev = class_find_device(leds_class, NULL, name, match_name))) {
+		put_device(dev);
 		ret = snprintf(name, len, "%s_%u", init_name, ++i);
+	}
 
 	if (ret >= len)
 		return -ENOMEM;
drivers/macintosh/windfarm_core.c +1 -1
index 3ee198b65843..cc7ece1712b5 100644
@@ -435,7 +435,7 @@ int wf_unregister_client(struct notifier_block *nb)
 {
 	mutex_lock(&wf_lock);
 	blocking_notifier_chain_unregister(&wf_client_list, nb);
-	wf_client_count++;
+	wf_client_count--;
 	if (wf_client_count == 0)
 		wf_stop_thread();
 	mutex_unlock(&wf_lock);
drivers/md/bitmap.c +2 -1
index c90118e90708..a7621a258936 100644
@@ -2000,7 +2000,8 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks,
 	if (bitmap->mddev->bitmap_info.offset || bitmap->mddev->bitmap_info.file)
 		ret = bitmap_storage_alloc(&store, chunks,
 					   !bitmap->mddev->bitmap_info.external,
-					   bitmap->cluster_slot);
+					   mddev_is_clustered(bitmap->mddev)
+					   ? bitmap->cluster_slot : 0);
 	if (ret)
 		goto err;
 
drivers/md/dm-cache-policy-cleaner.c +1 -1
index 004e463c9423..8308f4b434ec 100644
@@ -435,7 +435,7 @@ static struct dm_cache_policy *wb_create(dm_cblock_t cache_size,
 static struct dm_cache_policy_type wb_policy_type = {
 	.name = "cleaner",
 	.version = {1, 0, 0},
-	.hint_size = 0,
+	.hint_size = 4,
 	.owner = THIS_MODULE,
 	.create = wb_create
 };
drivers/md/dm-crypt.c +15 -2
index 5503e43e5f28..049282e6482f 100644
@@ -955,7 +955,8 @@ static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
 
 /*
  * Generate a new unfragmented bio with the given size
- * This should never violate the device limitations
+ * This should never violate the device limitations (but only because
+ * max_segment_size is being constrained to PAGE_SIZE).
  *
  * This function may be called concurrently. If we allocate from the mempool
  * concurrently, there is a possibility of deadlock. For example, if we have
@@ -2040,9 +2041,20 @@ static int crypt_iterate_devices(struct dm_target *ti,
 	return fn(ti, cc->dev, cc->start, ti->len, data);
 }
 
+static void crypt_io_hints(struct dm_target *ti, struct queue_limits *limits)
+{
+	/*
+	 * Unfortunate constraint that is required to avoid the potential
+	 * for exceeding underlying device's max_segments limits -- due to
+	 * crypt_alloc_buffer() possibly allocating pages for the encryption
+	 * bio that are not as physically contiguous as the original bio.
+	 */
+	limits->max_segment_size = PAGE_SIZE;
+}
+
 static struct target_type crypt_target = {
 	.name   = "crypt",
-	.version = {1, 14, 0},
+	.version = {1, 14, 1},
 	.module = THIS_MODULE,
 	.ctr    = crypt_ctr,
 	.dtr    = crypt_dtr,
@@ -2054,6 +2066,7 @@ static struct target_type crypt_target = {
 	.message = crypt_message,
 	.merge  = crypt_merge,
 	.iterate_devices = crypt_iterate_devices,
+	.io_hints = crypt_io_hints,
 };
 
 static int __init dm_crypt_init(void)
drivers/md/dm-raid.c +1 -2
index 88e4c7f24986..2c1f2e13719e 100644
@@ -327,8 +327,7 @@ static int validate_region_size(struct raid_set *rs, unsigned long region_size)
 		 */
 		if (min_region_size > (1 << 13)) {
 			/* If not a power of 2, make it the next power of 2 */
-			if (min_region_size & (min_region_size - 1))
-				region_size = 1 << fls(region_size);
+			region_size = roundup_pow_of_two(min_region_size);
 			DMINFO("Choosing default region size of %lu sectors",
 			       region_size);
 		} else {
drivers/md/dm.c +2 -4
index 697f34fba06b..8b72ceee0f61 100644
@@ -2925,8 +2925,6 @@ static void __dm_destroy(struct mapped_device *md, bool wait)
 
 	might_sleep();
 
-	map = dm_get_live_table(md, &srcu_idx);
-
 	spin_lock(&_minor_lock);
 	idr_replace(&_minor_idr, MINOR_ALLOCED, MINOR(disk_devt(dm_disk(md))));
 	set_bit(DMF_FREEING, &md->flags);
@@ -2940,14 +2938,14 @@ static void __dm_destroy(struct mapped_device *md, bool wait)
 	 * do not race with internal suspend.
 	 */
 	mutex_lock(&md->suspend_lock);
+	map = dm_get_live_table(md, &srcu_idx);
 	if (!dm_suspended_md(md)) {
 		dm_table_presuspend_targets(map);
 		dm_table_postsuspend_targets(map);
 	}
-	mutex_unlock(&md->suspend_lock);
-
 	/* dm_put_live_table must be before msleep, otherwise deadlock is possible */
 	dm_put_live_table(md, srcu_idx);
+	mutex_unlock(&md->suspend_lock);
 
 	/*
 	 * Rare, but there may be I/O requests still going to complete,
drivers/md/persistent-data/dm-btree-internal.h +6 -0
index bf2b80d5c470..8731b6ea026b 100644
@@ -138,4 +138,10 @@ int lower_bound(struct btree_node *n, uint64_t key);
 
 extern struct dm_block_validator btree_node_validator;
 
+/*
+ * Value type for upper levels of multi-level btrees.
+ */
+extern void init_le64_type(struct dm_transaction_manager *tm,
+			   struct dm_btree_value_type *vt);
+
 #endif	/* DM_BTREE_INTERNAL_H */
drivers/md/persistent-data/dm-btree-remove.c +3 -9
index a03178e91a79..7c0d75547ccf 100644
@@ -544,14 +544,6 @@ static int remove_raw(struct shadow_spine *s, struct dm_btree_info *info,
 	return r;
 }
 
-static struct dm_btree_value_type le64_type = {
-	.context = NULL,
-	.size = sizeof(__le64),
-	.inc = NULL,
-	.dec = NULL,
-	.equal = NULL
-};
-
 int dm_btree_remove(struct dm_btree_info *info, dm_block_t root,
 		    uint64_t *keys, dm_block_t *new_root)
 {
@@ -559,12 +551,14 @@ int dm_btree_remove(struct dm_btree_info *info, dm_block_t root,
 	int index = 0, r = 0;
 	struct shadow_spine spine;
 	struct btree_node *n;
+	struct dm_btree_value_type le64_vt;
 
+	init_le64_type(info->tm, &le64_vt);
 	init_shadow_spine(&spine, info);
 	for (level = 0; level < info->levels; level++) {
 		r = remove_raw(&spine, info,
 			       (level == last_level ?
-				&info->value_type : &le64_type),
+				&info->value_type : &le64_vt),
 			       root, keys[level], (unsigned *)&index);
 		if (r < 0)
 			break;
drivers/md/persistent-data/dm-btree-spine.c +37 -0
index 1b5e13ec7f96..0dee514ba4c5 100644
@@ -249,3 +249,40 @@ int shadow_root(struct shadow_spine *s)
 {
 	return s->root;
 }
+
+static void le64_inc(void *context, const void *value_le)
+{
+	struct dm_transaction_manager *tm = context;
+	__le64 v_le;
+
+	memcpy(&v_le, value_le, sizeof(v_le));
+	dm_tm_inc(tm, le64_to_cpu(v_le));
+}
+
+static void le64_dec(void *context, const void *value_le)
+{
+	struct dm_transaction_manager *tm = context;
+	__le64 v_le;
+
+	memcpy(&v_le, value_le, sizeof(v_le));
+	dm_tm_dec(tm, le64_to_cpu(v_le));
+}
+
+static int le64_equal(void *context, const void *value1_le, const void *value2_le)
+{
+	__le64 v1_le, v2_le;
+
+	memcpy(&v1_le, value1_le, sizeof(v1_le));
+	memcpy(&v2_le, value2_le, sizeof(v2_le));
+	return v1_le == v2_le;
+}
+
+void init_le64_type(struct dm_transaction_manager *tm,
+		    struct dm_btree_value_type *vt)
+{
+	vt->context = tm;
+	vt->size = sizeof(__le64);
+	vt->inc = le64_inc;
+	vt->dec = le64_dec;
+	vt->equal = le64_equal;
+}
drivers/md/persistent-data/dm-btree.c +1 -6
index fdd3793e22f9..c7726cebc495 100644
@@ -667,12 +667,7 @@ static int insert(struct dm_btree_info *info, dm_block_t root,
 	struct btree_node *n;
 	struct dm_btree_value_type le64_type;
 
-	le64_type.context = NULL;
-	le64_type.size = sizeof(__le64);
-	le64_type.inc = NULL;
-	le64_type.dec = NULL;
-	le64_type.equal = NULL;
-
+	init_le64_type(info->tm, &le64_type);
 	init_shadow_spine(&spine, info);
 
 	for (level = 0; level < (info->levels - 1); level++) {
drivers/md/raid0.c +39 -36

123 lines not on this page · raw message

drivers/mmc/core/host.c +2 -2
index 8be0df758e68..a0b1b460377d 100644
@@ -373,7 +373,7 @@ int mmc_of_parse(struct mmc_host *host)
 					   0, &cd_gpio_invert);
 		if (!ret)
 			dev_info(host->parent, "Got CD GPIO\n");
-		else if (ret != -ENOENT)
+		else if (ret != -ENOENT && ret != -ENOSYS)
 			return ret;
 
 		/*
@@ -397,7 +397,7 @@ int mmc_of_parse(struct mmc_host *host)
 	ret = mmc_gpiod_request_ro(host, "wp", 0, false, 0, &ro_gpio_invert);
 	if (!ret)
 		dev_info(host->parent, "Got WP GPIO\n");
-	else if (ret != -ENOENT)
+	else if (ret != -ENOENT && ret != -ENOSYS)
 		return ret;
 
 	/* See the comment on CD inversion above */
drivers/mmc/host/dw_mmc.c +71 -38

150 lines not on this page · raw message

drivers/mmc/host/sdhci-esdhc-imx.c +44 -6

84 lines not on this page · raw message

drivers/mmc/host/sdhci.c +25 -42

139 lines not on this page · raw message

drivers/mmc/host/sdhci.h +4 -4
index e639b7f435e5..eea23f62356a 100644
@@ -309,9 +309,10 @@ struct sdhci_adma2_64_desc {
  */
 #define SDHCI_MAX_SEGS		128
 
-struct sdhci_host_next {
-	unsigned int	sg_count;
-	s32		cookie;
+enum sdhci_cookie {
+	COOKIE_UNMAPPED,
+	COOKIE_MAPPED,
+	COOKIE_GIVEN,
 };
 
 struct sdhci_host {
@@ -506,7 +507,6 @@ struct sdhci_host {
 #define SDHCI_TUNING_MODE_1	0
 	struct timer_list	tuning_timer;	/* Timer for tuning */
 
-	struct sdhci_host_next	next_data;
 	unsigned long private[0] ____cacheline_aligned;
 };
 
drivers/mtd/nand/pxa3xx_nand.c +3 -0
index a4615fcc3d00..94a357d93bab 100644
@@ -1475,6 +1475,9 @@ static int pxa3xx_nand_scan(struct mtd_info *mtd)
 	if (pdata->keep_config && !pxa3xx_nand_detect_config(info))
 		goto KEEP_CONFIG;
 
+	/* Set a default chunk size */
+	info->chunk_size = 512;
+
 	ret = pxa3xx_nand_sensing(info);
 	if (ret) {
 		dev_info(&info->pdev->dev, "There is no chip on cs %d!\n",
drivers/mtd/nand/sunxi_nand.c +10 -17
index 6f93b2990d25..499b8e433d3d 100644
@@ -138,6 +138,10 @@
 #define NFC_ECC_MODE		GENMASK(15, 12)
 #define NFC_RANDOM_SEED		GENMASK(30, 16)
 
+/* NFC_USER_DATA helper macros */
+#define NFC_BUF_TO_USER_DATA(buf)	((buf)[0] | ((buf)[1] << 8) | \
+					((buf)[2] << 16) | ((buf)[3] << 24))
+
 #define NFC_DEFAULT_TIMEOUT_MS	1000
 
 #define NFC_SRAM_SIZE		1024
@@ -632,15 +636,9 @@ static int sunxi_nfc_hw_ecc_write_page(struct mtd_info *mtd,
 		offset = layout->eccpos[i * ecc->bytes] - 4 + mtd->writesize;
 
 		/* Fill OOB data in */
-		if (oob_required) {
-			tmp = 0xffffffff;
-			memcpy_toio(nfc->regs + NFC_REG_USER_DATA_BASE, &tmp,
-				    4);
-		} else {
-			memcpy_toio(nfc->regs + NFC_REG_USER_DATA_BASE,
-				    chip->oob_poi + offset - mtd->writesize,
-				    4);
-		}
+		writel(NFC_BUF_TO_USER_DATA(chip->oob_poi +
+					    layout->oobfree[i].offset),
+		       nfc->regs + NFC_REG_USER_DATA_BASE);
 
 		chip->cmdfunc(mtd, NAND_CMD_RNDIN, offset, -1);
 
@@ -770,14 +768,8 @@ static int sunxi_nfc_hw_syndrome_ecc_write_page(struct mtd_info *mtd,
 		offset += ecc->size;
 
 		/* Fill OOB data in */
-		if (oob_required) {
-			tmp = 0xffffffff;
-			memcpy_toio(nfc->regs + NFC_REG_USER_DATA_BASE, &tmp,
-				    4);
-		} else {
-			memcpy_toio(nfc->regs + NFC_REG_USER_DATA_BASE, oob,
-				    4);
-		}
+		writel(NFC_BUF_TO_USER_DATA(oob),
+		       nfc->regs + NFC_REG_USER_DATA_BASE);
 
 		tmp = NFC_DATA_TRANS | NFC_DATA_SWAP_METHOD | NFC_ACCESS_DIR |
 		      (1 << 30);
@@ -1312,6 +1304,7 @@ static void sunxi_nand_chips_cleanup(struct sunxi_nfc *nfc)
 					node);
 		nand_release(&chip->mtd);
 		sunxi_nand_ecc_cleanup(&chip->nand.ecc);
+		list_del(&chip->node);
 	}
 }
 
drivers/mtd/ubi/io.c +5 -0
index 5bbd1f094f4e..1fc23e48fe8e 100644
@@ -926,6 +926,11 @@ static int validate_vid_hdr(const struct ubi_device *ubi,
 		goto bad;
 	}
 
+	if (data_size > ubi->leb_size) {
+		ubi_err(ubi, "bad data_size");
+		goto bad;
+	}
+
 	if (vol_type == UBI_VID_STATIC) {
 		/*
 		 * Although from high-level point of view static volumes may
drivers/mtd/ubi/vtbl.c +1 -0
index 68c9c5ea676f..bf2f916df4e2 100644
@@ -646,6 +646,7 @@ static int init_volumes(struct ubi_device *ubi,
 		if (ubi->corr_peb_count)
 			ubi_err(ubi, "%d PEBs are corrupted and not used",
 				ubi->corr_peb_count);
+		return -ENOSPC;
 	}
 	ubi->rsvd_pebs += reserved_pebs;
 	ubi->avail_pebs -= reserved_pebs;
drivers/mtd/ubi/wl.c +1 -0
index 16214d3d57a4..18fef94542f8 100644
@@ -1601,6 +1601,7 @@ int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai)
 		if (ubi->corr_peb_count)
 			ubi_err(ubi, "%d PEBs are corrupted and not used",
 				ubi->corr_peb_count);
+		err = -ENOSPC;
 		goto out_free;
 	}
 	ubi->avail_pebs -= reserved_pebs;
drivers/net/ethernet/intel/igb/igb_main.c +1 -1
index 4f6bf996851e..7dfbcde34509 100644
@@ -2864,7 +2864,7 @@ static void igb_probe_vfs(struct igb_adapter *adapter)
 		return;
 
 	pci_sriov_set_totalvfs(pdev, 7);
-	igb_pci_enable_sriov(pdev, max_vfs);
+	igb_enable_sriov(pdev, max_vfs);
 
 #endif /* CONFIG_PCI_IOV */
 }
drivers/net/wireless/ath/ath10k/htc.c +3 -1
index 2fd9e180272b..c5dc6b57212e 100644
@@ -163,8 +163,10 @@ int ath10k_htc_send(struct ath10k_htc *htc,
 	skb_cb->eid = eid;
 	skb_cb->paddr = dma_map_single(dev, skb->data, skb->len, DMA_TO_DEVICE);
 	ret = dma_mapping_error(dev, skb_cb->paddr);
-	if (ret)
+	if (ret) {
+		ret = -EIO;
 		goto err_credits;
+	}
 
 	sg_item.transfer_id = ep->eid;
 	sg_item.transfer_context = skb;
drivers/net/wireless/ath/ath10k/htt_tx.c +6 -2
index cbd2bc9e6202..7f4854a52a7c 100644
@@ -371,8 +371,10 @@ int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu)
 	skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len,
 				       DMA_TO_DEVICE);
 	res = dma_mapping_error(dev, skb_cb->paddr);
-	if (res)
+	if (res) {
+		res = -EIO;
 		goto err_free_txdesc;
+	}
 
 	skb_put(txdesc, len);
 	cmd = (struct htt_cmd *)txdesc->data;
@@ -463,8 +465,10 @@ int ath10k_htt_tx(struct ath10k_htt *htt, struct sk_buff *msdu)
 	skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len,
 				       DMA_TO_DEVICE);
 	res = dma_mapping_error(dev, skb_cb->paddr);
-	if (res)
+	if (res) {
+		res = -EIO;
 		goto err_free_txbuf;
+	}
 
 	if (likely(use_frags)) {
 		frags = skb_cb->htt.txbuf->frags;
drivers/net/wireless/ath/ath10k/mac.c +16 -0
index 973485bd4121..5e021b0b3f9e 100644
@@ -4464,6 +4464,21 @@ static int ath10k_set_rts_threshold(struct ieee80211_hw *hw, u32 value)
 	return ret;
 }
 
+static int ath10k_mac_op_set_frag_threshold(struct ieee80211_hw *hw, u32 value)
+{
+	/* Even though there's a WMI enum for fragmentation threshold no known
+	 * firmware actually implements it. Moreover it is not possible to rely
+	 * frame fragmentation to mac80211 because firmware clears the "more
+	 * fragments" bit in frame control making it impossible for remote
+	 * devices to reassemble frames.
+	 *
+	 * Hence implement a dummy callback just to say fragmentation isn't
+	 * supported. This effectively prevents mac80211 from doing frame
+	 * fragmentation in software.
+	 */
+	return -EOPNOTSUPP;
+}
+
 static void ath10k_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 			 u32 queues, bool drop)
 {
@@ -5108,6 +5123,7 @@ static const struct ieee80211_ops ath10k_ops = {
 	.remain_on_channel		= ath10k_remain_on_channel,
 	.cancel_remain_on_channel	= ath10k_cancel_remain_on_channel,
 	.set_rts_threshold		= ath10k_set_rts_threshold,
+	.set_frag_threshold		= ath10k_mac_op_set_frag_threshold,
 	.flush				= ath10k_flush,
 	.tx_last_beacon			= ath10k_tx_last_beacon,
 	.set_antenna			= ath10k_set_antenna,
drivers/net/wireless/ath/ath10k/pci.c +6 -2
index ead543282128..3c4c800ab505 100644
@@ -1378,8 +1378,10 @@ static int ath10k_pci_hif_exchange_bmi_msg(struct ath10k *ar,
 
 	req_paddr = dma_map_single(ar->dev, treq, req_len, DMA_TO_DEVICE);
 	ret = dma_mapping_error(ar->dev, req_paddr);
-	if (ret)
+	if (ret) {
+		ret = -EIO;
 		goto err_dma;
+	}
 
 	if (resp && resp_len) {
 		tresp = kzalloc(*resp_len, GFP_KERNEL);
@@ -1391,8 +1393,10 @@ static int ath10k_pci_hif_exchange_bmi_msg(struct ath10k *ar,
 		resp_paddr = dma_map_single(ar->dev, tresp, *resp_len,
 					    DMA_FROM_DEVICE);
 		ret = dma_mapping_error(ar->dev, resp_paddr);
-		if (ret)
+		if (ret) {
+			ret = EIO;
 			goto err_req;
+		}
 
 		xfer.wait_for_resp = true;
 		xfer.resp_len = 0;
drivers/net/wireless/ath/ath10k/wmi.c +1 -0
index c7ea77edce24..408ecd98e61b 100644
@@ -2517,6 +2517,7 @@ void ath10k_wmi_event_host_swba(struct ath10k *ar, struct sk_buff *skb)
 				ath10k_warn(ar, "failed to map beacon: %d\n",
 					    ret);
 				dev_kfree_skb_any(bcn);
+				ret = -EIO;
 				goto skip;
 			}
 
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c +6 -2
index 1c6788aecc62..40d72312f3df 100644
@@ -203,8 +203,10 @@ static int rsi_load_ta_instructions(struct rsi_common *common)
 
 	/* Copy firmware into DMA-accessible memory */
 	fw = kmemdup(fw_entry->data, fw_entry->size, GFP_KERNEL);
-	if (!fw)
-		return -ENOMEM;
+	if (!fw) {
+		status = -ENOMEM;
+		goto out;
+	}
 	len = fw_entry->size;
 
 	if (len % 4)
@@ -217,6 +219,8 @@ static int rsi_load_ta_instructions(struct rsi_common *common)
 
 	status = rsi_copy_to_card(common, fw, len, num_blocks);
 	kfree(fw);
+
+out:
 	release_firmware(fw_entry);
 	return status;
 }
drivers/net/wireless/rsi/rsi_91x_usb_ops.c +6 -2
index 30c2cf7fa93b..de4900862836 100644
@@ -148,8 +148,10 @@ static int rsi_load_ta_instructions(struct rsi_common *common)
 
 	/* Copy firmware into DMA-accessible memory */
 	fw = kmemdup(fw_entry->data, fw_entry->size, GFP_KERNEL);
-	if (!fw)
-		return -ENOMEM;
+	if (!fw) {
+		status = -ENOMEM;
+		goto out;
+	}
 	len = fw_entry->size;
 
 	if (len % 4)
@@ -162,6 +164,8 @@ static int rsi_load_ta_instructions(struct rsi_common *common)
 
 	status = rsi_copy_to_card(common, fw, len, num_blocks);
 	kfree(fw);
+
+out:
 	release_firmware(fw_entry);
 	return status;
 }
drivers/net/xen-netfront.c +2 -1
index e031c943286e..52f081f4dfd5 100644
@@ -1353,7 +1353,8 @@ static void xennet_disconnect_backend(struct netfront_info *info)
 		queue->tx_evtchn = queue->rx_evtchn = 0;
 		queue->tx_irq = queue->rx_irq = 0;
 
-		napi_synchronize(&queue->napi);
+		if (netif_running(info->netdev))
+			napi_synchronize(&queue->napi);
 
 		xennet_release_tx_bufs(queue);
 		xennet_release_rx_bufs(queue);
drivers/pci/access.c +4 -23
index b965c12168b7..502a82ca1db0 100644
@@ -442,7 +442,8 @@ static const struct pci_vpd_ops pci_vpd_pci22_ops = {
 static ssize_t pci_vpd_f0_read(struct pci_dev *dev, loff_t pos, size_t count,
 			       void *arg)
 {
-	struct pci_dev *tdev = pci_get_slot(dev->bus, PCI_SLOT(dev->devfn));
+	struct pci_dev *tdev = pci_get_slot(dev->bus,
+					    PCI_DEVFN(PCI_SLOT(dev->devfn), 0));
 	ssize_t ret;
 
 	if (!tdev)
@@ -456,7 +457,8 @@ static ssize_t pci_vpd_f0_read(struct pci_dev *dev, loff_t pos, size_t count,
 static ssize_t pci_vpd_f0_write(struct pci_dev *dev, loff_t pos, size_t count,
 				const void *arg)
 {
-	struct pci_dev *tdev = pci_get_slot(dev->bus, PCI_SLOT(dev->devfn));
+	struct pci_dev *tdev = pci_get_slot(dev->bus,
+					    PCI_DEVFN(PCI_SLOT(dev->devfn), 0));
 	ssize_t ret;
 
 	if (!tdev)
@@ -473,22 +475,6 @@ static const struct pci_vpd_ops pci_vpd_f0_ops = {
 	.release = pci_vpd_pci22_release,
 };
 
-static int pci_vpd_f0_dev_check(struct pci_dev *dev)
-{
-	struct pci_dev *tdev = pci_get_slot(dev->bus, PCI_SLOT(dev->devfn));
-	int ret = 0;
-
-	if (!tdev)
-		return -ENODEV;
-	if (!tdev->vpd || !tdev->multifunction ||
-	    dev->class != tdev->class || dev->vendor != tdev->vendor ||
-	    dev->device != tdev->device)
-		ret = -ENODEV;
-
-	pci_dev_put(tdev);
-	return ret;
-}
-
 int pci_vpd_pci22_init(struct pci_dev *dev)
 {
 	struct pci_vpd_pci22 *vpd;
@@ -497,12 +483,7 @@ int pci_vpd_pci22_init(struct pci_dev *dev)
 	cap = pci_find_capability(dev, PCI_CAP_ID_VPD);
 	if (!cap)
 		return -ENODEV;
-	if (dev->dev_flags & PCI_DEV_FLAGS_VPD_REF_F0) {
-		int ret = pci_vpd_f0_dev_check(dev);
 
-		if (ret)
-			return ret;
-	}
 	vpd = kzalloc(sizeof(*vpd), GFP_ATOMIC);
 	if (!vpd)
 		return -ENOMEM;
drivers/pci/bus.c +2 -0
index 6fbd3f2b5992..d3346d23963b 100644
@@ -256,6 +256,8 @@ bool pci_bus_clip_resource(struct pci_dev *dev, int idx)
 
 		res->start = start;
 		res->end = end;
+		res->flags &= ~IORESOURCE_UNSET;
+		orig_res.flags &= ~IORESOURCE_UNSET;
 		dev_printk(KERN_DEBUG, &dev->dev, "%pR clipped to %pR\n",
 				 &orig_res, res);
 
drivers/pci/quirks.c +18 -2
index 804cd3b02c66..4a6933f02cd0 100644
@@ -1915,11 +1915,27 @@ static void quirk_netmos(struct pci_dev *dev)
 DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID,
 			 PCI_CLASS_COMMUNICATION_SERIAL, 8, quirk_netmos);
 
+/*
+ * Quirk non-zero PCI functions to route VPD access through function 0 for
+ * devices that share VPD resources between functions.  The functions are
+ * expected to be identical devices.
+ */
 static void quirk_f0_vpd_link(struct pci_dev *dev)
 {
-	if (!dev->multifunction || !PCI_FUNC(dev->devfn))
+	struct pci_dev *f0;
+
+	if (!PCI_FUNC(dev->devfn))
 		return;
-	dev->dev_flags |= PCI_DEV_FLAGS_VPD_REF_F0;
+
+	f0 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0));
+	if (!f0)
+		return;
+
+	if (f0->vpd && dev->class == f0->class &&
+	    dev->vendor == f0->vendor && dev->device == f0->device)
+		dev->dev_flags |= PCI_DEV_FLAGS_VPD_REF_F0;
+
+	pci_dev_put(f0);
 }
 DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_INTEL, PCI_ANY_ID,
 			      PCI_CLASS_NETWORK_ETHERNET, 8, quirk_f0_vpd_link);
drivers/pcmcia/sa1100_generic.c +0 -1
index 803945259da8..42861cc70158 100644
@@ -93,7 +93,6 @@ static int sa11x0_drv_pcmcia_remove(struct platform_device *dev)
 	for (i = 0; i < sinfo->nskt; i++)
 		soc_pcmcia_remove_one(&sinfo->skt[i]);
 
-	clk_put(sinfo->clk);
 	kfree(sinfo);
 	return 0;
 }
drivers/pcmcia/sa11xx_base.c +1 -2
index cf6de2c2b329..553d70a67f80 100644
@@ -222,7 +222,7 @@ int sa11xx_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops,
 	int i, ret = 0;
 	struct clk *clk;
 
-	clk = clk_get(dev, NULL);
+	clk = devm_clk_get(dev, NULL);
 	if (IS_ERR(clk))
 		return PTR_ERR(clk);
 
@@ -251,7 +251,6 @@ int sa11xx_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops,
 	if (ret) {
 		while (--i >= 0)
 			soc_pcmcia_remove_one(&sinfo->skt[i]);
-		clk_put(clk);
 		kfree(sinfo);
 	} else {
 		dev_set_drvdata(dev, sinfo);
drivers/platform/x86/toshiba_acpi.c +3 -5
index 9956b9902bb4..93e54a0f471a 100644
@@ -2525,11 +2525,9 @@ static int toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev)
 	if (error)
 		return error;
 
-	error = toshiba_hotkey_event_type_get(dev, &events_type);
-	if (error) {
-		pr_err("Unable to query Hotkey Event Type\n");
-		return error;
-	}
+	if (toshiba_hotkey_event_type_get(dev, &events_type))
+		pr_notice("Unable to query Hotkey Event Type\n");
+
 	dev->hotkey_event_type = events_type;
 
 	dev->hotkey_dev = input_allocate_device();
drivers/power/avs/Kconfig +1 -1
index 7f3d389bd601..a67eeace6a89 100644
@@ -13,7 +13,7 @@ menuconfig POWER_AVS
 
 config ROCKCHIP_IODOMAIN
         tristate "Rockchip IO domain support"
-        depends on ARCH_ROCKCHIP && OF
+        depends on POWER_AVS && ARCH_ROCKCHIP && OF
         help
           Say y here to enable support io domains on Rockchip SoCs. It is
           necessary for the io domain setting of the SoC to match the
drivers/scsi/3w-9xxx.c +21 -7
index add419d6ff34..a56a7b243e91 100644
@@ -212,6 +212,17 @@ static const struct file_operations twa_fops = {
 	.llseek		= noop_llseek,
 };
 
+/*
+ * The controllers use an inline buffer instead of a mapped SGL for small,
+ * single entry buffers.  Note that we treat a zero-length transfer like
+ * a mapped SGL.
+ */
+static bool twa_command_mapped(struct scsi_cmnd *cmd)
+{
+	return scsi_sg_count(cmd) != 1 ||
+		scsi_bufflen(cmd) >= TW_MIN_SGL_LENGTH;
+}
+
 /* This function will complete an aen request from the isr */
 static int twa_aen_complete(TW_Device_Extension *tw_dev, int request_id)
 {
@@ -1339,7 +1350,8 @@ static irqreturn_t twa_interrupt(int irq, void *dev_instance)
 				}
 
 				/* Now complete the io */
-				scsi_dma_unmap(cmd);
+				if (twa_command_mapped(cmd))
+					scsi_dma_unmap(cmd);
 				cmd->scsi_done(cmd);
 				tw_dev->state[request_id] = TW_S_COMPLETED;
 				twa_free_request_id(tw_dev, request_id);
@@ -1582,7 +1594,8 @@ static int twa_reset_device_extension(TW_Device_Extension *tw_dev)
 				struct scsi_cmnd *cmd = tw_dev->srb[i];
 
 				cmd->result = (DID_RESET << 16);
-				scsi_dma_unmap(cmd);
+				if (twa_command_mapped(cmd))
+					scsi_dma_unmap(cmd);
 				cmd->scsi_done(cmd);
 			}
 		}
@@ -1765,12 +1778,14 @@ static int twa_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_
 	retval = twa_scsiop_execute_scsi(tw_dev, request_id, NULL, 0, NULL);
 	switch (retval) {
 	case SCSI_MLQUEUE_HOST_BUSY:
-		scsi_dma_unmap(SCpnt);
+		if (twa_command_mapped(SCpnt))
+			scsi_dma_unmap(SCpnt);
 		twa_free_request_id(tw_dev, request_id);
 		break;
 	case 1:
 		SCpnt->result = (DID_ERROR << 16);
-		scsi_dma_unmap(SCpnt);
+		if (twa_command_mapped(SCpnt))
+			scsi_dma_unmap(SCpnt);
 		done(SCpnt);
 		tw_dev->state[request_id] = TW_S_COMPLETED;
 		twa_free_request_id(tw_dev, request_id);
@@ -1831,8 +1846,7 @@ static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id,
 		/* Map sglist from scsi layer to cmd packet */
 
 		if (scsi_sg_count(srb)) {
-			if ((scsi_sg_count(srb) == 1) &&
-			    (scsi_bufflen(srb) < TW_MIN_SGL_LENGTH)) {
+			if (!twa_command_mapped(srb)) {
 				if (srb->sc_data_direction == DMA_TO_DEVICE ||
 				    srb->sc_data_direction == DMA_BIDIRECTIONAL)
 					scsi_sg_copy_to_buffer(srb,
@@ -1905,7 +1919,7 @@ static void twa_scsiop_execute_scsi_complete(TW_Device_Extension *tw_dev, int re
 {
 	struct scsi_cmnd *cmd = tw_dev->srb[request_id];
 
-	if (scsi_bufflen(cmd) < TW_MIN_SGL_LENGTH &&
+	if (!twa_command_mapped(cmd) &&
 	    (cmd->sc_data_direction == DMA_FROM_DEVICE ||
 	     cmd->sc_data_direction == DMA_BIDIRECTIONAL)) {
 		if (scsi_sg_count(cmd) == 1) {
drivers/scsi/ipr.c +1 -1
index a9aa38903efe..cccab6188328 100644
@@ -4554,7 +4554,7 @@ static ssize_t ipr_store_raw_mode(struct device *dev,
 	spin_lock_irqsave(ioa_cfg->host->host_lock, lock_flags);
 	res = (struct ipr_resource_entry *)sdev->hostdata;
 	if (res) {
-		if (ioa_cfg->sis64 && ipr_is_af_dasd_device(res)) {
+		if (ipr_is_af_dasd_device(res)) {
 			res->raw_mode = simple_strtoul(buf, NULL, 10);
 			len = strlen(buf);
 			if (res->sdev)
drivers/scsi/scsi_error.c +10 -1
index ce6c770d74d5..c6b93d273799 100644
@@ -2169,8 +2169,17 @@ int scsi_error_handler(void *data)
 	 * We never actually get interrupted because kthread_run
 	 * disables signal delivery for the created thread.
 	 */
-	while (!kthread_should_stop()) {
+	while (true) {
+		/*
+		 * The sequence in kthread_stop() sets the stop flag first
+		 * then wakes the process.  To avoid missed wakeups, the task
+		 * should always be in a non running state before the stop
+		 * flag is checked
+		 */
 		set_current_state(TASK_INTERRUPTIBLE);
+		if (kthread_should_stop())
+			break;
+
 		if ((shost->host_failed == 0 && shost->host_eh_scheduled == 0) ||
 		    shost->host_failed != atomic_read(&shost->host_busy)) {
 			SCSI_LOG_ERROR_RECOVERY(1,
drivers/spi/spi-pxa2xx.c +4 -0
index e3223ac75a7c..f089082c00e1 100644
@@ -624,6 +624,10 @@ static irqreturn_t ssp_int(int irq, void *dev_id)
 	if (!(sccr1_reg & SSCR1_TIE))
 		mask &= ~SSSR_TFS;
 
+	/* Ignore RX timeout interrupt if it is disabled */
+	if (!(sccr1_reg & SSCR1_TINTE))
+		mask &= ~SSSR_TINT;
+
 	if (!(status & mask))
 		return IRQ_NONE;
 
drivers/spi/spi-xtensa-xtfpga.c +2 -2
index 2e32ea2f194f..be6155cba9de 100644
@@ -34,13 +34,13 @@ struct xtfpga_spi {
 static inline void xtfpga_spi_write32(const struct xtfpga_spi *spi,
 				      unsigned addr, u32 val)
 {
-	iowrite32(val, spi->regs + addr);
+	__raw_writel(val, spi->regs + addr);
 }
 
 static inline unsigned int xtfpga_spi_read32(const struct xtfpga_spi *spi,
 					     unsigned addr)
 {
-	return ioread32(spi->regs + addr);
+	return __raw_readl(spi->regs + addr);
 }
 
 static inline void xtfpga_spi_wait_busy(struct xtfpga_spi *xspi)
drivers/spi/spi.c +1 -2
index d35c1a13217c..029dbd33b4b2 100644
@@ -1427,8 +1427,7 @@ static struct class spi_master_class = {
  *
  * The caller is responsible for assigning the bus number and initializing
  * the master's methods before calling spi_register_master(); and (after errors
- * adding the device) calling spi_master_put() and kfree() to prevent a memory
- * leak.
+ * adding the device) calling spi_master_put() to prevent a memory leak.
  */
 struct spi_master *spi_alloc_master(struct device *dev, unsigned size)
 {
drivers/spi/spidev.c +2 -1
index 92c909eed6b5..8fab566e0f0b 100644
@@ -664,7 +664,8 @@ static int spidev_release(struct inode *inode, struct file *filp)
 		kfree(spidev->rx_buffer);
 		spidev->rx_buffer = NULL;
 
-		spidev->speed_hz = spidev->spi->max_speed_hz;
+		if (spidev->spi)
+			spidev->speed_hz = spidev->spi->max_speed_hz;
 
 		/* ... after we unbound from the underlying device? */
 		spin_lock_irq(&spidev->spi_lock);
drivers/staging/android/ion/ion.c +3 -3
index b0b96ab31954..abbc42a56e7c 100644
@@ -1179,13 +1179,13 @@ struct ion_handle *ion_import_dma_buf(struct ion_client *client, int fd)
 		mutex_unlock(&client->lock);
 		goto end;
 	}
-	mutex_unlock(&client->lock);
 
 	handle = ion_handle_create(client, buffer);
-	if (IS_ERR(handle))
+	if (IS_ERR(handle)) {
+		mutex_unlock(&client->lock);
 		goto end;
+	}
 
-	mutex_lock(&client->lock);
 	ret = ion_handle_add(client, handle);
 	mutex_unlock(&client->lock);
 	if (ret) {
drivers/staging/speakup/fakekey.c +1 -0
index 4299cf45f947..5e1f16c36b49 100644
@@ -81,6 +81,7 @@ void speakup_fake_down_arrow(void)
 	__this_cpu_write(reporting_keystroke, true);
 	input_report_key(virt_keyboard, KEY_DOWN, PRESSED);
 	input_report_key(virt_keyboard, KEY_DOWN, RELEASED);
+	input_sync(virt_keyboard);
 	__this_cpu_write(reporting_keystroke, false);
 
 	/* reenable preemption */
drivers/target/iscsi/iscsi_target.c +16 -17
index 0ab6e2efd28c..330bbe831066 100644
@@ -341,7 +341,6 @@ static struct iscsi_np *iscsit_get_np(
 
 struct iscsi_np *iscsit_add_np(
 	struct __kernel_sockaddr_storage *sockaddr,
-	char *ip_str,
 	int network_transport)
 {
 	struct sockaddr_in *sock_in;
@@ -370,11 +369,9 @@ struct iscsi_np *iscsit_add_np(
 	np->np_flags |= NPF_IP_NETWORK;
 	if (sockaddr->ss_family == AF_INET6) {
 		sock_in6 = (struct sockaddr_in6 *)sockaddr;
-		snprintf(np->np_ip, IPV6_ADDRESS_SPACE, "%s", ip_str);
 		np->np_port = ntohs(sock_in6->sin6_port);
 	} else {
 		sock_in = (struct sockaddr_in *)sockaddr;
-		sprintf(np->np_ip, "%s", ip_str);
 		np->np_port = ntohs(sock_in->sin_port);
 	}
 
@@ -411,8 +408,8 @@ struct iscsi_np *iscsit_add_np(
 	list_add_tail(&np->np_list, &g_np_list);
 	mutex_unlock(&np_lock);
 
-	pr_debug("CORE[0] - Added Network Portal: %s:%hu on %s\n",
-		np->np_ip, np->np_port, np->np_transport->name);
+	pr_debug("CORE[0] - Added Network Portal: %pISc:%hu on %s\n",
+		&np->np_sockaddr, np->np_port, np->np_transport->name);
 
 	return np;
 }
@@ -481,8 +478,8 @@ int iscsit_del_np(struct iscsi_np *np)
 	list_del(&np->np_list);
 	mutex_unlock(&np_lock);
 
-	pr_debug("CORE[0] - Removed Network Portal: %s:%hu on %s\n",
-		np->np_ip, np->np_port, np->np_transport->name);
+	pr_debug("CORE[0] - Removed Network Portal: %pISc:%hu on %s\n",
+		&np->np_sockaddr, np->np_port, np->np_transport->name);
 
 	iscsit_put_transport(np->np_transport);
 	kfree(np);
@@ -3467,7 +3464,6 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd,
 						tpg_np_list) {
 				struct iscsi_np *np = tpg_np->tpg_np;
 				bool inaddr_any = iscsit_check_inaddr_any(np);
-				char *fmt_str;
 
 				if (np->np_network_transport != network_transport)
 					continue;
@@ -3495,15 +3491,18 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd,
 					}
 				}
 
-				if (np->np_sockaddr.ss_family == AF_INET6)
-					fmt_str = "TargetAddress=[%s]:%hu,%hu";
-				else
-					fmt_str = "TargetAddress=%s:%hu,%hu";
-
-				len = sprintf(buf, fmt_str,
-					inaddr_any ? conn->local_ip : np->np_ip,
-					np->np_port,
-					tpg->tpgt);
+				if (inaddr_any) {
+					len = sprintf(buf, "TargetAddress="
+						      "%s:%hu,%hu",
+						      conn->local_ip,
+						      np->np_port,
+						      tpg->tpgt);
+				} else {
+					len = sprintf(buf, "TargetAddress="
+						      "%pISpc,%hu",
+						      &np->np_sockaddr,
+						      tpg->tpgt);
+				}
 				len += 1;
 
 				if ((len + payload_len) > buffer_len) {
drivers/target/iscsi/iscsi_target.h +1 -1
index 7d0f9c00d9c2..d294f030a097 100644
@@ -13,7 +13,7 @@ extern int iscsit_deaccess_np(struct iscsi_np *, struct iscsi_portal_group *,
 extern bool iscsit_check_np_match(struct __kernel_sockaddr_storage *,
 				struct iscsi_np *, int);
 extern struct iscsi_np *iscsit_add_np(struct __kernel_sockaddr_storage *,
-				char *, int);
+				int);
 extern int iscsit_reset_np_thread(struct iscsi_np *, struct iscsi_tpg_np *,
 				struct iscsi_portal_group *, bool);
 extern int iscsit_del_np(struct iscsi_np *);
drivers/target/iscsi/iscsi_target_configfs.c +7 -7
index 469fce44ebad..6f2fb546477e 100644
@@ -100,7 +100,7 @@ static ssize_t lio_target_np_store_sctp(
 		 * Use existing np->np_sockaddr for SCTP network portal reference
 		 */
 		tpg_np_sctp = iscsit_tpg_add_network_portal(tpg, &np->np_sockaddr,
-					np->np_ip, tpg_np, ISCSI_SCTP_TCP);
+					tpg_np, ISCSI_SCTP_TCP);
 		if (!tpg_np_sctp || IS_ERR(tpg_np_sctp))
 			goto out;
 	} else {
@@ -178,7 +178,7 @@ static ssize_t lio_target_np_store_iser(
 		}
 
 		tpg_np_iser = iscsit_tpg_add_network_portal(tpg, &np->np_sockaddr,
-				np->np_ip, tpg_np, ISCSI_INFINIBAND);
+				tpg_np, ISCSI_INFINIBAND);
 		if (IS_ERR(tpg_np_iser)) {
 			rc = PTR_ERR(tpg_np_iser);
 			goto out;
@@ -249,8 +249,8 @@ static struct se_tpg_np *lio_target_call_addnptotpg(
 			return ERR_PTR(-EINVAL);
 		}
 		str++; /* Skip over leading "[" */
-		*str2 = '\0'; /* Terminate the IPv6 address */
-		str2++; /* Skip over the "]" */
+		*str2 = '\0'; /* Terminate the unbracketed IPv6 address */
+		str2++; /* Skip over the \0 */
 		port_str = strstr(str2, ":");
 		if (!port_str) {
 			pr_err("Unable to locate \":port\""
@@ -317,7 +317,7 @@ static struct se_tpg_np *lio_target_call_addnptotpg(
 	 * sys/kernel/config/iscsi/$IQN/$TPG/np/$IP:$PORT/
 	 *
 	 */
-	tpg_np = iscsit_tpg_add_network_portal(tpg, &sockaddr, str, NULL,
+	tpg_np = iscsit_tpg_add_network_portal(tpg, &sockaddr, NULL,
 				ISCSI_TCP);
 	if (IS_ERR(tpg_np)) {
 		iscsit_put_tpg(tpg);
@@ -345,8 +345,8 @@ static void lio_target_call_delnpfromtpg(
 
 	se_tpg = &tpg->tpg_se_tpg;
 	pr_debug("LIO_Target_ConfigFS: DEREGISTER -> %s TPGT: %hu"
-		" PORTAL: %s:%hu\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item),
-		tpg->tpgt, tpg_np->tpg_np->np_ip, tpg_np->tpg_np->np_port);
+		" PORTAL: %pISc:%hu\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item),
+		tpg->tpgt, &tpg_np->tpg_np->np_sockaddr, tpg_np->tpg_np->np_port);
 
 	ret = iscsit_tpg_del_network_portal(tpg, tpg_np);
 	if (ret < 0)
drivers/target/iscsi/iscsi_target_login.c +4 -4
index c3bccaddb592..39654e917cd8 100644
@@ -879,8 +879,8 @@ static void iscsi_handle_login_thread_timeout(unsigned long data)
 	struct iscsi_np *np = (struct iscsi_np *) data;
 
 	spin_lock_bh(&np->np_thread_lock);
-	pr_err("iSCSI Login timeout on Network Portal %s:%hu\n",
-			np->np_ip, np->np_port);
+	pr_err("iSCSI Login timeout on Network Portal %pISc:%hu\n",
+			&np->np_sockaddr, np->np_port);
 
 	if (np->np_login_timer_flags & ISCSI_TF_STOP) {
 		spin_unlock_bh(&np->np_thread_lock);
@@ -1358,8 +1358,8 @@ static int __iscsi_target_login_thread(struct iscsi_np *np)
 	spin_lock_bh(&np->np_thread_lock);
 	if (np->np_thread_state != ISCSI_NP_THREAD_ACTIVE) {
 		spin_unlock_bh(&np->np_thread_lock);
-		pr_err("iSCSI Network Portal on %s:%hu currently not"
-			" active.\n", np->np_ip, np->np_port);
+		pr_err("iSCSI Network Portal on %pISc:%hu currently not"
+			" active.\n", &np->np_sockaddr, np->np_port);
 		iscsit_tx_login_rsp(conn, ISCSI_STATUS_CLS_TARGET_ERR,
 				ISCSI_LOGIN_STATUS_SVC_UNAVAILABLE);
 		goto new_sess_out;
drivers/target/iscsi/iscsi_target_tpg.c +7 -8
index 5e3295fe404d..3bc7d62c0a65 100644
@@ -460,7 +460,6 @@ static bool iscsit_tpg_check_network_portal(
 struct iscsi_tpg_np *iscsit_tpg_add_network_portal(
 	struct iscsi_portal_group *tpg,
 	struct __kernel_sockaddr_storage *sockaddr,
-	char *ip_str,
 	struct iscsi_tpg_np *tpg_np_parent,
 	int network_transport)
 {
@@ -470,8 +469,8 @@ struct iscsi_tpg_np *iscsit_tpg_add_network_portal(
 	if (!tpg_np_parent) {
 		if (iscsit_tpg_check_network_portal(tpg->tpg_tiqn, sockaddr,
 				network_transport)) {
-			pr_err("Network Portal: %s already exists on a"
-				" different TPG on %s\n", ip_str,
+			pr_err("Network Portal: %pISc already exists on a"
+				" different TPG on %s\n", sockaddr,
 				tpg->tpg_tiqn->tiqn);
 			return ERR_PTR(-EEXIST);
 		}
@@ -484,7 +483,7 @@ struct iscsi_tpg_np *iscsit_tpg_add_network_portal(
 		return ERR_PTR(-ENOMEM);
 	}
 
-	np = iscsit_add_np(sockaddr, ip_str, network_transport);
+	np = iscsit_add_np(sockaddr, network_transport);
 	if (IS_ERR(np)) {
 		kfree(tpg_np);
 		return ERR_CAST(np);
@@ -514,8 +513,8 @@ struct iscsi_tpg_np *iscsit_tpg_add_network_portal(
 		spin_unlock(&tpg_np_parent->tpg_np_parent_lock);
 	}
 
-	pr_debug("CORE[%s] - Added Network Portal: %s:%hu,%hu on %s\n",
-		tpg->tpg_tiqn->tiqn, np->np_ip, np->np_port, tpg->tpgt,
+	pr_debug("CORE[%s] - Added Network Portal: %pISc:%hu,%hu on %s\n",
+		tpg->tpg_tiqn->tiqn, &np->np_sockaddr, np->np_port, tpg->tpgt,
 		np->np_transport->name);
 
 	return tpg_np;
@@ -528,8 +527,8 @@ static int iscsit_tpg_release_np(
 {
 	iscsit_clear_tpg_np_login_thread(tpg_np, tpg, true);
[… more lines in the raw message]

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

drivers/target/iscsi/iscsi_target_tpg.h +1 -1
index 95ff5bdecd71..28abda89ea98 100644

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

drivers/target/target_core_pr.c +3 -0
index a15411c79ae9..08aa7cc58694 100644

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

drivers/target/target_core_ua.c +4 -4
index 1738b1646988..9fc33e84439a 100644

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

drivers/target/target_core_xcopy.c +4 -2
index 8fd680ac941b..4609305a1591 100644

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

drivers/tty/n_tty.c +5 -10
index 16ed0b6c7f9c..6b6c6606af5f 100644

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

drivers/tty/serial/8250/8250_core.c +8 -0
index 4506e405c8f3..b4fd8debf941 100644

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

drivers/tty/serial/amba-pl011.c +2 -2
index 763eb20fe321..0cc622afb67d 100644

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

drivers/tty/serial/atmel_serial.c +1 -1
index 5ca1dfb0561c..85323ff75edf 100644

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

drivers/tty/tty_io.c +27 -4
index e5695467598f..21837f14a403 100644

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

drivers/usb/chipidea/ci_hdrc_imx.c +1 -1
index 389f0e034259..fa774323ebda 100644

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

drivers/usb/chipidea/udc.c +44 -40

84 lines not on this page · raw message

drivers/usb/core/config.c +3 -2
index b2a540b43f97..b9ddf0c1ffe5 100644

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

drivers/usb/core/quirks.c +13 -0
index d85abfed84cc..f5a381945db2 100644

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

drivers/usb/host/xhci-mem.c +8 -9
index 9a8c936cd42c..41f841fa6c4d 100644

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

drivers/usb/host/xhci-ring.c +63 -16

79 lines not on this page · raw message

drivers/usb/host/xhci.c +14 -1
index c502c2277aeb..26f62b2b33f8 100644

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

drivers/usb/misc/chaoskey.c +1 -1
index 3ad5d19e4d04..23c794813e6a 100644

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

drivers/usb/musb/musb_cppi41.c +3 -3
index 8bd8c5e26921..d5a140745640 100644

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

drivers/usb/musb/musb_dsps.c +5 -2
index 65d931a28a14..dcac5e7f19e0 100644

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

drivers/usb/phy/phy-generic.c +2 -1
index deee68eafb72..0cd85f2ccddd 100644

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

drivers/usb/serial/option.c +24 -0
index 876423b8892c..7c8eb4c4c175 100644

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

drivers/usb/serial/whiteheat.c +31 -0
index 6c3734d2b45a..d3ea90bef84d 100644

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

drivers/video/fbdev/Kconfig +1 -1
index 109462303087..d1e1e1704da1 100644

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

drivers/watchdog/sunxi_wdt.c +1 -1
index a29afb37c48c..47bd8a14d01f 100644

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

fs/block_dev.c +7 -0
index c7e4163ede87..ccfd31f1df3a 100644

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

fs/btrfs/extent_io.c +66 -14

80 lines not on this page · raw message

fs/btrfs/inode.c +2 -1
index 8bb013672aee..e3b39f0c4666 100644

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

fs/cifs/cifsencrypt.c +51 -2

53 lines not on this page · raw message

fs/cifs/inode.c +0 -34
index f621b44cb800..6b66dd5d1540 100644

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

fs/cifs/smb2ops.c +6 -2
index 54daee5ad4c1..1678b9cb94c7 100644

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

fs/cifs/smb2pdu.c +61 -15

76 lines not on this page · raw message

fs/dcache.c +11 -1
index 5d03eb0ec0ac..0046ab7d4f3d 100644

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

fs/internal.h +1 -0
index 01dce1d1476b..4d5af583ab03 100644

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

fs/namei.c +34 -5
index fe30d3be43a8..ccd7f98d85b9 100644

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

fs/nfs/filelayout/filelayout.c +12 -19
index a46bf6de9ce4..fb1fb2774d34 100644

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

fs/nfs/pagelist.c +1 -1
index 069914ce7641..93d355c8b467 100644

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

fs/nfs/read.c +3 -0
index ae0ff7a11b40..01b8cc8e8cfc 100644

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

fs/nfs/write.c +4 -1
index 07115b9b1ad2..d9851a6a2813 100644

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

fs/ocfs2/dlm/dlmmaster.c +6 -3
index fdf4b41d0609..482cfd34472d 100644

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

fs/ocfs2/dlm/dlmrecovery.c +6 -2
index ce12e0b1a31f..3d90ad7ff91f 100644

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

fs/open.c +26 -23

49 lines not on this page · raw message

fs/overlayfs/inode.c +10 -15
index 04f124884687..ba0db2638946 100644

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

fs/overlayfs/overlayfs.h +1 -0
index 17ac5afc9ffb..ea5a40b06e3a 100644

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

fs/overlayfs/super.c +1 -0
index 155989455a72..33f2d27a6792 100644

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

fs/ubifs/xattr.c +0 -3
index 96f3448b6eb4..fd65b3f1923c 100644

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

include/linux/dcache.h +2 -0
index df334cbacc6d..167ec0934049 100644

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

include/linux/fs.h +0 -2
index 571aab91bfc0..f93192333b37 100644

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

include/linux/mmc/core.h +1 -0
index de722d4e9d61..258daf914c6d 100644

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

include/linux/security.h +1 -1
index 18264ea9e314..5d45b4fd91d2 100644

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

include/net/netfilter/nf_queue.h +2 -0
index d81d584157e1..e8635854a55b 100644

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

include/net/netfilter/nf_tables.h +1 -1
index e6bcf55dcf20..fd0ca42b1d63 100644

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

include/target/iscsi/iscsi_target_core.h +0 -1
index 73abbc54063d..7bd03f867fca 100644

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

include/xen/interface/sched.h +8 -0
index 9ce083960a25..f18490985fc8 100644

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

ipc/msg.c +7 -7
index 2b6fdbb9e0e9..652540613d26 100644

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

ipc/shm.c +7 -6
index 6d767071c367..499a8bd22fad 100644

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

ipc/util.c +4 -4
index ff3323ef8d8b..c917e9fd10b1 100644

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

kernel/events/core.c +0 -8
index 94817491407b..e1af58e23bee 100644

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

kernel/events/internal.h +10 -0
index 9f6ce9ba4a04..a6adc36a3732 100644

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

kernel/events/ring_buffer.c +25 -2
index a7604c81168e..7f63ad978cb8 100644

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

kernel/irq/proc.c +17 -2
index df2f4642d1e7..5c38f59741e2 100644

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

kernel/sched/core.c +16 -9
index e6910526c84b..8476206a1e19 100644

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

kernel/sched/fair.c +14 -11
index c2980e8733bc..77690b653ca9 100644

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

kernel/sched/sched.h +3 -2
index e0e129993958..aa1f059de4f7 100644

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

kernel/time/timekeeping.c +1 -1
index 946acb72179f..414d9df94724 100644

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

lib/iommu-common.c +3 -3
index df30632f0bef..4fdeee02e0a9 100644

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

mm/hugetlb.c +8 -0
index 8c4c1f9f9a9a..a6ff935476e3 100644

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

mm/migrate.c +1 -1
index f53838fe3dfe..2c37b1a44a8c 100644

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

mm/slab.c +10 -3
index 3dd2d1ff9d5d..330039fdcf18 100644

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

net/batman-adv/distributed-arp-table.c +4 -3
index aad022dd15df..95b3167cf036 100644

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

net/batman-adv/multicast.c +60 -21

81 lines not on this page · raw message

net/batman-adv/network-coding.c +4 -3
index 127cc4d7380a..a449195c5b2b 100644

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

net/batman-adv/originator.c +5 -0
index 90e805aba379..dfae97408628 100644

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

net/batman-adv/soft-interface.c +9 -1
index 5ec31d7de24f..a0b1b861b968 100644

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

net/batman-adv/translation-table.c +29 -8
index 07b263a437d1..4f2a9d2c56db 100644

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

net/batman-adv/types.h +9 -6
index 9398c3fb4174..26c37be2aa05 100644

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

net/bluetooth/smp.c +6 -6
index 7b815bcc8c9b..69ad5091e2ce 100644

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

net/ipv4/inet_connection_sock.c +1 -1
index b27fc401c6a9..e664706b350c 100644

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

net/netfilter/core.c +1 -0
index e6163017c42d..5d0c6fd59475 100644

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

net/netfilter/ipvs/ip_vs_core.c +14 -2
index 5d2b806a862e..38fbc194b9cb 100644

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

net/netfilter/ipvs/ip_vs_ctl.c +49 -29

78 lines not on this page · raw message

net/netfilter/ipvs/ip_vs_sched.c +6 -6
index 199760c71f39..7e8141647943 100644

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

net/netfilter/ipvs/ip_vs_sync.c +1 -1
index 19b9cce6c210..150047c739fa 100644

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

net/netfilter/ipvs/ip_vs_xmit.c +33 -1
index 19986ec5f21a..258f1e05250f 100644

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

net/netfilter/nf_conntrack_expect.c +2 -1
index 7a17070c5dab..b45a4223cb05 100644

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

net/netfilter/nf_conntrack_netlink.c +0 -5
index d1c23940a86a..6b8b0abbfab4 100644

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

net/netfilter/nf_internals.h +1 -0
index ea7f36784b3d..399210693c2a 100644

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

net/netfilter/nf_log.c +7 -2
index 675d12c69e32..a5d41dfa9f05 100644

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

net/netfilter/nf_queue.c +17 -0
index 2e88032cd5ad..cd60d397fe05 100644

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

net/netfilter/nf_tables_core.c +6 -1
index f153b07073af..f77bad46ac68 100644

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

net/netfilter/nfnetlink.c +7 -1
index 8b117c90ecd7..69e3ceffa14d 100644

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

net/netfilter/nfnetlink_queue_core.c +23 -1
index 11c7682fa0ea..32d0437abdd8 100644

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

net/netfilter/nft_compat.c +18 -6
index 7f29cfc76349..4d05c7bf5a03 100644

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

net/sunrpc/xprtrdma/svc_rdma_sendto.c +9 -1
index 7de33d1af9b6..7fa6d78331ed 100644

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

sound/arm/Kconfig +8 -7
index 885683a3b0bd..e0406211716b 100644

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

sound/pci/hda/patch_cirrus.c +1 -0
index 3a24f7739aaa..b791529bf31c 100644

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

sound/pci/hda/patch_realtek.c +20 -12
index 6fe862594e9b..57bb5a559f8e 100644

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

sound/pci/hda/patch_sigmatel.c +5 -1
index 25f0f45e6640..b1bc66783974 100644

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

sound/soc/au1x/db1200.c +4 -0
index c75995f2779c..b914a08258ea 100644

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

sound/soc/codecs/sgtl5000.c +2 -2
index 3593a1496056..3a29c0ac5d8a 100644

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

sound/soc/dwc/designware_i2s.c +2 -2
index a3e97b46b64e..0d28e3b356f6 100644

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

sound/soc/pxa/Kconfig +0 -2
index 39cea80846c3..f2bf8661dd21 100644

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

sound/soc/pxa/pxa2xx-ac97.c +2 -2
index 1f6054650991..9e4b04e0fbd1 100644

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

sound/synth/emux/emux_oss.c +2 -1
index 82e350e9501c..ac75816ada7c 100644

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

tools/lib/traceevent/event-parse.c +20 -3
index 29f94f6f0d9e..ed5461f065bd 100644

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

tools/perf/arch/alpha/Build new file +1 -0
new file mode 100644
index 000000000000..1bb8bf6d7fd4

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

tools/perf/arch/mips/Build new file +1 -0
new file mode 100644
index 000000000000..1bb8bf6d7fd4

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

tools/perf/arch/parisc/Build new file +1 -0
new file mode 100644
index 000000000000..1bb8bf6d7fd4

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

tools/perf/builtin-stat.c +2 -3
index f7b8218785f6..a1f3ffc2786d 100644

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

tools/perf/util/header.c +2 -2
index 918fd8ae2d80..23eea5e7fa94 100644

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

tools/perf/util/hist.c +3 -0
index cc22b9158b93..c7966c0fa13e 100644

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

tools/perf/util/symbol-elf.c +13 -22
index a7ab6063e038..3ddfab315e19 100644

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

virt/kvm/eventfd.c +73 -51

124 lines not on this page · raw message

virt/kvm/kvm_main.c +17 -2
index 90977418aeb6..85422985235f 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.