Linux 3.19.7
Greg KH
maintainerI'm announcing the release of the 3.19.7 kernel.
All users of the 3.19 kernel series must upgrade.
The updated 3.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.19.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/virtual/kvm/devices/s390_flic.txt | 3 Makefile | 2 arch/arm/boot/dts/at91-sama5d3_xplained.dts | 6 arch/arm/boot/dts/dove.dtsi | 4 arch/arm/boot/dts/exynos5250-spring.dts | 16 - arch/arm/include/asm/elf.h | 2 arch/arm/include/asm/kvm_mmu.h | 15 - arch/arm/include/uapi/asm/kvm.h | 8 arch/arm/kernel/hibernate.c | 5 arch/arm/kernel/process.c | 10 - arch/arm/kernel/reboot.h | 6 arch/arm/kvm/arm.c | 3 arch/arm/kvm/mmu.c | 73 +++++-- arch/arm/mach-mvebu/pmsu.c | 16 + arch/arm/mach-s3c64xx/crag6410.h | 1 arch/arm/mach-s3c64xx/mach-crag6410.c | 1 arch/arm64/Kconfig | 25 ++ arch/arm64/include/asm/cpufeature.h | 3 arch/arm64/include/asm/kvm_mmu.h | 48 ----- arch/arm64/include/asm/smp_plat.h | 2 arch/arm64/include/uapi/asm/kvm.h | 8 arch/arm64/kernel/cpu_errata.c | 11 + arch/arm64/kernel/entry.S | 20 ++ arch/arm64/kernel/head.S | 1 arch/arm64/kernel/setup.c | 12 + arch/arm64/kernel/smp.c | 2 arch/c6x/kernel/time.c | 2 arch/mips/include/asm/asm-eva.h | 137 ++++++++++----- arch/mips/include/asm/fpu.h | 1 arch/mips/include/asm/kvm_host.h | 2 arch/mips/kvm/emulate.c | 1 arch/mips/kvm/mips.c | 4 arch/mips/kvm/trap_emul.c | 28 +++ arch/mips/loongson/loongson-3/irq.c | 1 arch/mips/mti-malta/malta-memory.c | 6 arch/mips/power/hibernate.S | 3 arch/powerpc/kernel/cacheinfo.c | 44 +++- arch/powerpc/perf/callchain.c | 2 arch/powerpc/platforms/cell/interrupt.c | 2 arch/powerpc/platforms/cell/iommu.c | 2 arch/powerpc/platforms/powernv/pci-ioda.c | 3 arch/s390/kernel/suspend.c | 4 arch/s390/kvm/interrupt.c | 70 +++---- arch/s390/kvm/kvm-s390.h | 4 arch/s390/kvm/priv.c | 42 ++-- arch/x86/include/asm/insn.h | 2 arch/x86/include/asm/mwait.h | 8 arch/x86/kernel/cpu/perf_event_intel_ds.c | 8 arch/x86/kernel/process.c | 51 +++++ arch/x86/kvm/x86.c | 10 - arch/x86/lib/insn.c | 7 arch/xtensa/Kconfig | 30 +++ arch/xtensa/include/uapi/asm/unistd.h | 2 arch/xtensa/platforms/iss/network.c | 29 +-- arch/xtensa/platforms/xtfpga/Makefile | 3 arch/xtensa/platforms/xtfpga/include/platform/hardware.h | 3 arch/xtensa/platforms/xtfpga/include/platform/lcd.h | 15 + arch/xtensa/platforms/xtfpga/lcd.c | 55 +++--- drivers/acpi/acpica/tbinstal.c | 1 drivers/acpi/scan.c | 6 drivers/base/bus.c | 4 drivers/base/cacheinfo.c | 13 + drivers/base/platform.c | 9 drivers/bluetooth/ath3k.c | 1 drivers/bluetooth/btusb.c | 1 drivers/clk/at91/clk-usb.c | 64 +++++-- drivers/clk/qcom/clk-rcg2.c | 2 drivers/clk/qcom/gcc-ipq806x.c | 2 drivers/clk/samsung/clk-exynos4.c | 11 - drivers/clk/tegra/clk.c | 2 drivers/crypto/omap-aes.c | 14 + drivers/gpio/gpio-mvebu.c | 24 +- drivers/gpu/drm/i2c/adv7511.c | 102 +++++------ drivers/gpu/drm/i915/i915_drv.c | 4 drivers/gpu/drm/i915/i915_irq.c | 8 drivers/gpu/drm/i915/i915_reg.h | 1 drivers/gpu/drm/i915/intel_i2c.c | 66 ++++++- drivers/gpu/drm/radeon/atombios_crtc.c | 8 drivers/hv/channel.c | 7 drivers/i2c/busses/i2c-rk3x.c | 2 drivers/i2c/i2c-core.c | 3 drivers/i2c/i2c-mux.c | 8 drivers/infiniband/core/umem.c | 7 drivers/infiniband/hw/mlx4/qp.c | 3 drivers/infiniband/ulp/iser/iser_initiator.c | 4 drivers/infiniband/ulp/isert/ib_isert.c | 20 +- drivers/input/mouse/elantech.c | 22 ++ drivers/input/mouse/elantech.h | 1 drivers/md/dm-crypt.c | 12 - drivers/md/md.c | 6 drivers/md/raid0.c | 3 drivers/media/rc/img-ir/img-ir-core.c | 2 drivers/media/usb/stk1160/stk1160-v4l.c | 17 + drivers/memstick/core/mspro_block.c | 3 drivers/mfd/mfd-core.c | 2 drivers/mmc/host/sunxi-mmc.c | 4 drivers/mtd/ubi/attach.c | 2 drivers/mtd/ubi/cdev.c | 2 drivers/mtd/ubi/eba.c | 3 drivers/mtd/ubi/wl.c | 2 drivers/net/ethernet/intel/e1000/e1000_main.c | 10 - drivers/net/ethernet/marvell/pxa168_eth.c | 16 - drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 29 +-- drivers/net/ppp/ppp_generic.c | 1 drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 2 drivers/net/wireless/ti/wl18xx/debugfs.c | 2 drivers/net/wireless/ti/wlcore/debugfs.h | 4 drivers/nfc/st21nfcb/i2c.c | 4 drivers/platform/x86/compal-laptop.c | 10 - drivers/power/ipaq_micro_battery.c | 22 ++ drivers/power/lp8788-charger.c | 4 drivers/power/twl4030_madc_battery.c | 7 drivers/scsi/mvsas/mv_sas.c | 5 drivers/scsi/sd.c | 1 drivers/scsi/sd_dif.c | 2 drivers/scsi/storvsc_drv.c | 15 - drivers/spi/spi-imx.c | 4 drivers/spi/spidev.c | 5 drivers/staging/android/sync.c | 2 drivers/staging/panel/panel.c | 12 - drivers/staging/vt6655/rxtx.c | 14 + drivers/target/target_core_file.c | 122 ++++++++----- drivers/target/target_core_sbc.c | 15 + drivers/target/target_core_transport.c | 37 +++- drivers/usb/class/cdc-wdm.c | 12 - drivers/usb/core/hub.c | 4 drivers/usb/gadget/legacy/printer.c | 9 drivers/usb/host/ehci-hcd.c | 10 - drivers/usb/host/ehci-hub.c | 9 drivers/usb/host/fotg210-hcd.c | 2 drivers/usb/host/fusbh200-hcd.c | 3 drivers/usb/host/isp116x-hcd.c | 2 drivers/usb/host/oxu210hp-hcd.c | 7 drivers/usb/host/r8a66597-hcd.c | 2 drivers/usb/host/sl811-hcd.c | 2 drivers/usb/host/uhci-hub.c | 5 drivers/usb/host/xhci-ring.c | 2 drivers/usb/musb/musb_core.c | 49 +++-- drivers/usb/musb/musb_virthub.c | 2 drivers/usb/phy/phy.c | 4 fs/binfmt_elf.c | 9 fs/btrfs/extent-tree.c | 5 fs/btrfs/ioctl.c | 8 fs/btrfs/xattr.c | 53 ++++- fs/ext4/namei.c | 20 +- fs/lockd/svcsubs.c | 2 fs/namei.c | 6 fs/namespace.c | 31 +-- fs/nfs/nfs4xdr.c | 6 fs/nfs/read.c | 2 fs/nfs/write.c | 2 fs/nfsd/nfs4proc.c | 4 fs/nfsd/nfs4state.c | 2 fs/nfsd/nfs4xdr.c | 12 - fs/nfsd/nfsd.h | 2 fs/open.c | 2 fs/pnode.h | 1 include/acpi/actypes.h | 20 ++ include/acpi/platform/acenv.h | 1 include/kvm/arm_vgic.h | 1 include/linux/bpf.h | 4 include/linux/skbuff.h | 13 + include/linux/usb.h | 26 ++ include/target/target_core_base.h | 2 include/uapi/linux/nfsd/debug.h | 8 kernel/bpf/verifier.c | 5 kernel/ptrace.c | 20 ++ kernel/trace/ring_buffer.c | 11 - kernel/trace/trace_events.c | 9 kernel/trace/trace_functions_graph.c | 8 lib/string.c | 2 net/bridge/br_netfilter.c | 17 + net/core/skbuff.c | 30 ++- net/ipv4/ip_forward.c | 3 net/ipv4/tcp_output.c | 64 ++++--- net/mac80211/mlme.c | 2 net/netlink/af_netlink.c | 6 sound/pci/emu10k1/emuproc.c | 12 - sound/pci/hda/patch_realtek.c | 8 sound/soc/codecs/cs4271.c | 4 sound/soc/codecs/pcm512x.c | 4 sound/soc/codecs/wm8741.c | 8 sound/soc/davinci/davinci-evm.c | 10 - tools/lib/traceevent/kbuffer-parse.c | 1 tools/perf/config/Makefile | 4 tools/perf/tests/make | 2 tools/perf/util/cloexec.c | 6 tools/perf/util/cloexec.h | 6 tools/perf/util/symbol-elf.c | 4 tools/power/x86/turbostat/Makefile | 6 virt/kvm/arm/vgic-v2.c | 8 virt/kvm/arm/vgic-v3.c | 8 virt/kvm/arm/vgic.c | 21 ++ virt/kvm/kvm_main.c | 4 194 files changed, 1645 insertions(+), 721 deletions(-)
Akinobu Mita (3):
target/file: Fix BUG() when CONFIG_DEBUG_SG=y and DIF protection enabled target/file: Fix UNMAP with DIF protection support target/file: Fix SG table for prot_buf initialization
Al Viro (1):
RCU pathwalk breakage when running into a symlink overmounting something
Alex Deucher (1):
drm/radeon: fix doublescan modes (v2)
Alexander Ploumistos (1):
Bluetooth: ath3k: Add support Atheros AR5B195 combo Mini PCIe card
Alexey Khoroshilov (1):
pxa168: fix double deallocation of managed resources
Alistair Strachan (1):
staging: android: sync: Fix memory corruption in sync_timeline_signal().
Amir Vadai (1):
net/mlx4_en: Prevent setting invalid RSS hash function
Andre Przywara (1):
KVM: arm/arm64: check IRQ number on userland injection
Andreas Faerber (1):
ARM: dts: fix mmc node updates for exynos5250-spring
Andrew Elble (1):
NFS: fix BUG() crash in notify_change() with patch to chown_common()
Andrey Ryabinin (1):
ARM: 8320/1: fix integer overflow in ELF_ET_DYN_BASE
Andrzej Pietrasiewicz (1):
usb: gadget: printer: enqueue printer's response for setup request
Andy Lutomirski (1):
x86/asm/decoder: Fix and enforce max instruction size in the insn decoder
Anna Schumaker (1):
NFS: Add a stub for GETDEVICELIST
Anton Blanchard (1):
powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH
Archit Taneja (1):
clk: qcom: fix RCG M/N counter configuration
Axel Lin (1):
usb: phy: Find the right match in devm_usb_phy_match
Bartlomiej Zolnierkiewicz (1):
clk: samsung: exynos4: Disable ARMCLK down feature on Exynos4210 SoC
Ben Collins (1):
dm crypt: fix deadlock when async crypto algorithm returns -EBUSY
Bo Yan (1):
arm64: fix midr range for Cortex-A57 erratum 832075
Boris Brezillon (1):
clk: at91: usb: propagate rate modification to the parent clk
Brian Norris (4):
UBI: account for bitflips in both the VID header and data
UBI: fix out of bounds write
UBI: initialize LEB number variable
UBI: fix check for "too many bytes"
Charles Keepax (1):
ARM: S3C64XX: Use fixed IRQ bases to avoid conflicts on Cragganmore
Chen-Yu Tsai (1):
mmc: sunxi: Use devm_reset_control_get_optional() for reset control
Christian Borntraeger (1):
KVM: s390: no need to hold the kvm->mutex for floating interrupts
Christoffer Dall (1):
arm/arm64: KVM: Keep elrsr/aisr in sync with software model
Christophe Ricard (1):
NFC: st21nfcb: Retry i2c_master_send if it returns a negative value
Dan Carpenter (1):
memstick: mspro_block: add missing curly braces
Daniel Borkmann (1):
ebpf: verifier: check that call reg with ARG_ANYTHING is initialized
Daniel Vetter (1):
drm/i915: Dont enable CS_PARSER_ERROR interrupts at all
Dave Olson (1):
powerpc: Fix missing L2 cache size in /sys/devices/system/cpu
David Henningsson (1):
ALSA: hda - fix "num_steps = 0" error on ALC256
David Hildenbrand (2):
KVM: s390: fix handling of write errors in the tpi handler
KVM: s390: reinjection of irqs can fail in the tpi handler
David Sterba (1):
btrfs: don't accept bare namespace as a valid xattr
Dmitry Torokhov (2):
i2c: rk3x: report number of messages transmitted drm/i915: cope with large i2c transfers
Ekaterina Tumanova (1):
KVM: s390: Zero out current VMDB of STSI before including level3 data.
Erez Shitrit (1):
IB/mlx4: Fix WQE LSO segment calculation
Eric Auger (1):
KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu
Eric Dumazet (4):
tcp: fix possible deadlock in tcp_send_fin()
tcp: avoid looping in tcp_send_fin()
net: do not deplete pfmemalloc reserve
net: fix crash in build_skb()
Eric W. Biederman (2):
mnt: Improve the umount_tree flags
mnt: Don't propagate umounts in __detach_mounts
Ezequiel Garcia (1):
stk1160: Make sure current buffer is released
Felipe Balbi (13):
usb: musb: core: fix TX/RX endpoint order
usb: define a generic USB_RESUME_TIMEOUT macro
usb: musb: use new USB_RESUME_TIMEOUT
usb: host: oxu210hp: use new USB_RESUME_TIMEOUT
usb: host: fusbh200: use new USB_RESUME_TIMEOUT
usb: host: uhci: use new USB_RESUME_TIMEOUT
usb: host: fotg210: use new USB_RESUME_TIMEOUT
usb: host: r8a66597: use new USB_RESUME_TIMEOUT
usb: host: isp116x: use new USB_RESUME_TIMEOUT
usb: host: xhci: use new USB_RESUME_TIMEOUT
usb: host: ehci: use new USB_RESUME_TIMEOUT
usb: host: sl811: use new USB_RESUME_TIMEOUT
usb: core: hub: use new USB_RESUME_TIMEOUT
Filipe Manana (3):
Btrfs: fix log tree corruption when fs mounted with -o discard
Btrfs: fix inode eviction infinite loop after cloning into it
Btrfs: fix inode eviction infinite loop after extent_same ioctl
Florian Westphal (1):
netfilter: bridge: really save frag_max_size between PRE and POST_ROUTING
Gavin Shan (1):
powerpc/powernv: Don't map M64 segments using M32DT
Greg Kroah-Hartman (1):
Linux 3.19.7
Gregory CLEMENT (2):
ARM: mvebu: Disable CPU Idle on Armada 38x
gpio: mvebu: Fix mask/unmask managment per irq chip type
Gu Zheng (1):
md: fix md io stats accounting broken
H.J. Lu (1):
perf tools: Fix perf-read-vdsox32 not building and lib64 install dir
Heiko Carstens (1):
s390/hibernate: fix save and restore of kernel text section
Howard Mitchell (1):
ASoC: pcm512x: Add 'Analogue' prefix to analogue volume controls
Huacai Chen (2):
MIPS: Loongson-3: Add IRQF_NO_SUSPEND to Cascade irqaction
MIPS: Hibernate: flush TLB entries earlier
Ian Abbott (1):
spi: spidev: fix possible arithmetic overflow for multi-transfer message
Imre Deak (1):
drm/i915: vlv: fix save/restore of GFX_MAX_REQ_COUNT reg
J. Bruce Fields (3):
nfsd4: disallow ALLOCATE with special stateids
nfsd4: fix READ permission checking
nfsd4: disallow SEEK with special stateids
James Bottomley (1):
mvsas: fix panic on expander attached SATA devices
James Hogan (2):
MIPS: KVM: Handle MSA Disabled exceptions from guest
MIPS: lose_fpu(): Disable FPU when MSA enabled
Jan Kiszka (1):
ARM: KVM: Fix size check in __coherent_cache_guest_page
Jens Freimann (1):
KVM: s390: fix get_all_floating_irqs
Jo-Philipp Wich (1):
ALSA: hda/realtek - Enable the ALC292 dock fixup on the Thinkpad T450
Johan Hovold (1):
mfd: core: Fix platform-device name collisions
Johannes Berg (1):
mac80211: send AP probe as unicast again
Joonsoo Kim (1):
tracing: Fix incorrect enabling of trace events by boot cmdline
Junjie Mao (1):
driver core: bus: Goto appropriate labels on failure in bus_add_device
K. Y. Srinivasan (2):
scsi: storvsc: Fix a bug in copy_from_bounce_buffer()
Drivers: hv: vmbus: Fix a bug in the error path in vmbus_open()
Kailang Yang (1):
ALSA: hda/realtek - Fix Headphone Mic doesn't recording for ALC256
Krzysztof Kozlowski (6):
compal-laptop: Fix leaking hwmon device
compal-laptop: Check return value of power_supply_register
power_supply: twl4030_madc: Check return value of power_supply_register
power_supply: lp8788-charger: Fix leaked power supply on probe fail
power_supply: ipaq_micro_battery: Fix leaking workqueue
power_supply: ipaq_micro_battery: Check return values in probe
Larry Finger (1):
rtlwifi: rtl8192cu: Add new USB ID
Laurent Pinchart (2):
drm: adv7511: Fix DDC error interrupt handling
drm: adv7511: Fix nested sleep when reading EDID
Len Brown (1):
sched/idle/x86: Restore mwait_idle() to fix boot hangs, to improve power savings and to improve performance
Linus Walleij (1):
drivers: platform: parse IRQ flags from resources
Lucas Stach (1):
spi: imx: read back the RX/TX watermark levels earlier
Lukas Czerner (1):
ext4: make fsync to sync parent dir in no-journal for real this time
Lv Zheng (1):
ACPICA: Utilities: split IO address types from data type models.
Malcolm Priestley (1):
staging: vt6655: use ieee80211_tx_info to select packet type.
Manish Badarkhe (1):
ASoC: davinci-evm: drop un-necessary remove function
Marc Zyngier (2):
arm64: KVM: Fix stage-2 PGD allocation to have per-page refcounting
arm64: KVM: Do not use pgd_index to index stage-2 pgd
Marek Vasut (1):
rtlwifi: rtl8192cu: Add new device ID
Mark Brown (1):
i2c: core: Export bus recovery functions
Mark Rutland (2):
arm64: head.S: ensure visibility of page tables
arm64: apply alternatives for !SMP kernels
Mark Salter (1):
nfsd: eliminate NFSD_DEBUG
Markos Chandras (2):
MIPS: Malta: Detect and fix bad memsize values
MIPS: asm: asm-eva: Introduce kernel load/store variants
Martin K. Petersen (2):
sd: Unregister integrity profile
sd: Fix missing ATO tag check
Max Filippov (3):
xtensa: xtfpga: fix hardware lockup caused by LCD driver
xtensa: provide __NR_sync_file_range2 instead of __NR_sync_file_range
xtensa: ISS: fix locking in TAP network adapter
Michael Davidson (1):
fs/binfmt_elf.c: fix bug in loading of PIE binaries
Michael Ellerman (2):
powerpc/cell: Fix crash in iic_setup_cpu() after per_cpu changes powerpc/cell: Fix cell iommu after it_page_shift changes
Michael Gernoth (1):
ALSA: emu10k1: don't deadlock in proc-functions
Mike Galbraith (1):
sched/idle/x86: Optimize unnecessary mwait_idle() resched IPIs
Nadav Amit (1):
KVM: x86: Fix MSR_IA32_BNDCFGS in msrs_to_save
NeilBrown (1):
md/raid0: fix bug with chunksize not a power of 2.
Nicholas Bellinger (1):
target: Fix COMPARE_AND_WRITE with SG_TO_MEM_NOALLOC handling
Nicolas Ferre (1):
ARM: at91/dt: sama5d3 xplained: add phy address for macb1
Nicolas Iooss (2):
Revert "nfs: replace nfs_add_stats with nfs_inc_stats when add one"
wl18xx: show rx_frames_per_rates as an array as it really is
Nishanth Menon (1):
C6x: time: Ensure consistency in __init
Octavian Purdila (1):
ACPICA: Tables: Don't release ACPI_MTX_TABLES in acpi_tb_install_standard_table().
Oleg Nesterov (1):
ptrace: fix race between ptrace_resume() and wait_task_stopped()
Oliver Neukum (1):
cdc-wdm: fix endianness bug in debug statements
Pascal Huerst (1):
ASoC: cs4271: Increase delay time after reset
Peter Zijlstra (1):
perf/x86/intel: Fix Core2,Atom,NHM,WSM cycles:pp events
Rabin Vincent (1):
tracing: Handle ftrace_dump() atomic context in graph_trace_open()
Radim Krčmář (1):
KVM: use slowpath for cross page cached accesses
Rafael J. Wysocki (1):
ACPI / scan: Annotate physical_node_lock in acpi_scan_is_offline()
Russell King (1):
ARM: fix broken hibernation
Sabrina Dubroca (1):
e1000: add dummy allocator to fix race condition between mtu change and netpoll
Sagi Grimberg (3):
iser-target: Fix session hang in case of an rdma read DIF error
iser-target: Fix possible deadlock in RDMA_CM connection error IB/iser: Fix wrong calculation of protection buffer length
Sebastian Hesselbarth (1):
ARM: dts: dove: Fix uart[23] reg property
Sebastian Pöhn (1):
ip_forward: Drop frames with attached skb->sk
Sergej Sawazki (1):
ASoC: wm8741: Fix rates constraints values
Sifan Naeem (1):
rc: img-ir: fix error in parameters passed to irq_free()
Stephen Boyd (1):
clk: qcom: Fix i2c frequency table
Steven Rostedt (1):
ring-buffer: Replace this_cpu_*() with __this_cpu_*()
Steven Rostedt (Red Hat) (1):
tools lib traceevent kbuffer: Remove extra update to data pointer in PADDING
Sudeep Holla (1):
drivers/base: cacheinfo: validate device node for all the caches
Sudip Mukherjee (1):
staging: panel: fix lcd type
Thierry Reding (1):
clk: tegra: Register the proper number of resets
Thomas D (1):
tools/power turbostat: Use $(CURDIR) instead of $(PWD) and add support for O= option in Makefile
Tom Herbert (2):
net: add skb_checksum_complete_unset
ppp: call skb_checksum_complete_unset in ppp_receive_frame
Ulrik De Bie (1):
Input: elantech - fix absolute mode setting on some ASUS laptops
Vinson Lee (2):
perf symbols: Define STT_GNU_IFUNC for glibc 2.9 and older. perf tools: Work around lack of sched_getcpu in glibc < 2.6.
Vutla, Lokesh (1):
crypto: omap-aes - Fix support for unequal lengths
Will Deacon (1):
arm64: errata: add workaround for cortex-a53 erratum #845719
Wolfram Sang (1):
i2c: mux: use proper dev when removing "channel-X" symlinks
Yann Droneaud (2):
IB/core: disallow registering 0-sized memory region IB/core: don't disallow registering region starting at 0x0
Yves-Alexis Perez (1):
ALSA: hda - Add dock support for ThinkPad X250 (17aa:2226)
mancha security (1):
lib: memzero_explicit: use barrier instead of OPTIMIZER_HIDE_VAR
Greg KH
maintainerDocumentation/virtual/kvm/devices/s390_flic.txt +3 -0
@@ -27,6 +27,9 @@ Groups: Copies all floating interrupts into a buffer provided by userspace. When the buffer is too small it returns -ENOMEM, which is the indication for userspace to try again with a bigger buffer. + -ENOBUFS is returned when the allocation of a kernelspace buffer has + failed. + -EFAULT is returned when copying data to userspace failed. All interrupts remain pending, i.e. are not deleted from the list of currently pending interrupts. attr->addr contains the userspace address of the buffer into which all
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 19 -SUBLEVEL = 6 +SUBLEVEL = 7 EXTRAVERSION = NAME = Diseased Newt
arch/arm/boot/dts/at91-sama5d3_xplained.dts +6 -0
@@ -167,7 +167,13 @@ macb1: ethernet@f802c000 { phy-mode = "rmii"; + #address-cells = <1>; + #size-cells = <0>; status = "okay"; + + ethernet-phy@1 { + reg = <0x1>; + }; }; dbgu: serial@ffffee00 {
arch/arm/boot/dts/dove.dtsi +2 -2
@@ -154,7 +154,7 @@ uart2: serial@12200 { compatible = "ns16550a"; - reg = <0x12000 0x100>; + reg = <0x12200 0x100>; reg-shift = <2>; interrupts = <9>; clocks = <&core_clk 0>;
@@ -163,7 +163,7 @@ uart3: serial@12300 { compatible = "ns16550a"; - reg = <0x12100 0x100>; + reg = <0x12300 0x100>; reg-shift = <2>; interrupts = <10>; clocks = <&core_clk 0>;
arch/arm/boot/dts/exynos5250-spring.dts +4 -12
@@ -429,7 +429,6 @@ &mmc_0 { status = "okay"; num-slots = <1>; - supports-highspeed; broken-cd; card-detect-delay = <200>; samsung,dw-mshc-ciu-div = <3>;
@@ -437,11 +436,8 @@ samsung,dw-mshc-ddr-timing = <1 2>; pinctrl-names = "default"; pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4 &sd0_bus8>; - - slot@0 { - reg = <0>; - bus-width = <8>; - }; + bus-width = <8>; + cap-mmc-highspeed; }; /*
@@ -451,7 +447,6 @@ &mmc_1 { status = "okay"; num-slots = <1>; - supports-highspeed; broken-cd; card-detect-delay = <200>; samsung,dw-mshc-ciu-div = <3>;
@@ -459,11 +454,8 @@ samsung,dw-mshc-ddr-timing = <1 2>; pinctrl-names = "default"; pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_bus4>; - - slot@0 { - reg = <0>; - bus-width = <4>; - }; + bus-width = <4>; + cap-sd-highspeed; }; &pinctrl_0 {
arch/arm/include/asm/elf.h +1 -1
@@ -115,7 +115,7 @@ int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs);the loader. We need to make sure that it is out of the way of the program that it will "exec", and that there is sufficient room for the brk. */ -#define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3) +#define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)/* When the program starts, a1 contains a pointer to a function to be registered with atexit, as per the SVR4 ABI. A value of 0 means we
arch/arm/include/asm/kvm_mmu.h +7 -8
@@ -128,29 +128,28 @@ static inline void kvm_set_s2pmd_writable(pmd_t *pmd) (__boundary -1 < (end) -1 )? __boundary: (end); \ }) +#define kvm_pgd_index (addr) pgd_index(addr) +static inline bool kvm_page_empty (void *ptr) {struct page *ptr_page =virt_to_page (ptr);return page_count (ptr_page) ==1 ; } -#define kvm_pte_table_empty (kvm, ptep) kvm_page_empty(ptep)#define kvm_pmd_table_empty (kvm, pmdp) kvm_page_empty(pmdp)#define kvm_pud_table_empty (kvm, pudp) (0)#define KVM_PREALLOC_LEVEL 0 -static inline int kvm_prealloc_hwpgd (struct kvm *kvm,pgd_t *pgd) +static inline void *kvm_get_hwpgd (struct kvm *kvm) { -return 0 ; +return kvm->arch.pgd; } -static inline void kvm_free_hwpgd (struct kvm *kvm) { } - -static inline void *kvm_get_hwpgd (struct kvm *kvm) +static inline unsigned int kvm_get_hwpgd_size (void ) { -return kvm->arch.pgd; +return PTRS_PER_S2_PGD *sizeof (pgd_t); }struct kvm ;
@@ -186,7 +185,7 @@ static inline void __coherent_cache_guest_page(struct kvm_vcpu *vcpu, pfn_t pfn,bool need_flush = !vcpu_has_cache_enabled (vcpu) || ipa_uncached; -VM_BUG_ON (size &PAGE_MASK ); +VM_BUG_ON (size & ~PAGE_MASK );if (!need_flush && !icache_is_pipt ()) goto vipt_cache;
arch/arm/include/uapi/asm/kvm.h +7 -1
@@ -193,8 +193,14 @@ struct kvm_arch_memory_slot {#define KVM_ARM_IRQ_CPU_IRQ 0#define KVM_ARM_IRQ_CPU_FIQ 1 -/* Highest supported SPI, from VGIC_NR_IRQS */ +/* +* This used to hold the highest supported SPI, but it is now obsolete +* and only here to provide source code level compatibility with older +* userland. The highest SPI number can be set via KVM_DEV_ARM_VGIC_GRP_NR_IRQS. +*/ +#ifndef __KERNEL__#define KVM_ARM_IRQ_GIC_MAX 127 +#endif /* PSCI interface */ #define KVM_PSCI_FN_BASE 0x95c1ba5e
arch/arm/kernel/hibernate.c +3 -2
@@ -22,6 +22,7 @@#include <asm/suspend.h> #include <asm/memory.h> #include <asm/sections.h> +#include "reboot.h" int pfn_is_nosave (unsigned long pfn) {
@@ -61,7 +62,7 @@ static int notrace arch_save_image(unsigned long unused) ret =swsusp_save ();if (ret ==0 ) -soft_restart (virt_to_phys (cpu_resume)); +_soft_restart (virt_to_phys (cpu_resume), false);return ret; }
@@ -86,7 +87,7 @@ static void notrace arch_restore_image(void *unused)for (pbe = restore_pblist; pbe; pbe = pbe->next)copy_page (pbe->orig_address, pbe->address); -soft_restart (virt_to_phys (cpu_resume)); +_soft_restart (virt_to_phys (cpu_resume), false); } static u64 resume_stack[PAGE_SIZE/2/sizeof(u64)] __nosavedata;
arch/arm/kernel/process.c +8 -2
@@ -41,6 +41,7 @@#include <asm/system_misc.h> #include <asm/mach/time.h> #include <asm/tls.h> +#include "reboot.h" #ifdef CONFIG_CC_STACKPROTECTOR #include <linux/stackprotector.h>
@@ -95,7 +96,7 @@ static void __soft_restart(void *addr)BUG (); } -void soft_restart (unsigned long addr) +void _soft_restart (unsigned long addr,bool disable_l2) {u64 *stack = soft_restart_stack +ARRAY_SIZE (soft_restart_stack);
@@ -104,7 +105,7 @@ void soft_restart(unsigned long addr)local_fiq_disable ();/* Disable the L2 if we're the last man standing. */ -if (num_online_cpus () ==1 ) +if (disable_l2)outer_disable ();/* Change to the new stack and continue with the reset. */
@@ -114,6 +115,11 @@ void soft_restart(unsigned long addr)BUG (); } +void soft_restart (unsigned long addr) +{ +_soft_restart (addr,num_online_cpus () ==1 ); +} +/* * Function pointers to optional machine specific functions */
arch/arm/kernel/reboot.h new file +6 -0
@@ -0,0 +1,6 @@ +#ifndef REBOOT_H +#define REBOOT_H + +extern void _soft_restart (unsigned long addr,bool disable_l2); + +#endif
arch/arm/kvm/arm.c +1 -2
@@ -644,8 +644,7 @@ int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_level,if (!irqchip_in_kernel (kvm))return -ENXIO ; -if (irq_num <VGIC_NR_PRIVATE_IRQS || - irq_num >KVM_ARM_IRQ_GIC_MAX ) +if (irq_num <VGIC_NR_PRIVATE_IRQS )return -EINVAL ;return kvm_vgic_inject_irq (kvm,0 , irq_num, level);
arch/arm/kvm/mmu.c +52 -21
135 lines not on this page · raw message
arch/arm/mach-mvebu/pmsu.c +15 -1
@@ -415,6 +415,9 @@ static __init int armada_38x_cpuidle_init(void)void __iomem *mpsoc_base;u32 reg; +pr_warn ("CPU idle is currently broken on Armada 38x: disabling" ); +return 0 ; + np =of_find_compatible_node (NULL ,NULL ,"marvell,armada-380-coherency-fabric" );if (!np)
@@ -476,6 +479,16 @@ static int __init mvebu_v7_cpu_pm_init(void)return 0 ;of_node_put (np); +/* +* Currently the CPU idle support for Armada 38x is broken, as +* the CPU hotplug uses some of the CPU idle functions it is +* broken too, so let's disable it +*/ +if (of_machine_is_compatible ("marvell,armada380" )) { +cpu_hotplug_disable (); +pr_warn ("CPU hotplug support is currently broken on Armada 38x: disabling" ); + } +if (of_machine_is_compatible ("marvell,armadaxp" )) ret =armada_xp_cpuidle_init ();else if (of_machine_is_compatible ("marvell,armada370" ))
@@ -489,7 +502,8 @@ static int __init mvebu_v7_cpu_pm_init(void)return ret;mvebu_v7_pmsu_enable_l2_powerdown_onidle (); -platform_device_register (&mvebu_v7_cpuidle_device); +if (mvebu_v7_cpuidle_device.name) +platform_device_register (&mvebu_v7_cpuidle_device);cpu_pm_register_notifier (&mvebu_v7_cpu_pm_notifier);return 0 ;
arch/arm/mach-s3c64xx/crag6410.h +1 -0
@@ -14,6 +14,7 @@#include <mach/gpio-samsung.h> #define GLENFARCLAS_PMIC_IRQ_BASE IRQ_BOARD_START +#define BANFF_PMIC_IRQ_BASE (IRQ_BOARD_START + 64)#define PCA935X_GPIO_BASE GPIO_BOARD_START#define CODEC_GPIO_BASE (GPIO_BOARD_START + 8)
arch/arm/mach-s3c64xx/mach-crag6410.c +1 -0
@@ -554,6 +554,7 @@ static struct wm831x_touch_pdata touch_pdata = {static struct wm831x_pdata crag_pmic_pdata = { .wm831x_num =1 , + .irq_base =BANFF_PMIC_IRQ_BASE , .gpio_base =BANFF_PMIC_GPIO_BASE , .soft_shutdown = true,
arch/arm64/Kconfig +25 -0
@@ -306,6 +306,27 @@ config ARM64_ERRATUM_832075 If unsure, say Y. +config ARM64_ERRATUM_845719 + bool "Cortex-A53: 845719: a load might read incorrect data" + depends on COMPAT + default y + help + This option adds an alternative code sequence to work around ARM + erratum 845719 on Cortex-A53 parts up to r0p4. + + When running a compat (AArch32) userspace on an affected Cortex-A53 + part, a load at EL0 from a virtual address that matches the bottom 32 + bits of the virtual address used by a recent load at (AArch64) EL1 + might return incorrect data. + + The workaround is to write the contextidr_el1 register on exception + return to a 32-bit task. + Please note that this does not necessarily enable the workaround, + as it depends on the alternative framework, which will only patch + the kernel if an affected CPU is detected. + + If unsure, say Y. + endmenu
@@ -416,6 +437,10 @@ config HOTPLUG_CPU source kernel/Kconfig.preempt +config UP_LATE_INIT + def_bool y + depends on !SMP + config HZ int default 100
arch/arm64/include/asm/cpufeature.h +2 -1
@@ -23,8 +23,9 @@#define ARM64_WORKAROUND_CLEAN_CACHE 0#define ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE 1 +#define ARM64_WORKAROUND_845719 2 -#define ARM64_NCAPS 2 +#define ARM64_NCAPS 3#ifndef __ASSEMBLY__
arch/arm64/include/asm/kvm_mmu.h +6 -42
67 lines not on this page · raw message
arch/arm64/include/asm/smp_plat.h +2 -0
@@ -40,4 +40,6 @@ static inline u32 mpidr_hash_size(void)extern u64 __cpu_logical_map[NR_CPUS ];#define cpu_logical_map (cpu) __cpu_logical_map[cpu] +void __init do_post_cpus_up_work (void ); +#endif /* __ASM_SMP_PLAT_H */
arch/arm64/include/uapi/asm/kvm.h +7 -1
@@ -179,8 +179,14 @@ struct kvm_arch_memory_slot {#define KVM_ARM_IRQ_CPU_IRQ 0#define KVM_ARM_IRQ_CPU_FIQ 1 -/* Highest supported SPI, from VGIC_NR_IRQS */ +/* +* This used to hold the highest supported SPI, but it is now obsolete +* and only here to provide source code level compatibility with older +* userland. The highest SPI number can be set via KVM_DEV_ARM_VGIC_GRP_NR_IRQS. +*/ +#ifndef __KERNEL__#define KVM_ARM_IRQ_GIC_MAX 127 +#endif /* PSCI interface */ #define KVM_PSCI_FN_BASE 0x95c1ba5e
arch/arm64/kernel/cpu_errata.c +10 -1
@@ -88,7 +88,16 @@ struct arm64_cpu_capabilities arm64_errata[] = {/* Cortex-A57 r0p0 - r1p2 */ .desc = "ARM erratum 832075", .capability = ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE, - MIDR_RANGE(MIDR_CORTEX_A57, 0x00, 0x12), + MIDR_RANGE(MIDR_CORTEX_A57, 0x00, + (1 << MIDR_VARIANT_SHIFT) | 2), + }, +#endif +#ifdef CONFIG_ARM64_ERRATUM_845719 + { + /* Cortex-A53 r0p[01234] */ + .desc = "ARM erratum 845719", + .capability = ARM64_WORKAROUND_845719, + MIDR_RANGE(MIDR_CORTEX_A53, 0x00, 0x04), }, #endif {
arch/arm64/kernel/entry.S +20 -0
@@ -21,8 +21,10 @@ #include <linux/init.h> #include <linux/linkage.h> +#include <asm/alternative-asm.h> #include <asm/assembler.h> #include <asm/asm-offsets.h> +#include <asm/cpufeature.h> #include <asm/errno.h> #include <asm/esr.h> #include <asm/thread_info.h>
@@ -120,6 +122,24 @@ ct_user_enter ldr x23, [sp, #S_SP] // load return stack pointer msr sp_el0, x23 + +#ifdef CONFIG_ARM64_ERRATUM_845719 + alternative_insn \ + "nop", \ + "tbz x22, #4, 1f", \ + ARM64_WORKAROUND_845719 +#ifdef CONFIG_PID_IN_CONTEXTIDR + alternative_insn \ + "nop; nop", \ + "mrs x29, contextidr_el1; msr contextidr_el1, x29; 1:", \ + ARM64_WORKAROUND_845719 +#else + alternative_insn \ + "nop", \ + "msr contextidr_el1, xzr; 1:", \ + ARM64_WORKAROUND_845719 +#endif +#endif .endif msr elr_el1, x21 // set up the return data msr spsr_el1, x22
arch/arm64/kernel/head.S +1 -0
@@ -426,6 +426,7 @@ __create_page_tables: */ mov x0, x25 add x1, x26, #SWAPPER_DIR_SIZE + dmb sy bl __inval_cache_range mov lr, x27
arch/arm64/kernel/setup.c +12 -0
@@ -206,6 +206,18 @@ static void __init smp_build_mpidr_hash(void) }#endif +void __init do_post_cpus_up_work (void ) +{ +apply_alternatives_all (); +} + +#ifdef CONFIG_UP_LATE_INIT +void __init up_late_init (void ) +{ +do_post_cpus_up_work (); +} +#endif /* CONFIG_UP_LATE_INIT */ +static void __init setup_processor (void ) {struct cpu_info *cpu_info;
arch/arm64/kernel/smp.c +1 -1
@@ -310,7 +310,7 @@ void cpu_die(void)void __init smp_cpus_done (unsigned int max_cpus) {pr_info ("SMP: Total of %d processors activated.\n" ,num_online_cpus ()); -apply_alternatives_all (); +do_post_cpus_up_work (); }void __init smp_prepare_boot_cpu (void )
arch/c6x/kernel/time.c +1 -1
@@ -49,7 +49,7 @@ u64 sched_clock(void)return (tsc * sched_clock_multiplier) >>SCHED_CLOCK_SHIFT ; } -void time_init (void ) +void __init time_init (void ) {u64 tmp = (u64 )NSEC_PER_SEC <<SCHED_CLOCK_SHIFT ;
arch/mips/include/asm/asm-eva.h +93 -44
167 lines not on this page · raw message
arch/mips/include/asm/fpu.h +1 -0
@@ -169,6 +169,7 @@ static inline void lose_fpu(int save) }disable_msa ();clear_thread_flag (TIF_USEDMSA ); +__disable_fpu (); }else if (is_fpu_owner ()) {if (save)_save_fp (current);
arch/mips/include/asm/kvm_host.h +2 -0
@@ -321,6 +321,7 @@ enum mips_mmu_types {#define T_TRAP 13/* Trap instruction */ #define T_VCEI 14/* Virtual coherency exception */ #define T_FPE 15/* Floating point exception */ +#define T_MSADIS 21/* MSA disabled exception */ #define T_WATCH 23/* Watch address reference */ #define T_VCED 31/* Virtual coherency data */
@@ -577,6 +578,7 @@ struct kvm_mips_callbacks {int (*handle_syscall)(struct kvm_vcpu *vcpu);int (*handle_res_inst)(struct kvm_vcpu *vcpu);int (*handle_break)(struct kvm_vcpu *vcpu); +int (*handle_msa_disabled)(struct kvm_vcpu *vcpu);int (*vm_init)(struct kvm *kvm);int (*vcpu_init)(struct kvm_vcpu *vcpu);int (*vcpu_setup)(struct kvm_vcpu *vcpu);
arch/mips/kvm/emulate.c +1 -0
@@ -2176,6 +2176,7 @@ enum emulation_result kvm_mips_check_privilege(unsigned long cause,case T_SYSCALL :case T_BREAK :case T_RES_INST : +case T_MSADIS :break ;case T_COP_UNUSABLE :
arch/mips/kvm/mips.c +4 -0
@@ -1119,6 +1119,10 @@ int kvm_mips_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) ret = kvm_mips_callbacks->handle_break (vcpu);break ; +case T_MSADIS : + ret = kvm_mips_callbacks->handle_msa_disabled (vcpu); +break ; +default : kvm_err("Exception Code: %d, not yet handled, @ PC: %p, inst: 0x%08x BadVaddr: %#lx Status: %#lx\n", exccode, opc, kvm_get_inst(opc, vcpu), badvaddr,
arch/mips/kvm/trap_emul.c +28 -0
@@ -330,6 +330,33 @@ static int kvm_trap_emul_handle_break(struct kvm_vcpu *vcpu)return ret; } +static int kvm_trap_emul_handle_msa_disabled (struct kvm_vcpu *vcpu) +{ +struct kvm_run *run = vcpu->run; +uint32_t __user *opc = (uint32_t __user *) vcpu->arch.pc; +unsigned long cause = vcpu->arch.host_cp0_cause; +enum emulation_result er =EMULATE_DONE ; +int ret =RESUME_GUEST ; + +/* No MSA supported in guest, guest reserved instruction exception */ + er =kvm_mips_emulate_ri_exc (cause, opc, run, vcpu); + +switch (er) { +case EMULATE_DONE : + ret =RESUME_GUEST ; +break ; + +case EMULATE_FAIL : + run->exit_reason =KVM_EXIT_INTERNAL_ERROR ; + ret =RESUME_HOST ; +break ; + +default : +BUG (); + } +return ret; +} +static int kvm_trap_emul_vm_init (struct kvm *kvm) {return 0 ;
@@ -470,6 +497,7 @@ static struct kvm_mips_callbacks kvm_trap_emul_callbacks = { .handle_syscall = kvm_trap_emul_handle_syscall, .handle_res_inst = kvm_trap_emul_handle_res_inst, .handle_break = kvm_trap_emul_handle_break, + .handle_msa_disabled = kvm_trap_emul_handle_msa_disabled, .vm_init = kvm_trap_emul_vm_init, .vcpu_init = kvm_trap_emul_vcpu_init,
arch/mips/loongson/loongson-3/irq.c +1 -0
@@ -44,6 +44,7 @@ void mach_irq_dispatch(unsigned int pending)static struct irqaction cascade_irqaction = { .handler = no_action, + .flags =IRQF_NO_SUSPEND , .name ="cascade" , };
arch/mips/mti-malta/malta-memory.c +6 -0
@@ -53,6 +53,12 @@ fw_memblock_t * __init fw_getmdesc(int eva)pr_warn ("memsize not set in YAMON, set to default (32Mb)\n" ); physical_memsize =0x02000000 ; }else { +if (memsize > (256 <<20 )) {/* memsize should be capped to 256M */ +pr_warn ("Unsupported memsize value (0x%lx) detected! " +"Using 0x10000000 (256M) instead\n" , + memsize); + memsize =256 <<20 ; + }/* If ememsize is set, then set physical_memsize to that */ physical_memsize = ememsize ? : memsize; }
arch/mips/power/hibernate.S +2 -1
@@ -30,6 +30,8 @@ LEAF(swsusp_arch_suspend) END(swsusp_arch_suspend) LEAF(swsusp_arch_resume) + /* Avoid TLB mismatch during and after kernel resume */ + jal local_flush_tlb_all PTR_L t0, restore_pblist 0: PTR_L t1, PBE_ADDRESS(t0) /* source */
@@ -43,7 +45,6 @@ LEAF(swsusp_arch_resume) bne t1, t3, 1b PTR_L t0, PBE_NEXT(t0) bnez t0, 0b - jal local_flush_tlb_all /* Avoid TLB mismatch after kernel resume */ PTR_LA t0, saved_regs PTR_L ra, PT_R31(t0) PTR_L sp, PT_R29(t0)
arch/powerpc/kernel/cacheinfo.c +34 -10
69 lines not on this page · raw message
arch/powerpc/perf/callchain.c +1 -1
@@ -243,7 +243,7 @@ static void perf_callchain_user_64(struct perf_callchain_entry *entry, sp = regs->gpr[1 ];perf_callchain_store (entry, next_ip); -for (;;) { +while (entry->nr <PERF_MAX_STACK_DEPTH ) { fp = (unsigned long __user *) sp;if (!valid_user_sp (sp,1 ) ||read_user_stack_64 (fp, &next_sp))return ;
arch/powerpc/platforms/cell/interrupt.c +1 -1
@@ -163,7 +163,7 @@ static unsigned int iic_get_irq(void)void iic_setup_cpu (void ) { -out_be64 (this_cpu_ptr (&cpu_iic.regs->prio),0xff ); +out_be64 (&this_cpu_ptr (&cpu_iic)->regs->prio,0xff ); }u8 iic_get_target_id (int cpu)
arch/powerpc/platforms/cell/iommu.c +1 -1
@@ -197,7 +197,7 @@ static int tce_build_cell(struct iommu_table *tbl, long index, long npages, io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); -for (i =0 ; i < npages; i++, uaddr += tbl->it_page_shift) +for (i =0 ; i < npages; i++, uaddr += (1 << tbl->it_page_shift)) io_pte[i] = base_pte | (__pa (uaddr) & CBE_IOPTE_RPN_Mask);mb ();
arch/powerpc/platforms/powernv/pci-ioda.c +2 -1
@@ -1750,7 +1750,8 @@ static void pnv_ioda_setup_pe_seg(struct pci_controller *hose, region.start += phb->ioda.io_segsize; index++; } - }else if (res->flags &IORESOURCE_MEM ) { + }else if ((res->flags &IORESOURCE_MEM ) && + !pnv_pci_is_mem_pref_64 (res->flags)) { region.start = res->start - hose->mem_offset[0 ] - phb->ioda.m32_pci_base;
arch/s390/kernel/suspend.c +4 -0
@@ -138,6 +138,8 @@ int pfn_is_nosave(unsigned long pfn) {unsigned long nosave_begin_pfn =PFN_DOWN (__pa (&__nosave_begin));unsigned long nosave_end_pfn =PFN_DOWN (__pa (&__nosave_end)); +unsigned long eshared_pfn =PFN_DOWN (__pa (&_eshared)) -1 ; +unsigned long stext_pfn =PFN_DOWN (__pa (&_stext));/* Always save lowcore pages (LC protection might be enabled). */ if (pfn <=LC_PAGES )
@@ -145,6 +147,8 @@ int pfn_is_nosave(unsigned long pfn)if (pfn >= nosave_begin_pfn && pfn < nosave_end_pfn)return 1 ;/* Skip memory holes and read-only pages (NSS, DCSS, ...). */ +if (pfn >= stext_pfn && pfn <= eshared_pfn) +return ipl_info.type ==IPL_TYPE_NSS ?1 :0 ;if (tprot (PFN_PHYS (pfn)))return 1 ;return 0 ;
arch/s390/kvm/interrupt.c +34 -36
158 lines not on this page · raw message
arch/s390/kvm/kvm-s390.h +2 -2
@@ -146,8 +146,8 @@ int __must_check kvm_s390_inject_vcpu(struct kvm_vcpu *vcpu,int __must_check kvm_s390_inject_program_int (struct kvm_vcpu *vcpu,u16 code);struct kvm_s390_interrupt_info *kvm_s390_get_io_int (struct kvm *kvm,u64 cr6,u64 schid); -void kvm_s390_reinject_io_int (struct kvm *kvm, -struct kvm_s390_interrupt_info *inti); +int kvm_s390_reinject_io_int (struct kvm *kvm, +struct kvm_s390_interrupt_info *inti);int kvm_s390_mask_adapter (struct kvm *kvm,unsigned int id,bool masked);/* implemented in intercept.c */
arch/s390/kvm/priv.c +26 -16
80 lines not on this page · raw message
arch/x86/include/asm/insn.h +1 -1
@@ -69,7 +69,7 @@ struct insn {const insn_byte_t *next_byte; }; -#define MAX_INSN_SIZE 16 +#define MAX_INSN_SIZE 15#define X86_MODRM_MOD (modrm) (((modrm) & 0xc0) >> 6)#define X86_MODRM_REG (modrm) (((modrm) & 0x38) >> 3)
arch/x86/include/asm/mwait.h +8 -0
@@ -30,6 +30,14 @@ static inline void __mwait(unsigned long eax, unsigned long ecx) :: "a" (eax), "c" (ecx)); } +static inline void __sti_mwait (unsigned long eax,unsigned long ecx) +{ +trace_hardirqs_on (); +/* "mwait %eax, %ecx;" */ + asmvolatile ("sti; .byte 0x0f, 0x01, 0xc9;" + ::"a" (eax),"c" (ecx)); +} +/* * This uses new MONITOR/MWAIT instructions on P4 processors with PNI, * which can obviate IPI to trigger checking of need_resched.
arch/x86/kernel/cpu/perf_event_intel_ds.c +8 -0
@@ -557,6 +557,8 @@ struct event_constraint intel_core2_pebs_event_constraints[] = {INTEL_FLAGS_UEVENT_CONSTRAINT (0x00c5 ,0x1 ),/* BR_INST_RETIRED.MISPRED */ INTEL_FLAGS_UEVENT_CONSTRAINT (0x1fc7 ,0x1 ),/* SIMD_INST_RETURED.ANY */ INTEL_FLAGS_EVENT_CONSTRAINT (0xcb ,0x1 ),/* MEM_LOAD_RETIRED.* */ +/* INST_RETIRED.ANY_P, inv=1, cmask=16 (cycles:p). */ +INTEL_FLAGS_EVENT_CONSTRAINT (0x108000c0 ,0x01 ), EVENT_CONSTRAINT_END };
@@ -564,6 +566,8 @@ struct event_constraint intel_atom_pebs_event_constraints[] = {INTEL_FLAGS_UEVENT_CONSTRAINT (0x00c0 ,0x1 ),/* INST_RETIRED.ANY */ INTEL_FLAGS_UEVENT_CONSTRAINT (0x00c5 ,0x1 ),/* MISPREDICTED_BRANCH_RETIRED */ INTEL_FLAGS_EVENT_CONSTRAINT (0xcb ,0x1 ),/* MEM_LOAD_RETIRED.* */ +/* INST_RETIRED.ANY_P, inv=1, cmask=16 (cycles:p). */ +INTEL_FLAGS_EVENT_CONSTRAINT (0x108000c0 ,0x01 ), EVENT_CONSTRAINT_END };
@@ -587,6 +591,8 @@ struct event_constraint intel_nehalem_pebs_event_constraints[] = {INTEL_FLAGS_UEVENT_CONSTRAINT (0x20c8 ,0xf ),/* ITLB_MISS_RETIRED */ INTEL_FLAGS_EVENT_CONSTRAINT (0xcb ,0xf ),/* MEM_LOAD_RETIRED.* */ INTEL_FLAGS_EVENT_CONSTRAINT (0xf7 ,0xf ),/* FP_ASSIST.* */ +/* INST_RETIRED.ANY_P, inv=1, cmask=16 (cycles:p). */ +INTEL_FLAGS_EVENT_CONSTRAINT (0x108000c0 ,0x0f ), EVENT_CONSTRAINT_END };
@@ -602,6 +608,8 @@ struct event_constraint intel_westmere_pebs_event_constraints[] = {INTEL_FLAGS_UEVENT_CONSTRAINT (0x20c8 ,0xf ),/* ITLB_MISS_RETIRED */ INTEL_FLAGS_EVENT_CONSTRAINT (0xcb ,0xf ),/* MEM_LOAD_RETIRED.* */ INTEL_FLAGS_EVENT_CONSTRAINT (0xf7 ,0xf ),/* FP_ASSIST.* */ +/* INST_RETIRED.ANY_P, inv=1, cmask=16 (cycles:p). */ +INTEL_FLAGS_EVENT_CONSTRAINT (0x108000c0 ,0x0f ), EVENT_CONSTRAINT_END };
arch/x86/kernel/process.c +51 -0
69 lines not on this page · raw message
arch/x86/kvm/x86.c +8 -2
@@ -5781,7 +5781,6 @@ int kvm_arch_init(void *opaque)kvm_set_mmio_spte_mask (); kvm_x86_ops = ops; -kvm_init_msr_list ();kvm_mmu_set_mask_ptes (PT_USER_MASK ,PT_ACCESSED_MASK ,PT_DIRTY_MASK ,PT64_NX_MASK ,0 );
@@ -7218,7 +7217,14 @@ void kvm_arch_hardware_disable(void)int kvm_arch_hardware_setup (void ) { -return kvm_x86_ops->hardware_setup (); +int r; + + r = kvm_x86_ops->hardware_setup (); +if (r !=0 ) +return r; + +kvm_init_msr_list (); +return 0 ; }void kvm_arch_hardware_unsetup (void )
arch/x86/lib/insn.c +7 -0
@@ -52,6 +52,13 @@*/ void insn_init (struct insn *insn,const void *kaddr,int buf_len,int x86_64) { +/* +* Instructions longer than MAX_INSN_SIZE (15 bytes) are invalid +* even if the input buffer is long enough to hold them. +*/ +if (buf_len >MAX_INSN_SIZE ) + buf_len =MAX_INSN_SIZE ; +memset (insn,0 ,sizeof (*insn)); insn->kaddr = kaddr; insn->end_kaddr = kaddr + buf_len;
arch/xtensa/Kconfig +30 -0
@@ -428,6 +428,36 @@ config DEFAULT_MEM_SIZE If unsure, leave the default value here. +config XTFPGA_LCD + bool "Enable XTFPGA LCD driver" + depends on XTENSA_PLATFORM_XTFPGA + default n + help + There's a 2x16 LCD on most of XTFPGA boards, kernel may output + progress messages there during bootup/shutdown. It may be useful + during board bringup. + + If unsure, say N. + +config XTFPGA_LCD_BASE_ADDR + hex "XTFPGA LCD base address" + depends on XTFPGA_LCD + default "0x0d0c0000" + help + Base address of the LCD controller inside KIO region. + Different boards from XTFPGA family have LCD controller at different + addresses. Please consult prototyping user guide for your board for + the correct address. Wrong address here may lead to hardware lockup. + +config XTFPGA_LCD_8BIT_ACCESS + bool "Use 8-bit access to XTFPGA LCD" + depends on XTFPGA_LCD + default n + help + LCD may be connected with 4- or 8-bit interface, 8-bit access may + only be used with 8-bit interface. Please consult prototyping user + guide for your board for the correct interface width. + endmenu menu "Executable file formats"
arch/xtensa/include/uapi/asm/unistd.h +1 -1
@@ -715,7 +715,7 @@ __SYSCALL(323, sys_process_vm_writev, 6) __SYSCALL(324, sys_name_to_handle_at, 5)#define __NR_open_by_handle_at 325 __SYSCALL(325, sys_open_by_handle_at, 3) -#define __NR_sync_file_range 326 +#define __NR_sync_file_range2 326 __SYSCALL(326, sys_sync_file_range2, 6)#define __NR_perf_event_open 327__SYSCALL (327 , sys_perf_event_open,5 )
arch/xtensa/platforms/iss/network.c +15 -14
@@ -349,8 +349,8 @@ static void iss_net_timer(unsigned long priv) {struct iss_net_private *lp = (struct iss_net_private *)priv; -spin_lock (&lp->lock);iss_net_poll (); +spin_lock (&lp->lock);mod_timer (&lp->timer, jiffies + lp->timer_val);spin_unlock (&lp->lock); }
@@ -361,7 +361,7 @@ static int iss_net_open(struct net_device *dev)struct iss_net_private *lp =netdev_priv (dev);int err; -spin_lock (&lp->lock); +spin_lock_bh (&lp->lock); err = lp->tp.open (lp);if (err <0 )
@@ -376,9 +376,11 @@ static int iss_net_open(struct net_device *dev)while ((err =iss_net_rx (dev)) >0 ) ; -spin_lock (&opened_lock); +spin_unlock_bh (&lp->lock); +spin_lock_bh (&opened_lock);list_add (&lp->opened_list, &opened); -spin_unlock (&opened_lock); +spin_unlock_bh (&opened_lock); +spin_lock_bh (&lp->lock);init_timer (&lp->timer); lp->timer_val =ISS_NET_TIMER_VALUE ;
@@ -387,7 +389,7 @@ static int iss_net_open(struct net_device *dev)mod_timer (&lp->timer, jiffies + lp->timer_val); out: -spin_unlock (&lp->lock); +spin_unlock_bh (&lp->lock);return err; }
@@ -395,7 +397,7 @@ static int iss_net_close(struct net_device *dev) {struct iss_net_private *lp =netdev_priv (dev);netif_stop_queue (dev); -spin_lock (&lp->lock); +spin_lock_bh (&lp->lock);spin_lock (&opened_lock);list_del (&opened);
@@ -405,18 +407,17 @@ static int iss_net_close(struct net_device *dev) lp->tp.close (lp); -spin_unlock (&lp->lock); +spin_unlock_bh (&lp->lock);return 0 ; }static int iss_net_start_xmit (struct sk_buff *skb,struct net_device *dev) {struct iss_net_private *lp =netdev_priv (dev); -unsigned long flags;int len;netif_stop_queue (dev); -spin_lock_irqsave (&lp->lock, flags); +spin_lock_bh (&lp->lock); len = lp->tp.write (lp, &skb);
@@ -438,7 +439,7 @@ static int iss_net_start_xmit(struct sk_buff *skb, struct net_device *dev)pr_err ("%s: %s failed(%d)\n" , dev->name, __func__, len); } -spin_unlock_irqrestore (&lp->lock, flags); +spin_unlock_bh (&lp->lock);dev_kfree_skb (skb);return NETDEV_TX_OK ;
@@ -466,9 +467,9 @@ static int iss_net_set_mac(struct net_device *dev, void *addr)if (!is_valid_ether_addr (hwaddr->sa_data))return -EADDRNOTAVAIL ; -spin_lock (&lp->lock); +spin_lock_bh (&lp->lock);memcpy (dev->dev_addr, hwaddr->sa_data,ETH_ALEN ); -spin_unlock (&lp->lock); +spin_unlock_bh (&lp->lock);return 0 ; }
@@ -520,11 +521,11 @@ static int iss_net_configure(int index, char *init) *lp = (struct iss_net_private ) { .device_list =LIST_HEAD_INIT (lp->device_list), .opened_list =LIST_HEAD_INIT (lp->opened_list), - .lock =__SPIN_LOCK_UNLOCKED (lp.lock), .dev = dev, .index = index, - }; + }; +spin_lock_init (&lp->lock);/* * If this name ends up conflicting with an existing registered * netdevice, that is OK, register_netdev{,ice}() will notice this
arch/xtensa/platforms/xtfpga/Makefile +2 -1
@@ -6,4 +6,5 @@ # # Note 2! The CFLAGS definitions are in the main makefile... -obj-y = setup.o lcd.o +obj-y += setup.o +obj-$(CONFIG_XTFPGA_LCD) += lcd.o
arch/xtensa/platforms/xtfpga/include/platform/hardware.h +0 -3
@@ -40,9 +40,6 @@/* UART */ #define DUART16552_PADDR (XCHAL_KIO_PADDR + 0x0D050020) -/* LCD instruction and data addresses. */ -#define LCD_INSTR_ADDR ((char *)IOADDR(0x0D040000)) -#define LCD_DATA_ADDR ((char *)IOADDR(0x0D040004))/* Misc. */ #define XTFPGA_FPGAREGS_VADDR IOADDR(0x0D020000)
arch/xtensa/platforms/xtfpga/include/platform/lcd.h +15 -0
@@ -11,10 +11,25 @@#ifndef __XTENSA_XTAVNET_LCD_H#define __XTENSA_XTAVNET_LCD_H +#ifdef CONFIG_XTFPGA_LCD /* Display string STR at position POS on the LCD. */ void lcd_disp_at_pos (char *str,unsigned char pos);/* Shift the contents of the LCD display left or right. */ void lcd_shiftleft (void );void lcd_shiftright (void ); +#else +static inline void lcd_disp_at_pos (char *str,unsigned char pos) +{ +} + +static inline void lcd_shiftleft (void ) +{ +} + +static inline void lcd_shiftright (void ) +{ +} +#endif +#endif
arch/xtensa/platforms/xtfpga/lcd.c +34 -21
107 lines not on this page · raw message
drivers/acpi/acpica/tbinstal.c +0 -1
@@ -346,7 +346,6 @@ acpi_tb_install_standard_table(acpi_physical_address address,*/ acpi_tb_uninstall_table (&new_table_desc); *table_index = i; - (void )acpi_ut_release_mutex (ACPI_MTX_TABLES );return_ACPI_STATUS (AE_OK ); } }
drivers/acpi/scan.c +5 -1
@@ -298,7 +298,11 @@ bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent)struct acpi_device_physical_node *pn;bool offline = true; -mutex_lock (&adev->physical_node_lock); +/* +* acpi_container_offline() calls this for all of the container's +* children under the container's physical_node_lock lock. +*/ +mutex_lock_nested (&adev->physical_node_lock,SINGLE_DEPTH_NESTING );list_for_each_entry (pn, &adev->physical_node_list, node)if (device_supports_offline (pn->dev) && !pn->dev->offline) {
drivers/base/bus.c +2 -2
@@ -515,11 +515,11 @@ int bus_add_device(struct device *dev) goto out_put; error =device_add_groups (dev, bus->dev_groups);if (error) - goto out_groups; + goto out_id; error =sysfs_create_link (&bus->p->devices_kset->kobj, &dev->kobj,dev_name (dev));if (error) - goto out_id; + goto out_groups; error =sysfs_create_link (&dev->kobj, &dev->bus->p->subsys.kobj,"subsystem" );if (error)
drivers/base/cacheinfo.c +11 -2
@@ -62,15 +62,21 @@ static int cache_setup_of_node(unsigned int cpu)return -ENOENT ; } -while (np && index <cache_leaves (cpu)) { +while (index <cache_leaves (cpu)) { this_leaf = this_cpu_ci->info_list + index;if (this_leaf->level !=1 ) np =of_find_next_cache_node (np);else np =of_node_get (np);/* cpu node itself */ +if (!np) +break ; this_leaf->of_node = np; index++; } + +if (index !=cache_leaves (cpu))/* not all OF nodes populated */ +return -ENOENT ; +return 0 ; }
@@ -189,8 +195,11 @@ static int detect_cache_attributes(unsigned int cpu)* will be set up here only if they are not populated already */ ret =cache_shared_cpu_map_setup (cpu); -if (ret) +if (ret) { +pr_warn ("Unable to detect cache hierarcy from DT for CPU %d\n" , + cpu); goto free_ci; + }return 0 ; free_ci:
drivers/base/platform.c +9 -0
@@ -101,6 +101,15 @@ int platform_get_irq(struct platform_device *dev, unsigned int num) } r =platform_get_resource (dev,IORESOURCE_IRQ , num); +/* +* The resources may pass trigger flags to the irqs that need +* to be set up. It so happens that the trigger flags for +* IORESOURCE_BITS correspond 1-to-1 to the IRQF_TRIGGER* +* settings. +*/ +if (r && r->flags &IORESOURCE_BITS ) +irqd_set_trigger_type (irq_get_irq_data (r->start), + r->flags &IORESOURCE_BITS );return r ? r->start : -ENXIO ;#endif
drivers/bluetooth/ath3k.c +1 -0
@@ -65,6 +65,7 @@ static const struct usb_device_id ath3k_table[] = {/* Atheros AR3011 with sflash firmware*/ { USB_DEVICE(0x0489, 0xE027) }, { USB_DEVICE(0x0489, 0xE03D) }, + { USB_DEVICE(0x04F2, 0xAFF1) }, { USB_DEVICE(0x0930, 0x0215) }, { USB_DEVICE(0x0CF3, 0x3002) }, { USB_DEVICE(0x0CF3, 0xE019) },
drivers/bluetooth/btusb.c +1 -0
@@ -153,6 +153,7 @@ static const struct usb_device_id blacklist_table[] = {/* Atheros 3011 with sflash firmware */ { USB_DEVICE(0x0489, 0xe027), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0489, 0xe03d), .driver_info = BTUSB_IGNORE }, + { USB_DEVICE(0x04f2, 0xaff1), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0930, 0x0215), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0cf3, 0x3002), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0cf3, 0xe019), .driver_info = BTUSB_IGNORE },
drivers/clk/at91/clk-usb.c +49 -15
99 lines not on this page · raw message
drivers/clk/qcom/clk-rcg2.c +1 -1
@@ -242,7 +242,7 @@ static int clk_rcg2_configure(struct clk_rcg2 *rcg, const struct freq_tbl *f) mask |=CFG_SRC_SEL_MASK |CFG_MODE_MASK ; cfg = f->pre_div <<CFG_SRC_DIV_SHIFT ; cfg |= rcg->parent_map[f->src] <<CFG_SRC_SEL_SHIFT ; -if (rcg->mnd_width && f->n) +if (rcg->mnd_width && f->n && (f->m != f->n)) cfg |=CFG_MODE_DUAL_EDGE ; ret =regmap_update_bits (rcg->clkr.regmap, rcg->cmd_rcgr +CFG_REG , mask, cfg);
drivers/clk/qcom/gcc-ipq806x.c +1 -1
@@ -514,8 +514,8 @@ static struct freq_tbl clk_tbl_gsbi_qup[] = { { 10800000, P_PXO, 1, 2, 5 }, { 15060000, P_PLL8, 1, 2, 51 }, { 24000000, P_PLL8, 4, 1, 4 }, + { 25000000, P_PXO, 1, 0, 0 }, { 25600000, P_PLL8, 1, 1, 15 }, - { 27000000, P_PXO, 1, 0, 0 }, { 48000000, P_PLL8, 4, 1, 2 }, { 51200000, P_PLL8, 1, 2, 15 }, { }
drivers/clk/samsung/clk-exynos4.c +5 -6
@@ -1354,7 +1354,7 @@ static struct samsung_pll_clock exynos4x12_plls[nr_plls] __initdata = { VPLL_LOCK, VPLL_CON0, NULL), }; -static void __init exynos4_core_down_clock (enum exynos4_soc soc) +static void __init exynos4x12_core_down_clock (void ) {unsigned int tmp;
@@ -1373,11 +1373,9 @@ static void __init exynos4_core_down_clock(enum exynos4_soc soc)__raw_writel (tmp, reg_base +PWR_CTRL1 );/* -* Disable the clock up feature on Exynos4x12, in case it was -* enabled by bootloader. +* Disable the clock up feature in case it was enabled by bootloader. */ -if (exynos4_soc ==EXYNOS4X12 ) -__raw_writel (0x0 , reg_base +E4X12_PWR_CTRL2 ); +__raw_writel (0x0 , reg_base +E4X12_PWR_CTRL2 ); }/* register exynos4 clocks */
@@ -1474,7 +1472,8 @@ static void __init exynos4_clk_init(struct device_node *np,samsung_clk_register_alias (ctx, exynos4_aliases,ARRAY_SIZE (exynos4_aliases)); -exynos4_core_down_clock (soc); +if (soc ==EXYNOS4X12 ) +exynos4x12_core_down_clock ();exynos4_clk_sleep_init ();samsung_clk_of_add_provider (np, ctx);
drivers/clk/tegra/clk.c +1 -1
@@ -272,7 +272,7 @@ void __init tegra_add_of_provider(struct device_node *np)of_clk_add_provider (np, of_clk_src_onecell_get, &clk_data); rst_ctlr.of_node = np; - rst_ctlr.nr_resets = clk_num *32 ; + rst_ctlr.nr_resets = periph_banks *32 ;reset_controller_register (&rst_ctlr); }
drivers/crypto/omap-aes.c +11 -3
@@ -554,15 +554,23 @@ static int omap_aes_crypt_dma_stop(struct omap_aes_dev *dd)return err; } -static int omap_aes_check_aligned (struct scatterlist *sg) +static int omap_aes_check_aligned (struct scatterlist *sg,int total) { +int len =0 ; +while (sg) {if (!IS_ALIGNED (sg->offset,4 ))return -1 ;if (!IS_ALIGNED (sg->length,AES_BLOCK_SIZE ))return -1 ; + + len += sg->length; sg =sg_next (sg); } + +if (len != total) +return -1 ; +return 0 ; }
@@ -633,8 +641,8 @@ static int omap_aes_handle_queue(struct omap_aes_dev *dd, dd->in_sg = req->src; dd->out_sg = req->dst; -if (omap_aes_check_aligned (dd->in_sg) || -omap_aes_check_aligned (dd->out_sg)) { +if (omap_aes_check_aligned (dd->in_sg, dd->total) || +omap_aes_check_aligned (dd->out_sg, dd->total)) {if (omap_aes_copy_sgs (dd))pr_err ("Failed to copy SGs for unaligned cases\n" ); dd->sgs_copied =1 ;
drivers/gpio/gpio-mvebu.c +16 -8
@@ -313,11 +313,13 @@ static void mvebu_gpio_edge_irq_mask(struct irq_data *d) {struct irq_chip_generic *gc =irq_data_get_irq_chip_data (d);struct mvebu_gpio_chip *mvchip = gc->private; +struct irq_chip_type *ct =irq_data_get_chip_type (d);u32 mask =1 << (d->irq - gc->irq_base);irq_gc_lock (gc); - gc->mask_cache &= ~mask; -writel_relaxed (gc->mask_cache,mvebu_gpioreg_edge_mask (mvchip)); + ct->mask_cache_priv &= ~mask; + +writel_relaxed (ct->mask_cache_priv,mvebu_gpioreg_edge_mask (mvchip));irq_gc_unlock (gc); }
@@ -325,11 +327,13 @@ static void mvebu_gpio_edge_irq_unmask(struct irq_data *d) {struct irq_chip_generic *gc =irq_data_get_irq_chip_data (d);struct mvebu_gpio_chip *mvchip = gc->private; +struct irq_chip_type *ct =irq_data_get_chip_type (d); +u32 mask =1 << (d->irq - gc->irq_base);irq_gc_lock (gc); - gc->mask_cache |= mask; -writel_relaxed (gc->mask_cache,mvebu_gpioreg_edge_mask (mvchip)); + ct->mask_cache_priv |= mask; +writel_relaxed (ct->mask_cache_priv,mvebu_gpioreg_edge_mask (mvchip));irq_gc_unlock (gc); }
@@ -337,11 +341,13 @@ static void mvebu_gpio_level_irq_mask(struct irq_data *d) {struct irq_chip_generic *gc =irq_data_get_irq_chip_data (d);struct mvebu_gpio_chip *mvchip = gc->private; +struct irq_chip_type *ct =irq_data_get_chip_type (d); +u32 mask =1 << (d->irq - gc->irq_base);irq_gc_lock (gc); - gc->mask_cache &= ~mask; -writel_relaxed (gc->mask_cache,mvebu_gpioreg_level_mask (mvchip)); + ct->mask_cache_priv &= ~mask; +writel_relaxed (ct->mask_cache_priv,mvebu_gpioreg_level_mask (mvchip));irq_gc_unlock (gc); }
@@ -349,11 +355,13 @@ static void mvebu_gpio_level_irq_unmask(struct irq_data *d) {struct irq_chip_generic *gc =irq_data_get_irq_chip_data (d);struct mvebu_gpio_chip *mvchip = gc->private; +struct irq_chip_type *ct =irq_data_get_chip_type (d); +u32 mask =1 << (d->irq - gc->irq_base);irq_gc_lock (gc); - gc->mask_cache |= mask; -writel_relaxed (gc->mask_cache,mvebu_gpioreg_level_mask (mvchip)); + ct->mask_cache_priv |= mask; +writel_relaxed (ct->mask_cache_priv,mvebu_gpioreg_level_mask (mvchip));irq_gc_unlock (gc); }
drivers/gpu/drm/i2c/adv7511.c +52 -50
160 lines not on this page · raw message
drivers/gpu/drm/i915/i915_drv.c +2 -2
@@ -1040,7 +1040,7 @@ static void vlv_save_gunit_s0ix_state(struct drm_i915_private *dev_priv) s->lra_limits[i] =I915_READ (GEN7_LRA_LIMITS_BASE + i *4 ); s->media_max_req_count =I915_READ (GEN7_MEDIA_MAX_REQ_COUNT ); - s->gfx_max_req_count =I915_READ (GEN7_MEDIA_MAX_REQ_COUNT ); + s->gfx_max_req_count =I915_READ (GEN7_GFX_MAX_REQ_COUNT ); s->render_hwsp =I915_READ (RENDER_HWS_PGA_GEN7 ); s->ecochk =I915_READ (GAM_ECOCHK );
@@ -1122,7 +1122,7 @@ static void vlv_restore_gunit_s0ix_state(struct drm_i915_private *dev_priv)I915_WRITE (GEN7_LRA_LIMITS_BASE + i *4 , s->lra_limits[i]);I915_WRITE (GEN7_MEDIA_MAX_REQ_COUNT , s->media_max_req_count); -I915_WRITE (GEN7_MEDIA_MAX_REQ_COUNT , s->gfx_max_req_count); +I915_WRITE (GEN7_GFX_MAX_REQ_COUNT , s->gfx_max_req_count);I915_WRITE (RENDER_HWS_PGA_GEN7 , s->render_hwsp);I915_WRITE (GAM_ECOCHK , s->ecochk);
drivers/gpu/drm/i915/i915_irq.c +2 -6
@@ -3717,14 +3717,12 @@ static int i8xx_irq_postinstall(struct drm_device *dev) ~(I915_DISPLAY_PIPE_A_EVENT_INTERRUPT |I915_DISPLAY_PIPE_B_EVENT_INTERRUPT |I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT | -I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT | -I915_RENDER_COMMAND_PARSER_ERROR_INTERRUPT ); +I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT );I915_WRITE16 (IMR , dev_priv->irq_mask);I915_WRITE16 (IER ,I915_DISPLAY_PIPE_A_EVENT_INTERRUPT |I915_DISPLAY_PIPE_B_EVENT_INTERRUPT | -I915_RENDER_COMMAND_PARSER_ERROR_INTERRUPT |I915_USER_INTERRUPT );POSTING_READ16 (IER );
@@ -3886,14 +3884,12 @@ static int i915_irq_postinstall(struct drm_device *dev)I915_DISPLAY_PIPE_A_EVENT_INTERRUPT |I915_DISPLAY_PIPE_B_EVENT_INTERRUPT |I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT | -I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT | - I915_RENDER_COMMAND_PARSER_ERROR_INTERRUPT); + I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT); enable_mask =I915_ASLE_INTERRUPT |I915_DISPLAY_PIPE_A_EVENT_INTERRUPT |I915_DISPLAY_PIPE_B_EVENT_INTERRUPT | -I915_RENDER_COMMAND_PARSER_ERROR_INTERRUPT |I915_USER_INTERRUPT ;if (I915_HAS_HOTPLUG (dev)) {
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -1713,6 +1713,7 @@ enum punit_power_well {#define GMBUS_CYCLE_INDEX (2<<25)#define GMBUS_CYCLE_STOP (4<<25)#define GMBUS_BYTE_COUNT_SHIFT 16 +#define GMBUS_BYTE_COUNT_MAX 256U#define GMBUS_SLAVE_INDEX_SHIFT 8#define GMBUS_SLAVE_ADDR_SHIFT 1#define GMBUS_SLAVE_READ (1<<0)
drivers/gpu/drm/i915/intel_i2c.c +56 -10
99 lines not on this page · raw message
drivers/gpu/drm/radeon/atombios_crtc.c +6 -2
@@ -330,8 +330,10 @@ atombios_set_crtc_dtd_timing(struct drm_crtc *crtc, misc |=ATOM_COMPOSITESYNC ;if (mode->flags &DRM_MODE_FLAG_INTERLACE ) misc |=ATOM_INTERLACE ; -if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) +if (mode->flags &DRM_MODE_FLAG_DBLCLK ) misc |=ATOM_DOUBLE_CLOCK_MODE ; +if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) + misc |=ATOM_H_REPLICATIONBY2 |ATOM_V_REPLICATIONBY2 ; args.susModeMiscInfo.usAccess =cpu_to_le16 (misc); args.ucCRTC = radeon_crtc->crtc_id;
@@ -374,8 +376,10 @@ static void atombios_crtc_set_timing(struct drm_crtc *crtc, misc |=ATOM_COMPOSITESYNC ;if (mode->flags &DRM_MODE_FLAG_INTERLACE ) misc |=ATOM_INTERLACE ; -if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) +if (mode->flags &DRM_MODE_FLAG_DBLCLK ) misc |=ATOM_DOUBLE_CLOCK_MODE ; +if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) + misc |=ATOM_H_REPLICATIONBY2 |ATOM_V_REPLICATIONBY2 ; args.susModeMiscInfo.usAccess =cpu_to_le16 (misc); args.ucCRTC = radeon_crtc->crtc_id;
drivers/hv/channel.c +5 -2
@@ -135,7 +135,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size, GFP_KERNEL);if (!open_info) { err = -ENOMEM ; - goto error0; + goto error_gpadl; }init_completion (&open_info->waitevent);
@@ -151,7 +151,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,if (userdatalen >MAX_USER_DEFINED_BYTES ) { err = -EINVAL ; - goto error0; + goto error_gpadl; }if (userdatalen)
@@ -195,6 +195,9 @@ error1:list_del (&open_info->msglistentry);spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); +error_gpadl: +vmbus_teardown_gpadl (newchannel, newchannel->ringbuffer_gpadlhandle); + error0:free_pages ((unsigned long )out,get_order (send_ringbuffer_size + recv_ringbuffer_size));
drivers/i2c/busses/i2c-rk3x.c +1 -1
@@ -800,7 +800,7 @@ static int rk3x_i2c_xfer(struct i2c_adapter *adap,clk_disable (i2c->clk);spin_unlock_irqrestore (&i2c->lock, flags); -return ret; +return ret <0 ? ret : num; }static u32 rk3x_i2c_func (struct i2c_adapter *adap)
drivers/i2c/i2c-core.c +3 -0
@@ -596,6 +596,7 @@ int i2c_generic_scl_recovery(struct i2c_adapter *adap) adap->bus_recovery_info->set_scl (adap,1 );return i2c_generic_recovery (adap); } +EXPORT_SYMBOL_GPL (i2c_generic_scl_recovery);int i2c_generic_gpio_recovery (struct i2c_adapter *adap) {
@@ -610,6 +611,7 @@ int i2c_generic_gpio_recovery(struct i2c_adapter *adap)return ret; } +EXPORT_SYMBOL_GPL (i2c_generic_gpio_recovery);int i2c_recover_bus (struct i2c_adapter *adap) {
@@ -619,6 +621,7 @@ int i2c_recover_bus(struct i2c_adapter *adap)dev_dbg (&adap->dev,"Trying i2c bus recovery\n" );return adap->bus_recovery_info->recover_bus (adap); } +EXPORT_SYMBOL_GPL (i2c_recover_bus);static int i2c_device_probe (struct device *dev) {
drivers/i2c/i2c-mux.c +5 -3
@@ -32,8 +32,9 @@ struct i2c_mux_priv {struct i2c_algorithm algo;struct i2c_adapter *parent; -void *mux_priv;/* the mux chip/device */ -u32 chan_id;/* the channel id */ +struct device *mux_dev; +void *mux_priv; +u32 chan_id;int (*select)(struct i2c_adapter *,void *mux_priv,u32 chan_id);int (*deselect)(struct i2c_adapter *,void *mux_priv,u32 chan_id);
@@ -119,6 +120,7 @@ struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent,/* Set up private adapter data */ priv->parent = parent; + priv->mux_dev = mux_dev; priv->mux_priv = mux_priv; priv->chan_id = chan_id; priv->select = select;
@@ -203,7 +205,7 @@ void i2c_del_mux_adapter(struct i2c_adapter *adap)char symlink_name[20 ];snprintf (symlink_name,sizeof (symlink_name),"channel-%u" , priv->chan_id); -sysfs_remove_link (&adap->dev.parent->kobj, symlink_name); +sysfs_remove_link (&priv->mux_dev->kobj, symlink_name);sysfs_remove_link (&priv->adap.dev.kobj,"mux_device" );i2c_del_adapter (adap);
drivers/infiniband/core/umem.c +5 -2
@@ -99,12 +99,15 @@ struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr,if (dmasync)dma_set_attr (DMA_ATTR_WRITE_BARRIER , &attrs); +if (!size) +return ERR_PTR (-EINVAL ); +/* * If the combination of the addr and size requested for this memory * region causes an integer overflow, return error. */ -if ((PAGE_ALIGN (addr + size) <= size) || - (PAGE_ALIGN (addr + size) <= addr)) +if (((addr + size) < addr) || +PAGE_ALIGN (addr + size) < (addr + size))return ERR_PTR (-EINVAL );if (!can_do_mlock ())
drivers/infiniband/hw/mlx4/qp.c +1 -2
@@ -2564,8 +2564,7 @@ static int build_lso_seg(struct mlx4_wqe_lso_seg *wqe, struct ib_send_wr *wr,memcpy (wqe->header, wr->wr.ud.header, wr->wr.ud.hlen); - *lso_hdr_sz =cpu_to_be32 ((wr->wr.ud.mss - wr->wr.ud.hlen) <<16 | - wr->wr.ud.hlen); + *lso_hdr_sz =cpu_to_be32 (wr->wr.ud.mss <<16 | wr->wr.ud.hlen); *lso_seg_len = halign;return 0 ; }
drivers/infiniband/ulp/iser/iser_initiator.c +2 -2
@@ -409,8 +409,8 @@ int iser_send_command(struct iscsi_conn *conn,if (scsi_prot_sg_count (sc)) { prot_buf->buf =scsi_prot_sglist (sc); prot_buf->size =scsi_prot_sg_count (sc); - prot_buf->data_len = data_buf->data_len >> -ilog2 (sc->device->sector_size) *8 ; + prot_buf->data_len = (data_buf->data_len >> +ilog2 (sc->device->sector_size)) *8 ; }if (hdr->flags &ISCSI_FLAG_CMD_READ ) {
drivers/infiniband/ulp/isert/ib_isert.c +13 -7
@@ -222,7 +222,7 @@ fail:static void isert_free_rx_descriptors (struct isert_conn *isert_conn) { -struct ib_device *ib_dev = isert_conn->conn_cm_id->device; +struct ib_device *ib_dev = isert_conn->conn_device->ib_device;struct iser_rx_desc *rx_desc;int i;
@@ -719,8 +719,8 @@ out:static void isert_connect_release (struct isert_conn *isert_conn) { -struct ib_device *ib_dev = isert_conn->conn_cm_id->device;struct isert_device *device = isert_conn->conn_device; +struct ib_device *ib_dev = device->ib_device;isert_dbg ("conn %p\n" , isert_conn);
@@ -728,7 +728,8 @@ isert_connect_release(struct isert_conn *isert_conn)isert_conn_free_fastreg_pool (isert_conn);isert_free_rx_descriptors (isert_conn); -rdma_destroy_id (isert_conn->conn_cm_id); +if (isert_conn->conn_cm_id) +rdma_destroy_id (isert_conn->conn_cm_id);if (isert_conn->conn_qp) {struct isert_comp *comp = isert_conn->conn_qp->recv_cq->cq_context;
@@ -878,12 +879,15 @@ isert_disconnected_handler(struct rdma_cm_id *cma_id,return 0 ; } -static void +static int isert_connect_error (struct rdma_cm_id *cma_id) {struct isert_conn *isert_conn = cma_id->qp->qp_context; + isert_conn->conn_cm_id =NULL ;isert_put_conn (isert_conn); + +return -1 ; } static int
@@ -912,7 +916,7 @@ isert_cma_handler(struct rdma_cm_id *cma_id, struct rdma_cm_event *event)case RDMA_CM_EVENT_REJECTED :/* FALLTHRU */ case RDMA_CM_EVENT_UNREACHABLE :/* FALLTHRU */ case RDMA_CM_EVENT_CONNECT_ERROR : -isert_connect_error (cma_id); + ret =isert_connect_error (cma_id);break ;default :isert_err ("Unhandled RDMA CMA event: %d\n" , event->event);
@@ -1848,11 +1852,13 @@ isert_completion_rdma_read(struct iser_tx_desc *tx_desc, cmd->i_state =ISTATE_RECEIVED_LAST_DATAOUT ;spin_unlock_bh (&cmd->istate_lock); -if (ret) +if (ret) { +target_put_sess_cmd (se_cmd->se_sess, se_cmd);transport_send_check_condition_and_sense (se_cmd, se_cmd->pi_err,0 ); -else + }else {target_execute_cmd (se_cmd); + } } static void
drivers/input/mouse/elantech.c +22 -0
@@ -893,6 +893,21 @@ static psmouse_ret_t elantech_process_byte(struct psmouse *psmouse) }/* +* This writes the reg_07 value again to the hardware at the end of every +* set_rate call because the register loses its value. reg_07 allows setting +* absolute mode on v4 hardware +*/ +static void elantech_set_rate_restore_reg_07 (struct psmouse *psmouse, +unsigned int rate) +{ +struct elantech_data *etd = psmouse->private; + + etd->original_set_rate (psmouse, rate); +if (elantech_write_reg (psmouse,0x07 , etd->reg_07)) +psmouse_err (psmouse,"restoring reg_07 failed\n" ); +} + +/* * Put the touchpad into absolute mode */ static int elantech_set_absolute_mode (struct psmouse *psmouse)
@@ -1094,6 +1109,8 @@ static int elantech_get_resolution_v4(struct psmouse *psmouse,* Asus K53SV 0x450f01 78, 15, 0c 2 hw buttons * Asus G46VW 0x460f02 00, 18, 0c 2 hw buttons * Asus G750JX 0x360f00 00, 16, 0c 2 hw buttons +* Asus TP500LN 0x381f17 10, 14, 0e clickpad +* Asus X750JN 0x381f17 10, 14, 0e clickpad * Asus UX31 0x361f00 20, 15, 0e clickpad * Asus UX32VD 0x361f02 00, 15, 0e clickpad * Avatar AVIU-145A2 0x361f00 ? clickpad
@@ -1635,6 +1652,11 @@ int elantech_init(struct psmouse *psmouse) goto init_fail; } +if (etd->fw_version ==0x381f17 ) { + etd->original_set_rate = psmouse->set_rate; + psmouse->set_rate = elantech_set_rate_restore_reg_07; + } +if (elantech_set_input_params (psmouse)) {psmouse_err (psmouse,"failed to query touchpad range.\n" ); goto init_fail;
drivers/input/mouse/elantech.h +1 -0
@@ -142,6 +142,7 @@ struct elantech_data {struct finger_pos mt[ETP_MAX_FINGERS ];unsigned char parity[256 ];int (*send_cmd)(struct psmouse *psmouse,unsigned char c,unsigned char *param); +void (*original_set_rate)(struct psmouse *psmouse,unsigned int rate); };#ifdef CONFIG_MOUSE_PS2_ELANTECH
drivers/md/dm-crypt.c +6 -6
@@ -920,11 +920,10 @@ static int crypt_convert(struct crypt_config *cc,switch (r) {/* async */ +case -EINPROGRESS :case -EBUSY :wait_for_completion (&ctx->restart);reinit_completion (&ctx->restart); -/* fall through*/ -case -EINPROGRESS : ctx->req =NULL ; ctx->cc_sector++;continue ;
@@ -1315,10 +1314,8 @@ static void kcryptd_async_done(struct crypto_async_request *async_req, struct dm_crypt_io *io = container_of(ctx, struct dm_crypt_io, ctx);struct crypt_config *cc = io->cc; -if (error == -EINPROGRESS ) { -complete (&ctx->restart); +if (error == -EINPROGRESS )return ; - }if (!error && cc->iv_gen_ops && cc->iv_gen_ops->post) error = cc->iv_gen_ops->post (cc,iv_of_dmreq (cc, dmreq), dmreq);
@@ -1329,12 +1326,15 @@ static void kcryptd_async_done(struct crypto_async_request *async_req,crypt_free_req (cc,req_of_dmreq (cc, dmreq), io->base_bio);if (!atomic_dec_and_test (&ctx->cc_pending)) -return ; + goto done;if (bio_data_dir (io->base_bio) ==READ )kcryptd_crypt_read_done (io);else kcryptd_crypt_write_io_submit (io,1 ); +done: +if (!completion_done (&ctx->restart)) +complete (&ctx->restart); }static void kcryptd_crypt (struct work_struct *work)
drivers/md/md.c +5 -1
@@ -248,6 +248,7 @@ static void md_make_request(struct request_queue *q, struct bio *bio)const int rw =bio_data_dir (bio);struct mddev *mddev = q->queuedata;unsigned int sectors; +int cpu;if (mddev ==NULL || mddev->pers ==NULL || !mddev->ready) {
@@ -283,7 +284,10 @@ static void md_make_request(struct request_queue *q, struct bio *bio) sectors =bio_sectors (bio); mddev->pers->make_request (mddev, bio); -generic_start_io_acct (rw, sectors, &mddev->gendisk->part0); + cpu =part_stat_lock (); +part_stat_inc (cpu, &mddev->gendisk->part0, ios[rw]); +part_stat_add (cpu, &mddev->gendisk->part0, sectors[rw], sectors); +part_stat_unlock ();if (atomic_dec_and_test (&mddev->active_io) && mddev->suspended)wake_up (&mddev->sb_wait);
drivers/md/raid0.c +2 -1
@@ -319,7 +319,7 @@ static struct strip_zone *find_zone(struct r0conf *conf,/* * remaps the bio to the target device. we separate two flows. -* power 2 flow and a general flow for the sake of perfromance +* power 2 flow and a general flow for the sake of performance */ static struct md_rdev *map_sector (struct mddev *mddev,struct strip_zone *zone,sector_t sector,sector_t *sector_offset)
@@ -537,6 +537,7 @@ static void raid0_make_request(struct mddev *mddev, struct bio *bio) split = bio; } + sector = bio->bi_iter.bi_sector; zone =find_zone (mddev->private, §or); tmp_dev =map_sector (mddev, zone, sector, §or); split->bi_bdev = tmp_dev->bdev;
drivers/media/rc/img-ir/img-ir-core.c +1 -1
@@ -146,7 +146,7 @@ static int img_ir_remove(struct platform_device *pdev) {struct img_ir_priv *priv =platform_get_drvdata (pdev); -free_irq (priv->irq, img_ir_isr); +free_irq (priv->irq, priv);img_ir_remove_hw (priv);img_ir_remove_raw (priv);
drivers/media/usb/stk1160/stk1160-v4l.c +15 -2
@@ -244,6 +244,11 @@ static int stk1160_stop_streaming(struct stk1160 *dev)if (mutex_lock_interruptible (&dev->v4l_lock))return -ERESTARTSYS ; +/* +* Once URBs are cancelled, the URB complete handler +* won't be running. This is required to safely release the +* current buffer (dev->isoc_ctl.buf). +*/ stk1160_cancel_isoc (dev);/*
@@ -624,8 +629,16 @@ void stk1160_clear_queue(struct stk1160 *dev)stk1160_info ("buffer [%p/%d] aborted\n" , buf, buf->vb.v4l2_buf.index); } -/* It's important to clear current buffer */ - dev->isoc_ctl.buf =NULL ; + +/* It's important to release the current buffer */ +if (dev->isoc_ctl.buf) { + buf = dev->isoc_ctl.buf; + dev->isoc_ctl.buf =NULL ; + +vb2_buffer_done (&buf->vb,VB2_BUF_STATE_ERROR ); +stk1160_info ("buffer [%p/%d] aborted\n" , + buf, buf->vb.v4l2_buf.index); + }spin_unlock_irqrestore (&dev->buf_lock, flags); }
drivers/memstick/core/mspro_block.c +2 -1
@@ -758,7 +758,7 @@ static int mspro_block_complete_req(struct memstick_dev *card, int error)if (error || (card->current_mrq.tpc ==MSPRO_CMD_STOP )) {if (msb->data_dir ==READ ) { -for (cnt =0 ; cnt < msb->current_seg; cnt++) +for (cnt =0 ; cnt < msb->current_seg; cnt++) { t_len += msb->req_sg[cnt].length / msb->page_size;
@@ -766,6 +766,7 @@ static int mspro_block_complete_req(struct memstick_dev *card, int error) t_len += msb->current_page -1 ; t_len *= msb->page_size; + } } }else t_len =blk_rq_bytes (msb->block_req);
drivers/mfd/mfd-core.c +1 -1
@@ -128,7 +128,7 @@ static int mfd_add_device(struct device *parent, int id,int platform_id;int r; -if (id <0 ) +if (id ==PLATFORM_DEVID_AUTO ) platform_id = id;else platform_id = id + cell->id;
drivers/mmc/host/sunxi-mmc.c +3 -1
@@ -908,7 +908,9 @@ static int sunxi_mmc_resource_request(struct sunxi_mmc_host *host,return PTR_ERR (host->clk_mmc); } - host->reset =devm_reset_control_get (&pdev->dev,"ahb" ); + host->reset =devm_reset_control_get_optional (&pdev->dev,"ahb" ); +if (PTR_ERR (host->reset) == -EPROBE_DEFER ) +return PTR_ERR (host->reset); ret =clk_prepare_enable (host->clk_ahb);if (ret) {
drivers/mtd/ubi/attach.c +1 -1
@@ -410,7 +410,7 @@ int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, second_is_newer = !second_is_newer; }else {dbg_bld ("PEB %d CRC is OK" , pnum); - bitflips = !!err; + bitflips |= !!err; }mutex_unlock (&ubi->buf_mutex);
drivers/mtd/ubi/cdev.c +1 -1
@@ -454,7 +454,7 @@ static long vol_cdev_ioctl(struct file *file, unsigned int cmd,/* Validate the request */ err = -EINVAL ;if (req.lnum <0 || req.lnum >= vol->reserved_pebs || - req.bytes <0 || req.lnum >= vol->usable_leb_size) + req.bytes <0 || req.bytes > vol->usable_leb_size)break ; err =get_exclusive (ubi, desc);
drivers/mtd/ubi/eba.c +2 -1
@@ -1362,7 +1362,8 @@ int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai)* during re-size. */ ubi_move_aeb_to_list (av, aeb, &ai->erase); - vol->eba_tbl[aeb->lnum] = aeb->pnum; + else + vol->eba_tbl[aeb->lnum] = aeb->pnum; } }
drivers/mtd/ubi/wl.c +1 -1
@@ -1005,7 +1005,7 @@ static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk, int shutdown) {int err, scrubbing =0 , torture =0 , protect =0 , erroneous =0 ; -int vol_id =-1 ,uninitialized_var (lnum ); +int vol_id =-1 , lnum =-1 ;#ifdef CONFIG_MTD_UBI_FASTMAP int anchor = wrk->anchor;#endif
drivers/net/ethernet/intel/e1000/e1000_main.c +9 -1
@@ -144,6 +144,11 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,static bool e1000_clean_jumbo_rx_irq (struct e1000_adapter *adapter,struct e1000_rx_ring *rx_ring,int *work_done,int work_to_do); +static void e1000_alloc_dummy_rx_buffers (struct e1000_adapter *adapter, +struct e1000_rx_ring *rx_ring, +int cleaned_count) +{ +}static void e1000_alloc_rx_buffers (struct e1000_adapter *adapter,struct e1000_rx_ring *rx_ring,int cleaned_count);
@@ -3548,8 +3553,11 @@ static int e1000_change_mtu(struct net_device *netdev, int new_mtu)msleep (1 );/* e1000_down has a dependency on max_frame_size */ hw->max_frame_size = max_frame; -if (netif_running (netdev)) +if (netif_running (netdev)) { +/* prevent buffers from being reallocated */ + adapter->alloc_rx_buf = e1000_alloc_dummy_rx_buffers;e1000_down (adapter); + }/* NOTE: netdev_alloc_skb reserves 16 bytes, and typically NET_IP_ALIGN * means we reserve 2 more, this pushes us to allocate from the next
drivers/net/ethernet/marvell/pxa168_eth.c +5 -11
@@ -1508,7 +1508,8 @@ static int pxa168_eth_probe(struct platform_device *pdev) np =of_parse_phandle (pdev->dev.of_node,"phy-handle" ,0 );if (!np) {dev_err (&pdev->dev,"missing phy-handle\n" ); -return -EINVAL ; + err = -EINVAL ; + goto err_netdev; }of_property_read_u32 (np,"reg" , &pep->phy_addr); pep->phy_intf =of_get_phy_mode (pdev->dev.of_node);
@@ -1526,7 +1527,7 @@ static int pxa168_eth_probe(struct platform_device *pdev) pep->smi_bus =mdiobus_alloc ();if (pep->smi_bus ==NULL ) { err = -ENOMEM ; - goto err_base; + goto err_netdev; } pep->smi_bus->priv = pep; pep->smi_bus->name ="pxa168_eth smi" ;
@@ -1551,13 +1552,10 @@ err_mdiobus:mdiobus_unregister (pep->smi_bus); err_free_mdio:mdiobus_free (pep->smi_bus); -err_base: -iounmap (pep->base); err_netdev:free_netdev (dev); err_clk: -clk_disable (clk); -clk_put (clk); +clk_disable_unprepare (clk);return err; }
@@ -1574,13 +1572,9 @@ static int pxa168_eth_remove(struct platform_device *pdev)if (pep->phy)phy_disconnect (pep->phy);if (pep->clk) { -clk_disable (pep->clk); -clk_put (pep->clk); - pep->clk =NULL ; +clk_disable_unprepare (pep->clk); } -iounmap (pep->base); - pep->base =NULL ;mdiobus_unregister (pep->smi_bus);mdiobus_free (pep->smi_bus);unregister_netdev (dev);
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +16 -13
@@ -983,20 +983,21 @@ static int mlx4_en_check_rxfh_func(struct net_device *dev, u8 hfunc)struct mlx4_en_priv *priv =netdev_priv (dev);/* check if requested function is supported by the device */ -if ((hfunc ==ETH_RSS_HASH_TOP && - !(priv->mdev->dev->caps.flags2 &MLX4_DEV_CAP_FLAG2_RSS_TOP )) || - (hfunc ==ETH_RSS_HASH_XOR && - !(priv->mdev->dev->caps.flags2 &MLX4_DEV_CAP_FLAG2_RSS_XOR ))) -return -EINVAL ; +if (hfunc ==ETH_RSS_HASH_TOP ) { +if (!(priv->mdev->dev->caps.flags2 &MLX4_DEV_CAP_FLAG2_RSS_TOP )) +return -EINVAL ; +if (!(dev->features &NETIF_F_RXHASH )) +en_warn (priv,"Toeplitz hash function should be used in conjunction with RX hashing for optimal performance\n" ); +return 0 ; + }else if (hfunc ==ETH_RSS_HASH_XOR ) { +if (!(priv->mdev->dev->caps.flags2 &MLX4_DEV_CAP_FLAG2_RSS_XOR )) +return -EINVAL ; +if (dev->features &NETIF_F_RXHASH ) +en_warn (priv,"Enabling both XOR Hash function and RX Hashing can limit RPS functionality\n" ); +return 0 ; + } - priv->rss_hash_fn = hfunc; -if (hfunc ==ETH_RSS_HASH_TOP && !(dev->features &NETIF_F_RXHASH )) -en_warn (priv, -"Toeplitz hash function should be used in conjunction with RX hashing for optimal performance\n" ); -if (hfunc ==ETH_RSS_HASH_XOR && (dev->features &NETIF_F_RXHASH )) -en_warn (priv, -"Enabling both XOR Hash function and RX Hashing can limit RPS functionality\n" ); -return 0 ; +return -EINVAL ; } static int mlx4_en_get_rxfh(struct net_device *dev, u32 *ring_index, u8 *key,
@@ -1070,6 +1071,8 @@ static int mlx4_en_set_rxfh(struct net_device *dev, const u32 *ring_index, priv->prof->rss_rings = rss_rings;if (key)memcpy (priv->rss_key, key,MLX4_EN_RSS_KEY_SIZE ); +if (hfunc !=ETH_RSS_HASH_NO_CHANGE ) + priv->rss_hash_fn = hfunc;if (port_up) { err =mlx4_en_start_port (dev);
drivers/net/ppp/ppp_generic.c +1 -0
@@ -1716,6 +1716,7 @@ ppp_receive_frame(struct ppp *ppp, struct sk_buff *skb, struct channel *pch) {/* note: a 0-length skb is used as an error indication */ if (skb->len >0 ) { +skb_checksum_complete_unset (skb);#ifdef CONFIG_PPP_MULTILINK /* XXX do channel-level decompression here */ if (PPP_PROTO (skb) ==PPP_MP )
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +2 -0
@@ -321,6 +321,7 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(0x07b8, 0x8188, rtl92cu_hal_cfg)}, /*Abocom - Abocom*/ {RTL_USB_DEVICE(0x07b8, 0x8189, rtl92cu_hal_cfg)}, /*Funai - Abocom*/ {RTL_USB_DEVICE(0x0846, 0x9041, rtl92cu_hal_cfg)}, /*NetGear WNA1000M*/ + {RTL_USB_DEVICE(0x0b05, 0x17ba, rtl92cu_hal_cfg)}, /*ASUS-Edimax*/ {RTL_USB_DEVICE(0x0bda, 0x5088, rtl92cu_hal_cfg)}, /*Thinkware-CC&C*/ {RTL_USB_DEVICE(0x0df6, 0x0052, rtl92cu_hal_cfg)}, /*Sitecom - Edimax*/ {RTL_USB_DEVICE(0x0df6, 0x005c, rtl92cu_hal_cfg)}, /*Sitecom - Edimax*/
@@ -377,6 +378,7 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(0x2001, 0x3307, rtl92cu_hal_cfg)}, /*D-Link-Cameo*/ {RTL_USB_DEVICE(0x2001, 0x3309, rtl92cu_hal_cfg)}, /*D-Link-Alpha*/ {RTL_USB_DEVICE(0x2001, 0x330a, rtl92cu_hal_cfg)}, /*D-Link-Alpha*/ + {RTL_USB_DEVICE(0x2001, 0x330d, rtl92cu_hal_cfg)}, /*D-Link DWA-131 */ {RTL_USB_DEVICE(0x2019, 0xab2b, rtl92cu_hal_cfg)}, /*Planex -Abocom*/ {RTL_USB_DEVICE(0x20f4, 0x624d, rtl92cu_hal_cfg)}, /*TRENDNet*/ {RTL_USB_DEVICE(0x2357, 0x0100, rtl92cu_hal_cfg)}, /*TP-Link WN8200ND*/
drivers/net/wireless/ti/wl18xx/debugfs.c +1 -1
@@ -136,7 +136,7 @@ WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, protection_filter, "%u");WL18XX_DEBUGFS_FWSTATS_FILE (rx_filter, accum_arp_pend_requests,"%u" );WL18XX_DEBUGFS_FWSTATS_FILE (rx_filter, max_arp_queue_dep,"%u" ); -WL18XX_DEBUGFS_FWSTATS_FILE (rx_rate, rx_frames_per_rates,"%u" ); +WL18XX_DEBUGFS_FWSTATS_FILE_ARRAY (rx_rate, rx_frames_per_rates,50 );WL18XX_DEBUGFS_FWSTATS_FILE_ARRAY (aggr_size, tx_agg_vs_rate,AGGR_STATS_TX_AGG *AGGR_STATS_TX_RATE );
drivers/net/wireless/ti/wlcore/debugfs.h +2 -2
@@ -26,8 +26,8 @@#include "wlcore.h" -int wl1271_format_buffer (char __user *userbuf,size_t count, -loff_t *ppos,char *fmt, ...); +__printf(4, 5) int wl1271_format_buffer(char __user *userbuf, size_t count, +loff_t *ppos,char *fmt, ...);int wl1271_debugfs_init (struct wl1271 *wl);void wl1271_debugfs_exit (struct wl1271 *wl);
drivers/nfc/st21nfcb/i2c.c +2 -2
@@ -109,7 +109,7 @@ static int st21nfcb_nci_i2c_write(void *phy_id, struct sk_buff *skb)return phy->ndlc->hard_fault; r =i2c_master_send (client, skb->data, skb->len); -if (r == -EREMOTEIO ) {/* Retry, chip was in standby */ +if (r <0 ) {/* Retry, chip was in standby */ usleep_range (1000 ,4000 ); r =i2c_master_send (client, skb->data, skb->len); }
@@ -148,7 +148,7 @@ static int st21nfcb_nci_i2c_read(struct st21nfcb_i2c_phy *phy,struct i2c_client *client = phy->i2c_dev; r =i2c_master_recv (client, buf,ST21NFCB_NCI_I2C_MIN_SIZE ); -if (r == -EREMOTEIO ) {/* Retry, chip was in standby */ +if (r <0 ) {/* Retry, chip was in standby */ usleep_range (1000 ,4000 ); r =i2c_master_recv (client, buf,ST21NFCB_NCI_I2C_MIN_SIZE ); }
drivers/platform/x86/compal-laptop.c +6 -4
@@ -1026,9 +1026,9 @@ static int compal_probe(struct platform_device *pdev)if (err)return err; - hwmon_dev =hwmon_device_register_with_groups (&pdev->dev, -"compal" , data, - compal_hwmon_groups); + hwmon_dev =devm_hwmon_device_register_with_groups (&pdev->dev, +"compal" , data, + compal_hwmon_groups);if (IS_ERR (hwmon_dev)) { err =PTR_ERR (hwmon_dev); goto remove;
@@ -1036,7 +1036,9 @@ static int compal_probe(struct platform_device *pdev)/* Power supply */ initialize_power_supply_data (data); -power_supply_register (&compal_device->dev, &data->psy); + err =power_supply_register (&compal_device->dev, &data->psy); +if (err <0 ) + goto remove;platform_set_drvdata (pdev, data);
drivers/power/ipaq_micro_battery.c +20 -2
@@ -226,6 +226,7 @@ static struct power_supply micro_ac_power = {static int micro_batt_probe (struct platform_device *pdev) {struct micro_battery *mb; +int ret; mb =devm_kzalloc (&pdev->dev,sizeof (*mb),GFP_KERNEL );if (!mb)
@@ -233,14 +234,30 @@ static int micro_batt_probe(struct platform_device *pdev)
Lines of this file are not shown. View the raw message.
drivers/target/target_core_file.c +75 -47
122 lines not on this page · raw message
drivers/target/target_core_transport.c +33 -4
Lines of this file are not shown. View the raw message.
drivers/usb/musb/musb_core.c +29 -20
49 lines not on this page · raw message
fs/btrfs/xattr.c +39 -14
53 lines not on this page · raw message
net/ipv4/tcp_output.c +45 -19
64 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.