Linux 3.17.3
Greg KH
maintainerI'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
Greg KH
maintainerMakefile +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -24,7 +24,7 @@ do { \ asmvolatile ( \"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 { \ asmvolatile ( \"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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 0x0958static 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -251,12 +251,18 @@ static void serverworks_set_dmamode(struct ata_port *ap, struct ata_device *adevpci_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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -418,7 +418,7 @@ static void radeon_cs_parser_fini(struct radeon_cs_parser *parser, int error, bokfree (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
@@ -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
@@ -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
@@ -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
@@ -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/iio/common/st_sensors/st_sensors_buffer.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/isert/ib_isert.c +2 -2
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/media/platform/exynos4-is/Kconfig +1 -1
Lines of this file are not shown. View the raw message.
drivers/media/usb/em28xx/em28xx-cards.c +0 -11
Lines of this file are not shown. View the raw message.
drivers/media/usb/em28xx/em28xx-core.c +11 -1
Lines of this file are not shown. View the raw message.
drivers/media/usb/em28xx/em28xx-video.c +12 -3
Lines of this file are not shown. View the raw message.
drivers/media/v4l2-core/videobuf-dma-sg.c +4 -2
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/net/ethernet/chelsio/cxgb4/cxgb4_main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/en_tx.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/mcg.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +7 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/dvm/mac80211.c +13 -11
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/iwl-trans.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/mvm/coex.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/mvm/coex_legacy.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/mvm/fw-api-power.h +34 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/mvm/fw-api.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/pcie/trans.c +9 -7
Lines of this file are not shown. View the raw message.
drivers/net/wireless/rt2x00/rt2800lib.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/rt2x00/rt2800usb.c +1 -0
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
Lines of this file are not shown. View the raw message.
drivers/staging/iio/impedance-analyzer/ad5933.c +6 -9
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
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
fs/ext4/inode.c +34 -12
46 lines not on this page · raw message
fs/ext4/namei.c +16 -29
45 lines not on this page · raw message
fs/xfs/xfs_itable.c +122 -128
250 lines not on this page · raw message
include/linux/memcontrol.h +17 -41
58 lines not on this page · raw message
include/linux/of.h +70 -14
84 lines not on this page · raw message
kernel/events/core.c +31 -23
54 lines not on this page · raw message
mm/memcontrol.c +57 -48
105 lines not on this page · raw message
mm/page-writeback.c +15 -28
43 lines not on this page · raw message
mm/truncate.c +56 -0
56 lines not on this page · raw message
net/ipv4/tcp.c +20 -39
59 lines not on this page · raw message
sound/firewire/bebob/bebob_focusrite.c +48 -14
62 lines not on this page · 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.