Linux 4.1.11
Greg KH
maintainerI'm announcing the release of the 4.1.11 kernel.
All users of the 4.1 kernel series must upgrade.
The updated 4.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.1.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/HOWTO | 28 ++--- Makefile | 2 arch/arm/Makefile | 8 + arch/arm/boot/dts/imx25-pdk.dts | 5 - arch/arm/boot/dts/imx51-apf51dev.dts | 2 arch/arm/boot/dts/imx53-ard.dts | 4 arch/arm/boot/dts/imx53-m53evk.dts | 4 arch/arm/boot/dts/imx53-qsb-common.dtsi | 4 arch/arm/boot/dts/imx53-smd.dts | 4 arch/arm/boot/dts/imx53-tqma53.dtsi | 4 arch/arm/boot/dts/imx53-tx53.dtsi | 4 arch/arm/boot/dts/imx53-voipac-bsb.dts | 4 arch/arm/boot/dts/imx6qdl-rex.dtsi | 2 arch/arm/boot/dts/omap3-beagle.dts | 2 arch/arm/boot/dts/omap5-uevm.dts | 4 arch/arm/kernel/kgdb.c | 8 + arch/arm/kernel/signal.c | 15 ++- arch/arm/kvm/interrupts_head.S | 6 - arch/arm/kvm/mmu.c | 6 - arch/arm/mach-exynos/mcpm-exynos.c | 27 +++++ arch/arm/mach-exynos/regs-pmu.h | 6 + arch/arm64/kernel/efi.c | 3 arch/arm64/kernel/entry-ftrace.S | 22 ++++ arch/arm64/mm/fault.c | 1 arch/m68k/include/asm/linkage.h | 30 ++++++ arch/mips/loongson/common/env.c | 3 arch/mips/mm/dma-default.c | 2 arch/powerpc/kvm/book3s.c | 6 + arch/powerpc/kvm/book3s_hv_rmhandlers.S | 1 arch/powerpc/platforms/powernv/pci.c | 5 - arch/powerpc/sysdev/fsl_msi.c | 5 - arch/powerpc/sysdev/mpic_pasemi_msi.c | 6 - arch/powerpc/sysdev/mpic_u3msi.c | 5 - arch/powerpc/sysdev/ppc4xx_msi.c | 5 - arch/s390/boot/compressed/Makefile | 2 arch/s390/kernel/compat_signal.c | 27 ++++- arch/x86/kernel/alternative.c | 5 + arch/x86/kernel/apic/apic.c | 7 + arch/x86/kernel/cpu/perf_event_intel.c | 5 - arch/x86/kernel/crash.c | 7 - arch/x86/kernel/entry_64.S | 16 +++ arch/x86/kernel/paravirt.c | 16 ++- arch/x86/kernel/process_64.c | 52 ++++++++-- arch/x86/kernel/tsc.c | 17 ++- arch/x86/kvm/svm.c | 2 arch/x86/kvm/vmx.c | 2 arch/x86/mm/init_64.c | 2 arch/x86/platform/efi/efi.c | 67 +++++++++++++ arch/x86/xen/enlighten.c | 23 ++++ drivers/base/cacheinfo.c | 10 +- drivers/base/property.c | 5 - drivers/base/regmap/regmap-debugfs.c | 5 - drivers/clk/ti/clk-3xxx.c | 2 drivers/cpufreq/cpufreq-dt.c | 3 drivers/cpufreq/intel_pstate.c | 10 +- drivers/dma/dw/core.c | 4 drivers/firmware/efi/libstub/arm-stub.c | 88 ++++++++++++++--- drivers/gpu/drm/drm_dp_mst_topology.c | 5 - drivers/gpu/drm/drm_lock.c | 6 + drivers/gpu/drm/i915/intel_bios.c | 12 ++ drivers/gpu/drm/qxl/qxl_display.c | 14 +- drivers/gpu/drm/radeon/atombios_encoders.c | 8 - drivers/hwmon/nct6775.c | 16 ++- drivers/infiniband/ulp/isert/ib_isert.c | 47 +++++++++ drivers/irqchip/irq-atmel-aic5.c | 24 +++- drivers/irqchip/irq-gic-v3-its.c | 6 + drivers/leds/led-class.c | 7 + drivers/macintosh/windfarm_core.c | 2 drivers/md/bitmap.c | 3 drivers/md/dm-cache-policy-cleaner.c | 2 drivers/md/dm-crypt.c | 17 +++ drivers/md/dm-raid.c | 3 drivers/md/dm.c | 6 - drivers/md/persistent-data/dm-btree-internal.h | 6 + drivers/md/persistent-data/dm-btree-remove.c | 12 -- drivers/md/persistent-data/dm-btree-spine.c | 37 +++++++ drivers/md/persistent-data/dm-btree.c | 7 - drivers/md/raid0.c | 75 +++++++-------- drivers/mmc/core/host.c | 4 drivers/mmc/host/dw_mmc.c | 109 ++++++++++++++------- drivers/mmc/host/sdhci-esdhc-imx.c | 50 ++++++++-- drivers/mmc/host/sdhci.c | 67 +++++-------- drivers/mmc/host/sdhci.h | 8 - drivers/mtd/nand/pxa3xx_nand.c | 3 drivers/mtd/nand/sunxi_nand.c | 27 ++--- drivers/mtd/ubi/io.c | 5 + drivers/mtd/ubi/vtbl.c | 1 drivers/mtd/ubi/wl.c | 1 drivers/net/ethernet/intel/igb/igb_main.c | 2 drivers/net/wireless/ath/ath10k/htc.c | 4 drivers/net/wireless/ath/ath10k/htt_tx.c | 8 + drivers/net/wireless/ath/ath10k/mac.c | 16 +++ drivers/net/wireless/ath/ath10k/pci.c | 8 + drivers/net/wireless/ath/ath10k/wmi.c | 1 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c | 8 + drivers/net/wireless/rsi/rsi_91x_usb_ops.c | 8 + drivers/net/xen-netfront.c | 3 drivers/pci/access.c | 27 ----- drivers/pci/bus.c | 2 drivers/pci/quirks.c | 20 +++- drivers/pcmcia/sa1100_generic.c | 1 drivers/pcmcia/sa11xx_base.c | 3 drivers/platform/x86/toshiba_acpi.c | 8 - drivers/power/avs/Kconfig | 2 drivers/scsi/3w-9xxx.c | 28 ++++- drivers/scsi/ipr.c | 2 drivers/scsi/scsi_error.c | 11 ++ drivers/spi/spi-pxa2xx.c | 4 drivers/spi/spi-xtensa-xtfpga.c | 4 drivers/spi/spi.c | 3 drivers/spi/spidev.c | 3 drivers/staging/android/ion/ion.c | 6 - drivers/staging/speakup/fakekey.c | 1 drivers/target/iscsi/iscsi_target.c | 33 +++--- drivers/target/iscsi/iscsi_target.h | 2 drivers/target/iscsi/iscsi_target_configfs.c | 14 +- drivers/target/iscsi/iscsi_target_login.c | 8 - drivers/target/iscsi/iscsi_target_tpg.c | 15 +-- drivers/target/iscsi/iscsi_target_tpg.h | 2 drivers/target/target_core_pr.c | 3 drivers/target/target_core_ua.c | 8 - drivers/target/target_core_xcopy.c | 6 - drivers/tty/n_tty.c | 15 +-- drivers/tty/serial/8250/8250_core.c | 8 + drivers/tty/serial/amba-pl011.c | 4 drivers/tty/serial/atmel_serial.c | 2 drivers/tty/tty_io.c | 31 +++++- drivers/usb/chipidea/ci_hdrc_imx.c | 2 drivers/usb/chipidea/udc.c | 84 ++++++++-------- drivers/usb/core/config.c | 5 - drivers/usb/core/quirks.c | 13 ++ drivers/usb/host/xhci-mem.c | 17 +-- drivers/usb/host/xhci-ring.c | 79 ++++++++++++--- drivers/usb/host/xhci.c | 15 ++- drivers/usb/misc/chaoskey.c | 2 drivers/usb/musb/musb_cppi41.c | 6 - drivers/usb/musb/musb_dsps.c | 7 + drivers/usb/phy/phy-generic.c | 3 drivers/usb/serial/option.c | 24 ++++ drivers/usb/serial/whiteheat.c | 31 ++++++ drivers/video/fbdev/Kconfig | 2 drivers/watchdog/sunxi_wdt.c | 2 fs/block_dev.c | 7 + fs/btrfs/extent_io.c | 80 +++++++++++++--- fs/btrfs/inode.c | 3 fs/cifs/cifsencrypt.c | 53 ++++++++++ fs/cifs/inode.c | 34 ------ fs/cifs/smb2ops.c | 8 + fs/cifs/smb2pdu.c | 76 ++++++++++++--- fs/dcache.c | 12 ++ fs/internal.h | 1 fs/namei.c | 39 ++++++- fs/nfs/filelayout/filelayout.c | 31 ++---- fs/nfs/pagelist.c | 2 fs/nfs/read.c | 3 fs/nfs/write.c | 5 - fs/ocfs2/dlm/dlmmaster.c | 9 + fs/ocfs2/dlm/dlmrecovery.c | 8 + fs/open.c | 49 +++++---- fs/overlayfs/inode.c | 25 ++--- fs/overlayfs/overlayfs.h | 1 fs/overlayfs/super.c | 1 fs/ubifs/xattr.c | 3 include/linux/dcache.h | 2 include/linux/fs.h | 2 include/linux/mmc/core.h | 1 include/linux/security.h | 2 include/net/netfilter/nf_queue.h | 2 include/net/netfilter/nf_tables.h | 2 include/target/iscsi/iscsi_target_core.h | 1 include/xen/interface/sched.h | 8 + ipc/msg.c | 14 +- ipc/shm.c | 13 +- ipc/util.c | 8 - kernel/events/core.c | 8 - kernel/events/internal.h | 10 ++ kernel/events/ring_buffer.c | 27 +++++ kernel/irq/proc.c | 19 +++ kernel/sched/core.c | 25 +++-- kernel/sched/fair.c | 25 ++--- kernel/sched/sched.h | 5 - kernel/time/timekeeping.c | 2 lib/iommu-common.c | 6 - mm/hugetlb.c | 8 + mm/migrate.c | 2 mm/slab.c | 13 ++ net/batman-adv/distributed-arp-table.c | 7 - net/batman-adv/multicast.c | 81 ++++++++++++---- net/batman-adv/network-coding.c | 7 - net/batman-adv/originator.c | 5 + net/batman-adv/soft-interface.c | 10 +- net/batman-adv/translation-table.c | 37 +++++-- net/batman-adv/types.h | 15 +-- net/bluetooth/smp.c | 12 +- net/ipv4/inet_connection_sock.c | 2 net/netfilter/core.c | 1 net/netfilter/ipvs/ip_vs_core.c | 16 ++- net/netfilter/ipvs/ip_vs_ctl.c | 78 +++++++++------ net/netfilter/ipvs/ip_vs_sched.c | 12 +- net/netfilter/ipvs/ip_vs_sync.c | 2 net/netfilter/ipvs/ip_vs_xmit.c | 34 ++++++ net/netfilter/nf_conntrack_expect.c | 3 net/netfilter/nf_conntrack_netlink.c | 5 - net/netfilter/nf_internals.h | 1 net/netfilter/nf_log.c | 9 + net/netfilter/nf_queue.c | 17 +++ net/netfilter/nf_tables_core.c | 7 + net/netfilter/nfnetlink.c | 8 + net/netfilter/nfnetlink_queue_core.c | 24 ++++ net/netfilter/nft_compat.c | 24 +++- net/sunrpc/xprtrdma/svc_rdma_sendto.c | 10 +- sound/arm/Kconfig | 15 +-- sound/pci/hda/patch_cirrus.c | 1 sound/pci/hda/patch_realtek.c | 32 ++++-- sound/pci/hda/patch_sigmatel.c | 6 + sound/soc/au1x/db1200.c | 4 sound/soc/codecs/sgtl5000.c | 4 sound/soc/dwc/designware_i2s.c | 4 sound/soc/pxa/Kconfig | 2 sound/soc/pxa/pxa2xx-ac97.c | 4 sound/synth/emux/emux_oss.c | 3 tools/lib/traceevent/event-parse.c | 23 ++++ tools/perf/arch/alpha/Build | 1 tools/perf/arch/mips/Build | 1 tools/perf/arch/parisc/Build | 1 tools/perf/builtin-stat.c | 5 - tools/perf/util/header.c | 4 tools/perf/util/hist.c | 3 tools/perf/util/symbol-elf.c | 35 ++----- virt/kvm/eventfd.c | 124 ++++++++++++++----------- virt/kvm/kvm_main.c | 19 +++ 231 files changed, 2252 insertions(+), 957 deletions(-)
Adrian Hunter (1):
perf tools: Fix copying of /proc/kcore
Al Viro (1):
fix a braino in ovl_d_select_inode()
Alex Gartrell (1):
ipvs: skb_orphan in case of forwarding
Alex Williamson (2):
PCI: Fix devfn for VPD access through function 0
PCI: Use function 0 VPD for identical functions, regular VPD for others
Alexander Inyukhin (1):
USB: chaoskey read offset bug
Alexey Brodkin (1):
mmc: dw_mmc: handle data blocks > than 4kB if IDMAC is used
Andreas Schwab (1):
m68k: Define asmlinkage_protect
Andy Grover (1):
target/iscsi: Fix np_ip bracket issue by removing np_ip
Andy Lutomirski (2):
x86/paravirt: Replace the paravirt nop with a bona fide empty function x86/nmi/64: Fix a paravirt stack-clobbering bug in the NMI code
Andy Shevchenko (2):
dmaengine: dw: properly read DWC_PARAMS register device property: fix potential NULL pointer dereference
Antoine Ténart (1):
mtd: pxa3xx_nand: add a default chunk size
Ard Biesheuvel (2):
ARM: 8429/1: disable GCC SRA optimization
arm64/efi: Fix boot crash by not padding between EFI_MEMORY_RUNTIME regions
Arnaldo Carvalho de Melo (2):
perf hists: Update the column width for the "srcline" sort key perf header: Fixup reading of HEADER_NRCPUS feature
Azael Avalos (1):
toshiba_acpi: Fix hotkeys registration on some toshiba models
Ben Dooks (1):
clk: ti: fix dual-registration of uart4_ick
Ben Hutchings (2):
perf tools: Add empty Build files for architectures lacking them
genirq: Fix race in register_irq_proc()
Ben Segall (1):
sched/fair: Prevent throttling in early pick_next_task_fair()
Bin Liu (1):
usb: musb: dsps: fix polling in device-only mode
Bjorn Helgaas (1):
PCI: Clear IORESOURCE_UNSET when clipping a bridge window
Boris BREZILLON (2):
mtd: nand: sunxi: fix sunxi_nand_chips_cleanup()
mtd: nand: sunxi: fix OOB handling in ->write_xxx() functions
Borislav Petkov (1):
cpu/cacheinfo: Fix teardown path
Carl Frederik Werner (1):
ARM: dts: omap3-beagle: make i2c3, ddc and tfp410 gpio work again
Chanho Park (1):
ARM: EXYNOS: reset Little cores when cpu is up
Chas Williams (1):
net/xen-netfront: only napi_synchronize() if running
Christian Borntraeger (1):
s390/boot/decompression: disable floating point in decompressor
Christian Engelmayer (1):
rsi: Fix possible leak when loading firmware
Christoph Hellwig (1):
3w-9xxx: don't unmap bounce buffered commands
Chuck Lever (1):
svcrdma: Fix send_reply() scatter/gather set-up
Daniel Vetter (1):
drm: Reject DRI1 hw lock ioctl functions for kms drivers
Dave Airlie (2):
drm/qxl: only report first monitor as connected if we have no state drm/dp/mst: drop cancel work sync in the mstb destroy path (v2)
Dave Martin (1):
serial/amba-pl011: Disable interrupts around TX softirq
David Howells (2):
overlay: Call ovl_drop_write() earlier in ovl_dentry_open()
overlayfs: Make f_path always point to the overlay and f_inode to the underlay
David Woodhouse (1):
x86/platform: Fix Geode LX timekeeping in the generic x86 build
Dirk Müller (1):
Use WARN_ON_ONCE for missing X86_FEATURE_NRIPS
Dominik Dingel (1):
sched: access local runqueue directly in single_task_running
Dong Aisheng (4):
mmc: sdhci-esdhc-imx: fix cd regression for dt platform
dts: imx51: fix sd card gpio polarity specified in device tree
dts: imx53: fix sd card gpio polarity specified in device tree
dts: imx25: fix sd card gpio polarity specified in device tree
Doug Anderson (1):
ARM: 8425/1: kgdb: Don't try to stop the machine when setting breakpoints
Eric Dumazet (1):
inet: fix potential deadlock in reqsk_queue_unlink()
Eric W. Biederman (4):
netfilter: nf_qeueue: Drop queue entries on nf_unregister_hook
netfilter: nftables: Do not run chains in the wrong network namespace
dcache: Handle escaped paths in prepend_path
vfs: Test for and handle paths that are unreachable from their mnt_root
Fabiano Fidêncio (1):
drm/qxl: recreate the primary surface when the bo is not primary
Fabio Estevam (2):
mmc: sdhci-esdhc-imx: Move mmc_of_parse() to the dt probe
mmc: sdhci-esdhc-imx: Do not break platform data boards
Felipe Balbi (1):
usb: musb: cppi41: allow it to work again
Felipe F. Tonello (1):
ARM: dts: fix usb pin control for imx-rex dts
Filipe Manana (2):
Btrfs: fix read corruption of compressed and shared extents
Btrfs: update fix for read corruption of compressed and shared extents
Florian Westphal (1):
netfilter: nf_log: don't zap all loggers on unregister
Francesco Lavra (1):
watchdog: sunxi: fix activation of system reset
Gabriel Krisman Bertazi (1):
ipr: Enable SIS pipe commands for SIS-32 devices.
Gautham R. Shenoy (1):
KVM: PPC: Book3S HV: Pass the correct trap argument to kvmhv_commence_exit
Gianluca Renzi (1):
ASoC: sgtl5000: fix wrong register MIC_BIAS_VOLTAGE setup on probe
Grazvydas Ignotas (1):
ARM: dts: omap5-uevm.dts: fix i2c5 pinctrl offsets
Greg Kroah-Hartman (1):
Linux 4.1.11
Guenter Roeck (3):
hwmon: (nct6775) Swap STEP_UP_TIME and STEP_DOWN_TIME registers for most chips
spi: Fix documentation of spi_alloc_master()
MIPS: Fix console output for Fulong2e system
Haibo Chen (1):
mmc: sdhci: fix dma memory leak in sdhci_pre_req()
Heiko Stuebner (1):
PM / AVS: rockchip-io: depend on CONFIG_POWER_AVS
James Hogan (1):
MIPS: dma-default: Fix 32-bit fall back to GFP_DMA
Jani Nikula (1):
drm/i915/bios: handle MIPI Sequence Block v3+ gracefully
Jann Horn (2):
security: fix typo in security_task_prctl drivers/tty: require read access for controlling terminal
Jason Wang (4):
kvm: don't try to register to KVM_FAST_MMIO_BUS for non mmio eventfd
kvm: fix zero length mmio searching
kvm: factor out core eventfd assign/deassign logic
kvm: fix double free for fast mmio eventfd
Jeff Mahoney (1):
btrfs: skip waiting on ordered range for special files
Jeff Moyer (1):
blockdev: don't set S_DAX for misaligned partitions
Jenny Derzhavetz (2):
iser-target: remove command with state ISTATE_REMOVE
iser-target: Put the reference on commands waiting for unsol data
Joe Stringer (1):
netfilter: nf_conntrack: Support expectations in different zones
Joe Thornber (2):
dm btree: add ref counting ops for the leaves of top level btrees dm cache: fix NULL pointer when switching from cleaner policy
Johan Hedberg (1):
Bluetooth: Delay check for conn->smp in smp_conn_security()
Johan Hovold (1):
USB: whiteheat: fix potential null-deref at probe
John Flatness (1):
ALSA: hda - Apply SPDIF pin ctl to MacBookPro 12,1
John Stultz (1):
time: Fix timekeeping_freqadjust()'s incorrect use of abs() instead of abs64()
Joonsoo Kim (1):
mm/slab: fix unexpected index mapping result of kmalloc_size(INDEX_NODE+1)
Joseph Qi (1):
ocfs2/dlm: fix deadlock when dispatch assert master
Julian Anastasov (4):
ipvs: do not use random local source address for tunnels
ipvs: fix crash if scheduler is changed
ipvs: fix crash with sync protocol v0 and FTP
ipvs: call skb_sender_cpu_clear
Junichi Nomura (1):
dm: fix AB-BA deadlock in __dm_destroy()
Kan Liang (1):
perf stat: Get correct cpu id for print_aggr
Kapileshwar Singh (1):
tools lib traceevent: Fix string handling in heterogeneous arch environments
Kinglong Mee (2):
NFS: Do cleanup before resetting pageio read/write to mds nfs/filelayout: Fix NULL reference caused by double freeing of fh_array
Kosuke Tatsukawa (1):
tty: fix stall caused by missing memory barrier in drivers/tty/n_tty.c
Lars-Peter Clausen (1):
ASoC: db1200: Fix DAI link format for db1300 and db1550
Laura Abbott (1):
ALSA: hda: Add dock support for ThinkPad T550
Lee, Chun-Yi (1):
x86/kexec: Fix kexec crash in syscall kexec_file_load()
Li Bin (1):
arm64: ftrace: fix function_graph tracer panic
Li Jun (1):
usb: chipidea: imx: fix a typo for imx6sx
Linus Lüssing (6):
batman-adv: Make DAT capability changes atomic
batman-adv: Make NC capability changes atomic
batman-adv: Make TT capability changes atomic
batman-adv: Make MCAST capability changes atomic
batman-adv: Fix potential synchronization issues in mcast tvlv handler
batman-adv: Fix potentially broken skb network header access
Linus Torvalds (1):
Initialize msg/shm IPC objects before doing ipc_addid()
Linus Walleij (1):
fbdev: select versatile helpers for the integrator
Liu.Zhao (1):
USB: option: add ZTE PIDs
Ludovic Desroches (1):
irqchip/atmel-aic5: Use per chip mask caches in mask/unmask()
Mans Rullgard (1):
serial: 8250: add uart_config entry for PORT_RT2880
Marc Zyngier (2):
arm: KVM: Disable virtual timer even if the guest is not using it irqchip/gic-v3-its: Add missing cache flushes
Marek Lindner (2):
batman-adv: fix kernel crash due to missing NULL checks
batman-adv: protect tt_local_entry from concurrent delete events
Marek Majtyka (1):
arm: KVM: Fix incorrect device to IPA mapping
Mario Carrillo (1):
docs: update HOWTO for 3.x -> 4.x versioning
Mark Brown (2):
regmap: debugfs: Ensure we don't underflow when printing access masks
regmap: debugfs: Don't bother actually printing when calculating max length
Mark Salyzyn (1):
arm64: readahead: fault retry breaks mmap file read random detection
Martin Schwidefsky (1):
s390/compat: correct uc_sigmask of the compat signal frame
Mathias Nyman (4):
xhci: give command abortion one more chance before killing xhci
xhci: change xhci 1.0 only restrictions to support xhci 1.1
xhci: init command timeout timer earlier to avoid deleting it uninitialized
usb: Use the USB_SS_MULT() macro to get the burst multiplier.
Matt Fleming (1):
x86/efi: Fix boot crash by mapping EFI memmap entries bottom-up at runtime, instead of top-down
Max Filippov (1):
spi: xtensa-xtfpga: fix register endianness
Mel Gorman (1):
mm: hugetlbfs: skip shared VMAs when unmapping private pages to satisfy a fault
Michal Hocko (1):
scsi: fix scsi_error_handler vs. scsi_host_dev_release race
Michal Kazior (2):
ath10k: fix dma_mapping_error() handling
ath10k: reject 11b tx fragmentation configuration
Michel Dänzer (1):
drm/radeon: Restore LCD backlight level on resume (>= R5xx)
Mike Snitzer (1):
dm crypt: constrain crypt device's max_segment_size to PAGE_SIZE
Mikulas Patocka (1):
dm raid: fix round up of default region size
Naoya Horiguchi (1):
mm: migrate: hugetlb: putback destination hugepage to active list
NeilBrown (3):
md/raid0: update queue parameter in a safer location. md/raid0: apply base queue limits *before* disk_stack_limits md/bitmap: don't pass -1 to bitmap_storage_alloc.
Nicholas Bellinger (2):
target: Attach EXTENDED_COPY local I/O descriptors to xcopy_pt_sess
target: Fix v4.1 UNIT_ATTENTION se_node_acl->device_list[] NULL pointer
Pablo Neira Ayuso (5):
netfilter: nfnetlink: work around wrong endianess in res_id field
netfilter: nf_tables: Use 32 bit addressing register from nft_type_to_reg()
netfilter: ctnetlink: put back references to master ct and expect objects
netfilter: nf_log: wait for rcu grace after logger unregistration
netfilter: nft_compat: skip family comparison in case of NFPROTO_UNSPEC
Paul Bolle (1):
windfarm: decrement client count when unregistering
Paul Mackerras (1):
powerpc/MSI: Fix race condition in tearing down MSI interrupts
Peng Tao (1):
nfs: fix pg_test page count calculation
Peter Chen (1):
usb: chipidea: udc: using the correct stall implementation
Peter Seiderer (1):
cifs: use server timestamp for ntlmv2 authentication
Peter Zijlstra (3):
perf/x86/intel: Fix constraint access
perf: Fix AUX buffer refcounting
sched/core: Fix TASK_DEAD race in finish_task_switch()
Prarit Bhargava (1):
intel_pstate: Fix overflow in busy_scaled due to long delay
Reyad Attiyat (1):
usb: xhci: Add support for URB_ZERO_PACKET to bulk/sg transfers
Ricardo Ribalda Delgado (1):
leds/led-class: Add missing put_device()
Richard Weinberger (2):
UBIFS: Kill unneeded locking in ubifs_init_security
UBI: Validate data_size
Robert Jarzmik (2):
ASoC: pxa: pxa2xx-ac97: fix dma requestor lines
ASoC: fix broken pxa SoC support
Roger Quadros (4):
usb: xhci: lock mutex on xhci_stop
usb: xhci: Clear XHCI_STATE_DYING on start
usb: xhci: exit early in xhci_setup_device() if we're halted or dying
usb: phy: phy-generic: Fix reset behaviour on legacy boot
Russell King (2):
ARM: fix Thumb2 signal handling when ARMv6 is enabled
pcmcia: sa11x0: fix missing clk_put() in sa11x0 socket drivers
Shaohua Li (1):
x86/apic: Serialize LVTT and TSC_DEADLINE writes
Shawn Lin (1):
staging: ion: fix corruption of ion_import_dma_buf
Sowmini Varadhan (1):
lib/iommu-common.c: do not try to deref a null iommu->lazy_flush() pointer when n < pool->hint
Stefan Assmann (1):
igb: do not re-init SR-IOV during probe
Stephen Smalley (1):
x86/mm: Set NX on gap between __ex_table and rodata
Steve French (3):
Fix sec=krb5 on smb3 mounts
disabling oplocks/leases via module parm enable_oplocks broken for SMB3 Do not fall back to SMBWriteX in set_file_size error cases
Sudip Mukherjee (1):
spi: spidev: fix possible NULL dereference
Takashi Iwai (3):
ALSA: hda - Disable power_save_node for Thinkpads
ALSA: synth: Fix conflicting OSS device registration on AWE32
ALSA: hda - Disable power_save_node for IDT 92HD73xx chips
Tan, Jui Nee (1):
spi: spi-pxa2xx: Check status register to determine if SSSR_TINT is disabled
Thomas Gleixner (2):
x86/alternatives: Make optimize_nops() interrupt safe and synced x86/process: Add proper bound checks in 64bit get_wchan()
Thomas Huth (1):
KVM: PPC: Book3S: Take the kvm->srcu lock in kvmppc_h_logical_ci_load/store()
Trond Myklebust (2):
NFS: Fix a write performance regression
namei: results of d_is_negative() should be checked after dentry revalidation
Ulf Hansson (1):
mmc: core: Don't return an error for CD/WP GPIOs when GPIOLIB is unset
Uwe Kleine-König (1):
serial: atmel: fix error path of probe function
Vincent Palatin (1):
usb: Add device quirk for Logitech PTZ cameras
Viresh Kumar (1):
cpufreq: dt: Tolerance applies on both sides of target voltage
Vitaly Kuznetsov (1):
x86/xen: Support kexec/kdump in HVM guests by doing a soft reset
Wanpeng Li (1):
KVM: vmx: fix VPID is 0000H in non-root operation
Yao-Wen Mao (1):
USB: Add reset-resume quirk for two Plantronics usb headphones.
Yitian Bu (1):
ASoC: dwc: correct irq clear method
[email protected] (1):
staging: speakup: fix speakup-r regression
shengyong (1):
UBI: return ENOSPC if no enough space available
Greg KH
maintainerDocumentation/HOWTO +14 -14
@@ -218,16 +218,16 @@ The development process Linux kernel development process currently consists of a few different main kernel "branches" and lots of different subsystem-specific kernel branches. These different branches are: - - main 3.x kernel tree - - 3.x.y -stable kernel tree - - 3.x -git kernel patches + - main 4.x kernel tree + - 4.x.y -stable kernel tree + - 4.x -git kernel patches - subsystem specific kernel trees and patches - - the 3.x -next kernel tree for integration tests + - the 4.x -next kernel tree for integration tests -3.x kernel tree +4.x kernel tree ----------------- -3.x kernels are maintained by Linus Torvalds, and can be found on -kernel.org in the pub/linux/kernel/v3.x/ directory. Its development +4.x kernels are maintained by Linus Torvalds, and can be found on +kernel.org in the pub/linux/kernel/v4.x/ directory. Its development process is as follows: - As soon as a new kernel is released a two weeks window is open, during this period of time maintainers can submit big diffs to
@@ -262,20 +262,20 @@ mailing list about kernel releases: released according to perceived bug status, not according to a preconceived timeline." -3.x.y -stable kernel tree +4.x.y -stable kernel tree --------------------------- Kernels with 3-part versions are -stable kernels. They contain relatively small and critical fixes for security problems or significant -regressions discovered in a given 3.x kernel. +regressions discovered in a given 4.x kernel. This is the recommended branch for users who want the most recent stable kernel and are not interested in helping test development/experimental versions. -If no 3.x.y kernel is available, then the highest numbered 3.x +If no 4.x.y kernel is available, then the highest numbered 4.x kernel is the current stable kernel. -3.x.y are maintained by the "stable" team <[email protected]>, and +4.x.y are maintained by the "stable" team <[email protected]>, and are released as needs dictate. The normal release period is approximately two weeks, but it can be longer if there are no pressing problems. A security-related problem, instead, can cause a release to happen almost
@@ -285,7 +285,7 @@ The file Documentation/stable_kernel_rules.txt in the kernel tree documents what kinds of changes are acceptable for the -stable tree, and how the release process works. -3.x -git patches +4.x -git patches ------------------ These are daily snapshots of Linus' kernel tree which are managed in a git repository (hence the name.) These patches are usually released
@@ -317,9 +317,9 @@ revisions to it, and maintainers can mark patches as under review, accepted, or rejected. Most of these patchwork sites are listed at http://patchwork.kernel.org/. -3.x -next kernel tree for integration tests +4.x -next kernel tree for integration tests --------------------------------------------- -Before updates from subsystem trees are merged into the mainline 3.x +Before updates from subsystem trees are merged into the mainline 4.x tree, they need to be integration-tested. For this purpose, a special testing repository exists into which virtually all subsystem trees are pulled on an almost daily basis:
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 1 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Series 4800
arch/arm/Makefile +8 -0
@@ -50,6 +50,14 @@ AS += -EL LD += -EL endif +# +# The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and +# later may result in code being generated that handles signed short and signed +# char struct members incorrectly. So disable it. +# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932) +# +KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra) + # This selects which instruction set is used. # Note that GCC does not numerically define an architecture version # macro, but instead defines a whole series of macros which makes
arch/arm/boot/dts/imx25-pdk.dts +3 -2
@@ -10,6 +10,7 @@ */ /dts-v1/; +#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> #include "imx25.dtsi"
@@ -114,8 +115,8 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - cd-gpios = <&gpio2 1 0>; - wp-gpios = <&gpio2 0 0>; + cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; status = "okay"; };
arch/arm/boot/dts/imx51-apf51dev.dts +1 -1
@@ -98,7 +98,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - cd-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; + cd-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; bus-width = <4>; status = "okay"; };
arch/arm/boot/dts/imx53-ard.dts +2 -2
@@ -103,8 +103,8 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - cd-gpios = <&gpio1 1 0>; - wp-gpios = <&gpio1 9 0>; + cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; status = "okay"; };
arch/arm/boot/dts/imx53-m53evk.dts +2 -2
@@ -124,8 +124,8 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - cd-gpios = <&gpio1 1 0>; - wp-gpios = <&gpio1 9 0>; + cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; status = "okay"; };
arch/arm/boot/dts/imx53-qsb-common.dtsi +2 -2
@@ -147,8 +147,8 @@ &esdhc3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc3>; - cd-gpios = <&gpio3 11 0>; - wp-gpios = <&gpio3 12 0>; + cd-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>; bus-width = <8>; status = "okay"; };
arch/arm/boot/dts/imx53-smd.dts +2 -2
@@ -41,8 +41,8 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - cd-gpios = <&gpio3 13 0>; - wp-gpios = <&gpio4 11 0>; + cd-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>; status = "okay"; };
arch/arm/boot/dts/imx53-tqma53.dtsi +2 -2
@@ -41,8 +41,8 @@ pinctrl-0 = <&pinctrl_esdhc2>, <&pinctrl_esdhc2_cdwp>; vmmc-supply = <®_3p3v>; - wp-gpios = <&gpio1 2 0>; - cd-gpios = <&gpio1 4 0>; + wp-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; status = "disabled"; };
arch/arm/boot/dts/imx53-tx53.dtsi +2 -2
@@ -183,7 +183,7 @@ }; &esdhc1 { - cd-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; + cd-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>; fsl,wp-controller; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>;
@@ -191,7 +191,7 @@ }; &esdhc2 { - cd-gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; + cd-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>; fsl,wp-controller; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc2>;
arch/arm/boot/dts/imx53-voipac-bsb.dts +2 -2
@@ -119,8 +119,8 @@ &esdhc2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc2>; - cd-gpios = <&gpio3 25 0>; - wp-gpios = <&gpio2 19 0>; + cd-gpios = <&gpio3 25 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; vmmc-supply = <®_3p3v>; status = "okay"; };
arch/arm/boot/dts/imx6qdl-rex.dtsi +0 -2
@@ -35,7 +35,6 @@ compatible = "regulator-fixed"; reg = <1>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usbh1>; regulator-name = "usbh1_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
@@ -47,7 +46,6 @@ compatible = "regulator-fixed"; reg = <2>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usbotg>; regulator-name = "usb_otg_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
arch/arm/boot/dts/omap3-beagle.dts +1 -1
@@ -202,7 +202,7 @@ tfp410_pins: pinmux_tfp410_pins { pinctrl-single,pins = < - 0x194 (PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */ + 0x196 (PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */ >; };
arch/arm/boot/dts/omap5-uevm.dts +2 -2
@@ -174,8 +174,8 @@ i2c5_pins: pinmux_i2c5_pins { pinctrl-single,pins = < - 0x184 (PIN_INPUT | MUX_MODE0) /* i2c5_scl */ - 0x186 (PIN_INPUT | MUX_MODE0) /* i2c5_sda */ + 0x186 (PIN_INPUT | MUX_MODE0) /* i2c5_scl */ + 0x188 (PIN_INPUT | MUX_MODE0) /* i2c5_sda */ >; };
arch/arm/kernel/kgdb.c +5 -3
@@ -259,15 +259,17 @@ int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt)if (err)return err; -patch_text ((void *)bpt->bpt_addr, - *(unsigned int *)arch_kgdb_ops.gdb_bpt_instr); +/* Machine is already stopped, so we can use __patch_text() directly */ +__patch_text ((void *)bpt->bpt_addr, + *(unsigned int *)arch_kgdb_ops.gdb_bpt_instr);return err; }int kgdb_arch_remove_breakpoint (struct kgdb_bkpt *bpt) { -patch_text ((void *)bpt->bpt_addr, *(unsigned int *)bpt->saved_instr); +/* Machine is already stopped, so we can use __patch_text() directly */ +__patch_text ((void *)bpt->bpt_addr, *(unsigned int *)bpt->saved_instr);return 0 ; }
arch/arm/kernel/signal.c +10 -5
@@ -343,12 +343,17 @@ setup_return(struct pt_regs *regs, struct ksignal *ksig,*/ thumb = handler &1 ; -#if __LINUX_ARM_ARCH__ >=7 +#if __LINUX_ARM_ARCH__ >=6 /* -* Clear the If-Then Thumb-2 execution state -* ARM spec requires this to be all 000s in ARM mode -* Snapdragon S4/Krait misbehaves on a Thumb=>ARM -* signal transition without this. +* Clear the If-Then Thumb-2 execution state. ARM spec +* requires this to be all 000s in ARM mode. Snapdragon +* S4/Krait misbehaves on a Thumb=>ARM signal transition +* without this. +* +* We must do this whenever we are running on a Thumb-2 +* capable CPU, which includes ARMv6T2. However, we elect +* to do this whenever we're on an ARMv6 or later CPU for +* simplicity. */ cpsr &= ~PSR_IT_MASK ;#endif
arch/arm/kvm/interrupts_head.S +4 -2
@@ -518,8 +518,7 @@ ARM_BE8(rev r6, r6 ) mrc p15, 0, r2, c14, c3, 1 @ CNTV_CTL str r2, [vcpu, #VCPU_TIMER_CNTV_CTL] - bic r2, #1 @ Clear ENABLE - mcr p15, 0, r2, c14, c3, 1 @ CNTV_CTL + isb mrrc p15, 3, rr_lo_hi(r2, r3), c14 @ CNTV_CVAL
@@ -532,6 +531,9 @@ ARM_BE8(rev r6, r6 ) mcrr p15, 4, r2, r2, c14 @ CNTVOFF 1: + mov r2, #0 @ Clear ENABLE + mcr p15, 0, r2, c14, c3, 1 @ CNTV_CTL + @ Allow physical timer/counter access for the host mrc p15, 4, r2, c14, c1, 0 @ CNTHCTL orr r2, r2, #(CNTHCTL_PL1PCEN | CNTHCTL_PL1PCTEN)
arch/arm/kvm/mmu.c +4 -2
@@ -1790,8 +1790,10 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,if (vma->vm_flags &VM_PFNMAP ) {gpa_t gpa = mem->guest_phys_addr + (vm_start - mem->userspace_addr); -phys_addr_t pa = (vma->vm_pgoff <<PAGE_SHIFT ) + - vm_start - vma->vm_start; +phys_addr_t pa; + + pa = (phys_addr_t )vma->vm_pgoff <<PAGE_SHIFT ; + pa += vm_start - vma->vm_start;/* IO region dirty page logging not allowed */ if (memslot->flags &KVM_MEM_LOG_DIRTY_PAGES )
arch/arm/mach-exynos/mcpm-exynos.c +26 -1
@@ -20,6 +20,7 @@#include <asm/cputype.h> #include <asm/cp15.h> #include <asm/mcpm.h> +#include <asm/smp_plat.h> #include "regs-pmu.h" #include "common.h"
@@ -70,7 +71,31 @@ static int exynos_cpu_powerup(unsigned int cpu, unsigned int cluster) cluster >= EXYNOS5420_NR_CLUSTERS)return -EINVAL ; -exynos_cpu_power_up (cpunr); +if (!exynos_cpu_power_state (cpunr)) { +exynos_cpu_power_up (cpunr); + +/* +* This assumes the cluster number of the big cores(Cortex A15) +* is 0 and the Little cores(Cortex A7) is 1. +* When the system was booted from the Little core, +* they should be reset during power up cpu. +*/ +if (cluster && + cluster ==MPIDR_AFFINITY_LEVEL (cpu_logical_map (0 ),1 )) { +/* +* Before we reset the Little cores, we should wait +* the SPARE2 register is set to 1 because the init +* codes of the iROM will set the register after +* initialization. +*/ +while (!pmu_raw_readl (S5P_PMU_SPARE2 )) +udelay (10 ); + +pmu_raw_writel (EXYNOS5420_KFC_CORE_RESET (cpu), +EXYNOS_SWRESET ); + } + } +return 0 ; }
arch/arm/mach-exynos/regs-pmu.h +6 -0
@@ -513,6 +513,12 @@ static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)#define SPREAD_ENABLE 0xF#define SPREAD_USE_STANDWFI 0xF +#define EXYNOS5420_KFC_CORE_RESET0 BIT(8) +#define EXYNOS5420_KFC_ETM_RESET0 BIT(20) + +#define EXYNOS5420_KFC_CORE_RESET (_nr) \ + ((EXYNOS5420_KFC_CORE_RESET0 | EXYNOS5420_KFC_ETM_RESET0) << (_nr)) +#define EXYNOS5420_BB_CON1 0x0784#define EXYNOS5420_BB_SEL_EN BIT(31)#define EXYNOS5420_BB_PMOS_EN BIT(7)
arch/arm64/kernel/efi.c +2 -1
@@ -257,7 +257,8 @@ static bool __init efi_virtmap_init(void)*/ if (!is_normal_ram (md)) prot =__pgprot (PROT_DEVICE_nGnRE); -else if (md->type ==EFI_RUNTIME_SERVICES_CODE ) +else if (md->type ==EFI_RUNTIME_SERVICES_CODE || + !PAGE_ALIGNED (md->phys_addr)) prot =PAGE_KERNEL_EXEC ;else prot =PAGE_KERNEL ;
arch/arm64/kernel/entry-ftrace.S +20 -2
@@ -178,6 +178,24 @@ ENTRY(ftrace_stub) ENDPROC(ftrace_stub) #ifdef CONFIG_FUNCTION_GRAPH_TRACER + /* save return value regs*/ + .macro save_return_regs + sub sp, sp, #64 + stp x0, x1, [sp] + stp x2, x3, [sp, #16] + stp x4, x5, [sp, #32] + stp x6, x7, [sp, #48] + .endm + + /* restore return value regs*/ + .macro restore_return_regs + ldp x0, x1, [sp] + ldp x2, x3, [sp, #16] + ldp x4, x5, [sp, #32] + ldp x6, x7, [sp, #48] + add sp, sp, #64 + .endm + /* * void ftrace_graph_caller(void) *
@@ -204,11 +222,11 @@ ENDPROC(ftrace_graph_caller) * only when CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST is enabled. */ ENTRY(return_to_handler) - str x0, [sp, #-16]! + save_return_regs mov x0, x29 // parent's fp bl ftrace_return_to_handler// addr = ftrace_return_to_hander(fp); mov x30, x0 // restore the original return address - ldr x0, [sp], #16 + restore_return_regs ret END(return_to_handler) #endif /* CONFIG_FUNCTION_GRAPH_TRACER */
arch/arm64/mm/fault.c +1 -0
@@ -279,6 +279,7 @@ retry:* starvation. */ mm_flags &= ~FAULT_FLAG_ALLOW_RETRY ; + mm_flags |=FAULT_FLAG_TRIED ; goto retry; } }
arch/m68k/include/asm/linkage.h +30 -0
@@ -4,4 +4,34 @@#define __ALIGN .align 4#define __ALIGN_STR ".align 4" +/* +* Make sure the compiler doesn't do anything stupid with the +* arguments on the stack - they are owned by the *caller*, not +* the callee. This just fools gcc into not spilling into them, +* and keeps it from doing tailcall recursion and/or using the +* stack slots for temporaries, since they are live and "used" +* all the way to the end of the function. +*/ +#define asmlinkage_protect(n, ret, args...) \ + __asmlinkage_protect##n(ret, ##args) +#define __asmlinkage_protect_n(ret, args...) \ + __asm__ __volatile__ ("" : "=r" (ret) : "0" (ret), ##args) +#define __asmlinkage_protect0 (ret) \ + __asmlinkage_protect_n(ret) +#define __asmlinkage_protect1 (ret, arg1) \ + __asmlinkage_protect_n(ret, "m" (arg1)) +#define __asmlinkage_protect2 (ret, arg1, arg2) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2)) +#define __asmlinkage_protect3 (ret, arg1, arg2, arg3) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3)) +#define __asmlinkage_protect4 (ret, arg1, arg2, arg3, arg4) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \ + "m" (arg4)) +#define __asmlinkage_protect5 (ret, arg1, arg2, arg3, arg4, arg5) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \ + "m" (arg4), "m" (arg5)) +#define __asmlinkage_protect6 (ret, arg1, arg2, arg3, arg4, arg5, arg6) \ + __asmlinkage_protect_n(ret, "m" (arg1), "m" (arg2), "m" (arg3), \ + "m" (arg4), "m" (arg5), "m" (arg6)) +#endif
arch/mips/loongson/common/env.c +3 -0
@@ -64,6 +64,9 @@ void __init prom_init_env(void) }if (memsize ==0 ) memsize =256 ; + + loongson_sysconf.nr_uarts =1 ; +pr_info ("memsize=%u, highmemsize=%u\n" , memsize, highmemsize);#else struct boot_params *boot_p;
arch/mips/mm/dma-default.c +1 -1
@@ -100,7 +100,7 @@ static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp) else#endif #if defined(CONFIG_ZONE_DMA ) && !defined(CONFIG_ZONE_DMA32 ) -if (dev->coherent_dma_mask <DMA_BIT_MASK (64 )) +if (dev->coherent_dma_mask <DMA_BIT_MASK (sizeof (phys_addr_t) *8 )) dma_flag = __GFP_DMA; else#endif
arch/powerpc/kvm/book3s.c +6 -0
@@ -826,12 +826,15 @@ int kvmppc_h_logical_ci_load(struct kvm_vcpu *vcpu)unsigned long size =kvmppc_get_gpr (vcpu,4 );unsigned long addr =kvmppc_get_gpr (vcpu,5 );u64 buf; +int srcu_idx;int ret;if (!is_power_of_2 (size) || (size >sizeof (buf)))return H_TOO_HARD ; + srcu_idx =srcu_read_lock (&vcpu->kvm->srcu); ret =kvm_io_bus_read (vcpu,KVM_MMIO_BUS , addr, size, &buf); +srcu_read_unlock (&vcpu->kvm->srcu, srcu_idx);if (ret !=0 )return H_TOO_HARD ;
@@ -866,6 +869,7 @@ int kvmppc_h_logical_ci_store(struct kvm_vcpu *vcpu)unsigned long addr =kvmppc_get_gpr (vcpu,5 );unsigned long val =kvmppc_get_gpr (vcpu,6 );u64 buf; +int srcu_idx;int ret;switch (size) {
@@ -889,7 +893,9 @@ int kvmppc_h_logical_ci_store(struct kvm_vcpu *vcpu)return H_TOO_HARD ; } + srcu_idx =srcu_read_lock (&vcpu->kvm->srcu); ret =kvm_io_bus_write (vcpu,KVM_MMIO_BUS , addr, size, &buf); +srcu_read_unlock (&vcpu->kvm->srcu, srcu_idx);if (ret !=0 )return H_TOO_HARD ;
arch/powerpc/kvm/book3s_hv_rmhandlers.S +1 -0
@@ -1171,6 +1171,7 @@ mc_cont: bl kvmhv_accumulate_time #endif + mr r3, r12 /* Increment exit count, poke other threads to exit */ bl kvmhv_commence_exit nop
arch/powerpc/platforms/powernv/pci.c +3 -2
@@ -99,6 +99,7 @@ static void pnv_teardown_msi_irqs(struct pci_dev *pdev)struct pci_controller *hose =pci_bus_to_host (pdev->bus);struct pnv_phb *phb = hose->private_data;struct msi_desc *entry; +irq_hw_number_t hwirq;if (WARN_ON (!phb))return ;
@@ -106,10 +107,10 @@ static void pnv_teardown_msi_irqs(struct pci_dev *pdev)list_for_each_entry (entry, &pdev->msi_list, list) {if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&phb->msi_bmp, -virq_to_hw (entry->irq) - phb->msi_base,1 );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&phb->msi_bmp, hwirq - phb->msi_base,1 ); } }#endif /* CONFIG_PCI_MSI */
arch/powerpc/sysdev/fsl_msi.c +3 -2
@@ -128,15 +128,16 @@ static void fsl_teardown_msi_irqs(struct pci_dev *pdev) {struct msi_desc *entry;struct fsl_msi *msi_data; +irq_hw_number_t hwirq;list_for_each_entry (entry, &pdev->msi_list, list) {if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq); msi_data =irq_get_chip_data (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&msi_data->bitmap, -virq_to_hw (entry->irq),1 );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&msi_data->bitmap, hwirq,1 ); }return ;
arch/powerpc/sysdev/mpic_pasemi_msi.c +4 -2
@@ -65,6 +65,7 @@ static struct irq_chip mpic_pasemi_msi_chip = {static void pasemi_msi_teardown_msi_irqs (struct pci_dev *pdev) {struct msi_desc *entry; +irq_hw_number_t hwirq;pr_debug ("pasemi_msi_teardown_msi_irqs, pdev %p\n" , pdev);
@@ -72,10 +73,11 @@ static void pasemi_msi_teardown_msi_irqs(struct pci_dev *pdev)if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&msi_mpic->msi_bitmap, -virq_to_hw (entry->irq),ALLOC_CHUNK );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&msi_mpic->msi_bitmap, + hwirq,ALLOC_CHUNK ); }return ;
arch/powerpc/sysdev/mpic_u3msi.c +3 -2
@@ -107,15 +107,16 @@ static u64 find_u4_magic_addr(struct pci_dev *pdev, unsigned int hwirq)static void u3msi_teardown_msi_irqs (struct pci_dev *pdev) {struct msi_desc *entry; +irq_hw_number_t hwirq;list_for_each_entry (entry, &pdev->msi_list, list) {if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&msi_mpic->msi_bitmap, -virq_to_hw (entry->irq),1 );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&msi_mpic->msi_bitmap, hwirq,1 ); }return ;
arch/powerpc/sysdev/ppc4xx_msi.c +3 -2
@@ -124,16 +124,17 @@ void ppc4xx_teardown_msi_irqs(struct pci_dev *dev) {struct msi_desc *entry;struct ppc4xx_msi *msi_data = &ppc4xx_msi; +irq_hw_number_t hwirq;dev_dbg (&dev->dev,"PCIE-MSI: tearing down msi irqs\n" );list_for_each_entry (entry, &dev->msi_list, list) {if (entry->irq ==NO_IRQ )continue ; + hwirq =virq_to_hw (entry->irq);irq_set_msi_desc (entry->irq,NULL ); -msi_bitmap_free_hwirqs (&msi_data->bitmap, -virq_to_hw (entry->irq),1 );irq_dispose_mapping (entry->irq); +msi_bitmap_free_hwirqs (&msi_data->bitmap, hwirq,1 ); } }
arch/s390/boot/compressed/Makefile +1 -1
@@ -10,7 +10,7 @@ targets += misc.o piggy.o sizes.h head.o KBUILD_CFLAGS := -m64 -D__KERNEL__ $(LINUX_INCLUDE) -O2 KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING -KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks +KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks -msoft-float KBUILD_CFLAGS += $(call cc-option,-mpacked-stack) KBUILD_CFLAGS += $(call cc-option,-ffreestanding)
arch/s390/kernel/compat_signal.c +23 -4
@@ -48,6 +48,19 @@ typedef structstruct ucontext32 uc; } rt_sigframe32; +static inline void sigset_to_sigset32 (unsigned long *set64, +compat_sigset_word *set32) +{ + set32[0 ] = (compat_sigset_word ) set64[0 ]; + set32[1 ] = (compat_sigset_word)(set64[0 ] >>32 ); +} + +static inline void sigset32_to_sigset (compat_sigset_word *set32, +unsigned long *set64) +{ + set64[0 ] = (unsigned long ) set32[0 ] | ((unsigned long ) set32[1 ] <<32 ); +} +int copy_siginfo_to_user32 (compat_siginfo_t __user *to,const siginfo_t *from) {int err;
@@ -303,10 +316,12 @@ COMPAT_SYSCALL_DEFINE0(sigreturn) {struct pt_regs *regs =task_pt_regs (current);sigframe32 __user *frame = (sigframe32 __user *)regs->gprs[15 ]; +compat_sigset_t cset;sigset_t set; -if (__copy_from_user (&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32)) +if (__copy_from_user (&cset.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32)) goto badframe; +sigset32_to_sigset (cset.sig, set.sig);set_current_blocked (&set);if (restore_sigregs32 (regs, &frame->sregs)) goto badframe;
@@ -323,10 +338,12 @@ COMPAT_SYSCALL_DEFINE0(rt_sigreturn) {struct pt_regs *regs =task_pt_regs (current);rt_sigframe32 __user *frame = (rt_sigframe32 __user *)regs->gprs[15 ]; +compat_sigset_t cset;sigset_t set; -if (__copy_from_user (&set, &frame->uc.uc_sigmask,sizeof (set))) +if (__copy_from_user (&cset, &frame->uc.uc_sigmask,sizeof (cset))) goto badframe; +sigset32_to_sigset (cset.sig, set.sig);set_current_blocked (&set);if (compat_restore_altstack (&frame->uc.uc_stack)) goto badframe;
@@ -397,7 +414,7 @@ static int setup_frame32(struct ksignal *ksig, sigset_t *set,return -EFAULT ;/* Create struct sigcontext32 on the signal stack */ -memcpy (&sc.oldmask, &set->sig, _SIGMASK_COPY_SIZE32); +sigset_to_sigset32 (set->sig, sc.oldmask); sc.sregs = (__u32 )(unsigned long __force ) &frame->sregs;if (__copy_to_user (&frame->sc, &sc,sizeof (frame->sc)))return -EFAULT ;
@@ -458,6 +475,7 @@ static int setup_frame32(struct ksignal *ksig, sigset_t *set,static int setup_rt_frame32 (struct ksignal *ksig,sigset_t *set,struct pt_regs *regs) { +compat_sigset_t cset;rt_sigframe32 __user *frame;unsigned long restorer;size_t frame_size;
@@ -505,11 +523,12 @@ static int setup_rt_frame32(struct ksignal *ksig, sigset_t *set,store_sigregs ();/* Create ucontext on the signal stack. */ +sigset_to_sigset32 (set->sig, cset.sig);if (__put_user (uc_flags, &frame->uc.uc_flags) ||__put_user (0 , &frame->uc.uc_link) ||__compat_save_altstack (&frame->uc.uc_stack, regs->gprs[15 ]) ||save_sigregs32 (regs, &frame->uc.uc_mcontext) || -__copy_to_user (&frame->uc.uc_sigmask, set,sizeof (*set)) || +__copy_to_user (&frame->uc.uc_sigmask, &cset,sizeof (cset)) ||save_sigregs_ext32 (regs, &frame->uc.uc_mcontext_ext))return -EFAULT ;
arch/x86/kernel/alternative.c +5 -0
@@ -325,10 +325,15 @@ done: static void __init_or_module optimize_nops(struct alt_instr *a, u8 *instr) { +unsigned long flags; +if (instr[0 ] !=0x90 )return ; +local_irq_save (flags);add_nops (instr + (a->instrlen - a->padlen), a->padlen); +sync_core (); +local_irq_restore (flags);DUMP_BYTES (instr, a->instrlen,"%p: [%d:%d) optimized NOPs: " , instr, a->instrlen - a->padlen, a->padlen);
arch/x86/kernel/apic/apic.c +7 -0
@@ -336,6 +336,13 @@ static void __setup_APIC_LVTT(unsigned int clocks, int oneshot, int irqen)apic_write (APIC_LVTT , lvtt_value);if (lvtt_value &APIC_LVT_TIMER_TSCDEADLINE ) { +/* +* See Intel SDM: TSC-Deadline Mode chapter. In xAPIC mode, +* writing to the APIC LVTT and TSC_DEADLINE MSR isn't serialized. +* According to Intel, MFENCE can do the serialization here. +*/ + asmvolatile ("mfence" : : :"memory" ); +printk_once (KERN_DEBUG "TSC deadline timer enabled\n" );return ; }
arch/x86/kernel/cpu/perf_event_intel.c +4 -1
@@ -2098,9 +2098,12 @@ static struct event_constraint * intel_get_event_constraints(struct cpu_hw_events *cpuc, int idx, struct perf_event *event) { - struct event_constraint *c1 = cpuc->event_constraint[idx]; + struct event_constraint *c1 = NULL;struct event_constraint *c2; +if (idx >=0 )/* fake does < 0 */ + c1 = cpuc->event_constraint[idx]; +/* * first time only * - static constraint: no change across incremental scheduling calls
arch/x86/kernel/crash.c +3 -4
@@ -184,10 +184,9 @@ void native_machine_crash_shutdown(struct pt_regs *regs) }#ifdef CONFIG_KEXEC_FILE -static int get_nr_ram_ranges_callback (unsigned long start_pfn, -unsigned long nr_pfn,void *arg) +static int get_nr_ram_ranges_callback (u64 start,u64 end,void *arg) { -int *nr_ranges = arg; +unsigned int *nr_ranges = arg; (*nr_ranges)++;return 0 ;
@@ -213,7 +212,7 @@ static void fill_up_crash_elf_data(struct crash_elf_data *ced, ced->image = image; -walk_system_ram_range (0 ,-1 , &nr_ranges, +walk_system_ram_res (0 ,-1 , &nr_ranges, get_nr_ram_ranges_callback); ced->max_nr_ranges = nr_ranges;
arch/x86/kernel/entry_64.S +15 -1
@@ -1393,7 +1393,18 @@ END(error_exit) /* Runs on exception stack */ ENTRY(nmi) INTR_FRAME + /* + * Fix up the exception frame if we're on Xen. + * PARAVIRT_ADJUST_EXCEPTION_FRAME is guaranteed to push at most + * one value to the stack on native, so it may clobber the rdx + * scratch slot, but it won't clobber any of the important + * slots past it. + * + * Xen is a different story, because the Xen frame itself overlaps + * the "NMI executing" variable. + */ PARAVIRT_ADJUST_EXCEPTION_FRAME + /* * We allow breakpoints in NMIs. If a breakpoint occurs, then * the iretq it performs will take us out of NMI context.
@@ -1445,9 +1456,12 @@ ENTRY(nmi) * we don't want to enable interrupts, because then we'll end * up in an awkward situation in which IRQs are on but NMIs * are off. + * + * We also must not push anything to the stack before switching + * stacks lest we corrupt the "NMI executing" variable. */ - SWAPGS + SWAPGS_UNSAFE_STACK cld movq %rsp, %rdx movq PER_CPU_VAR(kernel_stack), %rsp
arch/x86/kernel/paravirt.c +12 -4
@@ -41,10 +41,18 @@#include <asm/timer.h> #include <asm/special_insns.h> -/* nop stub */ -void _paravirt_nop (void ) -{ -} +/* +* nop stub, which must not clobber anything *including the stack* to +* avoid confusing the entry prologues. +*/ +extern void _paravirt_nop (void ); +asm (".pushsection .entry.text, \"ax\"\n" +".global _paravirt_nop\n" +"_paravirt_nop:\n\t" +"ret\n\t" +".size _paravirt_nop, . - _paravirt_nop\n\t" +".type _paravirt_nop, @function\n\t" +".popsection" );/* identity function, which can be inlined */ u32 _paravirt_ident_32 (u32 x)
arch/x86/kernel/process_64.c +42 -10
69 lines not on this page · raw message
arch/x86/kernel/tsc.c +10 -7
@@ -21,6 +21,7 @@#include <asm/hypervisor.h> #include <asm/nmi.h> #include <asm/x86_init.h> +#include <asm/geode.h> unsigned int __read_mostly cpu_khz;/* TSC clocks / usec, not used here */ EXPORT_SYMBOL (cpu_khz);
@@ -1004,15 +1005,17 @@ EXPORT_SYMBOL_GPL(mark_tsc_unstable);static void __init check_system_tsc_reliable (void ) { -#ifdef CONFIG_MGEODE_LX -/* RTSC counts during suspend */ +#if defined(CONFIG_MGEODEGX1 ) || defined(CONFIG_MGEODE_LX ) || defined(CONFIG_X86_GENERIC ) +if (is_geode_lx ()) { +/* RTSC counts during suspend */ #define RTSC_SUSP 0x100 -unsigned long res_low, res_high; +unsigned long res_low, res_high; -rdmsr_safe (MSR_GEODE_BUSCONT_CONF0 , &res_low, &res_high); -/* Geode_LX - the OLPC CPU has a very reliable TSC */ -if (res_low &RTSC_SUSP ) - tsc_clocksource_reliable =1 ; +rdmsr_safe (MSR_GEODE_BUSCONT_CONF0 , &res_low, &res_high); +/* Geode_LX - the OLPC CPU has a very reliable TSC */ +if (res_low &RTSC_SUSP ) + tsc_clocksource_reliable =1 ; + }#endif if (boot_cpu_has (X86_FEATURE_TSC_RELIABLE )) tsc_clocksource_reliable =1 ;
arch/x86/kvm/svm.c +1 -1
@@ -512,7 +512,7 @@ static void skip_emulated_instruction(struct kvm_vcpu *vcpu)struct vcpu_svm *svm =to_svm (vcpu);if (svm->vmcb->control.next_rip !=0 ) { -WARN_ON (!static_cpu_has (X86_FEATURE_NRIPS )); +WARN_ON_ONCE (!static_cpu_has (X86_FEATURE_NRIPS )); svm->next_rip = svm->vmcb->control.next_rip; }
arch/x86/kvm/vmx.c +2 -0
@@ -6144,6 +6144,8 @@ static __init int hardware_setup(void)memcpy (vmx_msr_bitmap_longmode_x2apic, vmx_msr_bitmap_longmode,PAGE_SIZE ); +set_bit (0 , vmx_vpid_bitmap);/* 0 is reserved for host */ +if (enable_apicv) {for (msr =0x800 ; msr <=0x8ff ; msr++)vmx_disable_intercept_msr_read_x2apic (msr);
arch/x86/mm/init_64.c +1 -1
@@ -1132,7 +1132,7 @@ void mark_rodata_ro(void)* has been zapped already via cleanup_highmem(). */ all_end =roundup ((unsigned long )_brk_end,PMD_SIZE ); -set_memory_nx (rodata_start, (all_end - rodata_start) >>PAGE_SHIFT ); +set_memory_nx (text_end, (all_end - text_end) >>PAGE_SHIFT );rodata_test ();
arch/x86/platform/efi/efi.c +66 -1
79 lines not on this page · raw message
arch/x86/xen/enlighten.c +23 -0
@@ -33,6 +33,10 @@#include <linux/memblock.h> #include <linux/edd.h> +#ifdef CONFIG_KEXEC_CORE +#include <linux/kexec.h> +#endif +#include <xen/xen.h> #include <xen/events.h> #include <xen/interface/xen.h>
@@ -1798,6 +1802,21 @@ static struct notifier_block xen_hvm_cpu_notifier = { .notifier_call = xen_hvm_cpu_notify, }; +#ifdef CONFIG_KEXEC_CORE +static void xen_hvm_shutdown (void ) +{ +native_machine_shutdown (); +if (kexec_in_progress) +xen_reboot (SHUTDOWN_soft_reset); +} + +static void xen_hvm_crash_shutdown (struct pt_regs *regs) +{ +native_machine_crash_shutdown (regs); +xen_reboot (SHUTDOWN_soft_reset); +} +#endif +static void __init xen_hvm_guest_init (void ) {if (xen_pv_domain ())
@@ -1817,6 +1836,10 @@ static void __init xen_hvm_guest_init(void) x86_init.irqs.intr_init = xen_init_IRQ;xen_hvm_init_time_ops ();xen_hvm_init_mmu_ops (); +#ifdef CONFIG_KEXEC_CORE + machine_ops.shutdown = xen_hvm_shutdown; + machine_ops.crash_shutdown = xen_hvm_crash_shutdown; +#endif }#endif
drivers/base/cacheinfo.c +8 -2
@@ -148,7 +148,11 @@ static void cache_shared_cpu_map_remove(unsigned int cpu)if (sibling == cpu)/* skip itself */ continue ; + sib_cpu_ci =get_cpu_cacheinfo (sibling); +if (!sib_cpu_ci->info_list) +continue ; + sib_leaf = sib_cpu_ci->info_list + index;cpumask_clear_cpu (cpu, &sib_leaf->shared_cpu_map);cpumask_clear_cpu (sibling, &this_leaf->shared_cpu_map);
@@ -159,6 +163,9 @@ static void cache_shared_cpu_map_remove(unsigned int cpu)static void free_cache_attributes (unsigned int cpu) { +if (!per_cpu_cacheinfo (cpu)) +return ; +cache_shared_cpu_map_remove (cpu);kfree (per_cpu_cacheinfo (cpu));
@@ -514,8 +521,7 @@ static int cacheinfo_cpu_callback(struct notifier_block *nfb,break ;case CPU_DEAD :cache_remove_dev (cpu); -if (per_cpu_cacheinfo (cpu)) -free_cache_attributes (cpu); +free_cache_attributes (cpu);break ; }return notifier_from_errno (rc);
drivers/base/property.c +3 -2
@@ -26,9 +26,10 @@*/ void device_add_property_set (struct device *dev,struct property_set *pset) { -if (pset) - pset->fwnode.type =FWNODE_PDATA ; +if (!pset) +return ; + pset->fwnode.type =FWNODE_PDATA ;set_secondary_fwnode (dev, &pset->fwnode); }EXPORT_SYMBOL_GPL (device_add_property_set);
drivers/base/regmap/regmap-debugfs.c +2 -3
@@ -32,8 +32,7 @@ static DEFINE_MUTEX(regmap_debugfs_early_lock);/* Calculate the length of a fixed format */ static size_t regmap_calc_reg_len (int max_val,char *buf,size_t buf_size) { -snprintf (buf, buf_size,"%x" , max_val); -return strlen (buf); +return snprintf (NULL ,0 ,"%x" , max_val); } static ssize_t regmap_name_read_file(struct file *file,
@@ -432,7 +431,7 @@ static ssize_t regmap_access_read_file(struct file *file,/* If we're in the region the user is trying to read */ if (p >= *ppos) {/* ...but not beyond it */ -if (buf_pos >= count -1 - tot_len) +if (buf_pos + tot_len +1 >= count)break ;/* Format the register */
drivers/clk/ti/clk-3xxx.c +1 -1
@@ -163,7 +163,6 @@ static struct ti_dt_clk omap3xxx_clks[] = {DT_CLK (NULL ,"gpio2_ick" ,"gpio2_ick" ),DT_CLK (NULL ,"wdt3_ick" ,"wdt3_ick" ),DT_CLK (NULL ,"uart3_ick" ,"uart3_ick" ), -DT_CLK (NULL ,"uart4_ick" ,"uart4_ick" ),DT_CLK (NULL ,"gpt9_ick" ,"gpt9_ick" ),DT_CLK (NULL ,"gpt8_ick" ,"gpt8_ick" ), DT_CLK(NULL, "gpt7_ick", "gpt7_ick"),
@@ -308,6 +307,7 @@ static struct ti_dt_clk am35xx_clks[] = {static struct ti_dt_clk omap36xx_clks[] = {DT_CLK (NULL ,"omap_192m_alwon_fck" ,"omap_192m_alwon_fck" ),DT_CLK (NULL ,"uart4_fck" ,"uart4_fck" ), +DT_CLK (NULL ,"uart4_ick" ,"uart4_ick" ), { .node_name =NULL }, };
drivers/cpufreq/cpufreq-dt.c +2 -1
@@ -255,7 +255,8 @@ static int cpufreq_init(struct cpufreq_policy *policy)rcu_read_unlock (); tol_uV = opp_uV * priv->voltage_tolerance /100 ; -if (regulator_is_supported_voltage (cpu_reg, opp_uV, +if (regulator_is_supported_voltage (cpu_reg, + opp_uV - tol_uV, opp_uV + tol_uV)) {if (opp_uV < min_uV) min_uV = opp_uV;
drivers/cpufreq/intel_pstate.c +5 -5
@@ -48,9 +48,9 @@ static inline int32_t mul_fp(int32_t x, int32_t y)return ((int64_t )x * (int64_t )y) >>FRAC_BITS ; } -static inline int32_t div_fp (int32_t x,int32_t y) +static inline int32_t div_fp (s64 x,s64 y) { -return div_s64 ((int64_t )x <<FRAC_BITS , y); +return div64_s64 ((int64_t )x <<FRAC_BITS , y); }static inline int ceiling_fp (int32_t x)
@@ -795,7 +795,7 @@ static inline void intel_pstate_set_sample_time(struct cpudata *cpu)static inline int32_t intel_pstate_get_scaled_busy (struct cpudata *cpu) {int32_t core_busy, max_pstate, current_pstate, sample_ratio; -u32 duration_us; +s64 duration_us;u32 sample_time;/*
@@ -822,8 +822,8 @@ static inline int32_t intel_pstate_get_scaled_busy(struct cpudata *cpu)* to adjust our busyness. */ sample_time = pid_params.sample_rate_ms *USEC_PER_MSEC ; - duration_us = (u32 )ktime_us_delta (cpu->sample.time, - cpu->last_sample_time); + duration_us =ktime_us_delta (cpu->sample.time, + cpu->last_sample_time);if (duration_us > sample_time *3 ) { sample_ratio =div_fp (int_tofp (sample_time),int_tofp (duration_us));
drivers/dma/dw/core.c +2 -2
@@ -1591,7 +1591,6 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)INIT_LIST_HEAD (&dw->dma.channels);for (i =0 ; i < nr_channels; i++) {struct dw_dma_chan *dwc = &dw->chan[i]; -int r = nr_channels - i -1 ; dwc->chan.device = &dw->dma;dma_cookie_init (&dwc->chan);
@@ -1603,7 +1602,7 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)/* 7 is highest priority & 0 is lowest. */ if (pdata->chan_priority ==CHAN_PRIORITY_ASCENDING ) - dwc->priority = r; + dwc->priority = nr_channels - i -1 ;else dwc->priority = i;
@@ -1622,6 +1621,7 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)/* Hardware configuration */ if (autocfg) {unsigned int dwc_params; +unsigned int r =DW_DMA_MAX_NR_CHANNELS - i -1 ;void __iomem *addr = chip->regs + r *sizeof (u32); dwc_params =dma_read_byaddr (addr,DWC_PARAMS );
drivers/firmware/efi/libstub/arm-stub.c +73 -15
118 lines not on this page · raw message
drivers/gpu/drm/drm_dp_mst_topology.c +3 -2
@@ -804,8 +804,6 @@ static void drm_dp_destroy_mst_branch_device(struct kref *kref)struct drm_dp_mst_port *port, *tmp;bool wake_tx = false; -cancel_work_sync (&mstb->mgr->work); -/* * destroy all ports - don't need lock * as there are no more references to the mst branch
@@ -1977,6 +1975,8 @@ void drm_dp_mst_topology_mgr_suspend(struct drm_dp_mst_topology_mgr *mgr)drm_dp_dpcd_writeb (mgr->aux,DP_MSTM_CTRL ,DP_MST_EN |DP_UPSTREAM_IS_SRC );mutex_unlock (&mgr->lock); +flush_work (&mgr->work); +flush_work (&mgr->destroy_connector_work); }EXPORT_SYMBOL (drm_dp_mst_topology_mgr_suspend);
@@ -2730,6 +2730,7 @@ EXPORT_SYMBOL(drm_dp_mst_topology_mgr_init);*/ void drm_dp_mst_topology_mgr_destroy (struct drm_dp_mst_topology_mgr *mgr) { +flush_work (&mgr->work);flush_work (&mgr->destroy_connector_work);mutex_lock (&mgr->payload_lock);kfree (mgr->payloads);
drivers/gpu/drm/drm_lock.c +6 -0
@@ -61,6 +61,9 @@ int drm_legacy_lock(struct drm_device *dev, void *data,struct drm_master *master = file_priv->master;int ret =0 ; +if (drm_core_check_feature (dev,DRIVER_MODESET )) +return -EINVAL ; + ++file_priv->lock_count;if (lock->context ==DRM_KERNEL_CONTEXT ) {
@@ -153,6 +156,9 @@ int drm_legacy_unlock(struct drm_device *dev, void *data, struct drm_file *file_struct drm_lock *lock = data;struct drm_master *master = file_priv->master; +if (drm_core_check_feature (dev,DRIVER_MODESET )) +return -EINVAL ; +if (lock->context ==DRM_KERNEL_CONTEXT ) {DRM_ERROR ("Process %d using kernel context %d\n" ,task_pid_nr (current), lock->context);
drivers/gpu/drm/i915/intel_bios.c +11 -1
@@ -41,7 +41,7 @@ find_section(struct bdb_header *bdb, int section_id) {u8 *base = (u8 *)bdb;int index =0 ; -u16 total, current_size; +u32 total, current_size;u8 current_id;/* skip to first section */
@@ -56,6 +56,10 @@ find_section(struct bdb_header *bdb, int section_id) current_size = *((u16 *)(base + index)); index +=2 ; +/* The MIPI Sequence Block v3+ has a separate size field. */ +if (current_id ==BDB_MIPI_SEQUENCE && *(base + index) >=3 ) + current_size = *((const u32 *)(base + index +1 )); +if (index + current_size > total)return NULL ;
@@ -845,6 +849,12 @@ parse_mipi(struct drm_i915_private *dev_priv, struct bdb_header *bdb)return ; } +/* Fail gracefully for forward incompatible sequence block. */ +if (sequence->version >=3 ) { +DRM_ERROR ("Unable to parse MIPI Sequence Block v3+\n" ); +return ; + } +DRM_DEBUG_DRIVER ("Found MIPI sequence block\n" ); block_size =get_blocksize (sequence);
drivers/gpu/drm/qxl/qxl_display.c +8 -6
@@ -618,7 +618,7 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc, adjusted_mode->hdisplay, adjusted_mode->vdisplay); -if (qcrtc->index ==0 ) +if (bo->is_primary == false) recreate_primary = true;if (bo->surf.stride * bo->surf.height > qdev->vram_size) {
@@ -886,13 +886,15 @@ static enum drm_connector_status qxl_conn_detect(drm_connector_to_qxl_output (connector);struct drm_device *ddev = connector->dev;struct qxl_device *qdev = ddev->dev_private; -int connected; +bool connected = false;/* The first monitor is always connected */ - connected = (output->index ==0 ) || - (qdev->client_monitors_config && - qdev->client_monitors_config->count > output->index && -qxl_head_enabled (&qdev->client_monitors_config->heads[output->index])); +if (!qdev->client_monitors_config) { +if (output->index ==0 ) + connected = true; + }else + connected = qdev->client_monitors_config->count > output->index && +qxl_head_enabled (&qdev->client_monitors_config->heads[output->index]);DRM_DEBUG ("#%d connected: %d\n" , output->index, connected);if (!connected)
drivers/gpu/drm/radeon/atombios_encoders.c +4 -4
@@ -1624,8 +1624,9 @@ radeon_atom_encoder_dpms_avivo(struct drm_encoder *encoder, int mode) }else atom_execute_table (rdev->mode_info.atom_context, index, (uint32_t *)&args);if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT )) { - args.ucAction =ATOM_LCD_BLON ; -atom_execute_table (rdev->mode_info.atom_context, index, (uint32_t *)&args); +struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; + +atombios_set_backlight_level (radeon_encoder, dig->backlight_level); }break ;case DRM_MODE_DPMS_STANDBY :
@@ -1706,8 +1707,7 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)atombios_dig_encoder_setup (encoder,ATOM_ENCODER_CMD_DP_VIDEO_ON ,0 ); }if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT )) -atombios_dig_transmitter_setup (encoder, -ATOM_TRANSMITTER_ACTION_LCD_BLON ,0 ,0 ); +atombios_set_backlight_level (radeon_encoder, dig->backlight_level);if (ext_encoder)atombios_external_encoder_setup (encoder, ext_encoder,ATOM_ENABLE );break ;
drivers/hwmon/nct6775.c +10 -6
@@ -354,6 +354,10 @@ static const u16 NCT6775_REG_TEMP_CRIT[ARRAY_SIZE(nct6775_temp_label) - 1]/* NCT6776 specific data */ +/* STEP_UP_TIME and STEP_DOWN_TIME regs are swapped for all chips but NCT6775 */ +#define NCT6776_REG_FAN_STEP_UP_TIME NCT6775_REG_FAN_STEP_DOWN_TIME +#define NCT6776_REG_FAN_STEP_DOWN_TIME NCT6775_REG_FAN_STEP_UP_TIME +static const s8 NCT6776_ALARM_BITS [] = {0 ,1 ,2 ,3 ,8 ,21 ,20 ,16 ,/* in0.. in7 */ 17 ,-1 ,-1 ,-1 ,-1 ,-1 ,-1 ,/* in8..in14 */
@@ -3528,8 +3532,8 @@ static int nct6775_probe(struct platform_device *pdev) data->REG_FAN_PULSES =NCT6776_REG_FAN_PULSES ; data->FAN_PULSE_SHIFT =NCT6775_FAN_PULSE_SHIFT ; data->REG_FAN_TIME[0 ] =NCT6775_REG_FAN_STOP_TIME ; - data->REG_FAN_TIME[1 ] =NCT6775_REG_FAN_STEP_UP_TIME ; - data->REG_FAN_TIME[2 ] =NCT6775_REG_FAN_STEP_DOWN_TIME ; + data->REG_FAN_TIME[1 ] =NCT6776_REG_FAN_STEP_UP_TIME ; + data->REG_FAN_TIME[2 ] =NCT6776_REG_FAN_STEP_DOWN_TIME ; data->REG_TOLERANCE_H =NCT6776_REG_TOLERANCE_H ; data->REG_PWM[0 ] =NCT6775_REG_PWM ; data->REG_PWM[1 ] =NCT6775_REG_FAN_START_OUTPUT ;
@@ -3600,8 +3604,8 @@ static int nct6775_probe(struct platform_device *pdev) data->REG_FAN_PULSES =NCT6779_REG_FAN_PULSES ; data->FAN_PULSE_SHIFT =NCT6775_FAN_PULSE_SHIFT ; data->REG_FAN_TIME[0 ] =NCT6775_REG_FAN_STOP_TIME ; - data->REG_FAN_TIME[1 ] =NCT6775_REG_FAN_STEP_UP_TIME ; - data->REG_FAN_TIME[2 ] =NCT6775_REG_FAN_STEP_DOWN_TIME ; + data->REG_FAN_TIME[1 ] =NCT6776_REG_FAN_STEP_UP_TIME ; + data->REG_FAN_TIME[2 ] =NCT6776_REG_FAN_STEP_DOWN_TIME ; data->REG_TOLERANCE_H =NCT6776_REG_TOLERANCE_H ; data->REG_PWM[0 ] =NCT6775_REG_PWM ; data->REG_PWM[1 ] =NCT6775_REG_FAN_START_OUTPUT ;
@@ -3677,8 +3681,8 @@ static int nct6775_probe(struct platform_device *pdev) data->REG_FAN_PULSES =NCT6779_REG_FAN_PULSES ; data->FAN_PULSE_SHIFT =NCT6775_FAN_PULSE_SHIFT ; data->REG_FAN_TIME[0 ] =NCT6775_REG_FAN_STOP_TIME ; - data->REG_FAN_TIME[1 ] =NCT6775_REG_FAN_STEP_UP_TIME ; - data->REG_FAN_TIME[2 ] =NCT6775_REG_FAN_STEP_DOWN_TIME ; + data->REG_FAN_TIME[1 ] =NCT6776_REG_FAN_STEP_UP_TIME ; + data->REG_FAN_TIME[2 ] =NCT6776_REG_FAN_STEP_DOWN_TIME ; data->REG_TOLERANCE_H =NCT6776_REG_TOLERANCE_H ; data->REG_PWM[0 ] =NCT6775_REG_PWM ; data->REG_PWM[1 ] =NCT6775_REG_FAN_START_OUTPUT ;
drivers/infiniband/ulp/isert/ib_isert.c +45 -2
68 lines not on this page · raw message
drivers/irqchip/irq-atmel-aic5.c +16 -8
@@ -88,28 +88,36 @@ static void aic5_mask(struct irq_data *d) {struct irq_domain *domain = d->domain;struct irq_domain_chip_generic *dgc = domain->gc; -struct irq_chip_generic *gc = dgc->gc[0 ]; +struct irq_chip_generic *bgc = dgc->gc[0 ]; +struct irq_chip_generic *gc =irq_data_get_irq_chip_data (d); -/* Disable interrupt on AIC5 */ -irq_gc_lock (gc); +/* +* Disable interrupt on AIC5. We always take the lock of the +* first irq chip as all chips share the same registers. +*/ +irq_gc_lock (bgc);irq_reg_writel (gc, d->hwirq,AT91_AIC5_SSR );irq_reg_writel (gc,1 ,AT91_AIC5_IDCR ); gc->mask_cache &= ~d->mask; -irq_gc_unlock (gc); +irq_gc_unlock (bgc); }static void aic5_unmask (struct irq_data *d) {struct irq_domain *domain = d->domain;struct irq_domain_chip_generic *dgc = domain->gc; -struct irq_chip_generic *gc = dgc->gc[0 ]; +struct irq_chip_generic *bgc = dgc->gc[0 ]; +struct irq_chip_generic *gc =irq_data_get_irq_chip_data (d); -/* Enable interrupt on AIC5 */ -irq_gc_lock (gc); +/* +* Enable interrupt on AIC5. We always take the lock of the +* first irq chip as all chips share the same registers. +*/ +irq_gc_lock (bgc);irq_reg_writel (gc, d->hwirq,AT91_AIC5_SSR );irq_reg_writel (gc,1 ,AT91_AIC5_IECR ); gc->mask_cache |= d->mask; -irq_gc_unlock (gc); +irq_gc_unlock (bgc); }static int aic5_retrigger (struct irq_data *d)
drivers/irqchip/irq-gic-v3-its.c +5 -1
@@ -921,8 +921,10 @@ retry_baser:* non-cacheable as well. */ shr = tmp &GITS_BASER_SHAREABILITY_MASK ; -if (!shr) +if (!shr) { cache = GITS_BASER_nC; +__flush_dcache_area (base, alloc_size); + } goto retry_baser; }
@@ -1163,6 +1165,8 @@ static struct its_device *its_create_device(struct its_node *its, u32 dev_id,return NULL ; } +__flush_dcache_area (itt, sz); + dev->its = its; dev->itt = itt; dev->nr_ites = nr_ites;
drivers/leds/led-class.c +5 -2
@@ -223,12 +223,15 @@ static int led_classdev_next_name(const char *init_name, char *name, {unsigned int i =0 ;int ret =0 ; +struct device *dev;strlcpy (name, init_name, len); -while (class_find_device (leds_class,NULL , name, match_name) && - (ret < len)) +while ((ret < len) && + (dev =class_find_device (leds_class,NULL , name, match_name))) { +put_device (dev); ret =snprintf (name, len,"%s_%u" , init_name, ++i); + }if (ret >= len)return -ENOMEM ;
drivers/macintosh/windfarm_core.c +1 -1
@@ -435,7 +435,7 @@ int wf_unregister_client(struct notifier_block *nb) {mutex_lock (&wf_lock);blocking_notifier_chain_unregister (&wf_client_list, nb); - wf_client_count++; + wf_client_count--;if (wf_client_count ==0 )wf_stop_thread ();mutex_unlock (&wf_lock);
drivers/md/bitmap.c +2 -1
@@ -2000,7 +2000,8 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks,if (bitmap->mddev->bitmap_info.offset || bitmap->mddev->bitmap_info.file) ret =bitmap_storage_alloc (&store, chunks, !bitmap->mddev->bitmap_info.external, - bitmap->cluster_slot); +mddev_is_clustered (bitmap->mddev) + ? bitmap->cluster_slot :0 );if (ret) goto err;
drivers/md/dm-cache-policy-cleaner.c +1 -1
@@ -435,7 +435,7 @@ static struct dm_cache_policy *wb_create(dm_cblock_t cache_size,static struct dm_cache_policy_type wb_policy_type = { .name ="cleaner" , .version = {1 ,0 ,0 }, - .hint_size =0 , + .hint_size =4 , .owner =THIS_MODULE , .create = wb_create };
drivers/md/dm-crypt.c +15 -2
@@ -955,7 +955,8 @@ static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);/* * Generate a new unfragmented bio with the given size -* This should never violate the device limitations +* This should never violate the device limitations (but only because +* max_segment_size is being constrained to PAGE_SIZE). * * This function may be called concurrently. If we allocate from the mempool * concurrently, there is a possibility of deadlock. For example, if we have
@@ -2040,9 +2041,20 @@ static int crypt_iterate_devices(struct dm_target *ti,return fn (ti, cc->dev, cc->start, ti->len, data); } +static void crypt_io_hints (struct dm_target *ti,struct queue_limits *limits) +{ +/* +* Unfortunate constraint that is required to avoid the potential +* for exceeding underlying device's max_segments limits -- due to +* crypt_alloc_buffer() possibly allocating pages for the encryption +* bio that are not as physically contiguous as the original bio. +*/ + limits->max_segment_size =PAGE_SIZE ; +} +static struct target_type crypt_target = { .name ="crypt" , - .version = {1 ,14 ,0 }, + .version = {1 ,14 ,1 }, .module =THIS_MODULE , .ctr = crypt_ctr, .dtr = crypt_dtr,
@@ -2054,6 +2066,7 @@ static struct target_type crypt_target = { .message = crypt_message, .merge = crypt_merge, .iterate_devices = crypt_iterate_devices, + .io_hints = crypt_io_hints, };static int __init dm_crypt_init (void )
drivers/md/dm-raid.c +1 -2
@@ -327,8 +327,7 @@ static int validate_region_size(struct raid_set *rs, unsigned long region_size)*/ if (min_region_size > (1 <<13 )) {/* If not a power of 2, make it the next power of 2 */ -if (min_region_size & (min_region_size -1 )) - region_size =1 <<fls (region_size); + region_size =roundup_pow_of_two (min_region_size);DMINFO ("Choosing default region size of %lu sectors" , region_size); }else {
drivers/md/dm.c +2 -4
@@ -2925,8 +2925,6 @@ static void __dm_destroy(struct mapped_device *md, bool wait)might_sleep (); - map =dm_get_live_table (md, &srcu_idx); -spin_lock (&_minor_lock);idr_replace (&_minor_idr,MINOR_ALLOCED ,MINOR (disk_devt (dm_disk (md))));set_bit (DMF_FREEING , &md->flags);
@@ -2940,14 +2938,14 @@ static void __dm_destroy(struct mapped_device *md, bool wait)* do not race with internal suspend. */ mutex_lock (&md->suspend_lock); + map =dm_get_live_table (md, &srcu_idx);if (!dm_suspended_md (md)) {dm_table_presuspend_targets (map);dm_table_postsuspend_targets (map); } -mutex_unlock (&md->suspend_lock); -/* dm_put_live_table must be before msleep, otherwise deadlock is possible */ dm_put_live_table (md, srcu_idx); +mutex_unlock (&md->suspend_lock);/* * Rare, but there may be I/O requests still going to complete,
drivers/md/persistent-data/dm-btree-internal.h +6 -0
@@ -138,4 +138,10 @@ int lower_bound(struct btree_node *n, uint64_t key);extern struct dm_block_validator btree_node_validator; +/* +* Value type for upper levels of multi-level btrees. +*/ +extern void init_le64_type (struct dm_transaction_manager *tm, +struct dm_btree_value_type *vt); +#endif /* DM_BTREE_INTERNAL_H */
drivers/md/persistent-data/dm-btree-remove.c +3 -9
@@ -544,14 +544,6 @@ static int remove_raw(struct shadow_spine *s, struct dm_btree_info *info,return r; } -static struct dm_btree_value_type le64_type = { - .context =NULL , - .size =sizeof (__le64), - .inc =NULL , - .dec =NULL , - .equal =NULL -}; -int dm_btree_remove (struct dm_btree_info *info,dm_block_t root,uint64_t *keys,dm_block_t *new_root) {
@@ -559,12 +551,14 @@ int dm_btree_remove(struct dm_btree_info *info, dm_block_t root,int index =0 , r =0 ;struct shadow_spine spine;struct btree_node *n; +struct dm_btree_value_type le64_vt; +init_le64_type (info->tm, &le64_vt);init_shadow_spine (&spine, info);for (level =0 ; level < info->levels; level++) { r =remove_raw (&spine, info, (level == last_level ? - &info->value_type : &le64_type), + &info->value_type : &le64_vt), root, keys[level], (unsigned *)&index);if (r <0 )break ;
drivers/md/persistent-data/dm-btree-spine.c +37 -0
@@ -249,3 +249,40 @@ int shadow_root(struct shadow_spine *s) {return s->root; } + +static void le64_inc (void *context,const void *value_le) +{ +struct dm_transaction_manager *tm = context; +__le64 v_le; + +memcpy (&v_le, value_le,sizeof (v_le)); +dm_tm_inc (tm,le64_to_cpu (v_le)); +} + +static void le64_dec (void *context,const void *value_le) +{ +struct dm_transaction_manager *tm = context; +__le64 v_le; + +memcpy (&v_le, value_le,sizeof (v_le)); +dm_tm_dec (tm,le64_to_cpu (v_le)); +} + +static int le64_equal (void *context,const void *value1_le,const void *value2_le) +{ +__le64 v1_le, v2_le; + +memcpy (&v1_le, value1_le,sizeof (v1_le)); +memcpy (&v2_le, value2_le,sizeof (v2_le)); +return v1_le == v2_le; +} + +void init_le64_type (struct dm_transaction_manager *tm, +struct dm_btree_value_type *vt) +{ + vt->context = tm; + vt->size =sizeof (__le64); + vt->inc = le64_inc; + vt->dec = le64_dec; + vt->equal = le64_equal; +}
drivers/md/persistent-data/dm-btree.c +1 -6
@@ -667,12 +667,7 @@ static int insert(struct dm_btree_info *info, dm_block_t root,struct btree_node *n;struct dm_btree_value_type le64_type; - le64_type.context =NULL ; - le64_type.size =sizeof (__le64); - le64_type.inc =NULL ; - le64_type.dec =NULL ; - le64_type.equal =NULL ; - +init_le64_type (info->tm, &le64_type);init_shadow_spine (&spine, info);for (level =0 ; level < (info->levels -1 ); level++) {
drivers/md/raid0.c +39 -36
123 lines not on this page · raw message
drivers/mmc/core/host.c +2 -2
@@ -373,7 +373,7 @@ int mmc_of_parse(struct mmc_host *host) 0, &cd_gpio_invert);if (!ret)dev_info (host->parent,"Got CD GPIO\n" ); -else if (ret != -ENOENT ) +else if (ret != -ENOENT && ret != -ENOSYS )return ret;/*
@@ -397,7 +397,7 @@ int mmc_of_parse(struct mmc_host *host) ret =mmc_gpiod_request_ro (host,"wp" ,0 , false,0 , &ro_gpio_invert);if (!ret)dev_info (host->parent,"Got WP GPIO\n" ); -else if (ret != -ENOENT ) +else if (ret != -ENOENT && ret != -ENOSYS )return ret;/* See the comment on CD inversion above */
drivers/mmc/host/dw_mmc.c +71 -38
150 lines not on this page · raw message
drivers/mmc/host/sdhci-esdhc-imx.c +44 -6
84 lines not on this page · raw message
drivers/mmc/host/sdhci.c +25 -42
139 lines not on this page · raw message
drivers/mmc/host/sdhci.h +4 -4
@@ -309,9 +309,10 @@ struct sdhci_adma2_64_desc {*/ #define SDHCI_MAX_SEGS 128 -struct sdhci_host_next { -unsigned int sg_count; -s32 cookie; +enum sdhci_cookie { +COOKIE_UNMAPPED , +COOKIE_MAPPED , +COOKIE_GIVEN , };struct sdhci_host {
@@ -506,7 +507,6 @@ struct sdhci_host {#define SDHCI_TUNING_MODE_1 0struct timer_list tuning_timer;/* Timer for tuning */ -struct sdhci_host_next next_data;unsigned long private[0 ]____cacheline_aligned ; };
drivers/mtd/nand/pxa3xx_nand.c +3 -0
@@ -1475,6 +1475,9 @@ static int pxa3xx_nand_scan(struct mtd_info *mtd)if (pdata->keep_config && !pxa3xx_nand_detect_config (info)) goto KEEP_CONFIG; +/* Set a default chunk size */ + info->chunk_size =512 ; + ret =pxa3xx_nand_sensing (info);if (ret) { dev_info(&info->pdev->dev, "There is no chip on cs %d!\n",
drivers/mtd/nand/sunxi_nand.c +10 -17
@@ -138,6 +138,10 @@#define NFC_ECC_MODE GENMASK(15, 12)#define NFC_RANDOM_SEED GENMASK(30, 16) +/* NFC_USER_DATA helper macros */ +#define NFC_BUF_TO_USER_DATA (buf) ((buf)[0] | ((buf)[1] << 8) | \ + ((buf)[2] << 16) | ((buf)[3] << 24)) +#define NFC_DEFAULT_TIMEOUT_MS 1000#define NFC_SRAM_SIZE 1024
@@ -632,15 +636,9 @@ static int sunxi_nfc_hw_ecc_write_page(struct mtd_info *mtd, offset = layout->eccpos[i * ecc->bytes] -4 + mtd->writesize;/* Fill OOB data in */ -if (oob_required) { - tmp =0xffffffff ; -memcpy_toio (nfc->regs +NFC_REG_USER_DATA_BASE , &tmp, -4 ); - }else { -memcpy_toio (nfc->regs +NFC_REG_USER_DATA_BASE , - chip->oob_poi + offset - mtd->writesize, -4 ); - } +writel (NFC_BUF_TO_USER_DATA (chip->oob_poi + + layout->oobfree[i].offset), + nfc->regs +NFC_REG_USER_DATA_BASE ); chip->cmdfunc (mtd,NAND_CMD_RNDIN , offset,-1 );
@@ -770,14 +768,8 @@ static int sunxi_nfc_hw_syndrome_ecc_write_page(struct mtd_info *mtd, offset += ecc->size;/* Fill OOB data in */ -if (oob_required) { - tmp =0xffffffff ; -memcpy_toio (nfc->regs +NFC_REG_USER_DATA_BASE , &tmp, -4 ); - }else { -memcpy_toio (nfc->regs +NFC_REG_USER_DATA_BASE , oob, -4 ); - } +writel (NFC_BUF_TO_USER_DATA (oob), + nfc->regs +NFC_REG_USER_DATA_BASE ); tmp =NFC_DATA_TRANS |NFC_DATA_SWAP_METHOD |NFC_ACCESS_DIR | (1 <<30 );
@@ -1312,6 +1304,7 @@ static void sunxi_nand_chips_cleanup(struct sunxi_nfc *nfc) node);nand_release (&chip->mtd);sunxi_nand_ecc_cleanup (&chip->nand.ecc); +list_del (&chip->node); } }
drivers/mtd/ubi/io.c +5 -0
@@ -926,6 +926,11 @@ static int validate_vid_hdr(const struct ubi_device *ubi, goto bad; } +if (data_size > ubi->leb_size) { +ubi_err (ubi,"bad data_size" ); + goto bad; + } +if (vol_type ==UBI_VID_STATIC ) {/* * Although from high-level point of view static volumes may
drivers/mtd/ubi/vtbl.c +1 -0
@@ -646,6 +646,7 @@ static int init_volumes(struct ubi_device *ubi,if (ubi->corr_peb_count)ubi_err (ubi,"%d PEBs are corrupted and not used" , ubi->corr_peb_count); +return -ENOSPC ; } ubi->rsvd_pebs += reserved_pebs; ubi->avail_pebs -= reserved_pebs;
drivers/mtd/ubi/wl.c +1 -0
@@ -1601,6 +1601,7 @@ int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai)if (ubi->corr_peb_count)ubi_err (ubi,"%d PEBs are corrupted and not used" , ubi->corr_peb_count); + err = -ENOSPC ; goto out_free; } ubi->avail_pebs -= reserved_pebs;
drivers/net/ethernet/intel/igb/igb_main.c +1 -1
@@ -2864,7 +2864,7 @@ static void igb_probe_vfs(struct igb_adapter *adapter)return ;pci_sriov_set_totalvfs (pdev,7 ); -igb_pci_enable_sriov (pdev, max_vfs); +igb_enable_sriov (pdev, max_vfs);#endif /* CONFIG_PCI_IOV */ }
drivers/net/wireless/ath/ath10k/htc.c +3 -1
@@ -163,8 +163,10 @@ int ath10k_htc_send(struct ath10k_htc *htc, skb_cb->eid = eid; skb_cb->paddr =dma_map_single (dev, skb->data, skb->len,DMA_TO_DEVICE ); ret =dma_mapping_error (dev, skb_cb->paddr); -if (ret) +if (ret) { + ret = -EIO ; goto err_credits; + } sg_item.transfer_id = ep->eid; sg_item.transfer_context = skb;
drivers/net/wireless/ath/ath10k/htt_tx.c +6 -2
@@ -371,8 +371,10 @@ int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) skb_cb->paddr =dma_map_single (dev, msdu->data, msdu->len,DMA_TO_DEVICE ); res =dma_mapping_error (dev, skb_cb->paddr); -if (res) +if (res) { + res = -EIO ; goto err_free_txdesc; + }skb_put (txdesc, len); cmd = (struct htt_cmd *)txdesc->data;
@@ -463,8 +465,10 @@ int ath10k_htt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) skb_cb->paddr =dma_map_single (dev, msdu->data, msdu->len,DMA_TO_DEVICE ); res =dma_mapping_error (dev, skb_cb->paddr); -if (res) +if (res) { + res = -EIO ; goto err_free_txbuf; + }if (likely (use_frags)) { frags = skb_cb->htt.txbuf->frags;
drivers/net/wireless/ath/ath10k/mac.c +16 -0
@@ -4464,6 +4464,21 @@ static int ath10k_set_rts_threshold(struct ieee80211_hw *hw, u32 value)return ret; } +static int ath10k_mac_op_set_frag_threshold (struct ieee80211_hw *hw,u32 value) +{ +/* Even though there's a WMI enum for fragmentation threshold no known +* firmware actually implements it. Moreover it is not possible to rely +* frame fragmentation to mac80211 because firmware clears the "more +* fragments" bit in frame control making it impossible for remote +* devices to reassemble frames. +* +* Hence implement a dummy callback just to say fragmentation isn't +* supported. This effectively prevents mac80211 from doing frame +* fragmentation in software. +*/ +return -EOPNOTSUPP ; +} +static void ath10k_flush (struct ieee80211_hw *hw,struct ieee80211_vif *vif,u32 queues,bool drop) {
@@ -5108,6 +5123,7 @@ static const struct ieee80211_ops ath10k_ops = { .remain_on_channel = ath10k_remain_on_channel, .cancel_remain_on_channel = ath10k_cancel_remain_on_channel, .set_rts_threshold = ath10k_set_rts_threshold, + .set_frag_threshold = ath10k_mac_op_set_frag_threshold, .flush = ath10k_flush, .tx_last_beacon = ath10k_tx_last_beacon, .set_antenna = ath10k_set_antenna,
drivers/net/wireless/ath/ath10k/pci.c +6 -2
@@ -1378,8 +1378,10 @@ static int ath10k_pci_hif_exchange_bmi_msg(struct ath10k *ar, req_paddr =dma_map_single (ar->dev, treq, req_len,DMA_TO_DEVICE ); ret =dma_mapping_error (ar->dev, req_paddr); -if (ret) +if (ret) { + ret = -EIO ; goto err_dma; + }if (resp && resp_len) { tresp =kzalloc (*resp_len,GFP_KERNEL );
@@ -1391,8 +1393,10 @@ static int ath10k_pci_hif_exchange_bmi_msg(struct ath10k *ar, resp_paddr =dma_map_single (ar->dev, tresp, *resp_len,DMA_FROM_DEVICE ); ret =dma_mapping_error (ar->dev, resp_paddr); -if (ret) +if (ret) { + ret =EIO ; goto err_req; + } xfer.wait_for_resp = true; xfer.resp_len =0 ;
drivers/net/wireless/ath/ath10k/wmi.c +1 -0
@@ -2517,6 +2517,7 @@ void ath10k_wmi_event_host_swba(struct ath10k *ar, struct sk_buff *skb)ath10k_warn (ar,"failed to map beacon: %d\n" , ret);dev_kfree_skb_any (bcn); + ret = -EIO ; goto skip; }
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c +6 -2
@@ -203,8 +203,10 @@ static int rsi_load_ta_instructions(struct rsi_common *common)/* Copy firmware into DMA-accessible memory */ fw =kmemdup (fw_entry->data, fw_entry->size,GFP_KERNEL ); -if (!fw) -return -ENOMEM ; +if (!fw) { + status = -ENOMEM ; + goto out; + } len = fw_entry->size;if (len %4 )
@@ -217,6 +219,8 @@ static int rsi_load_ta_instructions(struct rsi_common *common) status =rsi_copy_to_card (common, fw, len, num_blocks);kfree (fw); + +out:release_firmware (fw_entry);return status; }
drivers/net/wireless/rsi/rsi_91x_usb_ops.c +6 -2
@@ -148,8 +148,10 @@ static int rsi_load_ta_instructions(struct rsi_common *common)/* Copy firmware into DMA-accessible memory */ fw =kmemdup (fw_entry->data, fw_entry->size,GFP_KERNEL ); -if (!fw) -return -ENOMEM ; +if (!fw) { + status = -ENOMEM ; + goto out; + } len = fw_entry->size;if (len %4 )
@@ -162,6 +164,8 @@ static int rsi_load_ta_instructions(struct rsi_common *common) status =rsi_copy_to_card (common, fw, len, num_blocks);kfree (fw); + +out:release_firmware (fw_entry);return status; }
drivers/net/xen-netfront.c +2 -1
@@ -1353,7 +1353,8 @@ static void xennet_disconnect_backend(struct netfront_info *info) queue->tx_evtchn = queue->rx_evtchn =0 ; queue->tx_irq = queue->rx_irq =0 ; -napi_synchronize (&queue->napi); +if (netif_running (info->netdev)) +napi_synchronize (&queue->napi);xennet_release_tx_bufs (queue);xennet_release_rx_bufs (queue);
drivers/pci/access.c +4 -23
@@ -442,7 +442,8 @@ static const struct pci_vpd_ops pci_vpd_pci22_ops = {static ssize_t pci_vpd_f0_read (struct pci_dev *dev,loff_t pos,size_t count,void *arg) { -struct pci_dev *tdev =pci_get_slot (dev->bus,PCI_SLOT (dev->devfn)); +struct pci_dev *tdev =pci_get_slot (dev->bus, +PCI_DEVFN (PCI_SLOT (dev->devfn),0 ));ssize_t ret;if (!tdev)
@@ -456,7 +457,8 @@ static ssize_t pci_vpd_f0_read(struct pci_dev *dev, loff_t pos, size_t count,static ssize_t pci_vpd_f0_write (struct pci_dev *dev,loff_t pos,size_t count,const void *arg) { -struct pci_dev *tdev =pci_get_slot (dev->bus,PCI_SLOT (dev->devfn)); +struct pci_dev *tdev =pci_get_slot (dev->bus, +PCI_DEVFN (PCI_SLOT (dev->devfn),0 ));ssize_t ret;if (!tdev)
@@ -473,22 +475,6 @@ static const struct pci_vpd_ops pci_vpd_f0_ops = { .release = pci_vpd_pci22_release, }; -static int pci_vpd_f0_dev_check (struct pci_dev *dev) -{ -struct pci_dev *tdev =pci_get_slot (dev->bus,PCI_SLOT (dev->devfn)); -int ret =0 ; - -if (!tdev) -return -ENODEV ; -if (!tdev->vpd || !tdev->multifunction || - dev->class != tdev->class || dev->vendor != tdev->vendor || - dev->device != tdev->device) - ret = -ENODEV ; - -pci_dev_put (tdev); -return ret; -} -int pci_vpd_pci22_init (struct pci_dev *dev) {struct pci_vpd_pci22 *vpd;
@@ -497,12 +483,7 @@ int pci_vpd_pci22_init(struct pci_dev *dev) cap =pci_find_capability (dev,PCI_CAP_ID_VPD );if (!cap)return -ENODEV ; -if (dev->dev_flags &PCI_DEV_FLAGS_VPD_REF_F0 ) { -int ret =pci_vpd_f0_dev_check (dev); -if (ret) -return ret; - } vpd =kzalloc (sizeof (*vpd),GFP_ATOMIC );if (!vpd)return -ENOMEM ;
drivers/pci/bus.c +2 -0
@@ -256,6 +256,8 @@ bool pci_bus_clip_resource(struct pci_dev *dev, int idx) res->start = start; res->end = end; + res->flags &= ~IORESOURCE_UNSET ; + orig_res.flags &= ~IORESOURCE_UNSET ;dev_printk (KERN_DEBUG , &dev->dev,"%pR clipped to %pR\n" , &orig_res, res);
drivers/pci/quirks.c +18 -2
@@ -1915,11 +1915,27 @@ static void quirk_netmos(struct pci_dev *dev)DECLARE_PCI_FIXUP_CLASS_HEADER (PCI_VENDOR_ID_NETMOS ,PCI_ANY_ID ,PCI_CLASS_COMMUNICATION_SERIAL ,8 , quirk_netmos); +/* +* Quirk non-zero PCI functions to route VPD access through function 0 for +* devices that share VPD resources between functions. The functions are +* expected to be identical devices. +*/ static void quirk_f0_vpd_link (struct pci_dev *dev) { -if (!dev->multifunction || !PCI_FUNC (dev->devfn)) +struct pci_dev *f0; + +if (!PCI_FUNC (dev->devfn))return ; - dev->dev_flags |=PCI_DEV_FLAGS_VPD_REF_F0 ; + + f0 =pci_get_slot (dev->bus,PCI_DEVFN (PCI_SLOT (dev->devfn),0 )); +if (!f0) +return ; + +if (f0->vpd && dev->class == f0->class && + dev->vendor == f0->vendor && dev->device == f0->device) + dev->dev_flags |=PCI_DEV_FLAGS_VPD_REF_F0 ; + +pci_dev_put (f0); }DECLARE_PCI_FIXUP_CLASS_EARLY (PCI_VENDOR_ID_INTEL ,PCI_ANY_ID ,PCI_CLASS_NETWORK_ETHERNET ,8 , quirk_f0_vpd_link);
drivers/pcmcia/sa1100_generic.c +0 -1
@@ -93,7 +93,6 @@ static int sa11x0_drv_pcmcia_remove(struct platform_device *dev)for (i =0 ; i < sinfo->nskt; i++)soc_pcmcia_remove_one (&sinfo->skt[i]); -clk_put (sinfo->clk);kfree (sinfo);return 0 ; }
drivers/pcmcia/sa11xx_base.c +1 -2
@@ -222,7 +222,7 @@ int sa11xx_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops,int i, ret =0 ;struct clk *clk; - clk =clk_get (dev,NULL ); + clk =devm_clk_get (dev,NULL );if (IS_ERR (clk))return PTR_ERR (clk);
@@ -251,7 +251,6 @@ int sa11xx_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops,if (ret) {while (--i >=0 )soc_pcmcia_remove_one (&sinfo->skt[i]); -clk_put (clk);kfree (sinfo); }else {dev_set_drvdata (dev, sinfo);
drivers/platform/x86/toshiba_acpi.c +3 -5
@@ -2525,11 +2525,9 @@ static int toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev)if (error)return error; - error =toshiba_hotkey_event_type_get (dev, &events_type); -if (error) { -pr_err ("Unable to query Hotkey Event Type\n" ); -return error; - } +if (toshiba_hotkey_event_type_get (dev, &events_type)) +pr_notice ("Unable to query Hotkey Event Type\n" ); + dev->hotkey_event_type = events_type; dev->hotkey_dev =input_allocate_device ();
drivers/power/avs/Kconfig +1 -1
@@ -13,7 +13,7 @@ menuconfig POWER_AVS config ROCKCHIP_IODOMAIN tristate "Rockchip IO domain support" - depends on ARCH_ROCKCHIP && OF + depends on POWER_AVS && ARCH_ROCKCHIP && OF help Say y here to enable support io domains on Rockchip SoCs. It is necessary for the io domain setting of the SoC to match the
drivers/scsi/3w-9xxx.c +21 -7
@@ -212,6 +212,17 @@ static const struct file_operations twa_fops = { .llseek = noop_llseek, }; +/* +* The controllers use an inline buffer instead of a mapped SGL for small, +* single entry buffers. Note that we treat a zero-length transfer like +* a mapped SGL. +*/ +static bool twa_command_mapped (struct scsi_cmnd *cmd) +{ +return scsi_sg_count (cmd) !=1 || +scsi_bufflen (cmd) >=TW_MIN_SGL_LENGTH ; +} +/* This function will complete an aen request from the isr */ static int twa_aen_complete (TW_Device_Extension *tw_dev,int request_id) {
@@ -1339,7 +1350,8 @@ static irqreturn_t twa_interrupt(int irq, void *dev_instance) }/* Now complete the io */ -scsi_dma_unmap (cmd); +if (twa_command_mapped (cmd)) +scsi_dma_unmap (cmd); cmd->scsi_done (cmd); tw_dev->state[request_id] =TW_S_COMPLETED ;twa_free_request_id (tw_dev, request_id);
@@ -1582,7 +1594,8 @@ static int twa_reset_device_extension(TW_Device_Extension *tw_dev)struct scsi_cmnd *cmd = tw_dev->srb[i]; cmd->result = (DID_RESET <<16 ); -scsi_dma_unmap (cmd); +if (twa_command_mapped (cmd)) +scsi_dma_unmap (cmd); cmd->scsi_done (cmd); } }
@@ -1765,12 +1778,14 @@ static int twa_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_ retval =twa_scsiop_execute_scsi (tw_dev, request_id,NULL ,0 ,NULL );switch (retval) {case SCSI_MLQUEUE_HOST_BUSY : -scsi_dma_unmap (SCpnt); +if (twa_command_mapped (SCpnt)) +scsi_dma_unmap (SCpnt);twa_free_request_id (tw_dev, request_id);break ;case 1 : SCpnt->result = (DID_ERROR <<16 ); -scsi_dma_unmap (SCpnt); +if (twa_command_mapped (SCpnt)) +scsi_dma_unmap (SCpnt);done (SCpnt); tw_dev->state[request_id] =TW_S_COMPLETED ;twa_free_request_id (tw_dev, request_id);
@@ -1831,8 +1846,7 @@ static int twa_scsiop_execute_scsi(TW_Device_Extension *tw_dev, int request_id,/* Map sglist from scsi layer to cmd packet */ if (scsi_sg_count (srb)) { -if ((scsi_sg_count (srb) ==1 ) && - (scsi_bufflen (srb) <TW_MIN_SGL_LENGTH )) { +if (!twa_command_mapped (srb)) {if (srb->sc_data_direction ==DMA_TO_DEVICE || srb->sc_data_direction ==DMA_BIDIRECTIONAL ) scsi_sg_copy_to_buffer(srb,
@@ -1905,7 +1919,7 @@ static void twa_scsiop_execute_scsi_complete(TW_Device_Extension *tw_dev, int re {struct scsi_cmnd *cmd = tw_dev->srb[request_id]; -if (scsi_bufflen (cmd) <TW_MIN_SGL_LENGTH && +if (!twa_command_mapped (cmd) && (cmd->sc_data_direction ==DMA_FROM_DEVICE || cmd->sc_data_direction ==DMA_BIDIRECTIONAL )) {if (scsi_sg_count (cmd) ==1 ) {
drivers/scsi/ipr.c +1 -1
@@ -4554,7 +4554,7 @@ static ssize_t ipr_store_raw_mode(struct device *dev,spin_lock_irqsave (ioa_cfg->host->host_lock, lock_flags); res = (struct ipr_resource_entry *)sdev->hostdata;if (res) { -if (ioa_cfg->sis64 &&ipr_is_af_dasd_device (res)) { +if (ipr_is_af_dasd_device (res)) { res->raw_mode =simple_strtoul (buf,NULL ,10 ); len =strlen (buf);if (res->sdev)
drivers/scsi/scsi_error.c +10 -1
@@ -2169,8 +2169,17 @@ int scsi_error_handler(void *data)* We never actually get interrupted because kthread_run * disables signal delivery for the created thread. */ -while (!kthread_should_stop ()) { +while (true) { +/* +* The sequence in kthread_stop() sets the stop flag first +* then wakes the process. To avoid missed wakeups, the task +* should always be in a non running state before the stop +* flag is checked +*/ set_current_state (TASK_INTERRUPTIBLE ); +if (kthread_should_stop ()) +break ; +if ((shost->host_failed ==0 && shost->host_eh_scheduled ==0 ) || shost->host_failed !=atomic_read (&shost->host_busy)) { SCSI_LOG_ERROR_RECOVERY(1,
drivers/spi/spi-pxa2xx.c +4 -0
@@ -624,6 +624,10 @@ static irqreturn_t ssp_int(int irq, void *dev_id)if (!(sccr1_reg &SSCR1_TIE )) mask &= ~SSSR_TFS ; +/* Ignore RX timeout interrupt if it is disabled */ +if (!(sccr1_reg &SSCR1_TINTE )) + mask &= ~SSSR_TINT ; +if (!(status & mask))return IRQ_NONE ;
drivers/spi/spi-xtensa-xtfpga.c +2 -2
@@ -34,13 +34,13 @@ struct xtfpga_spi {static inline void xtfpga_spi_write32 (const struct xtfpga_spi *spi,unsigned addr,u32 val) { -iowrite32 (val, spi->regs + addr); +__raw_writel (val, spi->regs + addr); }static inline unsigned int xtfpga_spi_read32 (const struct xtfpga_spi *spi,unsigned addr) { -return ioread32 (spi->regs + addr); +return __raw_readl (spi->regs + addr); }static inline void xtfpga_spi_wait_busy (struct xtfpga_spi *xspi)
drivers/spi/spi.c +1 -2
@@ -1427,8 +1427,7 @@ static struct class spi_master_class = {* * The caller is responsible for assigning the bus number and initializing * the master's methods before calling spi_register_master(); and (after errors -* adding the device) calling spi_master_put() and kfree() to prevent a memory -* leak. +* adding the device) calling spi_master_put() to prevent a memory leak. */ struct spi_master *spi_alloc_master (struct device *dev,unsigned size) {
drivers/spi/spidev.c +2 -1
@@ -664,7 +664,8 @@ static int spidev_release(struct inode *inode, struct file *filp)kfree (spidev->rx_buffer); spidev->rx_buffer =NULL ; - spidev->speed_hz = spidev->spi->max_speed_hz; +if (spidev->spi) + spidev->speed_hz = spidev->spi->max_speed_hz;/* ... after we unbound from the underlying device? */ spin_lock_irq (&spidev->spi_lock);
drivers/staging/android/ion/ion.c +3 -3
@@ -1179,13 +1179,13 @@ struct ion_handle *ion_import_dma_buf(struct ion_client *client, int fd)mutex_unlock (&client->lock); goto end; } -mutex_unlock (&client->lock); handle =ion_handle_create (client, buffer); -if (IS_ERR (handle)) +if (IS_ERR (handle)) { +mutex_unlock (&client->lock); goto end; + } -mutex_lock (&client->lock); ret =ion_handle_add (client, handle);mutex_unlock (&client->lock);if (ret) {
drivers/staging/speakup/fakekey.c +1 -0
@@ -81,6 +81,7 @@ void speakup_fake_down_arrow(void)__this_cpu_write (reporting_keystroke, true);input_report_key (virt_keyboard,KEY_DOWN ,PRESSED );input_report_key (virt_keyboard,KEY_DOWN ,RELEASED ); +input_sync (virt_keyboard);__this_cpu_write (reporting_keystroke, false);/* reenable preemption */
drivers/target/iscsi/iscsi_target.c +16 -17
@@ -341,7 +341,6 @@ static struct iscsi_np *iscsit_get_np(struct iscsi_np *iscsit_add_np (struct __kernel_sockaddr_storage *sockaddr, -char *ip_str,int network_transport) {struct sockaddr_in *sock_in;
@@ -370,11 +369,9 @@ struct iscsi_np *iscsit_add_np( np->np_flags |=NPF_IP_NETWORK ;if (sockaddr->ss_family ==AF_INET6 ) { sock_in6 = (struct sockaddr_in6 *)sockaddr; -snprintf (np->np_ip,IPV6_ADDRESS_SPACE ,"%s" , ip_str); np->np_port =ntohs (sock_in6->sin6_port); }else { sock_in = (struct sockaddr_in *)sockaddr; -sprintf (np->np_ip,"%s" , ip_str); np->np_port =ntohs (sock_in->sin_port); }
@@ -411,8 +408,8 @@ struct iscsi_np *iscsit_add_np(list_add_tail (&np->np_list, &g_np_list);mutex_unlock (&np_lock); -pr_debug ("CORE[0] - Added Network Portal: %s:%hu on %s\n" , - np->np_ip, np->np_port, np->np_transport->name); +pr_debug ("CORE[0] - Added Network Portal: %pISc:%hu on %s\n" , + &np->np_sockaddr, np->np_port, np->np_transport->name);return np; }
@@ -481,8 +478,8 @@ int iscsit_del_np(struct iscsi_np *np)list_del (&np->np_list);mutex_unlock (&np_lock); -pr_debug ("CORE[0] - Removed Network Portal: %s:%hu on %s\n" , - np->np_ip, np->np_port, np->np_transport->name); +pr_debug ("CORE[0] - Removed Network Portal: %pISc:%hu on %s\n" , + &np->np_sockaddr, np->np_port, np->np_transport->name);iscsit_put_transport (np->np_transport);kfree (np);
@@ -3467,7 +3464,6 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd, tpg_np_list) {struct iscsi_np *np = tpg_np->tpg_np;bool inaddr_any =iscsit_check_inaddr_any (np); -char *fmt_str;if (np->np_network_transport != network_transport)continue ;
@@ -3495,15 +3491,18 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd, } } -if (np->np_sockaddr.ss_family ==AF_INET6 ) - fmt_str ="TargetAddress=[%s]:%hu,%hu" ; -else - fmt_str ="TargetAddress=%s:%hu,%hu" ; - - len =sprintf (buf, fmt_str, - inaddr_any ? conn->local_ip : np->np_ip, - np->np_port, - tpg->tpgt); +if (inaddr_any) { + len =sprintf (buf,"TargetAddress=" +"%s:%hu,%hu" , + conn->local_ip, + np->np_port, + tpg->tpgt); + }else { + len =sprintf (buf,"TargetAddress=" +"%pISpc,%hu" , + &np->np_sockaddr, + tpg->tpgt); + } len +=1 ;if ((len + payload_len) > buffer_len) {
drivers/target/iscsi/iscsi_target.h +1 -1
@@ -13,7 +13,7 @@ extern int iscsit_deaccess_np(struct iscsi_np *, struct iscsi_portal_group *,extern bool iscsit_check_np_match (struct __kernel_sockaddr_storage *,struct iscsi_np *,int );extern struct iscsi_np *iscsit_add_np (struct __kernel_sockaddr_storage *, -char *,int ); +int );extern int iscsit_reset_np_thread (struct iscsi_np *,struct iscsi_tpg_np *,struct iscsi_portal_group *,bool );extern int iscsit_del_np (struct iscsi_np *);
drivers/target/iscsi/iscsi_target_configfs.c +7 -7
@@ -100,7 +100,7 @@ static ssize_t lio_target_np_store_sctp(* Use existing np->np_sockaddr for SCTP network portal reference */ tpg_np_sctp =iscsit_tpg_add_network_portal (tpg, &np->np_sockaddr, - np->np_ip, tpg_np,ISCSI_SCTP_TCP ); + tpg_np,ISCSI_SCTP_TCP );if (!tpg_np_sctp ||IS_ERR (tpg_np_sctp)) goto out; }else {
@@ -178,7 +178,7 @@ static ssize_t lio_target_np_store_iser( } tpg_np_iser =iscsit_tpg_add_network_portal (tpg, &np->np_sockaddr, - np->np_ip, tpg_np,ISCSI_INFINIBAND ); + tpg_np,ISCSI_INFINIBAND );if (IS_ERR (tpg_np_iser)) { rc =PTR_ERR (tpg_np_iser); goto out;
@@ -249,8 +249,8 @@ static struct se_tpg_np *lio_target_call_addnptotpg(return ERR_PTR (-EINVAL ); } str++;/* Skip over leading "[" */ - *str2 ='\0' ;/* Terminate the IPv6 address */ - str2++;/* Skip over the "]" */ + *str2 ='\0' ;/* Terminate the unbracketed IPv6 address */ + str2++;/* Skip over the \0 */ port_str =strstr (str2,":" );if (!port_str) { pr_err("Unable to locate \":port\""
@@ -317,7 +317,7 @@ static struct se_tpg_np *lio_target_call_addnptotpg(* sys/kernel/config/iscsi/$IQN/$TPG/np/$IP:$PORT/ * */ - tpg_np =iscsit_tpg_add_network_portal (tpg, &sockaddr, str,NULL , + tpg_np =iscsit_tpg_add_network_portal (tpg, &sockaddr,NULL ,ISCSI_TCP );if (IS_ERR (tpg_np)) {iscsit_put_tpg (tpg);
@@ -345,8 +345,8 @@ static void lio_target_call_delnpfromtpg( se_tpg = &tpg->tpg_se_tpg;pr_debug ("LIO_Target_ConfigFS: DEREGISTER -> %s TPGT: %hu" -" PORTAL: %s:%hu\n" ,config_item_name (&se_tpg->se_tpg_wwn->wwn_group.cg_item), - tpg->tpgt, tpg_np->tpg_np->np_ip, tpg_np->tpg_np->np_port); +" PORTAL: %pISc:%hu\n" ,config_item_name (&se_tpg->se_tpg_wwn->wwn_group.cg_item), + tpg->tpgt, &tpg_np->tpg_np->np_sockaddr, tpg_np->tpg_np->np_port); ret =iscsit_tpg_del_network_portal (tpg, tpg_np);if (ret <0 )
drivers/target/iscsi/iscsi_target_login.c +4 -4
@@ -879,8 +879,8 @@ static void iscsi_handle_login_thread_timeout(unsigned long data)struct iscsi_np *np = (struct iscsi_np *) data;spin_lock_bh (&np->np_thread_lock); -pr_err ("iSCSI Login timeout on Network Portal %s:%hu\n" , - np->np_ip, np->np_port); +pr_err ("iSCSI Login timeout on Network Portal %pISc:%hu\n" , + &np->np_sockaddr, np->np_port);if (np->np_login_timer_flags &ISCSI_TF_STOP ) {spin_unlock_bh (&np->np_thread_lock);
@@ -1358,8 +1358,8 @@ static int __iscsi_target_login_thread(struct iscsi_np *np)spin_lock_bh (&np->np_thread_lock);if (np->np_thread_state !=ISCSI_NP_THREAD_ACTIVE ) {spin_unlock_bh (&np->np_thread_lock); -pr_err ("iSCSI Network Portal on %s:%hu currently not" -" active.\n" , np->np_ip, np->np_port); +pr_err ("iSCSI Network Portal on %pISc:%hu currently not" +" active.\n" , &np->np_sockaddr, np->np_port);iscsit_tx_login_rsp (conn,ISCSI_STATUS_CLS_TARGET_ERR ,ISCSI_LOGIN_STATUS_SVC_UNAVAILABLE ); goto new_sess_out;
drivers/target/iscsi/iscsi_target_tpg.c +7 -8
@@ -460,7 +460,6 @@ static bool iscsit_tpg_check_network_portal(struct iscsi_tpg_np *iscsit_tpg_add_network_portal (struct iscsi_portal_group *tpg,struct __kernel_sockaddr_storage *sockaddr, -char *ip_str,struct iscsi_tpg_np *tpg_np_parent,int network_transport) {
@@ -470,8 +469,8 @@ struct iscsi_tpg_np *iscsit_tpg_add_network_portal(if (!tpg_np_parent) {if (iscsit_tpg_check_network_portal (tpg->tpg_tiqn, sockaddr, network_transport)) { -pr_err ("Network Portal: %s already exists on a" -" different TPG on %s\n" , ip_str, +pr_err ("Network Portal: %pISc already exists on a" +" different TPG on %s\n" , sockaddr, tpg->tpg_tiqn->tiqn);return ERR_PTR (-EEXIST ); }
@@ -484,7 +483,7 @@ struct iscsi_tpg_np *iscsit_tpg_add_network_portal(return ERR_PTR (-ENOMEM ); } - np =iscsit_add_np (sockaddr, ip_str, network_transport); + np =iscsit_add_np (sockaddr, network_transport);if (IS_ERR (np)) {kfree (tpg_np);return ERR_CAST (np);
@@ -514,8 +513,8 @@ struct iscsi_tpg_np *iscsit_tpg_add_network_portal(spin_unlock (&tpg_np_parent->tpg_np_parent_lock); } -pr_debug ("CORE[%s] - Added Network Portal: %s:%hu,%hu on %s\n" , - tpg->tpg_tiqn->tiqn, np->np_ip, np->np_port, tpg->tpgt, +pr_debug ("CORE[%s] - Added Network Portal: %pISc:%hu,%hu on %s\n" , + tpg->tpg_tiqn->tiqn, &np->np_sockaddr, np->np_port, tpg->tpgt, np->np_transport->name);return tpg_np;
@@ -528,8 +527,8 @@ static int iscsit_tpg_release_np( {iscsit_clear_tpg_np_login_thread (tpg_np, tpg, true);
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_tpg.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/usb/chipidea/udc.c +44 -40
84 lines not on this page · raw message
drivers/usb/host/xhci-ring.c +63 -16
79 lines not on this page · raw message
fs/btrfs/extent_io.c +66 -14
80 lines not on this page · raw message
fs/cifs/cifsencrypt.c +51 -2
53 lines not on this page · raw message
fs/cifs/smb2pdu.c +61 -15
76 lines not on this page · raw message
fs/open.c +26 -23
49 lines not on this page · raw message
include/target/iscsi/iscsi_target_core.h +0 -1
Lines of this file are not shown. View the raw message.
net/batman-adv/multicast.c +60 -21
81 lines not on this page · raw message
net/netfilter/ipvs/ip_vs_ctl.c +49 -29
78 lines not on this page · raw message
virt/kvm/eventfd.c +73 -51
124 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.