Skip to contentSkip to conversation

Linux 3.17.3

DISCUSSION Greg KH 1 participant 2 messages Nov 14, 2014 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 3.17.3 kernel.

All users of the 3.17 kernel series must upgrade.

The updated 3.17.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.17.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

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

 Makefile                                           |    2 
 arch/arc/boot/dts/nsimosci.dts                     |    2 
 arch/arc/include/asm/arcregs.h                     |    8 
 arch/arc/include/asm/kgdb.h                        |   32 +-
 arch/arc/include/asm/processor.h                   |    9 
 arch/arm/Kconfig.debug                             |    2 
 arch/arm/boot/dts/zynq-parallella.dts              |    4 
 arch/arm/mach-pxa/include/mach/addr-map.h          |    5 
 arch/mips/include/asm/ftrace.h                     |    4 
 arch/mips/include/uapi/asm/ptrace.h                |    2 
 arch/mips/loongson/lemote-2f/clock.c               |    5 
 arch/mips/math-emu/cp1emu.c                        |    4 
 arch/mips/mm/tlbex.c                               |    6 
 arch/powerpc/kernel/entry_64.S                     |    6 
 arch/powerpc/platforms/powernv/opal-lpc.c          |   59 ++++
 arch/powerpc/platforms/pseries/dlpar.c             |    4 
 arch/s390/kernel/topology.c                        |   18 -
 arch/sh/kernel/cpu/sh3/setup-sh770x.c              |    6 
 arch/um/drivers/ubd_kern.c                         |    5 
 arch/x86/ia32/ia32entry.S                          |   18 +
 arch/x86/include/asm/elf.h                         |    5 
 arch/x86/include/asm/kvm_host.h                    |   16 +
 arch/x86/include/uapi/asm/vmx.h                    |    2 
 arch/x86/kernel/acpi/boot.c                        |   16 -
 arch/x86/kernel/apb_timer.c                        |    2 
 arch/x86/kernel/apic/apic.c                        |    4 
 arch/x86/kernel/cpu/common.c                       |    2 
 arch/x86/kernel/cpu/intel.c                        |   17 +
 arch/x86/kernel/iosf_mbi.c                         |    2 
 arch/x86/kernel/signal.c                           |    5 
 arch/x86/kernel/tsc.c                              |    5 
 arch/x86/kernel/xsave.c                            |    7 
 arch/x86/kvm/emulate.c                             |  295 +++++++++++++++------
 arch/x86/kvm/i8254.c                               |    2 
 arch/x86/kvm/svm.c                                 |    8 
 arch/x86/kvm/vmx.c                                 |   24 +
 arch/x86/kvm/x86.c                                 |   38 ++
 arch/x86/mm/pageattr.c                             |    2 
 arch/x86/net/bpf_jit_comp.c                        |   25 +
 arch/x86/platform/intel-mid/sfi.c                  |    2 
 block/blk-mq-tag.c                                 |    4 
 block/blk-settings.c                               |    4 
 block/scsi_ioctl.c                                 |    3 
 crypto/algif_skcipher.c                            |    2 
 drivers/acpi/device_pm.c                           |    2 
 drivers/acpi/ec.c                                  |   25 +
 drivers/ata/libata-sff.c                           |   20 -
 drivers/ata/pata_serverworks.c                     |   13 
 drivers/base/core.c                                |    4 
 drivers/base/power/main.c                          |    2 
 drivers/block/drbd/drbd_interval.c                 |    4 
 drivers/block/rbd.c                                |    5 
 drivers/block/xen-blkback/blkback.c                |    1 
 drivers/block/xen-blkback/xenbus.c                 |    6 
 drivers/char/random.c                              |    8 
 drivers/cpufreq/cpufreq.c                          |   23 +
 drivers/cpufreq/intel_pstate.c                     |  110 ++++++-
 drivers/edac/cpc925_edac.c                         |    2 
 drivers/edac/e7xxx_edac.c                          |    2 
 drivers/edac/i3200_edac.c                          |    4 
 drivers/edac/i82860_edac.c                         |    2 
 drivers/gpu/drm/ast/ast_mode.c                     |    4 
 drivers/gpu/drm/cirrus/cirrus_drv.c                |    2 
 drivers/gpu/drm/i915/i915_gem_userptr.c            |   31 +-
 drivers/gpu/drm/i915/i915_irq.c                    |    5 
 drivers/gpu/drm/i915/intel_display.c               |    5 
 drivers/gpu/drm/i915/intel_dp.c                    |    7 
 drivers/gpu/drm/i915/intel_panel.c                 |    8 
 drivers/gpu/drm/nouveau/Makefile                   |    2 
 drivers/gpu/drm/nouveau/core/engine/device/nv50.c  |   22 -
 drivers/gpu/drm/nouveau/core/engine/device/nvc0.c  |   14 
 drivers/gpu/drm/nouveau/core/include/subdev/gpio.h |    2 
 drivers/gpu/drm/nouveau/core/subdev/bios/dcb.c     |    1 
 drivers/gpu/drm/nouveau/core/subdev/gpio/nv92.c    |   74 -----
 drivers/gpu/drm/nouveau/core/subdev/gpio/nv94.c    |   74 +++++
 drivers/gpu/drm/nouveau/core/subdev/gpio/nvd0.c    |    4 
 drivers/gpu/drm/nouveau/core/subdev/gpio/priv.h    |    4 
 drivers/gpu/drm/nouveau/nouveau_chan.c             |   12 
 drivers/gpu/drm/nouveau/nv50_display.c             |   18 -
 drivers/gpu/drm/qxl/qxl_display.c                  |   16 -
 drivers/gpu/drm/radeon/cik_sdma.c                  |   21 -
 drivers/gpu/drm/radeon/dce3_1_afmt.c               |    4 
 drivers/gpu/drm/radeon/dce6_afmt.c                 |    6 
 drivers/gpu/drm/radeon/evergreen_hdmi.c            |    6 
 drivers/gpu/drm/radeon/kv_dpm.c                    |   19 +
 drivers/gpu/drm/radeon/r600_dma.c                  |   21 -
 drivers/gpu/drm/radeon/radeon.h                    |    2 
 drivers/gpu/drm/radeon/radeon_cs.c                 |    2 
 drivers/gpu/drm/radeon/radeon_device.c             |    2 
 drivers/gpu/drm/radeon/radeon_ring.c               |    4 
 drivers/gpu/drm/radeon/radeon_vm.c                 |    4 
 drivers/gpu/drm/radeon/si_dpm.c                    |    2 
 drivers/gpu/drm/tilcdc/tilcdc_drv.c                |   60 +++-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c                |    6 
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c                |   16 -
 drivers/hid/hid-debug.c                            |    6 
 drivers/hid/hid-ids.h                              |    7 
 drivers/hid/hid-input.c                            |   12 
 drivers/hid/usbhid/hid-core.c                      |   26 +
 drivers/hid/usbhid/hid-quirks.c                    |    5 
 drivers/i2c/busses/i2c-at91.c                      |    2 
 drivers/iio/common/st_sensors/st_sensors_buffer.c  |    2 
 drivers/iio/proximity/as3935.c                     |    2 
 drivers/infiniband/hw/mlx4/main.c                  |   10 
 drivers/infiniband/ulp/isert/ib_isert.c            |    4 
 drivers/input/mouse/alps.c                         |    4 
 drivers/input/mouse/synaptics.c                    |   22 +
 drivers/input/mouse/synaptics.h                    |    8 
 drivers/input/serio/i8042-x86ia64io.h              |   22 +
 drivers/iommu/amd_iommu.c                          |   27 -
 drivers/iommu/iommu.c                              |  163 ++++++-----
 drivers/irqchip/irq-armada-370-xp.c                |   23 +
 drivers/md/dm-bufio.c                              |    5 
 drivers/md/dm-log-userspace-transfer.c             |    2 
 drivers/media/common/siano/sms-cards.c             |    6 
 drivers/media/common/siano/sms-cards.h             |    1 
 drivers/media/dvb-frontends/ds3000.c               |    7 
 drivers/media/i2c/tda7432.c                        |    2 
 drivers/media/platform/Kconfig                     |    6 
 drivers/media/platform/exynos4-is/Kconfig          |    2 
 drivers/media/platform/s5p-tv/Kconfig              |    2 
 drivers/media/rc/imon.c                            |    3 
 drivers/media/rc/rc-ir-raw.c                       |    1 
 drivers/media/rc/rc-main.c                         |    2 
 drivers/media/tuners/m88ts2022.c                   |    2 
 drivers/media/usb/em28xx/em28xx-cards.c            |   11 
 drivers/media/usb/em28xx/em28xx-core.c             |   12 
 drivers/media/usb/em28xx/em28xx-video.c            |   15 -
 drivers/media/usb/siano/smsusb.c                   |    2 
 drivers/media/usb/uvc/uvc_driver.c                 |    9 
 drivers/media/v4l2-core/v4l2-common.c              |    9 
 drivers/media/v4l2-core/videobuf-dma-sg.c          |    6 
 drivers/mfd/rtsx_pcr.c                             |    2 
 drivers/mfd/ti_am335x_tscadc.c                     |    5 
 drivers/mmc/core/sdio.c                            |   12 
 drivers/mmc/core/sdio_irq.c                        |    4 
 drivers/mmc/core/slot-gpio.c                       |    2 
 drivers/mmc/host/mmc_spi.c                         |    1 
 drivers/mmc/host/rtsx_pci_sdmmc.c                  |    7 
 drivers/mmc/host/rtsx_usb_sdmmc.c                  |    7 
 drivers/mmc/host/sdhci-pxav3.c                     |    3 
 drivers/mmc/host/sdhci-s3c.c                       |    4 
 drivers/mmc/host/sdhci-sirf.c                      |    1 
 drivers/mmc/host/tmio_mmc_pio.c                    |    1 
 drivers/mtd/chips/cfi_cmdset_0001.c                |    2 
 drivers/mtd/devices/m25p80.c                       |   50 +++
 drivers/mtd/ubi/block.c                            |   25 +
 drivers/mtd/ubi/cdev.c                             |    4 
 drivers/mtd/ubi/fastmap.c                          |    1 
 drivers/net/Kconfig                                |    2 
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c    |    1 
 drivers/net/ethernet/mellanox/mlx4/en_tx.c         |    7 
 drivers/net/ethernet/mellanox/mlx4/mcg.c           |    4 
 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c   |    7 
 drivers/net/hyperv/netvsc_drv.c                    |    1 
 drivers/net/macvlan.c                              |   10 
 drivers/net/macvtap.c                              |    3 
 drivers/net/ppp/ppp_generic.c                      |    2 
 drivers/net/tun.c                                  |    6 
 drivers/net/usb/ax88179_178a.c                     |    7 
 drivers/net/vxlan.c                                |   15 -
 drivers/net/wireless/iwlwifi/dvm/mac80211.c        |   24 -
 drivers/net/wireless/iwlwifi/iwl-trans.h           |    2 
 drivers/net/wireless/iwlwifi/mvm/coex.c            |    4 
 drivers/net/wireless/iwlwifi/mvm/coex_legacy.c     |    4 
 drivers/net/wireless/iwlwifi/mvm/fw-api-power.h    |   35 ++
 drivers/net/wireless/iwlwifi/mvm/fw-api.h          |    1 
 drivers/net/wireless/iwlwifi/mvm/fw.c              |    9 
 drivers/net/wireless/iwlwifi/mvm/ops.c             |    1 
 drivers/net/wireless/iwlwifi/mvm/tx.c              |    8 
 drivers/net/wireless/iwlwifi/pcie/trans.c          |   16 -
 drivers/net/wireless/rt2x00/rt2800.h               |    4 
 drivers/net/wireless/rt2x00/rt2800lib.c            |    6 
 drivers/net/wireless/rt2x00/rt2800usb.c            |    1 
 drivers/of/base.c                                  |   88 +-----
 drivers/of/selftest.c                              |   66 ++++
 drivers/of/testcase-data/tests-phandle.dtsi        |    2 
 drivers/pci/pci-sysfs.c                            |    8 
 drivers/phy/phy-omap-usb2.c                        |    6 
 drivers/pinctrl/pinctrl-baytrail.c                 |    2 
 drivers/platform/x86/acer-wmi.c                    |   11 
 drivers/platform/x86/samsung-laptop.c              |   10 
 drivers/power/charger-manager.c                    |    5 
 drivers/regulator/max77693.c                       |    2 
 drivers/rtc/Kconfig                                |    2 
 drivers/scsi/qla2xxx/tcm_qla2xxx.c                 |   11 
 drivers/scsi/scsi_lib.c                            |    5 
 drivers/spi/spi-fsl-dspi.c                         |    4 
 drivers/spi/spi-pl022.c                            |    2 
 drivers/spi/spi-pxa2xx.c                           |    7 
 drivers/staging/comedi/comedi_fops.c               |   18 -
 drivers/staging/iio/adc/mxs-lradc.c                |   12 
 drivers/staging/iio/impedance-analyzer/ad5933.c    |   15 -
 drivers/staging/iio/meter/ade7758.h                |    1 
 drivers/staging/iio/meter/ade7758_core.c           |   57 ----
 drivers/staging/iio/meter/ade7758_ring.c           |    5 
 drivers/target/target_core_device.c                |    3 
 drivers/target/target_core_pr.c                    |    6 
 drivers/target/target_core_pr.h                    |    2 
 drivers/target/target_core_tpg.c                   |    8 
 drivers/target/target_core_transport.c             |    3 
 drivers/tty/serial/msm_serial.c                    |   22 -
 drivers/tty/serial/serial_core.c                   |    2 
 drivers/tty/tty_io.c                               |    7 
 drivers/tty/vt/consolemap.c                        |    7 
 drivers/usb/chipidea/core.c                        |    1 
 drivers/usb/class/cdc-acm.c                        |   20 +
 drivers/usb/class/cdc-acm.h                        |    2 
 drivers/usb/core/hcd.c                             |    2 
 drivers/usb/core/hub.c                             |    3 
 drivers/usb/core/quirks.c                          |   10 
 drivers/usb/dwc3/dwc3-omap.c                       |   15 -
 drivers/usb/dwc3/ep0.c                             |    4 
 drivers/usb/dwc3/gadget.c                          |   19 -
 drivers/usb/dwc3/gadget.h                          |    2 
 drivers/usb/gadget/function/f_acm.c                |    7 
 drivers/usb/gadget/function/f_fs.c                 |   42 ++
 drivers/usb/gadget/udc/udc-core.c                  |    5 
 drivers/usb/host/Kconfig                           |    4 
 drivers/usb/host/xhci-pci.c                        |   18 -
 drivers/usb/musb/musb_cppi41.c                     |    3 
 drivers/usb/musb/musb_dsps.c                       |    4 
 drivers/usb/serial/cp210x.c                        |    1 
 drivers/usb/serial/ftdi_sio.c                      |    3 
 drivers/usb/serial/ftdi_sio_ids.h                  |   12 
 drivers/usb/serial/kobil_sct.c                     |    5 
 drivers/usb/serial/opticon.c                       |    2 
 drivers/usb/serial/option.c                        |   10 
 drivers/usb/storage/transport.c                    |   26 +
 drivers/usb/storage/unusual_uas.h                  |   28 +
 drivers/video/console/bitblit.c                    |    3 
 drivers/video/console/fbcon_ccw.c                  |    3 
 drivers/video/console/fbcon_cw.c                   |    3 
 drivers/video/console/fbcon_ud.c                   |    3 
 drivers/video/fbdev/core/cfbcopyarea.c             |   13 
 drivers/virtio/virtio_pci.c                        |   33 ++
 fs/btrfs/file-item.c                               |    2 
 fs/buffer.c                                        |    8 
 fs/dcache.c                                        |    7 
 fs/ext3/super.c                                    |    7 
 fs/ext4/balloc.c                                   |   12 
 fs/ext4/bitmap.c                                   |   12 
 fs/ext4/ext4.h                                     |   13 
 fs/ext4/extents.c                                  |    6 
 fs/ext4/file.c                                     |    2 
 fs/ext4/ialloc.c                                   |    7 
 fs/ext4/inline.c                                   |    3 
 fs/ext4/inode.c                                    |   46 ++-
 fs/ext4/ioctl.c                                    |   13 
 fs/ext4/mmp.c                                      |    6 
 fs/ext4/namei.c                                    |   45 +--
 fs/ext4/resize.c                                   |    5 
 fs/ext4/super.c                                    |   32 --
 fs/ext4/xattr.c                                    |   38 +-
 fs/jbd2/recovery.c                                 |    1 
 fs/jffs2/jffs2_fs_sb.h                             |    2 
 fs/jffs2/wbuf.c                                    |   17 -
 fs/lockd/mon.c                                     |    6 
 fs/namei.c                                         |    3 
 fs/namespace.c                                     |    3 
 fs/nfsd/nfs4proc.c                                 |    7 
 fs/ocfs2/cluster/tcp.c                             |    2 
 fs/pstore/inode.c                                  |    4 
 fs/quota/dquot.c                                   |    2 
 fs/super.c                                         |    2 
 fs/ubifs/commit.c                                  |    8 
 fs/ubifs/log.c                                     |   19 -
 fs/xfs/xfs_itable.c                                |  250 ++++++++---------
 fs/xfs/xfs_itable.h                                |   16 -
 include/drm/drm_pciids.h                           |    1 
 include/linux/blkdev.h                             |    8 
 include/linux/hid.h                                |    1 
 include/linux/memcontrol.h                         |   58 +---
 include/linux/mm.h                                 |    2 
 include/linux/of.h                                 |   84 ++++-
 include/linux/oom.h                                |    3 
 include/linux/string.h                             |    5 
 include/linux/sunrpc/xprt.h                        |    1 
 include/linux/usb/quirks.h                         |    3 
 include/net/ipv6.h                                 |    2 
 include/scsi/scsi_tcq.h                            |    8 
 include/uapi/drm/vmwgfx_drm.h                      |    2 
 include/uapi/linux/input.h                         |    7 
 kernel/events/core.c                               |   54 ++-
 kernel/freezer.c                                   |    3 
 kernel/futex.c                                     |   22 -
 kernel/module.c                                    |    2 
 kernel/power/hibernate.c                           |    8 
 kernel/power/process.c                             |   40 ++
 kernel/sched/core.c                                |   19 +
 kernel/time/posix-timers.c                         |    1 
 kernel/trace/trace_syscalls.c                      |    8 
 lib/bitmap.c                                       |    8 
 lib/scatterlist.c                                  |    6 
 lib/string.c                                       |   16 +
 mm/balloon_compaction.c                            |    2 
 mm/cma.c                                           |    1 
 mm/huge_memory.c                                   |    4 
 mm/memcontrol.c                                    |  105 ++++---
 mm/memory.c                                        |    1 
 mm/oom_kill.c                                      |   17 +
 mm/page-writeback.c                                |   43 +--
 mm/page_alloc.c                                    |    8 
 mm/page_cgroup.c                                   |    1 
 mm/percpu.c                                        |    2 
 mm/rmap.c                                          |   20 -
 mm/truncate.c                                      |   56 +++
 net/ceph/messenger.c                               |    6 
 net/core/tso.c                                     |    3 
 net/ipv4/fib_semantics.c                           |    2 
 net/ipv4/gre_offload.c                             |    2 
 net/ipv4/ip_output.c                               |   12 
 net/ipv4/ip_tunnel_core.c                          |    3 
 net/ipv4/route.c                                   |    1 
 net/ipv4/tcp.c                                     |   59 +---
 net/ipv4/tcp_ipv4.c                                |    4 
 net/ipv6/output_core.c                             |   34 ++
 net/ipv6/tcp_ipv6.c                                |    4 
 net/mac80211/rate.c                                |    2 
 net/netlink/af_netlink.c                           |   39 +-
 net/sunrpc/clnt.c                                  |    3 
 net/sunrpc/xprtsock.c                              |    4 
 net/tipc/link.c                                    |    7 
 security/integrity/evm/evm_main.c                  |   16 -
 security/integrity/ima/ima_appraise.c              |    2 
 security/integrity/integrity.h                     |    1 
 security/selinux/hooks.c                           |    2 
 sound/core/pcm_compat.c                            |    2 
 sound/firewire/bebob/bebob_focusrite.c             |   62 +++-
 sound/firewire/bebob/bebob_stream.c                |   18 +
 sound/pci/hda/hda_intel.c                          |    4 
 sound/pci/hda/patch_realtek.c                      |    3 
 sound/soc/codecs/adau1761.c                        |    4 
 sound/soc/codecs/tlv320aic3x.c                     |   13 
 sound/soc/intel/sst-haswell-pcm.c                  |    4 
 sound/soc/soc-core.c                               |    4 
 sound/soc/soc-dapm.c                               |   25 -
 sound/soc/soc-pcm.c                                |    2 
 sound/usb/card.c                                   |    9 
 virt/kvm/iommu.c                                   |    8 
 340 files changed, 2977 insertions(+), 1497 deletions(-)

Aaro Koskinen (2):
MIPS: ptrace.h: Add a missing include
MIPS: loongson2_cpufreq: Fix CPU clock rate setting mismerge

Adel Gadllah (4):
USB: quirks: enable device-qualifier quirk for another Elan touchscreen
USB: quirks: enable device-qualifier quirk for yet another Elan touchscreen
HID: usbhid: enable always-poll quirk for Elan Touchscreen 009b
HID: usbhid: enable always-poll quirk for Elan Touchscreen 016f

Al Viro (5):
missing data dependency barrier in prepend_name() kill wbuf_queued/wbuf_dwork_lock
fix misuses of f_count() in ppp and netlink fix inode leaks on d_splice_alias() failure exits fix breakage in o2net_send_tcp_msg()

Alan Stern (1):
usb-storage: handle a skipped data phase

Alex Deucher (6):
drm/radeon: fix speaker allocation setup drm/radeon: use gart memory for DMA ring tests drm/radeon: fix vm page table block size calculation drm/radeon/dpm: disable ulv support on SI drm/radeon: dpm fixes for asrock systems drm/radeon: remove invalid pci id

Alex Williamson (2):
iommu: Rework iommu_group_get_for_pci_dev() iommu/amd: Split init_iommu_group() from iommu_init_device()

Alexander Stein (1):
spi: fsl-dspi: Fix CTAR selection

Alexei Starovoitov (1):
x86: bpf_jit: fix two bugs in eBPF JIT compiler

Alexey Khoroshilov (1):
dm log userspace: fix memory leak in dm_ulog_tfr_init failure path

Andreas Bosch (1):
Input: alps - fix v4 button press recognition

Andreas Färber (1):
ARM: dts: zynq: Enable PL clocks for Parallella

Andriy Skulysh (1):

      sh: fix sh770x SCIF memory regions

Andy Honig (2):
KVM: x86: Prevent host from panicking on shared MSR writes.
KVM: x86: Improve thread safety in pit

Andy Lutomirski (3):
x86_64, entry: Filter RFLAGS.NT on entry from userspace x86_64, entry: Fix out of bounds read on sysenter x86, apic: Handle a bad TSC more gracefully

Andy Shevchenko (1):
stmmac: pci: set default of the filter bins

Anish Bhatt (1):
cxgb4 : Fix missing initialization of win0_lock

Anton Blanchard (1):
powerpc: do_notify_resume can be called with bad thread_info flags argument

Anton Kolesov (1):
ARC: Update order of registers in KGDB to match GDB 7.5

Antti Palosaari (1):
media: m88ts2022: fix 32bit overflow on filter calc

Artem Bityutskiy (2):
UBIFS: fix a race condition
UBIFS: fix free log space calculation

Axel Lin (1):
media: tda7432: Fix setting TDA7432_MUTE bit for TDA7432_RF register

Bartlomiej Zolnierkiewicz (1):
mmc: sdhci-s3c: fix runtime PM handling on sdhci_add_host() failure

Ben Hutchings (4):
drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets drivers/net: macvtap and tun depend on INET
x86: Reject x32 executables if x32 ABI not supported
mtd: m25p80: Fix module aliases for m25p80

Ben Skeggs (3):
drm/nouveau/bios: memset dcb struct to zero before parsing drm/gt214-/kms: fix hda eld regression drm/nouveau: fix regression on agp boards

Benjamin Coddington (2):
lockd: Try to reconnect if statd has moved
SUNRPC: Don't wake tasks during connection abort

Benjamin Herrenschmidt (2):
drm/ast: Fix HW cursor image powerpc/powernv: Properly fix LPC debugfs endianness

Brian Silverman (1):
futex: Fix a race condition between REQUEUE_PI and task death

Bryan O'Donoghue (1):
x86: Add cpu_detect_cache_sizes to init_intel() add Quark legacy_cache()

Canek Peláez Valdés (1):

      rt2x00: support Ralink 5362.

Chris Ball (1):
mfd: rtsx_pcr: Fix MSI enable error handling

Chris Mason (1):
Btrfs: fix kfree on list_head in btrfs_lookup_csums_range error cleanup

Chris Wilson (1):
drm/i915: Do not store the error pointer for a failed userptr registration

Christian Vogel (1):
ALSA: bebob: Uninitialized id returned by saffirepro_both_clk_src_get

Christoph Hellwig (2):
Revert "block: all blk-mq requests are tagged"
scsi: set REQ_QUEUE for the blk-mq case

Cong Wang (1):
freezer: Do not freeze tasks killed by OOM killer

Cyril Brulebois (1):
wireless: rt2x00: add new rt2800usb device

Dan Carpenter (1):
media: vmalloc_sg: off by one in error handling

Dan Streetman (1):
powerpc: use device_online/offline() instead of cpu_up/down()

Dan Williams (1):
USB: option: add Haier CE81B CDMA modem

Daniel Borkmann (1):
random: add and use memzero_explicit() for clearing data

Daniel Mack (3):
ASoC: core: fix use after free in snd_soc_remove_platform()
ASoC: soc-dapm: fix use after free
ASoC: soc-pcm: fix sig_bits determination in soc_pcm_apply_msb()

Daniele Palmas (1):
usb: option: add support for Telit LE910

Darrick J. Wong (4):
jbd2: free bh when descriptor block checksum fails
ext4: check EA value offset when loading
ext4: check s_chksum_driver when looking for bg csum presence
ext4: enable journal checksum when metadata checksum feature enabled

Dave Chinner (7):
xfs: bulkstat doesn't release AGI buffer on error
xfs: bulkstat btree walk doesn't terminate
xfs: bulkstat chunk formatting cursor is broken
xfs: bulkstat chunk-formatter has issues
xfs: bulkstat main loop logic is a mess
xfs: bulkstat error handling is broken
xfs: track bulkstat progress by agino

David Cohen (2):
usb: ffs: fix regression when quirk_ep_out_aligned_size flag is set
pinctrl: baytrail: show output gpio state correctly on Intel Baytrail

David Daney (1):
MIPS: tlbex: Properly fix HUGE TLB Refill exception handler

David E. Box (1):
x86/platform/intel/iosf: Add Braswell PCI ID

Dexuan Cui (1):
x86, pageattr: Prevent overflow in slow_virt_to_phys() for X86_PAE

Dirk Brandewie (4):
cpufreq: expose scaling_cur_freq sysfs file for set_policy() drivers
intel_pstate: Don't lose sysfs settings during cpu offline
intel_pstate: Fix BYT frequency reporting
intel_pstate: Correct BYT VID values.

Dmitry Eremin-Solenikov (2):
spi: pxa2xx: toggle clocks on suspend if not disabled by runtime PM
mtd: cfi_cmdset_0001.c: fix resume for LH28F640BF chips

Dmitry Kasatkin (3):
evm: properly handle INTEGRITY_NOXATTRS EVM status
evm: check xattr value length and type in evm_inode_setxattr()
ima: check xattr value length and type in the ima_inode_setxattr()

Dmitry Lavnikevich (1):
ASoC: tlv320aic3x: fix PLL D configuration

Dmitry Monakhov (4):
ext4: grab missed write_count for EXT4_IOC_SWAP_BOOT
ext4: Replace open coded mdata csum feature to helper function
ext4: move error report out of atomic context in ext4_init_block_bitmap()
ext4: prevent bugon on race between write/fcntl

Dmitry Torokhov (1):
Input: synaptics - gate forcepad support by DMI check

Emil Velikov (1):
drm/nouveau/gpio: rename g92 class to g94

Emmanuel Grumbach (4):
iwlwifi: mvm: BT Coex - update the MPLUT Boost register value
iwlwifi: configure the LTR
iwlwifi: dvm: drop non VO frames when flushing Revert "iwlwifi: mvm: treat EAPOLs like mgmt frames wrt rate"

Eric Dumazet (2):
tcp: md5: do not use alloc_percpu()
macvlan: fix a race on port dismantle and possible skb leaks

Eric Rannaud (1):
fs: allow open(dir, O_TMPFILE|..., 0) with mode 0

Eric Sandeen (1):
ext4: fix reservation overflow in ext4_da_write_begin

Eric W. Biederman (1):
mnt: Prevent pivot_root from creating a loop in the mount tree

Ezequiel Garcia (4):
UBI: block: Fix block device size setting
UBI: block: Add support for the UBI_VOLUME_UPDATED notification
UBI: Dispatch update notification if the volume is updated drm/tilcdc: Fix the error path in tilcdc_load()

Fabio Estevam (1):
iio: adc: mxs-lradc: Disable the clock on probe failure

Felipe Balbi (3):
usb: gadget: udc: core: fix kernel oops with soft-connect
usb: dwc3: gadget: fix set_halt() bug with pending transfers
usb: gadget: function: acm: make f_acm pass USB20CV Chapter9

Frank Schaefer (3):
media: em28xx: check if a device has audio earlier"
media: em28xx-v4l: give back all active video buffers to the vb2 core properly on streaming stop
media: em28xx-v4l: fix video buffer field order reporting in progressive mode

Frans Klaver (1):
usb: serial: ftdi_sio: add Awinda Station and Dongle products

Fu Zhonghui (1):
mmc: core: sdio: Fix unconditional wake_up_process() on sdio thread

Gabriele Mazzotta (1):
cpufreq: intel_pstate: Reflect current no_turbo state correctly

George McCollister (1):
iio: as3935: allocate correct iio_device size

Grant Likely (1):
of: Fix overflow bug in string property parsing functions

Greg Kroah-Hartman (2):
PCI: Rename sysfs 'enabled' file back to 'enable' Linux 3.17.3

Grzegorz Jaszczyk (2):
irqchip: armada-370-xp: Fix MSI interrupt handling
irqchip: armada-370-xp: Fix MPIC interrupt handling

Guenter Roeck (1):
Revert "percpu: free percpu allocation info for uniprocessor system"

Haiyang Zhang (1):
hyperv: Fix the total_data_buflen in send path

Hans de Goede (9):
Input: i8042 - add noloop quirk for Asus X750LN
Input: i8042 - quirks for Fujitsu Lifebook A544 and Lifebook AH544
uas: Add NO_ATA_1X for VIA VL711 devices
uas: Add US_FL_NO_ATA_1X quirk for 2 more Seagate models
uas: Add US_FL_NO_ATA_1X quirk for 1 more Seagate model
usb: Do not allow usb_alloc_streams on unconfigured devices
xhci: Disable streams on Asmedia 1042 xhci controllers
acer-wmi: Add acpi_backlight=video quirk for the Acer KAV80
samsung-laptop: Add broken-acpi-video quirk for NC210/NC110

Hui Wang (1):
ALSA: hda - fix mute led problem for three HP laptops

Ian Abbott (2):
staging: comedi: (regression) channel list must be set for COMEDI_CMD ioctl
staging: comedi: fix memory leak / bad pointer freeing for chanlist

Ian Morgan (1):

      ax88179_178a: fix bonding failure

Ilya Dryomov (2):
rbd: rbd workqueues need a resque worker
libceph: ceph-msgr workqueue needs a resque worker

Imre Deak (3):
tty/vt: don't set font mappings on vc not supporting this PM / Sleep: fix async suspend_late/freeze_late error handling PM / Sleep: fix recovery during resuming from hibernation

J. Bruce Fields (2):
nfsd4: fix response size estimation for OP_SEQUENCE
nfsd4: fix crash on unknown operation number

Jack Pham (1):
usb: dwc3: gadget: Properly initialize LINK TRB

Jan Kara (12):
vfs: fix data corruption when blocksize < pagesize for mmaped data
ext4: don't check quota format when there are no quota files
ext4: fix mmap data corruption when blocksize < pagesize
ext4: fix oops when loading block bitmap failed
ext4: fix overflow when updating superblock backups after resize lib/bitmap.c: fix undefined shift in __bitmap_shift_{left|right}()
scsi: Fix error handling in SCSI_IOCTL_SEND_COMMAND
ext3: Don't check quota format when there are no quota files
quota: Properly return errors from dquot_writeback_dquots()
mm: Remove false WARN_ON from pagecache_isize_extended()
rbd: Fix error recovery in rbd_obj_read_sync()
xfs: Check error during inode btree iteration in xfs_bulkstat()

Jason Baron (4):
i82860_edac: Report CE events properly
i3200_edac: Report CE events properly
e7xxx_edac: Report CE events properly
cpc925_edac: Report UE events properly

Jason Gerecke (1):
HID: input: Fix TransducerSerialNumber implementation

Jens Axboe (1):
blk-mq: fix potential hang if rolling wakeup depth is too high

Jiang Liu (3):
x86: ACPI: Do not translate GSI number if IOAPIC is disabled ACPI, irq, x86: Return IRQ instead of GSI in mp_register_gsi() x86, intel-mid: Create IRQs for APB timers and RTC timers

Jiri Pirko (1):
ipv4: fix nexthop attlen check in fib_nh_match

Joe Thornber (1):
dm bufio: update last_accessed when relinking a buffer

Joern Engel (1):
qla_target: don't delete changed nacls

Johan Hovold (9):
USB: cdc-acm: add device id for GW Instek AFG-2225
USB: cdc-acm: only raise DTR on transitions from B0
USB: cdc-acm: add quirk for control-line state requests
USB: core: add device-qualifier quirk
USB: quirks: enable device-qualifier quirk for Elan Touchscreen
HID: usbhid: add always-poll quirk
HID: usbhid: enable always-poll quirk for Elan Touchscreen
USB: opticon: fix non-atomic allocation in write path
USB: kobil_sct: fix non-atomic allocation in write path

Johannes Weiner (2):
mm: page-writeback: inline account_page_dirtied() into single caller
mm: memcontrol: fix missed end-writeback page accounting

Jon Paul Maloy (1):
tipc: fix bug in bundled buffer reception

Josh Boyer (1):
drm/vmwgfx: Fix drm.h include

Karl Beldan (2):
net: tso: fix unaligned access to crafted TCP header in helper API
mac80211: fix typo in starting baserate for rts_cts_rate_idx

Kirill Tkhai (2):
sched: Use dl_bw_of() under RCU read lock
sched: Use rq->rd in sched_setaffinity() under RCU read lock

Konstantin Khlebnikov (1):
mm/balloon_compaction: fix deflation when compaction is disabled

Krzysztof Kozlowski (2):
power: charger-manager: Fix NULL pointer exception with missing cm-fuel-gauge
regulator: max77693: Fix use of uninitialized regulator config

Lai Jiangshan (1):
drbd: compute the end before rb_insert_augmented()

Lars-Peter Clausen (6):
ASoC: adau1761: Fix input PGA volume staging:iio:ad5933: Fix NULL pointer deref when enabling buffer staging:iio:ad5933: Drop "raw" from channel names staging:iio:ade7758: Fix NULL pointer deref when enabling buffer staging:iio:ade7758: Fix check if channels are enabled in prenable staging:iio:ade7758: Remove "raw" from channel name

Laurent Pinchart (1):
mm: cma: Don't crash on allocation if CMA area can't be activated

Li RongQing (4):
vxlan: fix a use after free in vxlan_encap_bypass
vxlan: using pskb_may_pull as early as possible
vxlan: fix a free after use
ipv4: fix a potential use after free in ip_tunnel_core.c

Liam Girdwood (1):
ASoC: Intel: HSW/BDW only support S16 and S24 formats.

Lv Zheng (1):
ACPI / EC: Fix regression due to conflicting firmware behavior between Samsung and Acer.

Maciej Matraszek (1):
media: v4l2-common: fix overflow in v4l_bound_align_image()

Marc-André Lureau (1):
qxl: don't create too large primary surface

Markos Chandras (2):
MIPS: cp1emu: Fix ISA restrictions for cop1x_op instructions
MIPS: ftrace: Fix a microMIPS build problem

Martin Schwidefsky (1):
s390/topology: call set_sched_topology early

Mathias Krause (1):
posix-timers: Fix stack info leak in timer_create()

Matt Fleming (1):
rtc: Disable EFI rtc for x86

Mauro Carvalho Chehab (1):
media: siano: add support for PCTV 77e

Michael S. Tsirkin (2):
virtio_pci: fix virtio spec compliance on restore
kvm: x86: don't kill guest on unknown exit reason

Michal Hocko (1):
OOM, PM: OOM killed task shouldn't escape PM suspend

Michel Dänzer (1):
drm/radeon: Use drm_malloc_ab instead of kmalloc_array

Mike Snitzer (1):
block: fix alignment_offset math that assumes io_min is a power-of-2

Mikulas Patocka (4):
fs: make cont_expand_zero interruptible
dm bufio: when done scanning return from __scan immediately
framebuffer: fix screen corruption when copying
framebuffer: fix border color

Nadav Amit (8):
KVM: x86: Decoding guest instructions which cross page boundary may fail
KVM: x86: Emulator does not decode clflush well
KVM: x86: PREFETCH and HINT_NOP should have SrcMem flag
KVM: x86: Check non-canonical addresses upon WRMSR
KVM: x86: Fix wrong masking on relative jump/call
KVM: x86: Emulator fixes for eip canonical checks on near branches
KVM: x86: Handle errors when RIP is set during far jumps
KVM: x86: Fix far-jump to non-canonical check

Nathaniel Ting (1):

      USB: serial: cp210x: add Silicon Labs 358x VID and PID

Nicholas Bellinger (2):
iser-target: Disable TX completion interrupt coalescing
target: Fix APTPL metadata handling for dynamic MappedLUNs

Nicolas Cavallari (1):
ipv4: Do not cache routing failures due to disabled forwarding.

Olaf Hering (1):
drm/cirrus: bind also to qemu-xen-traditional

Oleg Nesterov (2):
x86, fpu: __restore_xstate_sig()->math_state_restore() needs preempt_disable() x86, fpu: shift drop_init_fpu() from save_xstate_sig() to handle_signal()

Oliver Neukum (3):
HID: usbhid: fix PIXART optical mouse
HID: usbhid: add another mouse that needs QUIRK_ALWAYS_POLL
xhci: no switching back on non-ULT Haswell

Olivier Gay (1):
HID: add keyboard input assist hid usages

Ondrej Kozina (1):
crypto: algif - avoid excessive use of socket buffer in skcipher

Ondrej Zary (1):
libata-sff: Fix controllers with no ctl port

Or Gerlitz (2):
net/mlx4_en: Don't attempt to TX offload the outer UDP checksum for VXLAN
mlx4: Avoid leaking steering rules on flow creation error flow

Oussama Ghorbel (1):
phy: omap-usb2: Enable runtime PM of omap-usb2 phy properly

Pali Rohár (1):
cpufreq: intel_pstate: Fix setting max_perf_pct in performance policy

Paolo Bonzini (2):
KVM: emulator: fix execution close to the segment limit
KVM: emulate: avoid accessing NULL ctxt->memopp

Paul Fertser (1):
media: usb: uvc: add a quirk for Dell XPS M1330 webcam

Paulo Zanoni (1):
drm/i915: properly reenable gen8 pipe IRQs

Perry Hung (1):
usb: serial: ftdi_sio: add "bricked" FTDI device PID

Peter Griffin (1):
mmc: sdhci-pxav3: set_uhs_signaling is initialized twice differently

Peter Hurley (2):
serial: Fix divide-by-zero fault in uart_get_divisor()
tty: Fix high cpu load if tty is unreleaseable

Peter Zijlstra (1):
perf: Fix unclone_ctx() vs. locking

Petr Matousek (1):
kvm: vmx: handle invvpid vm exit gracefully

Prarit Bhargava (1):
modules, lock around setting of MODULE_STATE_UNFORMED

Quentin Casasnovas (1):
kvm: fix excessive pages un-pinning in kvm_iommu_map error path.

Quinn Tran (1):
target: Fix queue full status NULL pointer for SCF_TRANSPORT_TASK_SENSE

Rabin Vincent (1):
tracing/syscalls: Ignore numbers outside NR_syscalls' range

Ray Jui (1):
spi: pl022: Fix incorrect dma_unmap_sg

Richard Genoud (1):
UBI: add missing kmem_cache_free() in process_pool_aeb error path

Robert Baldyga (1):
usb: gadget: f_fs: remove redundant ffs_data_get()

Robert Jarzmik (1):
ARM: pxa: fix hang on startup with DEBUG_LL

Robin van der Gracht (1):
iio: st_sensors: Fix buffer copy

Roger Pau Monné (1):
xen-blkback: fix leak on grant map error path

Roger Quadros (1):
Revert "usb: dwc3: dwc3-omap: Disable/Enable only wrapper interrupts in prepare/complete"

Roger Tseng (2):
mmc: rtsx_usb_sdmmc: fix incorrect last byte in R2 response
mmc: rtsx_pci_sdmmc: fix incorrect last byte in R2 response

Sathya Perla (1):
net: fix saving TX flow hash in sock for outgoing connections

Scott Carter (1):
pata_serverworks: disable 64-KB DMA transfers on Broadcom OSB4 IDE Controller

Sebastian Andrzej Siewior (2):
mfd: ti_am335x_tscadc: Fix TSC resume
usb: musb: dsps: start OTG timer on resume again

Sinclair Yeh (1):
drm/vmwgfx: Filter out modes those cannot be supported by the current VRAM size.

Stephen Boyd (1):
serial: msm_serial: Fix kgdb continue

Stephen Smalley (1):
selinux: fix inode security list corruption

Stephen Warren (1):
mmc: don't request CD IRQ until mmc_start_host()

Sylwester Nawrocki (2):
usb: Remove references to non-existent PLAT_S5P symbol
media: Remove references to non-existent PLAT_S5P symbol

Takashi Iwai (3):
ALSA: hda - Add workaround for CMI8888 snoop behavior
ALSA: pcm: Zero-clear reserved fields of PCM status ioctl in compat mode
ALSA: usb-audio: Fix device_del() sysfs warnings at disconnect

Tetsuo Handa (1):
fs: Fix theoretical division by 0 in super_cache_scan().

Theodore Ts'o (2):
ext4: add ext4_iget_normal() which is to be used for dir tree lookups
ext4: don't orphan or truncate the boot loader inode

Thomas Gleixner (1):
usb: musb: cppi41: restart hrtimer only if not yet done

Thomas Graf (1):
netlink: Re-add locking to netlink_lookup() and seq walker

Thorsten Knabe (1):
um: ubd: Fix for processes stuck in D state forever

Tom Herbert (1):
gre: Use inner mac length when computing tunnel length

Tomas Melin (1):
media: rc-core: fix protocol_change regression in ir_raw_event_register

Tony Battersby (1):
lib/scatterlist: fix memory leak with scsi-mq

Torsten Fleischer (1):
usb: chipidea: Fix oops when removing the ci_hdrc module

Trond Myklebust (1):
SUNRPC: Add missing support for RPC_CLNT_CREATE_NO_RETRANS_TIMEOUT

Tvrtko Ursulin (1):
drm/i915: Do not leak pages when freeing userptr objects

U. Artie Eoff (1):
drm/i915: intel_backlight scale() math WA

Ulrich Eckhardt (2):
media: imon: fix other RC type protocol support
media: ds3000: fix LNB supply voltage on Tevii S480 on initialization

Valdis Kletnieks (1):
pstore: Fix duplicate {console,ftrace}-efi entries

Vasily Averin (1):
ipv4: dst_entry leak in ip_send_unicast_reply()

Vignesh R (1):
mfd: ti_am335x_tscadc: Fix TSC operation after ADC continouous mode

Ville Syrjälä (2):
drm/i915: Do a dummy DPCD read before the actual read drm/i915: Fix GMBUSFREQ on vlv/chv

Vineet Gupta (2):
ARC: [nsimosci] Allow "headless" models to boot
ARC: unbork FPU save/restore

Vitaly Kuznetsov (1):
xen/blkback: unmap all persistent grants when frontend gets disconnected

Wang Nan (1):
cgroup/kmemleak: add kmemleak_free() for cgroup deallocations.

Will Deacon (1):
zap_pte_range: update addr when forcing flush after TLB batching faiure

Wolfram Sang (1):
i2c: at91: don't account as iowait

Yijing Wang (1):
sysfs: driver core: Fix glue dir race condition by gdp_mutex

Yu Zhao (1):
mm: free compound page with correct order

Zhang Rui (1):
ACPI: invoke acpi_device_wakeup() with correct parameters

jens stein (1):
drm/i915: Ignore VBT backlight check on Macbook 2, 1

author maintainer
#1 lore raw
Makefile +1 -1
index 390afde6538e..57a45b1ea2c7 100644
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 17
-SUBLEVEL = 2
+SUBLEVEL = 3
 EXTRAVERSION =
 NAME = Shuffling Zombie Juror
 
arch/arc/boot/dts/nsimosci.dts +1 -1
index 4f31b2eb5cdf..398064cef746 100644
@@ -20,7 +20,7 @@
 		/* this is for console on PGU */
 		/* bootargs = "console=tty0 consoleblank=0"; */
 		/* this is for console on serial */
-		bootargs = "earlycon=uart8250,mmio32,0xc0000000,115200n8 console=ttyS0,115200n8 consoleblank=0 debug";
+		bootargs = "earlycon=uart8250,mmio32,0xc0000000,115200n8 console=tty0 console=ttyS0,115200n8 consoleblank=0 debug";
 	};
 
 	aliases {
arch/arc/include/asm/arcregs.h +0 -8
index 372466b371bf..a9cbabe22d99 100644
@@ -191,14 +191,6 @@
 #define PAGES_TO_KB(n_pages)	((n_pages) << (PAGE_SHIFT - 10))
 #define PAGES_TO_MB(n_pages)	(PAGES_TO_KB(n_pages) >> 10)
 
-#ifdef CONFIG_ARC_FPU_SAVE_RESTORE
-/* These DPFP regs need to be saved/restored across ctx-sw */
-struct arc_fpu {
-	struct {
-		unsigned int l, h;
-	} aux_dpfp[2];
-};
-#endif
 
 /*
  ***************************************************************
arch/arc/include/asm/kgdb.h +18 -14
index b65fca7ffeb5..fea931634136 100644
@@ -19,7 +19,7 @@
  * register API yet */
 #undef DBG_MAX_REG_NUM
 
-#define GDB_MAX_REGS		39
+#define GDB_MAX_REGS		87
 
 #define BREAK_INSTR_SIZE	2
 #define CACHE_FLUSH_IS_SAFE	1
@@ -33,23 +33,27 @@ static inline void arch_kgdb_breakpoint(void)
 
 extern void kgdb_trap(struct pt_regs *regs);
 
-enum arc700_linux_regnums {
+/* This is the numbering of registers according to the GDB. See GDB's
+ * arc-tdep.h for details.
+ *
+ * Registers are ordered for GDB 7.5. It is incompatible with GDB 6.8. */
+enum arc_linux_regnums {
 	_R0		= 0,
 	_R1, _R2, _R3, _R4, _R5, _R6, _R7, _R8, _R9, _R10, _R11, _R12, _R13,
 	_R14, _R15, _R16, _R17, _R18, _R19, _R20, _R21, _R22, _R23, _R24,
 	_R25, _R26,
-	_BTA		= 27,
-	_LP_START	= 28,
-	_LP_END		= 29,
-	_LP_COUNT	= 30,
-	_STATUS32	= 31,
-	_BLINK		= 32,
-	_FP		= 33,
-	__SP		= 34,
-	_EFA		= 35,
-	_RET		= 36,
-	_ORIG_R8	= 37,
-	_STOP_PC	= 38
+	_FP		= 27,
+	__SP		= 28,
+	_R30		= 30,
+	_BLINK		= 31,
+	_LP_COUNT	= 60,
+	_STOP_PC	= 64,
+	_RET		= 64,
+	_LP_START	= 65,
+	_LP_END		= 66,
+	_STATUS32	= 67,
+	_ECR		= 76,
+	_BTA		= 82,
 };
 
 #else
arch/arc/include/asm/processor.h +9 -0
index 82588f3ba77f..38175c06f168 100644
@@ -20,6 +20,15 @@
 
 #include <asm/ptrace.h>
 
+#ifdef CONFIG_ARC_FPU_SAVE_RESTORE
+/* These DPFP regs need to be saved/restored across ctx-sw */
+struct arc_fpu {
+	struct {
+		unsigned int l, h;
+	} aux_dpfp[2];
+};
+#endif
+
 /* Arch specific stuff which needs to be saved per task.
  * However these items are not so important so as to earn a place in
  * struct thread_info
arch/arm/Kconfig.debug +1 -1
index b11ad54f8d17..2f78e543b315 100644
@@ -1142,7 +1142,7 @@ config DEBUG_UART_VIRT
 	default 0xf1c28000 if DEBUG_SUNXI_UART0
 	default 0xf1c28400 if DEBUG_SUNXI_UART1
 	default 0xf1f02800 if DEBUG_SUNXI_R_UART
-	default 0xf2100000 if DEBUG_PXA_UART1
+	default 0xf6200000 if DEBUG_PXA_UART1
 	default 0xf4090000 if ARCH_LPC32XX
 	default 0xf4200000 if ARCH_GEMINI
 	default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
arch/arm/boot/dts/zynq-parallella.dts +4 -0
index 41afd9da6876..229140b6de64 100644
@@ -34,6 +34,10 @@
 	};
 };
 
+&clkc {
+	fclk-enable = <0xf>;
+};
+
 &gem0 {
 	status = "okay";
 	phy-mode = "rgmii-id";
arch/arm/mach-pxa/include/mach/addr-map.h +5 -0
index bbf9df37ad4b..d28fe291233a 100644
@@ -39,6 +39,11 @@
 #define DMEMC_SIZE		0x00100000
 
 /*
+ * Reserved space for low level debug virtual addresses within
+ * 0xf6200000..0xf6201000
+ */
+
+/*
  * Internal Memory Controller (PXA27x and later)
  */
 #define IMEMC_PHYS		0x58000000
arch/mips/include/asm/ftrace.h +2 -2
index 992aaba603b5..b463f2aa5a61 100644
@@ -24,7 +24,7 @@ do {							\
 	asm volatile (					\
 		"1: " load " %[tmp_dst], 0(%[tmp_src])\n"	\
 		"   li %[tmp_err], 0\n"			\
-		"2:\n"					\
+		"2: .insn\n"				\
 							\
 		".section .fixup, \"ax\"\n"		\
 		"3: li %[tmp_err], 1\n"			\
@@ -46,7 +46,7 @@ do {						\
 	asm volatile (				\
 		"1: " store " %[tmp_src], 0(%[tmp_dst])\n"\
 		"   li %[tmp_err], 0\n"		\
-		"2:\n"				\
+		"2: .insn\n"			\
 						\
 		".section .fixup, \"ax\"\n"	\
 		"3: li %[tmp_err], 1\n"		\
arch/mips/include/uapi/asm/ptrace.h +2 -0
index bbcfb8ba8106..91a3d197ede3 100644
@@ -9,6 +9,8 @@
 #ifndef _UAPI_ASM_PTRACE_H
 #define _UAPI_ASM_PTRACE_H
 
+#include <linux/types.h>
+
 /* 0 - 31 are integer registers, 32 - 63 are fp registers.  */
 #define FPR_BASE	32
 #define PC		64
arch/mips/loongson/lemote-2f/clock.c +3 -2
index a217061beee3..462e34d46b4a 100644
@@ -91,6 +91,7 @@ EXPORT_SYMBOL(clk_put);
 
 int clk_set_rate(struct clk *clk, unsigned long rate)
 {
+	unsigned int rate_khz = rate / 1000;
 	struct cpufreq_frequency_table *pos;
 	int ret = 0;
 	int regval;
@@ -107,9 +108,9 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
 		propagate_rate(clk);
 
 	cpufreq_for_each_valid_entry(pos, loongson2_clockmod_table)
-		if (rate == pos->frequency)
+		if (rate_khz == pos->frequency)
 			break;
-	if (rate != pos->frequency)
+	if (rate_khz != pos->frequency)
 		return -ENOTSUPP;
 
 	clk->rate = rate;
arch/mips/math-emu/cp1emu.c +2 -2
index 7a4727795a70..51a0fde4bec1 100644
@@ -1023,7 +1023,7 @@ emul:
 					goto emul;
 
 				case cop1x_op:
-					if (cpu_has_mips_4_5 || cpu_has_mips64)
+					if (cpu_has_mips_4_5 || cpu_has_mips64 || cpu_has_mips32r2)
 						/* its one of ours */
 						goto emul;
 
@@ -1068,7 +1068,7 @@ emul:
 		break;
 
 	case cop1x_op:
-		if (!cpu_has_mips_4_5 && !cpu_has_mips64)
+		if (!cpu_has_mips_4_5 && !cpu_has_mips64 && !cpu_has_mips32r2)
 			return SIGILL;
 
 		sig = fpux_emu(xcp, ctx, ir, fault_addr);
arch/mips/mm/tlbex.c +5 -1
index a08dd53a1cc5..b5f228e7eae6 100644
@@ -1062,6 +1062,7 @@ static void build_update_entries(u32 **p, unsigned int tmp, unsigned int ptep)
 struct mips_huge_tlb_info {
 	int huge_pte;
 	int restore_scratch;
+	bool need_reload_pte;
 };
 
 static struct mips_huge_tlb_info
@@ -1076,6 +1077,7 @@ build_fast_tlb_refill_handler (u32 **p, struct uasm_label **l,
 
 	rv.huge_pte = scratch;
 	rv.restore_scratch = 0;
+	rv.need_reload_pte = false;
 
 	if (check_for_high_segbits) {
 		UASM_i_MFC0(p, tmp, C0_BADVADDR);
@@ -1264,6 +1266,7 @@ static void build_r4000_tlb_refill_handler(void)
 	} else {
 		htlb_info.huge_pte = K0;
 		htlb_info.restore_scratch = 0;
+		htlb_info.need_reload_pte = true;
 		vmalloc_mode = refill_noscratch;
 		/*
 		 * create the plain linear handler
@@ -1300,7 +1303,8 @@ static void build_r4000_tlb_refill_handler(void)
 	}
 #ifdef CONFIG_MIPS_HUGE_TLB_SUPPORT
 	uasm_l_tlb_huge_update(&l, p);
-	UASM_i_LW(&p, K0, 0, K1);
+	if (htlb_info.need_reload_pte)
+		UASM_i_LW(&p, htlb_info.huge_pte, 0, K1);
 	build_huge_update_entries(&p, htlb_info.huge_pte, K1);
 	build_huge_tlb_write_entry(&p, &l, &r, K0, tlb_random,
 				   htlb_info.restore_scratch);
arch/powerpc/kernel/entry_64.S +6 -0
index 5bbd1bc8c3b0..0905c8da90f1 100644
@@ -659,7 +659,13 @@ _GLOBAL(ret_from_except_lite)
 3:
 #endif
 	bl	save_nvgprs
+	/*
+	 * Use a non volatile GPR to save and restore our thread_info flags
+	 * across the call to restore_interrupts.
+	 */
+	mr	r30,r4
 	bl	restore_interrupts
+	mr	r4,r30
 	addi	r3,r1,STACK_FRAME_OVERHEAD
 	bl	do_notify_resume
 	b	ret_from_except
arch/powerpc/platforms/powernv/opal-lpc.c +59 -0

85 lines not on this page · raw message

arch/powerpc/platforms/pseries/dlpar.c +2 -2
index a2450b8a50a5..92eb35ed4b9e 100644
@@ -379,7 +379,7 @@ static int dlpar_online_cpu(struct device_node *dn)
 			BUG_ON(get_cpu_current_state(cpu)
 					!= CPU_STATE_OFFLINE);
 			cpu_maps_update_done();
-			rc = cpu_up(cpu);
+			rc = device_online(get_cpu_device(cpu));
 			if (rc)
 				goto out;
 			cpu_maps_update_begin();
@@ -462,7 +462,7 @@ static int dlpar_offline_cpu(struct device_node *dn)
 			if (get_cpu_current_state(cpu) == CPU_STATE_ONLINE) {
 				set_preferred_offline_state(cpu, CPU_STATE_OFFLINE);
 				cpu_maps_update_done();
-				rc = cpu_down(cpu);
+				rc = device_offline(get_cpu_device(cpu));
 				if (rc)
 					goto out;
 				cpu_maps_update_begin();
arch/s390/kernel/topology.c +10 -8
index 355a16c55702..b93bed76ea94 100644
@@ -464,15 +464,17 @@ static struct sched_domain_topology_level s390_topology[] = {
 
 static int __init topology_init(void)
 {
-	if (!MACHINE_HAS_TOPOLOGY) {
+	if (MACHINE_HAS_TOPOLOGY)
+		set_topology_timer();
+	else
 		topology_update_polarization_simple();
-		goto out;
-	}
-	set_topology_timer();
-out:
-
-	set_sched_topology(s390_topology);
-
 	return device_create_file(cpu_subsys.dev_root, &dev_attr_dispatching);
 }
 device_initcall(topology_init);
+
+static int __init early_topology_init(void)
+{
+	set_sched_topology(s390_topology);
+	return 0;
+}
+early_initcall(early_topology_init);
arch/sh/kernel/cpu/sh3/setup-sh770x.c +3 -3
index 9139d14b9c53..538c10db3537 100644
@@ -118,7 +118,7 @@ static struct plat_sci_port scif0_platform_data = {
 };
 
 static struct resource scif0_resources[] = {
-	DEFINE_RES_MEM(0xfffffe80, 0x100),
+	DEFINE_RES_MEM(0xfffffe80, 0x10),
 	DEFINE_RES_IRQ(evt2irq(0x4e0)),
 };
 
@@ -143,7 +143,7 @@ static struct plat_sci_port scif1_platform_data = {
 };
 
 static struct resource scif1_resources[] = {
-	DEFINE_RES_MEM(0xa4000150, 0x100),
+	DEFINE_RES_MEM(0xa4000150, 0x10),
 	DEFINE_RES_IRQ(evt2irq(0x900)),
 };
 
@@ -169,7 +169,7 @@ static struct plat_sci_port scif2_platform_data = {
 };
 
 static struct resource scif2_resources[] = {
-	DEFINE_RES_MEM(0xa4000140, 0x100),
+	DEFINE_RES_MEM(0xa4000140, 0x10),
 	DEFINE_RES_IRQ(evt2irq(0x880)),
 };
 
arch/um/drivers/ubd_kern.c +3 -2
index 3716e6952554..e8ab93c3e638 100644
@@ -1277,7 +1277,7 @@ static void do_ubd_request(struct request_queue *q)
 
 	while(1){
 		struct ubd *dev = q->queuedata;
-		if(dev->end_sg == 0){
+		if(dev->request == NULL){
 			struct request *req = blk_fetch_request(q);
 			if(req == NULL)
 				return;
@@ -1299,7 +1299,8 @@ static void do_ubd_request(struct request_queue *q)
 				return;
 			}
 			prepare_flush_request(req, io_req);
-			submit_request(io_req, dev);
+			if (submit_request(io_req, dev) == false)
+				return;
 		}
 
 		while(dev->start_sg < dev->end_sg){
arch/x86/ia32/ia32entry.S +17 -1
index 4299eb05023c..92a2e9333620 100644
@@ -151,6 +151,16 @@ ENTRY(ia32_sysenter_target)
 1:	movl	(%rbp),%ebp
 	_ASM_EXTABLE(1b,ia32_badarg)
 	ASM_CLAC
+
+	/*
+	 * Sysenter doesn't filter flags, so we need to clear NT
+	 * ourselves.  To save a few cycles, we can check whether
+	 * NT was set instead of doing an unconditional popfq.
+	 */
+	testl $X86_EFLAGS_NT,EFLAGS-ARGOFFSET(%rsp)
+	jnz sysenter_fix_flags
+sysenter_flags_fixed:
+
 	orl     $TS_COMPAT,TI_status+THREAD_INFO(%rsp,RIP-ARGOFFSET)
 	testl   $_TIF_WORK_SYSCALL_ENTRY,TI_flags+THREAD_INFO(%rsp,RIP-ARGOFFSET)
 	CFI_REMEMBER_STATE
@@ -184,6 +194,8 @@ sysexit_from_sys_call:
 	TRACE_IRQS_ON
 	ENABLE_INTERRUPTS_SYSEXIT32
 
+	CFI_RESTORE_STATE
+
 #ifdef CONFIG_AUDITSYSCALL
 	.macro auditsys_entry_common
 	movl %esi,%r9d			/* 6th arg: 4th syscall arg */
@@ -226,7 +238,6 @@ sysexit_from_sys_call:
 	.endm
 
 sysenter_auditsys:
-	CFI_RESTORE_STATE
 	auditsys_entry_common
 	movl %ebp,%r9d			/* reload 6th syscall arg */
 	jmp sysenter_dispatch
@@ -235,6 +246,11 @@ sysexit_audit:
 	auditsys_exit sysexit_from_sys_call
 #endif
 
+sysenter_fix_flags:
+	pushq_cfi $(X86_EFLAGS_IF|X86_EFLAGS_FIXED)
+	popfq_cfi
+	jmp sysenter_flags_fixed
+
 sysenter_tracesys:
 #ifdef CONFIG_AUDITSYSCALL
 	testl	$(_TIF_WORK_SYSCALL_ENTRY & ~_TIF_SYSCALL_AUDIT),TI_flags+THREAD_INFO(%rsp,RIP-ARGOFFSET)
arch/x86/include/asm/elf.h +3 -2
index 1a055c81d864..ca3347a9dab5 100644
@@ -160,8 +160,9 @@ do {						\
 #define elf_check_arch(x)			\
 	((x)->e_machine == EM_X86_64)
 
-#define compat_elf_check_arch(x)		\
-	(elf_check_arch_ia32(x) || (x)->e_machine == EM_X86_64)
+#define compat_elf_check_arch(x)					\
+	(elf_check_arch_ia32(x) ||					\
+	 (IS_ENABLED(CONFIG_X86_X32_ABI) && (x)->e_machine == EM_X86_64))
 
 #if __USER32_DS != __USER_DS
 # error "The following code assumes __USER32_DS == __USER_DS"
arch/x86/include/asm/kvm_host.h +15 -1
index 92d3486a6196..0d47ae116a36 100644
@@ -991,6 +991,20 @@ static inline void kvm_inject_gp(struct kvm_vcpu *vcpu, u32 error_code)
 	kvm_queue_exception_e(vcpu, GP_VECTOR, error_code);
 }
 
+static inline u64 get_canonical(u64 la)
+{
+	return ((int64_t)la << 16) >> 16;
+}
+
+static inline bool is_noncanonical_address(u64 la)
+{
+#ifdef CONFIG_X86_64
+	return get_canonical(la) != la;
+#else
+	return false;
+#endif
+}
+
 #define TSS_IOPB_BASE_OFFSET 0x66
 #define TSS_BASE_SIZE 0x68
 #define TSS_IOPB_SIZE (65536 / 8)
@@ -1049,7 +1063,7 @@ int kvm_cpu_get_interrupt(struct kvm_vcpu *v);
 void kvm_vcpu_reset(struct kvm_vcpu *vcpu);
 
 void kvm_define_shared_msr(unsigned index, u32 msr);
-void kvm_set_shared_msr(unsigned index, u64 val, u64 mask);
+int kvm_set_shared_msr(unsigned index, u64 val, u64 mask);
 
 bool kvm_is_linear_rip(struct kvm_vcpu *vcpu, unsigned long linear_rip);
 
arch/x86/include/uapi/asm/vmx.h +2 -0
index 0e79420376eb..990a2fe1588d 100644
@@ -67,6 +67,7 @@
 #define EXIT_REASON_EPT_MISCONFIG       49
 #define EXIT_REASON_INVEPT              50
 #define EXIT_REASON_PREEMPTION_TIMER    52
+#define EXIT_REASON_INVVPID             53
 #define EXIT_REASON_WBINVD              54
 #define EXIT_REASON_XSETBV              55
 #define EXIT_REASON_APIC_WRITE          56
@@ -114,6 +115,7 @@
 	{ EXIT_REASON_EOI_INDUCED,           "EOI_INDUCED" }, \
 	{ EXIT_REASON_INVALID_STATE,         "INVALID_STATE" }, \
 	{ EXIT_REASON_INVD,                  "INVD" }, \
+	{ EXIT_REASON_INVVPID,               "INVVPID" }, \
 	{ EXIT_REASON_INVPCID,               "INVPCID" }
 
 #endif /* _UAPIVMX_H */
arch/x86/kernel/acpi/boot.c +10 -6
index b436fc735aa4..a142e77693e1 100644
@@ -397,7 +397,7 @@ static int mp_register_gsi(struct device *dev, u32 gsi, int trigger,
 
 	/* Don't set up the ACPI SCI because it's already set up */
 	if (acpi_gbl_FADT.sci_interrupt == gsi)
-		return gsi;
+		return mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC);
 
 	trigger = trigger == ACPI_EDGE_SENSITIVE ? 0 : 1;
 	polarity = polarity == ACPI_ACTIVE_HIGH ? 0 : 1;
@@ -604,14 +604,18 @@ void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger)
 
 int acpi_gsi_to_irq(u32 gsi, unsigned int *irqp)
 {
-	int irq = mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC | IOAPIC_MAP_CHECK);
+	int irq;
 
-	if (irq >= 0) {
+	if (acpi_irq_model == ACPI_IRQ_MODEL_PIC) {
+		*irqp = gsi;
+	} else {
+		irq = mp_map_gsi_to_irq(gsi,
+					IOAPIC_MAP_ALLOC | IOAPIC_MAP_CHECK);
+		if (irq < 0)
+			return -1;
 		*irqp = irq;
-		return 0;
 	}
-
-	return -1;
+	return 0;
 }
 EXPORT_SYMBOL_GPL(acpi_gsi_to_irq);
 
arch/x86/kernel/apb_timer.c +0 -2
index af5b08ab3b71..7c3832424168 100644
@@ -185,8 +185,6 @@ static void apbt_setup_irq(struct apbt_dev *adev)
 
 	irq_modify_status(adev->irq, 0, IRQ_MOVE_PCNTXT);
 	irq_set_affinity(adev->irq, cpumask_of(adev->cpu));
-	/* APB timer irqs are set up as mp_irqs, timer is edge type */
-	__irq_set_handler(adev->irq, handle_edge_irq, 0, "edge");
 }
 
 /* Should be called with per cpu */
arch/x86/kernel/apic/apic.c +2 -2
index 67760275544b..24b5894396a0 100644
@@ -1297,7 +1297,7 @@ void setup_local_APIC(void)
 	unsigned int value, queued;
 	int i, j, acked = 0;
 	unsigned long long tsc = 0, ntsc;
-	long long max_loops = cpu_khz;
+	long long max_loops = cpu_khz ? cpu_khz : 1000000;
 
 	if (cpu_has_tsc)
 		rdtscll(tsc);
@@ -1383,7 +1383,7 @@ void setup_local_APIC(void)
 			break;
 		}
 		if (queued) {
-			if (cpu_has_tsc) {
+			if (cpu_has_tsc && cpu_khz) {
 				rdtscll(ntsc);
 				max_loops = (cpu_khz << 10) - (ntsc - tsc);
 			} else
arch/x86/kernel/cpu/common.c +1 -1
index e4ab2b42bd6f..31265580c38a 100644
@@ -1184,7 +1184,7 @@ void syscall_init(void)
 	/* Flags to clear on syscall */
 	wrmsrl(MSR_SYSCALL_MASK,
 	       X86_EFLAGS_TF|X86_EFLAGS_DF|X86_EFLAGS_IF|
-	       X86_EFLAGS_IOPL|X86_EFLAGS_AC);
+	       X86_EFLAGS_IOPL|X86_EFLAGS_AC|X86_EFLAGS_NT);
 }
 
 /*
arch/x86/kernel/cpu/intel.c +16 -1
index 50ce7519ccef..1ef456273172 100644
@@ -397,6 +397,13 @@ static void init_intel(struct cpuinfo_x86 *c)
 	}
 
 	l2 = init_intel_cacheinfo(c);
+
+	/* Detect legacy cache sizes if init_intel_cacheinfo did not */
+	if (l2 == 0) {
+		cpu_detect_cache_sizes(c);
+		l2 = c->x86_cache_size;
+	}
+
 	if (c->cpuid_level > 9) {
 		unsigned eax = cpuid_eax(10);
 		/* Check for version and the number of counters */
@@ -500,6 +507,13 @@ static unsigned int intel_size_cache(struct cpuinfo_x86 *c, unsigned int size)
 	 */
 	if ((c->x86 == 6) && (c->x86_model == 11) && (size == 0))
 		size = 256;
+
+	/*
+	 * Intel Quark SoC X1000 contains a 4-way set associative
+	 * 16K cache with a 16 byte cache line and 256 lines per tag
+	 */
+	if ((c->x86 == 5) && (c->x86_model == 9))
+		size = 16;
 	return size;
 }
 #endif
@@ -701,7 +715,8 @@ static const struct cpu_dev intel_cpu_dev = {
 			  [3] = "OverDrive PODP5V83",
 			  [4] = "Pentium MMX",
 			  [7] = "Mobile Pentium 75 - 200",
-			  [8] = "Mobile Pentium MMX"
+			  [8] = "Mobile Pentium MMX",
+			  [9] = "Quark SoC X1000",
 		  }
 		},
 		{ .family = 6, .model_names =
arch/x86/kernel/iosf_mbi.c +2 -0
index 9030e83db6ee..c957e11a2d0f 100644
@@ -26,6 +26,7 @@
 #include <asm/iosf_mbi.h>
 
 #define PCI_DEVICE_ID_BAYTRAIL		0x0F00
+#define PCI_DEVICE_ID_BRASWELL		0x2280
 #define PCI_DEVICE_ID_QUARK_X1000	0x0958
 
 static DEFINE_SPINLOCK(iosf_mbi_lock);
@@ -204,6 +205,7 @@ static int iosf_mbi_probe(struct pci_dev *pdev,
 
 static const struct pci_device_id iosf_mbi_pci_ids[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_BAYTRAIL) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_BRASWELL) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_QUARK_X1000) },
 	{ 0, },
 };
arch/x86/kernel/signal.c +5 -0
index 2851d63c1202..ed37a768d0fc 100644
@@ -675,6 +675,11 @@ handle_signal(struct ksignal *ksig, struct pt_regs *regs)
 		 * handler too.
 		 */
 		regs->flags &= ~(X86_EFLAGS_DF|X86_EFLAGS_RF|X86_EFLAGS_TF);
+		/*
+		 * Ensure the signal handler starts with the new fpu state.
+		 */
+		if (used_math())
+			drop_init_fpu(current);
 	}
 	signal_setup_done(failed, ksig, test_thread_flag(TIF_SINGLESTEP));
 }
arch/x86/kernel/tsc.c +4 -1
index b6025f9e36c6..b7e50bba3bbb 100644
@@ -1166,14 +1166,17 @@ void __init tsc_init(void)
 
 	x86_init.timers.tsc_pre_init();
 
-	if (!cpu_has_tsc)
+	if (!cpu_has_tsc) {
+		setup_clear_cpu_cap(X86_FEATURE_TSC_DEADLINE_TIMER);
 		return;
+	}
 
 	tsc_khz = x86_platform.calibrate_tsc();
 	cpu_khz = tsc_khz;
 
 	if (!tsc_khz) {
 		mark_tsc_unstable("could not calculate TSC khz");
+		setup_clear_cpu_cap(X86_FEATURE_TSC_DEADLINE_TIMER);
 		return;
 	}
 
arch/x86/kernel/xsave.c +4 -3
index 940b142cc11f..4c540c4719d8 100644
@@ -271,8 +271,6 @@ int save_xstate_sig(void __user *buf, void __user *buf_fx, int size)
 	if (use_fxsr() && save_xstate_epilog(buf_fx, ia32_fxstate))
 		return -1;
 
-	drop_init_fpu(tsk);	/* trigger finit */
-
 	return 0;
 }
 
@@ -402,8 +400,11 @@ int __restore_xstate_sig(void __user *buf, void __user *buf_fx, int size)
 			set_used_math();
 		}
 
-		if (use_eager_fpu())
+		if (use_eager_fpu()) {
+			preempt_disable();
 			math_state_restore();
+			preempt_enable();
+		}
 
 		return err;
 	} else {
arch/x86/kvm/emulate.c +221 -74

595 lines not on this page · raw message

arch/x86/kvm/i8254.c +2 -0
index 518d86471b76..298781d4cfb4 100644
@@ -262,8 +262,10 @@ void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu)
 		return;
 
 	timer = &pit->pit_state.timer;
+	mutex_lock(&pit->pit_state.lock);
 	if (hrtimer_cancel(timer))
 		hrtimer_start_expires(timer, HRTIMER_MODE_ABS);
+	mutex_unlock(&pit->pit_state.lock);
 }
 
 static void destroy_pit_timer(struct kvm_pit *pit)
arch/x86/kvm/svm.c +4 -4
index ddf742768ecf..78dadc36fc78 100644
@@ -3234,7 +3234,7 @@ static int wrmsr_interception(struct vcpu_svm *svm)
 	msr.host_initiated = false;
 
 	svm->next_rip = kvm_rip_read(&svm->vcpu) + 2;
-	if (svm_set_msr(&svm->vcpu, &msr)) {
+	if (kvm_set_msr(&svm->vcpu, &msr)) {
 		trace_kvm_msr_write_ex(ecx, data);
 		kvm_inject_gp(&svm->vcpu, 0);
 	} else {
@@ -3534,9 +3534,9 @@ static int handle_exit(struct kvm_vcpu *vcpu)
 
 	if (exit_code >= ARRAY_SIZE(svm_exit_handlers)
 	    || !svm_exit_handlers[exit_code]) {
-		kvm_run->exit_reason = KVM_EXIT_UNKNOWN;
-		kvm_run->hw.hardware_exit_reason = exit_code;
-		return 0;
+		WARN_ONCE(1, "vmx: unexpected exit reason 0x%x\n", exit_code);
+		kvm_queue_exception(vcpu, UD_VECTOR);
+		return 1;
 	}
 
 	return svm_exit_handlers[exit_code](svm);
arch/x86/kvm/vmx.c +17 -7
index 6a118fa378b5..41a5426c8edb 100644
@@ -2632,12 +2632,15 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
 	default:
 		msr = find_msr_entry(vmx, msr_index);
 		if (msr) {
+			u64 old_msr_data = msr->data;
 			msr->data = data;
 			if (msr - vmx->guest_msrs < vmx->save_nmsrs) {
 				preempt_disable();
-				kvm_set_shared_msr(msr->index, msr->data,
-						   msr->mask);
+				ret = kvm_set_shared_msr(msr->index, msr->data,
+							 msr->mask);
 				preempt_enable();
+				if (ret)
+					msr->data = old_msr_data;
 			}
 			break;
 		}
@@ -5263,7 +5266,7 @@ static int handle_wrmsr(struct kvm_vcpu *vcpu)
 	msr.data = data;
 	msr.index = ecx;
 	msr.host_initiated = false;
-	if (vmx_set_msr(vcpu, &msr) != 0) {
+	if (kvm_set_msr(vcpu, &msr) != 0) {
 		trace_kvm_msr_write_ex(ecx, data);
 		kvm_inject_gp(vcpu, 0);
 		return 1;
@@ -6636,6 +6639,12 @@ static int handle_invept(struct kvm_vcpu *vcpu)
 	return 1;
 }
 
+static int handle_invvpid(struct kvm_vcpu *vcpu)
+{
+	kvm_queue_exception(vcpu, UD_VECTOR);
+	return 1;
+}
+
 /*
  * The exit handlers return 1 if the exit was handled fully and guest execution
  * may resume.  Otherwise they set the kvm_run parameter to indicate what needs
@@ -6681,6 +6690,7 @@ static int (*const kvm_vmx_exit_handlers[])(struct kvm_vcpu *vcpu) = {
 	[EXIT_REASON_MWAIT_INSTRUCTION]	      = handle_mwait,
 	[EXIT_REASON_MONITOR_INSTRUCTION]     = handle_monitor,
 	[EXIT_REASON_INVEPT]                  = handle_invept,
+	[EXIT_REASON_INVVPID]                 = handle_invvpid,
 };
 
 static const int kvm_vmx_max_exit_handlers =
@@ -6914,7 +6924,7 @@ static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu)
 	case EXIT_REASON_VMPTRST: case EXIT_REASON_VMREAD:
 	case EXIT_REASON_VMRESUME: case EXIT_REASON_VMWRITE:
 	case EXIT_REASON_VMOFF: case EXIT_REASON_VMON:
-	case EXIT_REASON_INVEPT:
+	case EXIT_REASON_INVEPT: case EXIT_REASON_INVVPID:
 		/*
 		 * VMX instructions trap unconditionally. This allows L1 to
 		 * emulate them for its L2 guest, i.e., allows 3-level nesting!
@@ -7055,10 +7065,10 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu)
 	    && kvm_vmx_exit_handlers[exit_reason])
 		return kvm_vmx_exit_handlers[exit_reason](vcpu);
 	else {
-		vcpu->run->exit_reason = KVM_EXIT_UNKNOWN;
-		vcpu->run->hw.hardware_exit_reason = exit_reason;
+		WARN_ONCE(1, "vmx: unexpected exit reason 0x%x\n", exit_reason);
+		kvm_queue_exception(vcpu, UD_VECTOR);
+		return 1;
 	}
-	return 0;
 }
 
 static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr)
arch/x86/kvm/x86.c +34 -4
index 8f1e22d3b286..9d292e8372d6 100644
@@ -229,20 +229,25 @@ static void kvm_shared_msr_cpu_online(void)
 		shared_msr_update(i, shared_msrs_global.msrs[i]);
 }
 
-void kvm_set_shared_msr(unsigned slot, u64 value, u64 mask)
+int kvm_set_shared_msr(unsigned slot, u64 value, u64 mask)
 {
 	unsigned int cpu = smp_processor_id();
 	struct kvm_shared_msrs *smsr = per_cpu_ptr(shared_msrs, cpu);
+	int err;
 
 	if (((value ^ smsr->values[slot].curr) & mask) == 0)
-		return;
+		return 0;
 	smsr->values[slot].curr = value;
-	wrmsrl(shared_msrs_global.msrs[slot], value);
+	err = wrmsrl_safe(shared_msrs_global.msrs[slot], value);
+	if (err)
+		return 1;
+
 	if (!smsr->registered) {
 		smsr->urn.on_user_return = kvm_on_user_return;
 		user_return_notifier_register(&smsr->urn);
 		smsr->registered = true;
 	}
+	return 0;
 }
 EXPORT_SYMBOL_GPL(kvm_set_shared_msr);
 
@@ -984,7 +989,6 @@ void kvm_enable_efer_bits(u64 mask)
 }
 EXPORT_SYMBOL_GPL(kvm_enable_efer_bits);
 
-
 /*
  * Writes msr value into into the appropriate "register".
  * Returns 0 on success, non-0 otherwise.
@@ -992,8 +996,34 @@ EXPORT_SYMBOL_GPL(kvm_enable_efer_bits);
  */
 int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr)
 {
+	switch (msr->index) {
+	case MSR_FS_BASE:
+	case MSR_GS_BASE:
+	case MSR_KERNEL_GS_BASE:
+	case MSR_CSTAR:
+	case MSR_LSTAR:
+		if (is_noncanonical_address(msr->data))
+			return 1;
+		break;
+	case MSR_IA32_SYSENTER_EIP:
+	case MSR_IA32_SYSENTER_ESP:
+		/*
+		 * IA32_SYSENTER_ESP and IA32_SYSENTER_EIP cause #GP if
+		 * non-canonical address is written on Intel but not on
+		 * AMD (which ignores the top 32-bits, because it does
+		 * not implement 64-bit SYSENTER).
+		 *
+		 * 64-bit code should hence be able to write a non-canonical
+		 * value on AMD.  Making the address canonical ensures that
+		 * vmentry does not fail on Intel after writing a non-canonical
+		 * value, and that something deterministic happens if the guest
+		 * invokes 64-bit SYSENTER.
+		 */
+		msr->data = get_canonical(msr->data);
+	}
 	return kvm_x86_ops->set_msr(vcpu, msr);
 }
+EXPORT_SYMBOL_GPL(kvm_set_msr);
 
 /*
  * Adapt set_msr() to msr_io()'s calling convention
arch/x86/mm/pageattr.c +1 -1
index ae242a7c11c7..36de293caf25 100644
@@ -409,7 +409,7 @@ phys_addr_t slow_virt_to_phys(void *__virt_addr)
 	psize = page_level_size(level);
 	pmask = page_level_mask(level);
 	offset = virt_addr & ~pmask;
-	phys_addr = pte_pfn(*pte) << PAGE_SHIFT;
+	phys_addr = (phys_addr_t)pte_pfn(*pte) << PAGE_SHIFT;
 	return (phys_addr | offset);
 }
 EXPORT_SYMBOL_GPL(slow_virt_to_phys);
arch/x86/net/bpf_jit_comp.c +19 -6
index 5c8cb8043c5a..c881ba8491e5 100644
@@ -211,12 +211,17 @@ struct jit_context {
 	bool seen_ld_abs;
 };
 
+/* maximum number of bytes emitted while JITing one eBPF insn */
+#define BPF_MAX_INSN_SIZE	128
+#define BPF_INSN_SAFETY		64
+
 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image,
 		  int oldproglen, struct jit_context *ctx)
 {
 	struct bpf_insn *insn = bpf_prog->insnsi;
 	int insn_cnt = bpf_prog->len;
-	u8 temp[64];
+	bool seen_ld_abs = ctx->seen_ld_abs | (oldproglen == 0);
+	u8 temp[BPF_MAX_INSN_SIZE + BPF_INSN_SAFETY];
 	int i;
 	int proglen = 0;
 	u8 *prog = temp;
@@ -254,7 +259,7 @@ static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image,
 	EMIT2(0x31, 0xc0); /* xor eax, eax */
 	EMIT3(0x4D, 0x31, 0xED); /* xor r13, r13 */
 
-	if (ctx->seen_ld_abs) {
+	if (seen_ld_abs) {
 		/* r9d : skb->len - skb->data_len (headlen)
 		 * r10 : skb->data
 		 */
@@ -655,7 +660,7 @@ xadd:			if (is_imm8(insn->off))
 		case BPF_JMP | BPF_CALL:
 			func = (u8 *) __bpf_call_base + imm32;
 			jmp_offset = func - (image + addrs[i]);
-			if (ctx->seen_ld_abs) {
+			if (seen_ld_abs) {
 				EMIT2(0x41, 0x52); /* push %r10 */
 				EMIT2(0x41, 0x51); /* push %r9 */
 				/* need to adjust jmp offset, since
@@ -669,7 +674,7 @@ xadd:			if (is_imm8(insn->off))
 				return -EINVAL;
 			}
 			EMIT1_off32(0xE8, jmp_offset);
-			if (ctx->seen_ld_abs) {
+			if (seen_ld_abs) {
 				EMIT2(0x41, 0x59); /* pop %r9 */
 				EMIT2(0x41, 0x5A); /* pop %r10 */
 			}
@@ -774,7 +779,8 @@ emit_jmp:
 			goto common_load;
 		case BPF_LD | BPF_ABS | BPF_W:
 			func = CHOOSE_LOAD_FUNC(imm32, sk_load_word);
-common_load:		ctx->seen_ld_abs = true;
+common_load:
+			ctx->seen_ld_abs = seen_ld_abs = true;
 			jmp_offset = func - (image + addrs[i]);
 			if (!func || !is_simm32(jmp_offset)) {
 				pr_err("unsupported bpf func %d addr %p image %p\n",
@@ -848,6 +854,11 @@ common_load:		ctx->seen_ld_abs = true;
 		}
 
 		ilen = prog - temp;
+		if (ilen > BPF_MAX_INSN_SIZE) {
+			pr_err("bpf_jit_compile fatal insn size error\n");
+			return -EFAULT;
+		}
+
 		if (image) {
 			if (unlikely(proglen + ilen > oldproglen)) {
 				pr_err("bpf_jit_compile fatal error\n");
@@ -904,9 +915,11 @@ void bpf_int_jit_compile(struct bpf_prog *prog)
 			goto out;
 		}
 		if (image) {
-			if (proglen != oldproglen)
+			if (proglen != oldproglen) {
 				pr_err("bpf_jit: proglen=%d != oldproglen=%d\n",
 				       proglen, oldproglen);
+				goto out;
+			}
 			break;
 		}
 		if (proglen == oldproglen) {
arch/x86/platform/intel-mid/sfi.c +2 -0
index 3c53a90fdb18..c14ad34776c4 100644
@@ -106,6 +106,7 @@ int __init sfi_parse_mtmr(struct sfi_table_header *table)
 			mp_irq.dstapic = MP_APIC_ALL;
 			mp_irq.dstirq = pentry->irq;
 			mp_save_irq(&mp_irq);
+			mp_map_gsi_to_irq(pentry->irq, IOAPIC_MAP_ALLOC);
 	}
 
 	return 0;
@@ -176,6 +177,7 @@ int __init sfi_parse_mrtc(struct sfi_table_header *table)
 		mp_irq.dstapic = MP_APIC_ALL;
 		mp_irq.dstirq = pentry->irq;
 		mp_save_irq(&mp_irq);
+		mp_map_gsi_to_irq(pentry->irq, IOAPIC_MAP_ALLOC);
 	}
 	return 0;
 }
block/blk-mq-tag.c +2 -2
index c1b92426c95e..74a4168ea34e 100644
@@ -463,8 +463,8 @@ static void bt_update_count(struct blk_mq_bitmap_tags *bt,
 	}
 
 	bt->wake_cnt = BT_WAIT_BATCH;
-	if (bt->wake_cnt > depth / 4)
-		bt->wake_cnt = max(1U, depth / 4);
+	if (bt->wake_cnt > depth / BT_WAIT_QUEUES)
+		bt->wake_cnt = max(1U, depth / BT_WAIT_QUEUES);
 
 	bt->depth = depth;
 }
block/blk-settings.c +2 -2
index f1a1795a5683..aa02247d227e 100644
@@ -574,7 +574,7 @@ int blk_stack_limits(struct queue_limits *t, struct queue_limits *b,
 		bottom = max(b->physical_block_size, b->io_min) + alignment;
 
 		/* Verify that top and bottom intervals line up */
-		if (max(top, bottom) & (min(top, bottom) - 1)) {
+		if (max(top, bottom) % min(top, bottom)) {
 			t->misaligned = 1;
 			ret = -1;
 		}
@@ -619,7 +619,7 @@ int blk_stack_limits(struct queue_limits *t, struct queue_limits *b,
 
 	/* Find lowest common alignment_offset */
 	t->alignment_offset = lcm(t->alignment_offset, alignment)
-		& (max(t->physical_block_size, t->io_min) - 1);
+		% max(t->physical_block_size, t->io_min);
 
 	/* Verify that new alignment_offset is on a logical block boundary */
 	if (t->alignment_offset & (t->logical_block_size - 1)) {
block/scsi_ioctl.c +1 -2
index 9b8eaeca6a79..a6d6270806c3 100644
@@ -509,7 +509,7 @@ int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, fmode_t mode,
 
 	if (bytes && blk_rq_map_kern(q, rq, buffer, bytes, __GFP_WAIT)) {
 		err = DRIVER_ERROR << 24;
-		goto out;
+		goto error;
 	}
 
 	memset(sense, 0, sizeof(sense));
@@ -518,7 +518,6 @@ int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, fmode_t mode,
 
 	blk_execute_rq(q, disk, rq, 0);
 
-out:
 	err = rq->errors & 0xff;	/* only 8 bit SCSI status */
 	if (err) {
 		if (rq->sense_len && rq->sense) {
crypto/algif_skcipher.c +1 -1
index a19c027b29bd..83187f497c7c 100644
@@ -49,7 +49,7 @@ struct skcipher_ctx {
 	struct ablkcipher_request req;
 };
 
-#define MAX_SGL_ENTS ((PAGE_SIZE - sizeof(struct skcipher_sg_list)) / \
+#define MAX_SGL_ENTS ((4096 - sizeof(struct skcipher_sg_list)) / \
 		      sizeof(struct scatterlist) - 1)
 
 static inline int skcipher_sndbuf(struct sock *sk)
drivers/acpi/device_pm.c +1 -1
index 67075f800e34..5e9cbd664286 100644
@@ -710,7 +710,7 @@ int acpi_pm_device_run_wake(struct device *phys_dev, bool enable)
 		return -ENODEV;
 	}
 
-	return acpi_device_wakeup(adev, enable, ACPI_STATE_S0);
+	return acpi_device_wakeup(adev, ACPI_STATE_S0, enable);
 }
 EXPORT_SYMBOL(acpi_pm_device_run_wake);
 #endif /* CONFIG_PM_RUNTIME */
drivers/acpi/ec.c +18 -7
index cb6066c809ea..c874859b4565 100644
@@ -126,6 +126,7 @@ static int EC_FLAGS_MSI; /* Out-of-spec MSI controller */
 static int EC_FLAGS_VALIDATE_ECDT; /* ASUStec ECDTs need to be validated */
 static int EC_FLAGS_SKIP_DSDT_SCAN; /* Not all BIOS survive early DSDT scan */
 static int EC_FLAGS_CLEAR_ON_RESUME; /* Needs acpi_ec_clear() on boot/resume */
+static int EC_FLAGS_QUERY_HANDSHAKE; /* Needs QR_EC issued when SCI_EVT set */
 
 /* --------------------------------------------------------------------------
                              Transaction Management
@@ -210,13 +211,8 @@ static bool advance_transaction(struct acpi_ec *ec)
 		}
 		return wakeup;
 	} else {
-		/*
-		 * There is firmware refusing to respond QR_EC when SCI_EVT
-		 * is not set, for which case, we complete the QR_EC
-		 * without issuing it to the firmware.
-		 * https://bugzilla.kernel.org/show_bug.cgi?id=86211
-		 */
-		if (!(status & ACPI_EC_FLAG_SCI) &&
+		if (EC_FLAGS_QUERY_HANDSHAKE &&
+		    !(status & ACPI_EC_FLAG_SCI) &&
 		    (t->command == ACPI_EC_COMMAND_QUERY)) {
 			t->flags |= ACPI_EC_COMMAND_POLL;
 			t->rdata[t->ri++] = 0x00;
@@ -981,6 +977,18 @@ static int ec_enlarge_storm_threshold(const struct dmi_system_id *id)
 }
 
 /*
+ * Acer EC firmware refuses to respond QR_EC when SCI_EVT is not set, for
+ * which case, we complete the QR_EC without issuing it to the firmware.
+ * https://bugzilla.kernel.org/show_bug.cgi?id=86211
+ */
+static int ec_flag_query_handshake(const struct dmi_system_id *id)
+{
+	pr_debug("Detected the EC firmware requiring QR_EC issued when SCI_EVT set\n");
+	EC_FLAGS_QUERY_HANDSHAKE = 1;
+	return 0;
+}
+
+/*
  * On some hardware it is necessary to clear events accumulated by the EC during
  * sleep. These ECs stop reporting GPEs until they are manually polled, if too
  * many events are accumulated. (e.g. Samsung Series 5/9 notebooks)
@@ -1054,6 +1062,9 @@ static struct dmi_system_id ec_dmi_table[] __initdata = {
 	{
 	ec_clear_on_resume, "Samsung hardware", {
 	DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD.")}, NULL},
+	{
+	ec_flag_query_handshake, "Acer hardware", {
+	DMI_MATCH(DMI_SYS_VENDOR, "Acer"), }, NULL},
 	{},
 };
 
drivers/ata/libata-sff.c +9 -11
index 1121153f1ecd..db90aa35cb71 100644
@@ -2008,13 +2008,15 @@ static int ata_bus_softreset(struct ata_port *ap, unsigned int devmask,
 
 	DPRINTK("ata%u: bus reset via SRST\n", ap->print_id);
 
-	/* software reset.  causes dev0 to be selected */
-	iowrite8(ap->ctl, ioaddr->ctl_addr);
-	udelay(20);	/* FIXME: flush */
-	iowrite8(ap->ctl | ATA_SRST, ioaddr->ctl_addr);
-	udelay(20);	/* FIXME: flush */
-	iowrite8(ap->ctl, ioaddr->ctl_addr);
-	ap->last_ctl = ap->ctl;
+	if (ap->ioaddr.ctl_addr) {
+		/* software reset.  causes dev0 to be selected */
+		iowrite8(ap->ctl, ioaddr->ctl_addr);
+		udelay(20);	/* FIXME: flush */
+		iowrite8(ap->ctl | ATA_SRST, ioaddr->ctl_addr);
+		udelay(20);	/* FIXME: flush */
+		iowrite8(ap->ctl, ioaddr->ctl_addr);
+		ap->last_ctl = ap->ctl;
+	}
 
 	/* wait the port to become ready */
 	return ata_sff_wait_after_reset(&ap->link, devmask, deadline);
@@ -2215,10 +2217,6 @@ void ata_sff_error_handler(struct ata_port *ap)
 
 	spin_unlock_irqrestore(ap->lock, flags);
 
-	/* ignore ata_sff_softreset if ctl isn't accessible */
-	if (softreset == ata_sff_softreset && !ap->ioaddr.ctl_addr)
-		softreset = NULL;
-
 	/* ignore built-in hardresets if SCR access is not available */
 	if ((hardreset == sata_std_hardreset ||
 	     hardreset == sata_sff_hardreset) && !sata_scr_valid(&ap->link))
drivers/ata/pata_serverworks.c +11 -2
index fc5f31d4828e..57de02123c4c 100644
@@ -251,12 +251,18 @@ static void serverworks_set_dmamode(struct ata_port *ap, struct ata_device *adev
 	pci_write_config_byte(pdev, 0x54, ultra_cfg);
 }
 
-static struct scsi_host_template serverworks_sht = {
+static struct scsi_host_template serverworks_osb4_sht = {
+	ATA_BMDMA_SHT(DRV_NAME),
+	.sg_tablesize	= LIBATA_DUMB_MAX_PRD,
+};
+
+static struct scsi_host_template serverworks_csb_sht = {
 	ATA_BMDMA_SHT(DRV_NAME),
 };
 
 static struct ata_port_operations serverworks_osb4_port_ops = {
 	.inherits	= &ata_bmdma_port_ops,
+	.qc_prep	= ata_bmdma_dumb_qc_prep,
 	.cable_detect	= serverworks_cable_detect,
 	.mode_filter	= serverworks_osb4_filter,
 	.set_piomode	= serverworks_set_piomode,
@@ -265,6 +271,7 @@ static struct ata_port_operations serverworks_osb4_port_ops = {
 
 static struct ata_port_operations serverworks_csb_port_ops = {
 	.inherits	= &serverworks_osb4_port_ops,
+	.qc_prep	= ata_bmdma_qc_prep,
 	.mode_filter	= serverworks_csb_filter,
 };
 
@@ -404,6 +411,7 @@ static int serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id
 		}
 	};
 	const struct ata_port_info *ppi[] = { &info[id->driver_data], NULL };
+	struct scsi_host_template *sht = &serverworks_csb_sht;
 	int rc;
 
 	rc = pcim_enable_device(pdev);
@@ -417,6 +425,7 @@ static int serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id
 		/* Select non UDMA capable OSB4 if we can't do fixups */
 		if (rc < 0)
 			ppi[0] = &info[1];
+		sht = &serverworks_osb4_sht;
 	}
 	/* setup CSB5/CSB6 : South Bridge and IDE option RAID */
 	else if ((pdev->device == PCI_DEVICE_ID_SERVERWORKS_CSB5IDE) ||
@@ -433,7 +442,7 @@ static int serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id
 			ppi[1] = &ata_dummy_port_info;
 	}
 
-	return ata_pci_bmdma_init_one(pdev, ppi, &serverworks_sht, NULL, 0);
+	return ata_pci_bmdma_init_one(pdev, ppi, sht, NULL, 0);
 }
 
 #ifdef CONFIG_PM_SLEEP
drivers/base/core.c +3 -1
index 20da3ad1696b..0e9468cb814f 100644
@@ -724,12 +724,12 @@ class_dir_create_and_add(struct class *class, struct kobject *parent_kobj)
 	return &dir->kobj;
 }
 
+static DEFINE_MUTEX(gdp_mutex);
 
 static struct kobject *get_device_parent(struct device *dev,
 					 struct device *parent)
 {
 	if (dev->class) {
-		static DEFINE_MUTEX(gdp_mutex);
 		struct kobject *kobj = NULL;
 		struct kobject *parent_kobj;
 		struct kobject *k;
@@ -793,7 +793,9 @@ static void cleanup_glue_dir(struct device *dev, struct kobject *glue_dir)
 	    glue_dir->kset != &dev->class->p->glue_dirs)
 		return;
 
+	mutex_lock(&gdp_mutex);
 	kobject_put(glue_dir);
+	mutex_unlock(&gdp_mutex);
 }
 
 static void cleanup_device_parent(struct device *dev)
drivers/base/power/main.c +2 -0
index b67d9aef9fe4..ebc2f9decdda 100644
@@ -1266,6 +1266,8 @@ static int dpm_suspend_late(pm_message_t state)
 	}
 	mutex_unlock(&dpm_list_mtx);
 	async_synchronize_full();
+	if (!error)
+		error = async_error;
 	if (error) {
 		suspend_stats.failed_suspend_late++;
 		dpm_save_failed_step(SUSPEND_SUSPEND_LATE);
drivers/block/drbd/drbd_interval.c +4 -0
index 89c497c630b4..04a14e0f8878 100644
@@ -79,6 +79,7 @@ bool
 drbd_insert_interval(struct rb_root *root, struct drbd_interval *this)
 {
 	struct rb_node **new = &root->rb_node, *parent = NULL;
+	sector_t this_end = this->sector + (this->size >> 9);
 
 	BUG_ON(!IS_ALIGNED(this->size, 512));
 
@@ -87,6 +88,8 @@ drbd_insert_interval(struct rb_root *root, struct drbd_interval *this)
 			rb_entry(*new, struct drbd_interval, rb);
 
 		parent = *new;
+		if (here->end < this_end)
+			here->end = this_end;
 		if (this->sector < here->sector)
 			new = &(*new)->rb_left;
 		else if (this->sector > here->sector)
@@ -99,6 +102,7 @@ drbd_insert_interval(struct rb_root *root, struct drbd_interval *this)
 			return false;
 	}
 
+	this->end = this_end;
 	rb_link_node(&this->rb, parent, new);
 	rb_insert_augmented(&this->rb, root, &augment_callbacks);
 	return true;
drivers/block/rbd.c +3 -2
index 4b97baf8afa3..33f0f97d3750 100644
@@ -3382,7 +3382,7 @@ static int rbd_obj_read_sync(struct rbd_device *rbd_dev,
 	page_count = (u32) calc_pages_for(offset, length);
 	pages = ceph_alloc_page_vector(page_count, GFP_KERNEL);
 	if (IS_ERR(pages))
-		ret = PTR_ERR(pages);
+		return PTR_ERR(pages);
 
 	ret = -ENOMEM;
 	obj_request = rbd_obj_request_create(object_name, offset, length,
@@ -5087,7 +5087,8 @@ static int rbd_dev_device_setup(struct rbd_device *rbd_dev)
 	set_capacity(rbd_dev->disk, rbd_dev->mapping.size / SECTOR_SIZE);
 	set_disk_ro(rbd_dev->disk, rbd_dev->mapping.read_only);
 
-	rbd_dev->rq_wq = alloc_workqueue("%s", 0, 0, rbd_dev->disk->disk_name);
+	rbd_dev->rq_wq = alloc_workqueue("%s", WQ_MEM_RECLAIM, 0,
+					 rbd_dev->disk->disk_name);
 	if (!rbd_dev->rq_wq) {
 		ret = -ENOMEM;
 		goto err_out_mapping;
drivers/block/xen-blkback/blkback.c +1 -0
index 64c60edcdfbc..63fc7f06a014 100644
@@ -763,6 +763,7 @@ again:
 			BUG_ON(new_map_idx >= segs_to_map);
 			if (unlikely(map[new_map_idx].status != 0)) {
 				pr_debug(DRV_PFX "invalid buffer -- could not remap it\n");
+				put_free_pages(blkif, &pages[seg_idx]->page, 1);
 				pages[seg_idx]->handle = BLKBACK_INVALID_HANDLE;
 				ret |= 1;
 				goto next;
drivers/block/xen-blkback/xenbus.c +3 -3
index 3a8b810b4980..54f408963201 100644
@@ -270,6 +270,9 @@ static int xen_blkif_disconnect(struct xen_blkif *blkif)
 		blkif->blk_rings.common.sring = NULL;
 	}
 
+	/* Remove all persistent grants and the cache of ballooned pages. */
+	xen_blkbk_free_caches(blkif);
+
 	return 0;
 }
 
@@ -281,9 +284,6 @@ static void xen_blkif_free(struct xen_blkif *blkif)
 	xen_blkif_disconnect(blkif);
 	xen_vbd_free(&blkif->vbd);
 
-	/* Remove all persistent grants and the cache of ballooned pages. */
-	xen_blkbk_free_caches(blkif);
-
 	/* Make sure everything is drained before shutting down */
 	BUG_ON(blkif->persistent_gnt_c != 0);
 	BUG_ON(atomic_read(&blkif->persistent_gnt_in_use) != 0);
drivers/char/random.c +4 -4
index c18d41db83d8..8c86a95203a0 100644
@@ -1106,7 +1106,7 @@ static void extract_buf(struct entropy_store *r, __u8 *out)
 	__mix_pool_bytes(r, hash.w, sizeof(hash.w));
 	spin_unlock_irqrestore(&r->lock, flags);
 
-	memset(workspace, 0, sizeof(workspace));
+	memzero_explicit(workspace, sizeof(workspace));
 
 	/*
 	 * In case the hash function has some recognizable output
@@ -1118,7 +1118,7 @@ static void extract_buf(struct entropy_store *r, __u8 *out)
 	hash.w[2] ^= rol32(hash.w[2], 16);
 
 	memcpy(out, &hash, EXTRACT_SIZE);
-	memset(&hash, 0, sizeof(hash));
+	memzero_explicit(&hash, sizeof(hash));
 }
 
 /*
@@ -1175,7 +1175,7 @@ static ssize_t extract_entropy(struct entropy_store *r, void *buf,
 	}
 
 	/* Wipe data just returned from memory */
-	memset(tmp, 0, sizeof(tmp));
+	memzero_explicit(tmp, sizeof(tmp));
 
 	return ret;
 }
@@ -1218,7 +1218,7 @@ static ssize_t extract_entropy_user(struct entropy_store *r, void __user *buf,
 	}
 
 	/* Wipe data just returned from memory */
-	memset(tmp, 0, sizeof(tmp));
+	memzero_explicit(tmp, sizeof(tmp));
 
 	return ret;
 }
drivers/cpufreq/cpufreq.c +17 -6
index 61190f6b4829..c05821e8de41 100644
@@ -512,7 +512,18 @@ show_one(cpuinfo_max_freq, cpuinfo.max_freq);
 show_one(cpuinfo_transition_latency, cpuinfo.transition_latency);
 show_one(scaling_min_freq, min);
 show_one(scaling_max_freq, max);
-show_one(scaling_cur_freq, cur);
+
+static ssize_t show_scaling_cur_freq(
+	struct cpufreq_policy *policy, char *buf)
+{
+	ssize_t ret;
+
+	if (cpufreq_driver && cpufreq_driver->setpolicy && cpufreq_driver->get)
+		ret = sprintf(buf, "%u\n", cpufreq_driver->get(policy->cpu));
+	else
+		ret = sprintf(buf, "%u\n", policy->cur);
+	return ret;
+}
 
 static int cpufreq_set_policy(struct cpufreq_policy *policy,
 				struct cpufreq_policy *new_policy);
@@ -906,11 +917,11 @@ static int cpufreq_add_dev_interface(struct cpufreq_policy *policy,
 		if (ret)
 			goto err_out_kobj_put;
 	}
-	if (has_target()) {
-		ret = sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr);
-		if (ret)
-			goto err_out_kobj_put;
-	}
+
+	ret = sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr);
+	if (ret)
+		goto err_out_kobj_put;
+
 	if (cpufreq_driver->bios_limit) {
 		ret = sysfs_create_file(&policy->kobj, &bios_limit.attr);
 		if (ret)
drivers/cpufreq/intel_pstate.c +88 -22

266 lines not on this page · raw message

drivers/edac/cpc925_edac.c +1 -1
index df6575f1430d..682288ced4ac 100644
@@ -562,7 +562,7 @@ static void cpc925_mc_check(struct mem_ctl_info *mci)
 
 	if (apiexcp & UECC_EXCP_DETECTED) {
 		cpc925_mc_printk(mci, KERN_INFO, "DRAM UECC Fault\n");
-		edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1,
+		edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1,
 				     pfn, offset, 0,
 				     csrow, -1, -1,
 				     mci->ctl_name, "");
drivers/edac/e7xxx_edac.c +1 -1
index 3cda79bc8b00..ece3aef16bb1 100644
@@ -226,7 +226,7 @@ static void process_ce(struct mem_ctl_info *mci, struct e7xxx_error_info *info)
 static void process_ce_no_info(struct mem_ctl_info *mci)
 {
 	edac_dbg(3, "\n");
-	edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, 0, 0, 0, -1, -1, -1,
+	edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, 0, 0, 0, -1, -1, -1,
 			     "e7xxx CE log register overflow", "");
 }
 
drivers/edac/i3200_edac.c +2 -2
index 022a70273ada..aa98b136f5d0 100644
@@ -242,11 +242,11 @@ static void i3200_process_error_info(struct mem_ctl_info *mci,
 					     -1, -1,
 					     "i3000 UE", "");
 		} else if (log & I3200_ECCERRLOG_CE) {
-			edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1,
+			edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1,
 					     0, 0, eccerrlog_syndrome(log),
 					     eccerrlog_row(channel, log),
 					     -1, -1,
-					     "i3000 UE", "");
+					     "i3000 CE", "");
 		}
 	}
 }
drivers/edac/i82860_edac.c +1 -1
index 3382f6344e42..4382343a7c60 100644
@@ -124,7 +124,7 @@ static int i82860_process_error_info(struct mem_ctl_info *mci,
 				     dimm->location[0], dimm->location[1], -1,
 				     "i82860 UE", "");
 	else
-		edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1,
+		edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1,
 				     info->eap, 0, info->derrsyn,
 				     dimm->location[0], dimm->location[1], -1,
 				     "i82860 CE", "");
drivers/gpu/drm/ast/ast_mode.c +2 -2
index 5389350244f2..70bedf9bd1ea 100644
@@ -1080,8 +1080,8 @@ static u32 copy_cursor_image(u8 *src, u8 *dst, int width, int height)
 			srcdata32[1].ul = *((u32 *)(srcxor + 4)) & 0xf0f0f0f0;
 			data32.b[0] = srcdata32[0].b[1] | (srcdata32[0].b[0] >> 4);
 			data32.b[1] = srcdata32[0].b[3] | (srcdata32[0].b[2] >> 4);
-			data32.b[2] = srcdata32[0].b[1] | (srcdata32[1].b[0] >> 4);
-			data32.b[3] = srcdata32[0].b[3] | (srcdata32[1].b[2] >> 4);
+			data32.b[2] = srcdata32[1].b[1] | (srcdata32[1].b[0] >> 4);
+			data32.b[3] = srcdata32[1].b[3] | (srcdata32[1].b[2] >> 4);
 
 			writel(data32.ul, dstxor);
 			csum += data32.ul;
drivers/gpu/drm/cirrus/cirrus_drv.c +2 -0
index 919c73b94447..4977631927d8 100644
@@ -32,6 +32,8 @@ static struct drm_driver driver;
 static const struct pci_device_id pciidlist[] = {
 	{ PCI_VENDOR_ID_CIRRUS, PCI_DEVICE_ID_CIRRUS_5446, 0x1af4, 0x1100, 0,
 	  0, 0 },
+	{ PCI_VENDOR_ID_CIRRUS, PCI_DEVICE_ID_CIRRUS_5446, PCI_VENDOR_ID_XEN,
+	  0x0001, 0, 0, 0 },
 	{0,}
 };
 
drivers/gpu/drm/i915/i915_gem_userptr.c +19 -12
index d38413997379..d182058383a9 100644
@@ -293,15 +293,23 @@ i915_gem_userptr_release__mmu_notifier(struct drm_i915_gem_object *obj)
 static struct i915_mmu_notifier *
 i915_mmu_notifier_find(struct i915_mm_struct *mm)
 {
-	if (mm->mn == NULL) {
-		down_write(&mm->mm->mmap_sem);
-		mutex_lock(&to_i915(mm->dev)->mm_lock);
-		if (mm->mn == NULL)
-			mm->mn = i915_mmu_notifier_create(mm->mm);
-		mutex_unlock(&to_i915(mm->dev)->mm_lock);
-		up_write(&mm->mm->mmap_sem);
+	struct i915_mmu_notifier *mn = mm->mn;
+
+	mn = mm->mn;
+	if (mn)
+		return mn;
+
+	down_write(&mm->mm->mmap_sem);
+	mutex_lock(&to_i915(mm->dev)->mm_lock);
+	if ((mn = mm->mn) == NULL) {
+		mn = i915_mmu_notifier_create(mm->mm);
+		if (!IS_ERR(mn))
+			mm->mn = mn;
 	}
-	return mm->mn;
+	mutex_unlock(&to_i915(mm->dev)->mm_lock);
+	up_write(&mm->mm->mmap_sem);
+
+	return mn;
 }
 
 static int
@@ -681,16 +689,15 @@ i915_gem_userptr_get_pages(struct drm_i915_gem_object *obj)
 static void
 i915_gem_userptr_put_pages(struct drm_i915_gem_object *obj)
 {
-	struct scatterlist *sg;
-	int i;
+	struct sg_page_iter sg_iter;
 
 	BUG_ON(obj->userptr.work != NULL);
 
 	if (obj->madv != I915_MADV_WILLNEED)
 		obj->dirty = 0;
 
-	for_each_sg(obj->pages->sgl, sg, obj->pages->nents, i) {
-		struct page *page = sg_page(sg);
+	for_each_sg_page(obj->pages->sgl, &sg_iter, obj->pages->nents, 0) {
+		struct page *page = sg_page_iter_page(&sg_iter);
 
 		if (obj->dirty)
 			set_page_dirty(page);
drivers/gpu/drm/i915/i915_irq.c +3 -2
index 0050ee9470f1..5d387a86b404 100644
@@ -3482,12 +3482,13 @@ static void gen8_irq_reset(struct drm_device *dev)
 void gen8_irq_power_well_post_enable(struct drm_i915_private *dev_priv)
 {
 	unsigned long irqflags;
+	uint32_t extra_ier = GEN8_PIPE_VBLANK | GEN8_PIPE_FIFO_UNDERRUN;
 
 	spin_lock_irqsave(&dev_priv->irq_lock, irqflags);
 	GEN8_IRQ_INIT_NDX(DE_PIPE, PIPE_B, dev_priv->de_irq_mask[PIPE_B],
-			  ~dev_priv->de_irq_mask[PIPE_B]);
+			  ~dev_priv->de_irq_mask[PIPE_B] | extra_ier);
 	GEN8_IRQ_INIT_NDX(DE_PIPE, PIPE_C, dev_priv->de_irq_mask[PIPE_C],
-			  ~dev_priv->de_irq_mask[PIPE_C]);
+			  ~dev_priv->de_irq_mask[PIPE_C] | extra_ier);
 	spin_unlock_irqrestore(&dev_priv->irq_lock, irqflags);
 }
 
drivers/gpu/drm/i915/intel_display.c +4 -1
index d8324c69fa86..b71a02663bae 100644
@@ -4470,7 +4470,7 @@ static void vlv_update_cdclk(struct drm_device *dev)
 	 * BSpec erroneously claims we should aim for 4MHz, but
 	 * in fact 1MHz is the correct frequency.
 	 */
-	I915_WRITE(GMBUSFREQ_VLV, dev_priv->vlv_cdclk_freq);
+	I915_WRITE(GMBUSFREQ_VLV, DIV_ROUND_UP(dev_priv->vlv_cdclk_freq, 1000));
 }
 
 /* Adjust CDclk dividers to allow high res or save power if possible */
@@ -12507,6 +12507,9 @@ static struct intel_quirk intel_quirks[] = {
 	/* Acer C720 Chromebook (Core i3 4005U) */
 	{ 0x0a16, 0x1025, 0x0a11, quirk_backlight_present },
 
+	/* Apple Macbook 2,1 (Core 2 T7400) */
+	{ 0x27a2, 0x8086, 0x7270, quirk_backlight_present },
+
 	/* Toshiba CB35 Chromebook (Celeron 2955U) */
 	{ 0x0a06, 0x1179, 0x0a88, quirk_backlight_present },
 
drivers/gpu/drm/i915/intel_dp.c +7 -0
index fdff1d420c14..9222e20e230c 100644
@@ -2364,6 +2364,13 @@ intel_dp_dpcd_read_wake(struct drm_dp_aux *aux, unsigned int offset,
 	ssize_t ret;
 	int i;
 
+	/*
+	 * Sometime we just get the same incorrect byte repeated
+	 * over the entire buffer. Doing just one throw away read
+	 * initially seems to "solve" it.
+	 */
+	drm_dp_dpcd_read(aux, DP_DPCD_REV, buffer, 1);
+
 	for (i = 0; i < 3; i++) {
 		ret = drm_dp_dpcd_read(aux, offset, buffer, size);
 		if (ret == size)
drivers/gpu/drm/i915/intel_panel.c +5 -3
index 8e374449c6b5..cbe8a8de85de 100644
@@ -398,6 +398,9 @@ intel_panel_detect(struct drm_device *dev)
 	}
 }
 
+#define DIV_ROUND_CLOSEST_ULL(ll, d)	\
+({ unsigned long long _tmp = (ll)+(d)/2; do_div(_tmp, d); _tmp; })
+
 /**
  * scale - scale values from one range to another
  *
@@ -419,9 +422,8 @@ static uint32_t scale(uint32_t source_val,
 	source_val = clamp(source_val, source_min, source_max);
 
 	/* avoid overflows */
-	target_val = (uint64_t)(source_val - source_min) *
-		(target_max - target_min);
-	do_div(target_val, source_max - source_min);
+	target_val = DIV_ROUND_CLOSEST_ULL((uint64_t)(source_val - source_min) *
+			(target_max - target_min), source_max - source_min);
 	target_val += target_min;
 
 	return target_val;
drivers/gpu/drm/nouveau/Makefile +1 -1
index f5d7f7ce4bc6..0197d6c3d94c 100644
@@ -129,7 +129,7 @@ nouveau-y += core/subdev/fb/gddr5.o
 nouveau-y += core/subdev/gpio/base.o
 nouveau-y += core/subdev/gpio/nv10.o
 nouveau-y += core/subdev/gpio/nv50.o
-nouveau-y += core/subdev/gpio/nv92.o
+nouveau-y += core/subdev/gpio/nv94.o
 nouveau-y += core/subdev/gpio/nvd0.o
 nouveau-y += core/subdev/gpio/nve0.o
 nouveau-y += core/subdev/i2c/base.o
drivers/gpu/drm/nouveau/core/engine/device/nv50.c +11 -11
index 932f84fae459..cbab586ec6f1 100644
@@ -141,7 +141,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0x92:
 		device->cname = "G92";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv50_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv50_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] =  nv84_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nv84_therm_oclass;
@@ -169,7 +169,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0x94:
 		device->cname = "G94";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] =  nv84_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nv84_therm_oclass;
@@ -197,7 +197,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0x96:
 		device->cname = "G96";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] =  nv84_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nv84_therm_oclass;
@@ -225,7 +225,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0x98:
 		device->cname = "G98";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] =  nv84_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nv84_therm_oclass;
@@ -253,7 +253,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0xa0:
 		device->cname = "G200";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv50_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] =  nv84_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nv84_therm_oclass;
@@ -281,7 +281,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0xaa:
 		device->cname = "MCP77/MCP78";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] =  nvaa_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nv84_therm_oclass;
@@ -309,7 +309,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0xac:
 		device->cname = "MCP79/MCP7A";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] =  nvaa_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nv84_therm_oclass;
@@ -337,7 +337,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0xa3:
 		device->cname = "GT215";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nva3_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -367,7 +367,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0xa5:
 		device->cname = "GT216";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nva3_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -396,7 +396,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0xa8:
 		device->cname = "GT218";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nva3_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -425,7 +425,7 @@ nv50_identify(struct nouveau_device *device)
 	case 0xaf:
 		device->cname = "MCP89";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nva3_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
drivers/gpu/drm/nouveau/core/engine/device/nvc0.c +7 -7
index b4a2917ce555..da153a2cb6b5 100644
@@ -60,7 +60,7 @@ nvc0_identify(struct nouveau_device *device)
 	case 0xc0:
 		device->cname = "GF100";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nvc0_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -92,7 +92,7 @@ nvc0_identify(struct nouveau_device *device)
 	case 0xc4:
 		device->cname = "GF104";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nvc0_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -124,7 +124,7 @@ nvc0_identify(struct nouveau_device *device)
 	case 0xc3:
 		device->cname = "GF106";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nvc0_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -155,7 +155,7 @@ nvc0_identify(struct nouveau_device *device)
 	case 0xce:
 		device->cname = "GF114";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nvc0_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -187,7 +187,7 @@ nvc0_identify(struct nouveau_device *device)
 	case 0xcf:
 		device->cname = "GF116";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nvc0_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -219,7 +219,7 @@ nvc0_identify(struct nouveau_device *device)
 	case 0xc1:
 		device->cname = "GF108";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nvc0_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
@@ -250,7 +250,7 @@ nvc0_identify(struct nouveau_device *device)
 	case 0xc8:
 		device->cname = "GF110";
 		device->oclass[NVDEV_SUBDEV_VBIOS  ] = &nouveau_bios_oclass;
-		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv92_gpio_oclass;
+		device->oclass[NVDEV_SUBDEV_GPIO   ] =  nv94_gpio_oclass;
 		device->oclass[NVDEV_SUBDEV_I2C    ] =  nv94_i2c_oclass;
 		device->oclass[NVDEV_SUBDEV_CLOCK  ] = &nvc0_clock_oclass;
 		device->oclass[NVDEV_SUBDEV_THERM  ] = &nva3_therm_oclass;
drivers/gpu/drm/nouveau/core/include/subdev/gpio.h +1 -1
index b73733d21cc7..f855140dbcb7 100644
@@ -40,7 +40,7 @@ nouveau_gpio(void *obj)
 
 extern struct nouveau_oclass *nv10_gpio_oclass;
 extern struct nouveau_oclass *nv50_gpio_oclass;
-extern struct nouveau_oclass *nv92_gpio_oclass;
+extern struct nouveau_oclass *nv94_gpio_oclass;
 extern struct nouveau_oclass *nvd0_gpio_oclass;
 extern struct nouveau_oclass *nve0_gpio_oclass;
 
drivers/gpu/drm/nouveau/core/subdev/bios/dcb.c +1 -0
index 88606bfaf847..bd8d348385b3 100644
@@ -124,6 +124,7 @@ dcb_outp_parse(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len,
 	       struct dcb_output *outp)
 {
 	u16 dcb = dcb_outp(bios, idx, ver, len);
+	memset(outp, 0x00, sizeof(*outp));
 	if (dcb) {
 		if (*ver >= 0x20) {
 			u32 conn = nv_ro32(bios, dcb + 0x00);
drivers/gpu/drm/nouveau/core/subdev/gpio/nv92.c deleted +0 -74

74 lines not on this page · raw message

drivers/gpu/drm/nouveau/core/subdev/gpio/nv94.c new file +74 -0

74 lines not on this page · raw message

drivers/gpu/drm/nouveau/core/subdev/gpio/nvd0.c +2 -2
index a4682b0956ad..480d6d2af770 100644
@@ -77,8 +77,8 @@ nvd0_gpio_oclass = &(struct nouveau_gpio_impl) {
 		.fini = _nouveau_gpio_fini,
 	},
 	.lines = 32,
-	.intr_stat = nv92_gpio_intr_stat,
-	.intr_mask = nv92_gpio_intr_mask,
+	.intr_stat = nv94_gpio_intr_stat,
+	.intr_mask = nv94_gpio_intr_mask,
 	.drive = nvd0_gpio_drive,
 	.sense = nvd0_gpio_sense,
 	.reset = nvd0_gpio_reset,
drivers/gpu/drm/nouveau/core/subdev/gpio/priv.h +2 -2
index e1724dfc86ae..bff98b86e2b5 100644
@@ -56,8 +56,8 @@ void nv50_gpio_reset(struct nouveau_gpio *, u8);
 int  nv50_gpio_drive(struct nouveau_gpio *, int, int, int);
 int  nv50_gpio_sense(struct nouveau_gpio *, int);
 
-void nv92_gpio_intr_stat(struct nouveau_gpio *, u32 *, u32 *);
-void nv92_gpio_intr_mask(struct nouveau_gpio *, u32, u32, u32);
+void nv94_gpio_intr_stat(struct nouveau_gpio *, u32 *, u32 *);
+void nv94_gpio_intr_mask(struct nouveau_gpio *, u32, u32, u32);
 
 void nvd0_gpio_reset(struct nouveau_gpio *, u8);
 int  nvd0_gpio_drive(struct nouveau_gpio *, int, int, int);
drivers/gpu/drm/nouveau/nouveau_chan.c +9 -3
index 3440fc999f2f..497ea013f7d0 100644
@@ -400,15 +400,20 @@ nouveau_channel_new(struct nouveau_drm *drm, struct nvif_device *device,
 		    struct nouveau_channel **pchan)
 {
 	struct nouveau_cli *cli = (void *)nvif_client(&device->base);
+	bool super;
 	int ret;
 
+	/* hack until fencenv50 is fixed, and agp access relaxed */
+	super = cli->base.super;
+	cli->base.super = true;
+
 	ret = nouveau_channel_ind(drm, device, handle, arg0, pchan);
 	if (ret) {
 		NV_PRINTK(debug, cli, "ib channel create, %d\n", ret);
 		ret = nouveau_channel_dma(drm, device, handle, pchan);
 		if (ret) {
 			NV_PRINTK(debug, cli, "dma channel create, %d\n", ret);
-			return ret;
+			goto done;
 		}
 	}
 
@@ -416,8 +421,9 @@ nouveau_channel_new(struct nouveau_drm *drm, struct nvif_device *device,
 	if (ret) {
 		NV_PRINTK(error, cli, "channel failed to initialise, %d\n", ret);
 		nouveau_channel_del(pchan);
-		return ret;
 	}
 
-	return 0;
+done:
+	cli->base.super = super;
+	return ret;
 }
drivers/gpu/drm/nouveau/nv50_display.c +10 -8
index 03949eaa629f..bca5d8c41231 100644
@@ -1653,15 +1653,17 @@ nv50_audio_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode)
 	struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
 	struct nouveau_connector *nv_connector;
 	struct nv50_disp *disp = nv50_disp(encoder->dev);
-	struct {
-		struct nv50_disp_mthd_v1 base;
-		struct nv50_disp_sor_hda_eld_v0 eld;
+	struct __packed {
+		struct {
+			struct nv50_disp_mthd_v1 mthd;
+			struct nv50_disp_sor_hda_eld_v0 eld;
+		} base;
 		u8 data[sizeof(nv_connector->base.eld)];
 	} args = {
-		.base.version = 1,
-		.base.method  = NV50_DISP_MTHD_V1_SOR_HDA_ELD,
-		.base.hasht   = nv_encoder->dcb->hasht,
-		.base.hashm   = nv_encoder->dcb->hashm,
+		.base.mthd.version = 1,
+		.base.mthd.method  = NV50_DISP_MTHD_V1_SOR_HDA_ELD,
+		.base.mthd.hasht   = nv_encoder->dcb->hasht,
+		.base.mthd.hashm   = nv_encoder->dcb->hashm,
 	};
 
 	nv_connector = nouveau_encoder_connector_get(nv_encoder);
@@ -1671,7 +1673,7 @@ nv50_audio_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode)
 	drm_edid_to_eld(&nv_connector->base, nv_connector->edid);
 	memcpy(args.data, nv_connector->base.eld, sizeof(args.data));
 
-	nvif_mthd(disp->disp, 0, &args, sizeof(args));
+	nvif_mthd(disp->disp, 0, &args, sizeof(args.base) + args.data[2] * 4);
 }
 
 static void
drivers/gpu/drm/qxl/qxl_display.c +8 -8
index b8ced08b6291..bac1fd43e15a 100644
@@ -523,7 +523,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
 	struct qxl_framebuffer *qfb;
 	struct qxl_bo *bo, *old_bo = NULL;
 	struct qxl_crtc *qcrtc = to_qxl_crtc(crtc);
-	uint32_t width, height, base_offset;
 	bool recreate_primary = false;
 	int ret;
 	int surf_id;
@@ -553,9 +552,10 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
 	if (qcrtc->index == 0)
 		recreate_primary = true;
 
-	width = mode->hdisplay;
-	height = mode->vdisplay;
-	base_offset = 0;
+	if (bo->surf.stride * bo->surf.height > qdev->vram_size) {
+		DRM_ERROR("Mode doesn't fit in vram size (vgamem)");
+		return -EINVAL;
+        }
 
 	ret = qxl_bo_reserve(bo, false);
 	if (ret != 0)
@@ -569,10 +569,10 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
 	if (recreate_primary) {
 		qxl_io_destroy_primary(qdev);
 		qxl_io_log(qdev,
-			   "recreate primary: %dx%d (was %dx%d,%d,%d)\n",
-			   width, height, bo->surf.width,
-			   bo->surf.height, bo->surf.stride, bo->surf.format);
-		qxl_io_create_primary(qdev, base_offset, bo);
+			   "recreate primary: %dx%d,%d,%d\n",
+			   bo->surf.width, bo->surf.height,
+			   bo->surf.stride, bo->surf.format);
+		qxl_io_create_primary(qdev, 0, bo);
 		bo->is_primary = true;
 	}
 
drivers/gpu/drm/radeon/cik_sdma.c +12 -9
index c4ffa54b1e3d..e8eea36b52d1 100644
@@ -610,16 +610,19 @@ int cik_sdma_ring_test(struct radeon_device *rdev,
 {
 	unsigned i;
 	int r;
-	void __iomem *ptr = (void *)rdev->vram_scratch.ptr;
+	unsigned index;
 	u32 tmp;
+	u64 gpu_addr;
 
-	if (!ptr) {
-		DRM_ERROR("invalid vram scratch pointer\n");
-		return -EINVAL;
-	}
+	if (ring->idx == R600_RING_TYPE_DMA_INDEX)
+		index = R600_WB_DMA_RING_TEST_OFFSET;
+	else
+		index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
+
+	gpu_addr = rdev->wb.gpu_addr + index;
 
 	tmp = 0xCAFEDEAD;
-	writel(tmp, ptr);
+	rdev->wb.wb[index/4] = cpu_to_le32(tmp);
 
 	r = radeon_ring_lock(rdev, ring, 5);
 	if (r) {
@@ -627,14 +630,14 @@ int cik_sdma_ring_test(struct radeon_device *rdev,
 		return r;
 	}
 	radeon_ring_write(ring, SDMA_PACKET(SDMA_OPCODE_WRITE, SDMA_WRITE_SUB_OPCODE_LINEAR, 0));
-	radeon_ring_write(ring, rdev->vram_scratch.gpu_addr & 0xfffffffc);
-	radeon_ring_write(ring, upper_32_bits(rdev->vram_scratch.gpu_addr));
+	radeon_ring_write(ring, lower_32_bits(gpu_addr));
+	radeon_ring_write(ring, upper_32_bits(gpu_addr));
 	radeon_ring_write(ring, 1); /* number of DWs to follow */
 	radeon_ring_write(ring, 0xDEADBEEF);
 	radeon_ring_unlock_commit(rdev, ring, false);
 
 	for (i = 0; i < rdev->usec_timeout; i++) {
-		tmp = readl(ptr);
+		tmp = le32_to_cpu(rdev->wb.wb[index/4]);
 		if (tmp == 0xDEADBEEF)
 			break;
 		DRM_UDELAY(1);
drivers/gpu/drm/radeon/dce3_1_afmt.c +2 -2
index 51800e340a57..71f4d26669cd 100644
@@ -49,8 +49,8 @@ static void dce3_2_afmt_write_speaker_allocation(struct drm_encoder *encoder)
 
 	sad_count = drm_edid_to_speaker_allocation(radeon_connector->edid, &sadb);
 	if (sad_count < 0) {
-		DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sad_count);
-		return;
+		DRM_DEBUG("Couldn't read Speaker Allocation Data Block: %d\n", sad_count);
+		sad_count = 0;
 	}
 
 	/* program the speaker allocation */
drivers/gpu/drm/radeon/dce6_afmt.c +3 -3
index ab29f953a767..790d8cafdb87 100644
@@ -176,9 +176,9 @@ void dce6_afmt_write_speaker_allocation(struct drm_encoder *encoder)
 	}
 
 	sad_count = drm_edid_to_speaker_allocation(radeon_connector_edid(connector), &sadb);
-	if (sad_count <= 0) {
-		DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sad_count);
-		return;
+	if (sad_count < 0) {
+		DRM_DEBUG("Couldn't read Speaker Allocation Data Block: %d\n", sad_count);
+		sad_count = 0;
 	}
 
 	/* program the speaker allocation */
drivers/gpu/drm/radeon/evergreen_hdmi.c +3 -3
index 278c7a139d74..71ebdf89fd76 100644
@@ -118,9 +118,9 @@ static void dce4_afmt_write_speaker_allocation(struct drm_encoder *encoder)
 	}
 
 	sad_count = drm_edid_to_speaker_allocation(radeon_connector_edid(connector), &sadb);
-	if (sad_count <= 0) {
-		DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sad_count);
-		return;
+	if (sad_count < 0) {
+		DRM_DEBUG("Couldn't read Speaker Allocation Data Block: %d\n", sad_count);
+		sad_count = 0;
 	}
 
 	/* program the speaker allocation */
drivers/gpu/drm/radeon/kv_dpm.c +16 -3
index 67cb472d188c..e79b7ebf5894 100644
@@ -2725,7 +2725,11 @@ int kv_dpm_init(struct radeon_device *rdev)
 
         pi->sram_end = SMC_RAM_END;
 
-	pi->enable_nb_dpm = true;
+	/* Enabling nb dpm on an asrock system prevents dpm from working */
+	if (rdev->pdev->subsystem_vendor == 0x1849)
+		pi->enable_nb_dpm = false;
+	else
+		pi->enable_nb_dpm = true;
 
 	pi->caps_power_containment = true;
 	pi->caps_cac = true;
@@ -2740,10 +2744,19 @@ int kv_dpm_init(struct radeon_device *rdev)
 	pi->caps_sclk_ds = true;
 	pi->enable_auto_thermal_throttling = true;
 	pi->disable_nb_ps3_in_battery = false;
-	if (radeon_bapm == 0)
+	if (radeon_bapm == -1) {
+		/* There are stability issues reported on with
+		 * bapm enabled on an asrock system.
+		 */
+		if (rdev->pdev->subsystem_vendor == 0x1849)
+			pi->bapm_enable = false;
+		else
+			pi->bapm_enable = true;
+	} else if (radeon_bapm == 0) {
 		pi->bapm_enable = false;
-	else
+	} else {
 		pi->bapm_enable = true;
+	}
 	pi->voltage_drop_t = 0;
 	pi->caps_sclk_throttle_low_notification = false;
 	pi->caps_fps = false; /* true? */
drivers/gpu/drm/radeon/r600_dma.c +12 -9
index a908daa006d2..44379bfca61f 100644
@@ -232,16 +232,19 @@ int r600_dma_ring_test(struct radeon_device *rdev,
 {
 	unsigned i;
 	int r;
-	void __iomem *ptr = (void *)rdev->vram_scratch.ptr;
+	unsigned index;
 	u32 tmp;
+	u64 gpu_addr;
 
-	if (!ptr) {
-		DRM_ERROR("invalid vram scratch pointer\n");
-		return -EINVAL;
-	}
+	if (ring->idx == R600_RING_TYPE_DMA_INDEX)
+		index = R600_WB_DMA_RING_TEST_OFFSET;
+	else
+		index = CAYMAN_WB_DMA1_RING_TEST_OFFSET;
+
+	gpu_addr = rdev->wb.gpu_addr + index;
 
 	tmp = 0xCAFEDEAD;
-	writel(tmp, ptr);
+	rdev->wb.wb[index/4] = cpu_to_le32(tmp);
 
 	r = radeon_ring_lock(rdev, ring, 4);
 	if (r) {
@@ -249,13 +252,13 @@ int r600_dma_ring_test(struct radeon_device *rdev,
 		return r;
 	}
 	radeon_ring_write(ring, DMA_PACKET(DMA_PACKET_WRITE, 0, 0, 1));
-	radeon_ring_write(ring, rdev->vram_scratch.gpu_addr & 0xfffffffc);
-	radeon_ring_write(ring, upper_32_bits(rdev->vram_scratch.gpu_addr) & 0xff);
+	radeon_ring_write(ring, lower_32_bits(gpu_addr));
+	radeon_ring_write(ring, upper_32_bits(gpu_addr) & 0xff);
 	radeon_ring_write(ring, 0xDEADBEEF);
 	radeon_ring_unlock_commit(rdev, ring, false);
 
 	for (i = 0; i < rdev->usec_timeout; i++) {
-		tmp = readl(ptr);
+		tmp = le32_to_cpu(rdev->wb.wb[index/4]);
 		if (tmp == 0xDEADBEEF)
 			break;
 		DRM_UDELAY(1);
drivers/gpu/drm/radeon/radeon.h +2 -0
index 3247bfd14410..e8410581dd09 100644
@@ -1120,6 +1120,8 @@ struct radeon_wb {
 #define R600_WB_EVENT_OFFSET     3072
 #define CIK_WB_CP1_WPTR_OFFSET     3328
 #define CIK_WB_CP2_WPTR_OFFSET     3584
+#define R600_WB_DMA_RING_TEST_OFFSET 3588
+#define CAYMAN_WB_DMA1_RING_TEST_OFFSET 3592
 
 /**
  * struct radeon_pm - power management datas
drivers/gpu/drm/radeon/radeon_cs.c +1 -1
index 83f382e8e40e..e244c2d72730 100644
@@ -418,7 +418,7 @@ static void radeon_cs_parser_fini(struct radeon_cs_parser *parser, int error, bo
 	kfree(parser->track);
 	kfree(parser->relocs);
 	kfree(parser->relocs_ptr);
-	kfree(parser->vm_bos);
+	drm_free_large(parser->vm_bos);
 	for (i = 0; i < parser->nchunks; i++)
 		drm_free_large(parser->chunks[i].kdata);
 	kfree(parser->chunks);
drivers/gpu/drm/radeon/radeon_device.c +1 -1
index 12c8329644c4..6684fbf09929 100644
@@ -1130,7 +1130,7 @@ static void radeon_check_arguments(struct radeon_device *rdev)
 	if (radeon_vm_block_size == -1) {
 
 		/* Total bits covered by PD + PTs */
-		unsigned bits = ilog2(radeon_vm_size) + 17;
+		unsigned bits = ilog2(radeon_vm_size) + 18;
 
 		/* Make sure the PD is 4K in size up to 8GB address space.
 		   Above that split equal between PD and PTs */
drivers/gpu/drm/radeon/radeon_ring.c +2 -2
index d65607902537..93234350c34e 100644
@@ -335,7 +335,7 @@ unsigned radeon_ring_backup(struct radeon_device *rdev, struct radeon_ring *ring
 	}
 
 	/* and then save the content of the ring */
-	*data = kmalloc_array(size, sizeof(uint32_t), GFP_KERNEL);
+	*data = drm_malloc_ab(size, sizeof(uint32_t));
 	if (!*data) {
 		mutex_unlock(&rdev->ring_lock);
 		return 0;
@@ -377,7 +377,7 @@ int radeon_ring_restore(struct radeon_device *rdev, struct radeon_ring *ring,
 	}
 
 	radeon_ring_unlock_commit(rdev, ring, false);
-	kfree(data);
+	drm_free_large(data);
 	return 0;
 }
 
drivers/gpu/drm/radeon/radeon_vm.c +2 -2
index 088ffdc2f577..a3b3e098624a 100644
@@ -132,8 +132,8 @@ struct radeon_cs_reloc *radeon_vm_get_bos(struct radeon_device *rdev,
 	struct radeon_cs_reloc *list;
 	unsigned i, idx;
 
-	list = kmalloc_array(vm->max_pde_used + 2,
-			     sizeof(struct radeon_cs_reloc), GFP_KERNEL);
+	list = drm_malloc_ab(vm->max_pde_used + 2,
+			     sizeof(struct radeon_cs_reloc));
 	if (!list)
 		return NULL;
 
drivers/gpu/drm/radeon/si_dpm.c +1 -1
index 70e61ffeace2..1202e0fd4292 100644
@@ -6255,7 +6255,7 @@ static void si_parse_pplib_clock_info(struct radeon_device *rdev,
 	if ((rps->class2 & ATOM_PPLIB_CLASSIFICATION2_ULV) &&
 	    index == 0) {
 		/* XXX disable for A0 tahiti */
-		si_pi->ulv.supported = true;
+		si_pi->ulv.supported = false;
 		si_pi->ulv.pl = *pl;
 		si_pi->ulv.one_pcie_lane_in_ulv = false;
 		si_pi->ulv.volt_change_delay = SISLANDS_ULVVOLTAGECHANGEDELAY_DFLT;
drivers/gpu/drm/tilcdc/tilcdc_drv.c +50 -10

76 lines not on this page · raw message

drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +5 -1
index 18b54acacfbb..14b2f50ad7e9 100644

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

drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +13 -3
index d2bc2b03d4c6..10fc4c3e1c0c 100644

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

drivers/hid/hid-debug.c +6 -0
index 84c3cb15ccdd..8bf61d295ffd 100644

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

drivers/hid/hid-ids.h +7 -0
index 25cd674d6064..c3a712c8c915 100644

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

drivers/hid/hid-input.c +11 -1
index 2619f7f4517a..62e828655922 100644

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

drivers/hid/usbhid/hid-core.c +23 -3
index 79cf503e37bf..ddd547ad6d7e 100644

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

drivers/hid/usbhid/hid-quirks.c +5 -0
index 15225f3eaed1..5014bb567b29 100644

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

drivers/i2c/busses/i2c-at91.c +1 -1
index 917d54588d95..e05a672db3e5 100644

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

drivers/iio/common/st_sensors/st_sensors_buffer.c +1 -1
index 1665c8e4b62b..e18bc6782256 100644

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

drivers/iio/proximity/as3935.c +1 -1
index 5e780ef206f3..8349cc0fdf66 100644

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

drivers/infiniband/hw/mlx4/main.c +8 -2
index bda5994ceb68..8b72cf392b34 100644

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

drivers/infiniband/ulp/isert/ib_isert.c +2 -2
index da8ff124762a..4d35bc71e2d6 100644

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

drivers/input/mouse/alps.c +2 -2
index 35a49bf57227..2b0ae8cc8e51 100644

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

drivers/input/mouse/synaptics.c +21 -1
index fd23181c1fb7..b5b630c484c5 100644

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

drivers/input/mouse/synaptics.h +2 -6
index fb2e076738ae..1bd01f21783b 100644

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

drivers/input/serio/i8042-x86ia64io.h +22 -0
index 40b7d6c0ff17..faeeb1372462 100644

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

drivers/iommu/amd_iommu.c +13 -14
index ecb0109a5360..5aff937eb1f9 100644

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

drivers/iommu/iommu.c +96 -67

163 lines not on this page · raw message

drivers/irqchip/irq-armada-370-xp.c +17 -6
index 574aba0eba4e..1cb538fd85e9 100644

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

drivers/md/dm-bufio.c +3 -2
index ab472c557d18..9ea5b6041eb2 100644

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

drivers/md/dm-log-userspace-transfer.c +1 -1
index b428c0ae63d5..39ad9664d397 100644

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

drivers/media/common/siano/sms-cards.c +6 -0
index 82769993eeb7..82c7a1289f05 100644

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

drivers/media/common/siano/sms-cards.h +1 -0
index c63b544c49c5..4c4caddf9869 100644

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

drivers/media/dvb-frontends/ds3000.c +7 -0
index 335daeff91b9..9d0d0347758f 100644

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

drivers/media/i2c/tda7432.c +1 -1
index 72af644fa051..cf93021a6500 100644

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

drivers/media/platform/Kconfig +3 -3
index 6d86646d9743..5d666af2310c 100644

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

drivers/media/platform/exynos4-is/Kconfig +1 -1
index 5dcaa0a80540..ec5d7c4b5d28 100644

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

drivers/media/platform/s5p-tv/Kconfig +1 -1
index 369a4c191e18..dc28ad2849c5 100644

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

drivers/media/rc/imon.c +2 -1
index 7115e68ba697..71c9039dc9ee 100644

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

drivers/media/rc/rc-ir-raw.c +0 -1
index e8fff2add265..b732ac6a26d8 100644

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

drivers/media/rc/rc-main.c +2 -0
index a7991c7d010a..8d3b74c5a717 100644

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

drivers/media/tuners/m88ts2022.c +1 -1
index 40c42dec721b..7a62097aa9ea 100644

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

drivers/media/usb/em28xx/em28xx-cards.c +0 -11
index 9da812b8a786..9c61c3f37778 100644

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

drivers/media/usb/em28xx/em28xx-core.c +11 -1
index 523d7e92bf47..0f6caa4912b8 100644

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

drivers/media/usb/em28xx/em28xx-video.c +12 -3
index 29abc379551e..5122cbe085f1 100644

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

drivers/media/usb/siano/smsusb.c +2 -0
index 1836a416d806..89c86ee2b225 100644

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

drivers/media/usb/uvc/uvc_driver.c +9 -0
index f8135f4e3b52..f3c126915ff2 100644

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

drivers/media/v4l2-core/v4l2-common.c +3 -6
index ccaa38f65cf1..2e9d81f4c1a5 100644

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

drivers/media/v4l2-core/videobuf-dma-sg.c +4 -2
index 3c8cc023a5a5..3ff15f1c9d70 100644

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

drivers/mfd/rtsx_pcr.c +1 -1
index d01b8c249231..f2643c221d34 100644

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

drivers/mfd/ti_am335x_tscadc.c +3 -2
index dd4bf5816221..121add8be456 100644

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

drivers/mmc/core/sdio.c +10 -2
index e636d9e99e4a..3fc40a7140a8 100644

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

drivers/mmc/core/sdio_irq.c +2 -2
index 5cc13c8d35bb..696eca493844 100644

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

drivers/mmc/core/slot-gpio.c +0 -2
index 5f89cb83d5f0..187f48a5795a 100644

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

drivers/mmc/host/mmc_spi.c +1 -0
index cc8d4a6099cd..e4a07546f8b6 100644

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

drivers/mmc/host/rtsx_pci_sdmmc.c +7 -0
index dfde4a210238..b2537e2f26b1 100644

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

drivers/mmc/host/rtsx_usb_sdmmc.c +7 -0
index 5d3766e792f0..d9153a7d160d 100644

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

drivers/mmc/host/sdhci-pxav3.c +1 -2
index 6f842fb8e6b8..3434c7933de0 100644

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

drivers/mmc/host/sdhci-s3c.c +2 -2
index fa5954a05449..1e47903fa184 100644

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

drivers/mmc/host/sdhci-sirf.c +1 -0
index 17004531d089..b6db259aea9e 100644

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

drivers/mmc/host/tmio_mmc_pio.c +1 -0
index faf0924e71cb..59d9a7249b2e 100644

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

drivers/mtd/chips/cfi_cmdset_0001.c +2 -0
index a7543ba3e190..3096f3ded3ad 100644

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

drivers/mtd/devices/m25p80.c +50 -0

50 lines not on this page · raw message

drivers/mtd/ubi/block.c +19 -6
index 33c64955d4d7..5f9a1e2f3fd4 100644

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

drivers/mtd/ubi/cdev.c +3 -1
index 7646220ca6e2..20aeb277d8d4 100644

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

drivers/mtd/ubi/fastmap.c +1 -0
index 0431b46d9fd9..c701369090fb 100644

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

drivers/net/Kconfig +2 -0
index c6f6f69f8961..2f8f251a926f 100644

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

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +1 -0
index e5be511a3c38..fac3821cef87 100644

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

drivers/net/ethernet/mellanox/mlx4/en_tx.c +5 -2
index dae3da6d8dd0..c2c77434d147 100644

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

drivers/net/ethernet/mellanox/mlx4/mcg.c +4 -0
index ca0f98c95105..872843179f44 100644

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

drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +7 -0
index 655a23bbc451..e17a970eaf2b 100644

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

drivers/net/hyperv/netvsc_drv.c +1 -0
index 0fcb5e7eb073..148fda3be898 100644

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

drivers/net/macvlan.c +8 -2
index 726edabff26b..5f17ad02917c 100644

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

drivers/net/macvtap.c +3 -0
index 0c6adaaf898c..9b5481c70b4c 100644

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

drivers/net/ppp/ppp_generic.c +1 -1
index fa0d71727894..90c639b0f18d 100644

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

drivers/net/tun.c +5 -1
index acaaf6784179..610d1662c500 100644

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

drivers/net/usb/ax88179_178a.c +6 -1
index be4275721039..e6338c16081a 100644

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

drivers/net/vxlan.c +8 -7
index beb377b2d4b7..b4831274b0ab 100644

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

drivers/net/wireless/iwlwifi/dvm/mac80211.c +13 -11
index afb98f4fdaf3..913398525947 100644

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

drivers/net/wireless/iwlwifi/iwl-trans.h +2 -0
index 656371a668da..86fb12162af2 100644

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

drivers/net/wireless/iwlwifi/mvm/coex.c +2 -2
index ce71625f497f..103fc93e9158 100644

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

drivers/net/wireless/iwlwifi/mvm/coex_legacy.c +2 -2
index a3be33359927..d55c2a8f724f 100644

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

drivers/net/wireless/iwlwifi/mvm/fw-api-power.h +34 -1
index c3a8c86b550d..4d8932c1cd6d 100644

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

drivers/net/wireless/iwlwifi/mvm/fw-api.h +1 -0
index 9a922f3bd16b..7b73ed4903c4 100644

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

drivers/net/wireless/iwlwifi/mvm/fw.c +9 -0
index 883e702152d5..bf720a875e6b 100644

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

drivers/net/wireless/iwlwifi/mvm/ops.c +1 -0
index 610dbcb0dc27..d31a1178ae35 100644

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

drivers/net/wireless/iwlwifi/mvm/tx.c +2 -6
index 9ee410bf6da2..dbc870713882 100644

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

drivers/net/wireless/iwlwifi/pcie/trans.c +9 -7
index 06e04aaf61ee..d7231a82fe42 100644

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

drivers/net/wireless/rt2x00/rt2800.h +3 -1
index 7cf6081a05a1..ebd5625d13f1 100644

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

drivers/net/wireless/rt2x00/rt2800lib.c +6 -0
index 893c9d5f3d6f..9f57a2db791c 100644

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

drivers/net/wireless/rt2x00/rt2800usb.c +1 -0
index 573897b8e878..8444313eabe2 100644

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

drivers/of/base.c +22 -66

88 lines not on this page · raw message

drivers/of/selftest.c +60 -6

66 lines not on this page · raw message

drivers/of/testcase-data/tests-phandle.dtsi +2 -0
index ce0fe083d406..5b1527e8a7fb 100644

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

drivers/pci/pci-sysfs.c +4 -4
index 76ef7914c9aa..6d04771e4903 100644

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

drivers/phy/phy-omap-usb2.c +4 -2
index 93d78359246c..acc13f8179c3 100644

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

drivers/pinctrl/pinctrl-baytrail.c +1 -1
index e12e5b07f6d7..c23d8ded936d 100644

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

drivers/platform/x86/acer-wmi.c +11 -0
index 96a0b75c52c9..26c4fd1394da 100644

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

drivers/platform/x86/samsung-laptop.c +10 -0
index 5a5966512277..ff765d8e1a09 100644

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

drivers/power/charger-manager.c +5 -0
index 9e4dab46eefd..ef1f4c928431 100644

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

drivers/regulator/max77693.c +1 -1
index c67ff05fc1dd..d158f71fa128 100644

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

drivers/rtc/Kconfig +1 -1
index a168e96142b9..54ef393b0def 100644

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

drivers/scsi/qla2xxx/tcm_qla2xxx.c +10 -1
index e2beab962096..4747d2c66024 100644

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

drivers/scsi/scsi_lib.c +5 -0
index aaea4b98af16..7cb8c7310a27 100644

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

drivers/spi/spi-fsl-dspi.c +2 -2
index 5021ddf03f60..fde711380d1a 100644

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

drivers/spi/spi-pl022.c +1 -1
index f1f0a587e4fc..dbd576dbd15a 100644

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

drivers/spi/spi-pxa2xx.c +5 -2
index 46f45ca2c694..9090dad99bb2 100644

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

drivers/staging/comedi/comedi_fops.c +10 -8
index 2182c7463cdb..7a2e9c023257 100644

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

drivers/staging/iio/adc/mxs-lradc.c +8 -4
index 468327f4a753..d3436114a6f4 100644

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

drivers/staging/iio/impedance-analyzer/ad5933.c +6 -9
index 2b96665da8a2..97d4b3fb7e95 100644

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

drivers/staging/iio/meter/ade7758.h +0 -1
index 07318203a836..e8c98cf57070 100644

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

drivers/staging/iio/meter/ade7758_core.c +11 -46

57 lines not on this page · raw message

drivers/staging/iio/meter/ade7758_ring.c +2 -3
index c0accf8cce93..6e9006490742 100644

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

drivers/target/target_core_device.c +2 -1
index 98da90167159..15a1c133ec05 100644

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

drivers/target/target_core_pr.c +3 -3
index df357862286e..1aadcfc9a8c1 100644

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

drivers/target/target_core_pr.h +1 -1
index 2ee2936fa0bd..749fd7bb7510 100644

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

drivers/target/target_core_tpg.c +8 -0
index fddfae61222f..8d8ecfbcbad7 100644

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

drivers/target/target_core_transport.c +1 -2
index 7fa62fc93e0b..ab610146681d 100644

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

drivers/tty/serial/msm_serial.c +7 -15
index 0da0b5474e98..077570a48828 100644

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

drivers/tty/serial/serial_core.c +1 -1
index 29a7be47389a..0f03988d81fc 100644

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

drivers/tty/tty_io.c +6 -1
index 8fbad3410c75..848c17a58c3a 100644

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

drivers/tty/vt/consolemap.c +7 -0
index 610b720d3b91..59b25e039968 100644

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

drivers/usb/chipidea/core.c +0 -1
index 619d13e29995..4ecb6501a7ea 100644

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

drivers/usb/class/cdc-acm.c +16 -4
index e934e19f49f5..7daaef192c28 100644

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

drivers/usb/class/cdc-acm.h +2 -0
index fc75651afe1c..d3251ebd09e2 100644

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

drivers/usb/core/hcd.c +2 -0
index 487abcfcccd8..258e6fecdf5e 100644

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

drivers/usb/core/hub.c +3 -0
index dc849154f9de..674c262907d9 100644

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

drivers/usb/core/quirks.c +10 -0
index 814e712655e4..39b4081b632d 100644

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

drivers/usb/dwc3/dwc3-omap.c +2 -13
index fc0de3753648..97a5a0c7df7d 100644

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

drivers/usb/dwc3/ep0.c +2 -2
index 21a352079bc2..0985ff715c0c 100644

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

drivers/usb/dwc3/gadget.c +13 -6
index 490a6ca00733..8cbbb540eca3 100644

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

drivers/usb/dwc3/gadget.h +1 -1
index a0ee75b68a80..ac62558231be 100644

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

drivers/usb/gadget/function/f_acm.c +4 -3
index ab1065afbbd0..3384486c2884 100644

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

drivers/usb/gadget/function/f_fs.c +34 -8

42 lines not on this page · raw message

drivers/usb/gadget/udc/udc-core.c +5 -0
index b0d98172bc07..38913eac6e7c 100644

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

drivers/usb/host/Kconfig +2 -2
index 82800a775501..6f1d48ebc986 100644

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

drivers/usb/host/xhci-pci.c +4 -14
index c22a3e15a16e..d125568d73ff 100644

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

drivers/usb/musb/musb_cppi41.c +2 -1
index 3ee133f675ab..013fd1c034da 100644

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

drivers/usb/musb/musb_dsps.c +3 -1
index 154bcf1b5dfa..b18f8d5e4f98 100644

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

drivers/usb/serial/cp210x.c +1 -0
index eca1747ca8c7..cfd009dc4018 100644

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

drivers/usb/serial/ftdi_sio.c +3 -0
index dc72b924c399..0dad8ce5a609 100644

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

drivers/usb/serial/ftdi_sio_ids.h +11 -1
index 5937b2d242f2..6786b705ccf6 100644

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

drivers/usb/serial/kobil_sct.c +3 -2
index 078f9ed419c8..a31ff1503a99 100644

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

drivers/usb/serial/opticon.c +1 -1
index 4856fb7e637e..4b7bfb394a32 100644

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

drivers/usb/serial/option.c +10 -0
index 54a8120897a6..e87219a0f2f7 100644

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

drivers/usb/storage/transport.c +26 -0
index 22c7d4360fa2..b1d815eb6d0b 100644

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

drivers/usb/storage/unusual_uas.h +28 -0
index 8511b54a65d9..2fefaf923e4a 100644

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

drivers/video/console/bitblit.c +1 -2
index 61b182bf32a2..dbfe4eecf12e 100644

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

drivers/video/console/fbcon_ccw.c +1 -2
index 41b32ae23dac..5a3cbf6dff4d 100644

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

drivers/video/console/fbcon_cw.c +1 -2
index a93670ef7f89..e7ee44db4e98 100644

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

drivers/video/console/fbcon_ud.c +1 -2
index ff0872c0498b..19e3714abfe8 100644

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

drivers/video/fbdev/core/cfbcopyarea.c +8 -5
index bcb57235fcc7..6d4bfeecee35 100644

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

drivers/virtio/virtio_pci.c +30 -3
index 3d1463c6b120..add40d00dcdb 100644

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

fs/btrfs/file-item.c +1 -1
index 54c84daec9b5..74097722ad9f 100644

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

fs/buffer.c +8 -0
index 3588a80854b2..72daaa516090 100644

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

fs/dcache.c +7 -0
index cb25a1a5e307..34b40be8af11 100644

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

fs/ext3/super.c +0 -7
index 622e88249024..2c42e739e3d1 100644

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

fs/ext4/balloc.c +8 -4
index 581ef40fbe90..e0691559c8eb 100644

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

fs/ext4/bitmap.c +4 -8
index 3285aa5a706a..b610779a958c 100644

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

fs/ext4/ext4.h +11 -2
index b0c225cdb52c..96ac9d32a5d2 100644

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

fs/ext4/extents.c +2 -4
index 74292a71b384..18d8dc83e61b 100644

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

fs/ext4/file.c +1 -1
index aca7b24a4432..8131be8c0af3 100644

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

fs/ext4/ialloc.c +5 -2
index 5b87fc36aab8..ac644c31ca67 100644

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

fs/ext4/inline.c +1 -2
index bea662bd0ca6..aa8e69556c16 100644

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

fs/ext4/inode.c +34 -12

46 lines not on this page · raw message

fs/ext4/ioctl.c +10 -3
index 0f2252ec274d..bfda18a15592 100644

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

fs/ext4/mmp.c +2 -4
index 32bce844c2e1..8313ca3324ec 100644

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

fs/ext4/namei.c +16 -29

45 lines not on this page · raw message

fs/ext4/resize.c +2 -3
index 1e43b905ff98..ca4588388fc3 100644

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

fs/ext4/super.c +14 -18
index 0b28b36e7915..b1f0ac748320 100644

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

fs/ext4/xattr.c +26 -12
index e7387337060c..2d1e5803839f 100644

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

fs/jbd2/recovery.c +1 -0
index 9b329b55ffe3..bcbef08a4d8f 100644

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

fs/jffs2/jffs2_fs_sb.h +0 -2
index 413ef89c2d1b..046fee8b6e9b 100644

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

fs/jffs2/wbuf.c +2 -15
index a6597d60d76d..09ed55190ee2 100644

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

fs/lockd/mon.c +6 -0
index daa8e7514eae..9106f42c472c 100644

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

fs/namei.c +2 -1
index 3ddb044f3702..bb02687272d7 100644

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

fs/namespace.c +3 -0
index 7f67b463a5b4..550dbff08677 100644

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

fs/nfsd/nfs4proc.c +5 -2
index 5e0dc528a0e8..1d3cb479b002 100644

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

fs/ocfs2/cluster/tcp.c +1 -1
index ea34952f9496..485d22d649b3 100644

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

fs/pstore/inode.c +2 -2
index 192297b0090d..fafb7a02a5d6 100644

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

fs/quota/dquot.c +1 -1
index f2d0eee9d1f1..23c548d7ae66 100644

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

fs/super.c +2 -0
index b9a214d2fe98..6f8c954315c0 100644

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

fs/ubifs/commit.c +3 -5
index aa13ad053b14..26b69b2d4a45 100644

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

fs/ubifs/log.c +14 -5
index a47ddfc9be6b..c14628fbeee2 100644

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

fs/xfs/xfs_itable.c +122 -128

250 lines not on this page · raw message

fs/xfs/xfs_itable.h +0 -16
index aaed08022eb9..6ea8b3912fa4 100644

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

include/drm/drm_pciids.h +0 -1
index e973540cd15b..2dd405c9be78 100644

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

include/linux/blkdev.h +3 -5
index 518b46555b80..f2057ff80784 100644

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

include/linux/hid.h +1 -0
index f53c4a9cca1d..26ee25fced27 100644

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

include/linux/memcontrol.h +17 -41

58 lines not on this page · raw message

include/linux/mm.h +1 -1
index 16e6f1effef8..f952cc8b185d 100644

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

include/linux/of.h +70 -14

84 lines not on this page · raw message

include/linux/oom.h +3 -0
index 647395a1a550..e8d6e1058723 100644

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

include/linux/string.h +3 -2
index d36977e029af..3b42b3732da6 100644

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

include/linux/sunrpc/xprt.h +1 -0
index fcbfe8783243..cf391eef2e6d 100644

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

include/linux/usb/quirks.h +3 -0
index 32e0f5c04e72..4a185a0f6242 100644

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

include/net/ipv6.h +2 -0
index a2db816e8461..268c8f12aac2 100644

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

include/scsi/scsi_tcq.h +4 -4
index e64583560701..56ed843969ca 100644

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

include/uapi/drm/vmwgfx_drm.h +1 -1
index 4fc66f6b12ce..c472bedbe38e 100644

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

include/uapi/linux/input.h +7 -0
index 1874ebe9ac1e..a1d7e931ab72 100644

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

kernel/events/core.c +31 -23

54 lines not on this page · raw message

kernel/freezer.c +3 -0
index aa6a8aadb911..8f9279b9c6d7 100644

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

kernel/futex.c +11 -11
index f3a3a071283c..22b3f1b58201 100644

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

kernel/module.c +2 -0
index 03214bd288e9..1c47139d161c 100644

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

kernel/power/hibernate.c +7 -1
index a9dfa79b6bab..1f35a3478f3c 100644

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

kernel/power/process.c +39 -1
index 4ee194eb524b..7a37cf3eb1a2 100644

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

kernel/sched/core.c +15 -4
index ec1a286684a5..6d7cb9123dec 100644

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

kernel/time/posix-timers.c +1 -0
index 42b463ad90f2..31ea01f42e1f 100644

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

kernel/trace/trace_syscalls.c +4 -4
index 759d5e004517..7e3cd7aaec83 100644

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

lib/bitmap.c +6 -2
index 1e031f2c9aba..33ce01178b43 100644

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

lib/scatterlist.c +3 -3
index 9cdf62f8accd..c9f2e8c6ccc9 100644

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

lib/string.c +16 -0
index f3c6ff596414..70db57a81f7c 100644

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

mm/balloon_compaction.c +2 -0
index 52abeeb3cb9d..1811ea2c6302 100644

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

mm/cma.c +1 -0
index 0ab564623ea8..2904f45beab7 100644

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

mm/huge_memory.c +2 -2
index f8ffd9412ec5..45c6d6738dfa 100644

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

mm/memcontrol.c +57 -48

105 lines not on this page · raw message

mm/memory.c +1 -0
index e229970e4223..37b80fc3a9b6 100644

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

mm/oom_kill.c +17 -0
index 1e11df8fa7ec..f1fb141720b4 100644

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

mm/page-writeback.c +15 -28

43 lines not on this page · raw message

mm/page_alloc.c +8 -0
index eee961958021..8c5029f22bbe 100644

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

mm/page_cgroup.c +1 -0
index 3708264d2833..5331c2bd85a2 100644

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

mm/percpu.c +0 -2
index da997f9800bd..2139e30a4b44 100644

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

mm/rmap.c +10 -10
index 3e8491c504f8..e01318d4b07e 100644

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

mm/truncate.c +56 -0

56 lines not on this page · raw message

net/ceph/messenger.c +5 -1
index b2f571dd933d..9f02369d3262 100644

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

net/core/tso.c +2 -1
index 8c3203c585b0..630b30b4fb53 100644

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

net/ipv4/fib_semantics.c +1 -1
index b10cd43a4722..4a74ea85518f 100644

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

net/ipv4/gre_offload.c +1 -1
index 6556263c8fa5..dd73bea2a65f 100644

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

net/ipv4/ip_output.c +9 -3
index 215af2b155cb..c43a1e235182 100644

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

net/ipv4/ip_tunnel_core.c +2 -1
index f4c987bb7e94..88c386cf7d85 100644

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

net/ipv4/route.c +1 -0
index cbadb942c332..29836f8f86a6 100644

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

net/ipv4/tcp.c +20 -39

59 lines not on this page · raw message

net/ipv4/tcp_ipv4.c +2 -2
index cd17f009aede..3f49eaeb2559 100644

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

net/ipv6/output_core.c +34 -0
index 5ec867e4a8b7..1d4156ddf355 100644

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

net/ipv6/tcp_ipv6.c +2 -2
index 29964c3d363c..264c0f28baf4 100644

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

net/mac80211/rate.c +1 -1
index 8fdadfd94ba8..6081329784dd 100644

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

net/netlink/af_netlink.c +26 -13
index c416725d28c4..f1de72de273e 100644

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

net/sunrpc/clnt.c +3 -0
index 488ddeed9363..e0b94ce4c4e6 100644

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

net/sunrpc/xprtsock.c +4 -0
index 43cd89eacfab..700f87900e2d 100644

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

net/tipc/link.c +6 -1
index fb1485dc6736..640206580f34 100644

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

security/integrity/evm/evm_main.c +13 -3
index 3bcb80df4d01..970772c731ff 100644

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

security/integrity/ima/ima_appraise.c +2 -0
index 225fd944a4ef..58509436de23 100644

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

security/integrity/integrity.h +1 -0
index 904e68abd49e..6885058c645d 100644

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

security/selinux/hooks.c +1 -1
index b0e940497e23..e03bad59c374 100644

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

sound/core/pcm_compat.c +2 -0
index 102e8fd1d450..2d957ba63557 100644

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

sound/firewire/bebob/bebob_focusrite.c +48 -14

62 lines not on this page · raw message

sound/firewire/bebob/bebob_stream.c +15 -3
index ef4d0c9f6578..1aab0a32870c 100644

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

sound/pci/hda/hda_intel.c +3 -1
index aa302fb03fc5..0a7f848590d2 100644

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

sound/pci/hda/patch_realtek.c +0 -3
index b7b293cc710e..0c9d5880859a 100644

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

sound/soc/codecs/adau1761.c +4 -0
index 848cab839553..2e9e90dbeecf 100644

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

sound/soc/codecs/tlv320aic3x.c +13 -0
index 64f179ee9834..5e8626ae612b 100644

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

sound/soc/intel/sst-haswell-pcm.c +1 -3
index 61bf6da4bb02..e8957329ea60 100644

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

sound/soc/soc-core.c +2 -2
index d074aa91b023..a3e0a0df9c75 100644

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

sound/soc/soc-dapm.c +14 -11
index 177bd8639ef9..7098e6b27b2b 100644

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

sound/soc/soc-pcm.c +1 -1
index 642c86240752..002311afdeaa 100644

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

sound/usb/card.c +7 -2
index 7ecd0e8a5c51..f61ebb17cc64 100644

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

virt/kvm/iommu.c +4 -4
index 714b94932312..1f0dc1e5f1f0 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.