Linux 3.2.70
I'm announcing the release of the 3.2.70 kernel.
All users of the 3.2 kernel series should upgrade.
The updated 3.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.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
The diff from 3.2.69 is attached to this message.
Ben.
------------
Documentation/networking/rds.txt | 9 +- Documentation/pinctrl.txt | 4 +- Makefile | 2 +- arch/arm/include/asm/elf.h | 2 +- arch/mips/include/asm/cacheflush.h | 38 +++++--- arch/mips/include/asm/cpu-features.h | 26 +++++- .../asm/mach-cavium-octeon/cpu-feature-overrides.h | 1 - arch/mips/include/asm/octeon/pci-octeon.h | 3 - arch/mips/kernel/irq.c | 2 +- arch/mips/mm/cache.c | 12 +++ arch/mips/pci/pci-octeon.c | 6 -- arch/mips/pci/pcie-octeon.c | 3 - arch/mips/power/hibernate.S | 3 +- arch/parisc/kernel/parisc_ksyms.c | 2 + arch/parisc/lib/Makefile | 3 +- arch/parisc/lib/ucmpdi2.c | 25 +++++ arch/powerpc/kernel/cacheinfo.c | 43 +++++++-- arch/powerpc/kernel/perf_callchain.c | 2 +- arch/powerpc/kernel/setup-common.c | 16 +++- arch/powerpc/kernel/vmlinux.lds.S | 1 + arch/powerpc/mm/mmap_64.c | 14 +-- arch/powerpc/platforms/pseries/dlpar.c | 13 ++- arch/s390/crypto/ghash_s390.c | 25 ++--- arch/s390/kernel/suspend.c | 6 ++ arch/s390/kvm/priv.c | 1 + arch/sparc/kernel/leon_pci.c | 13 --- arch/sparc/kernel/sys_sparc_64.c | 6 +- arch/x86/Kconfig | 3 +- arch/x86/include/asm/iommu_table.h | 11 ++- arch/x86/kernel/reboot.c | 7 +- arch/x86/kvm/mmu.c | 2 +- arch/x86/kvm/vmx.c | 12 ++- arch/x86/lib/usercopy_64.c | 2 +- arch/x86/net/bpf_jit_comp.c | 7 +- drivers/acpi/acpica/acmacros.h | 10 +- drivers/acpi/acpica/dsopcode.c | 4 +- drivers/acpi/acpica/evregion.c | 4 +- drivers/acpi/acpica/exdump.c | 4 +- drivers/acpi/acpica/exfldio.c | 10 +- drivers/acpi/acpica/exregion.c | 8 +- drivers/acpi/acpica/hwvalid.c | 16 ++-- drivers/acpi/acpica/nsdump.c | 12 +-- drivers/acpi/acpica/tbinstal.c | 4 +- drivers/acpi/acpica/tbutils.c | 21 ++--- drivers/acpi/acpica/tbxfroot.c | 7 +- drivers/acpi/osl.c | 6 +- drivers/ata/ahci.c | 102 +++++++++++++++++++-- drivers/ata/ahci.h | 1 + drivers/ata/libahci.c | 6 +- drivers/ata/libata-core.c | 32 +++++++ drivers/ata/libata-eh.c | 3 + drivers/bluetooth/ath3k.c | 1 + drivers/bluetooth/btusb.c | 1 + drivers/edac/Kconfig | 2 +- drivers/edac/sb_edac.c | 48 ++++++---- drivers/firmware/dmi_scan.c | 85 ++++++++--------- drivers/gpio/gpiolib.c | 26 +++++- drivers/gpu/drm/radeon/atombios_crtc.c | 8 +- drivers/hv/channel.c | 7 +- drivers/hv/channel_mgmt.c | 12 +-- drivers/infiniband/core/umem.c | 7 +- drivers/infiniband/hw/mlx4/qp.c | 3 +- drivers/input/mouse/elantech.c | 51 ++++++++--- drivers/input/mouse/elantech.h | 1 + drivers/lguest/core.c | 2 +- drivers/md/raid5.c | 3 +- drivers/memstick/core/mspro_block.c | 3 +- drivers/mmc/core/core.c | 1 + drivers/mtd/ubi/cdev.c | 2 +- drivers/mtd/ubi/eba.c | 3 +- drivers/mtd/ubi/misc.c | 2 + drivers/mtd/ubi/scan.c | 2 +- drivers/mtd/ubi/wl.c | 2 +- drivers/net/ethernet/intel/e1000/e1000_main.c | 10 +- drivers/net/phy/dp83640.c | 2 +- drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 1 + drivers/net/wireless/rtlwifi/usb.c | 2 +- drivers/net/xen-netback/xenbus.c | 33 ++++--- drivers/of/base.c | 36 ++++++++ drivers/platform/x86/compal-laptop.c | 9 +- drivers/scsi/3w-9xxx.c | 57 +++--------- drivers/scsi/3w-9xxx.h | 5 - drivers/scsi/3w-sas.c | 50 ++-------- drivers/scsi/3w-sas.h | 4 - drivers/scsi/3w-xxxx.c | 42 ++------- drivers/scsi/3w-xxxx.h | 5 - drivers/scsi/megaraid/megaraid_sas_fusion.c | 4 +- drivers/scsi/sd.c | 19 +--- drivers/scsi/sg.c | 3 + drivers/staging/hv/storvsc_drv.c | 15 +-- drivers/staging/line6/pcm.c | 40 +++++--- drivers/staging/panel/panel.c | 13 ++- drivers/target/target_core_pscsi.c | 3 + drivers/target/target_core_pscsi.h | 1 + drivers/tty/hvc/hvc_xen.c | 2 +- drivers/tty/serial/of_serial.c | 1 - drivers/tty/serial/uartlite.c | 11 ++- drivers/tty/serial/xilinx_uartps.c | 12 +-- drivers/usb/class/cdc-acm.c | 7 +- drivers/usb/class/cdc-wdm.c | 12 ++- drivers/usb/host/xhci-ring.c | 7 +- drivers/usb/host/xhci.h | 2 +- drivers/usb/musb/musb_core.c | 44 +++++---- drivers/usb/serial/cp210x.c | 2 + drivers/usb/serial/ftdi_sio.c | 1 + drivers/usb/serial/ftdi_sio_ids.h | 1 + drivers/usb/serial/pl2303.c | 1 - drivers/usb/serial/pl2303.h | 4 - drivers/usb/storage/unusual_devs.h | 7 ++ drivers/xen/events.c | 12 ++- drivers/xen/xen-pciback/conf_space.c | 6 +- drivers/xen/xen-pciback/conf_space.h | 2 +- drivers/xen/xen-pciback/conf_space_header.c | 2 +- firmware/ihex2fw.c | 1 + fs/binfmt_elf.c | 9 +- fs/btrfs/extent-tree.c | 5 +- fs/btrfs/ioctl.c | 5 + fs/btrfs/xattr.c | 50 +++++++--- fs/dcache.c | 24 ++--- fs/debugfs/inode.c | 1 + fs/ext4/extents.c | 19 ++-- fs/ext4/namei.c | 18 ++-- fs/fhandle.c | 5 +- fs/jbd2/recovery.c | 7 +- fs/nfsd/nfs4state.c | 19 ++-- fs/nilfs2/btree.c | 2 +- fs/ocfs2/dlm/dlmmaster.c | 13 +++ fs/omfs/inode.c | 3 +- fs/pipe.c | 55 ++++++----- include/acpi/acpixf.h | 2 +- include/acpi/actypes.h | 20 ++++ include/acpi/platform/acenv.h | 1 + include/linux/jhash.h | 17 ++-- include/linux/libata.h | 10 ++ include/linux/nilfs2_fs.h | 2 +- include/linux/of.h | 10 ++ include/linux/sched.h | 8 +- include/net/ip_vs.h | 2 + include/net/sctp/structs.h | 5 + include/sound/emu10k1.h | 14 ++- include/xen/events.h | 2 +- kernel/ptrace.c | 22 ++++- kernel/softirq.c | 22 +++-- kernel/trace/ring_buffer_benchmark.c | 2 +- kernel/trace/trace_events_filter.c | 10 +- lib/string.c | 2 +- mm/page-writeback.c | 6 +- mm/slub.c | 45 +++------ net/bridge/br_ioctl.c | 2 - net/bridge/br_multicast.c | 9 +- net/bridge/br_stp_if.c | 4 +- net/caif/caif_socket.c | 8 ++ net/core/neighbour.c | 11 +++ net/ipv4/udp.c | 6 +- net/ipv6/udp.c | 6 +- net/mac80211/wep.c | 6 +- net/netfilter/ipvs/ip_vs_core.c | 9 ++ net/netfilter/ipvs/ip_vs_ctl.c | 55 ++++++----- net/packet/af_packet.c | 20 +--- net/sctp/output.c | 4 +- net/sctp/socket.c | 43 ++++++--- net/socket.c | 24 ++--- net/unix/af_unix.c | 8 ++ security/selinux/nlmsgtab.c | 6 ++ sound/pci/emu10k1/emu10k1.c | 6 +- sound/pci/emu10k1/emu10k1_callback.c | 4 +- sound/pci/emu10k1/emu10k1_main.c | 21 +++-- sound/pci/emu10k1/emupcm.c | 2 +- sound/pci/emu10k1/emuproc.c | 12 --- sound/pci/emu10k1/memory.c | 11 ++- sound/pci/hda/patch_conexant.c | 12 +++ sound/soc/codecs/cs4271.c | 4 +- sound/soc/codecs/wm8741.c | 8 +- sound/soc/codecs/wm8960.c | 2 +- sound/soc/codecs/wm8994.c | 2 +- sound/soc/soc-dapm.c | 12 ++- sound/synth/emux/emux_oss.c | 11 +-- sound/synth/emux/emux_seq.c | 29 ++++-- sound/usb/mixer.c | 10 +- sound/usb/mixer_maps.c | 5 + 180 files changed, 1314 insertions(+), 833 deletions(-)
Al Viro (2):
sg_start_req(): make sure that there's not too many elements in iovec d_walk() might skip too much
Alex Deucher (1):
drm/radeon: fix doublescan modes (v2)
Alexander Duyck (1):
jhash: Update jhash_[321]words functions to use correct initval
Alexander Ploumistos (1):
Bluetooth: ath3k: Add support Atheros AR5B195 combo Mini PCIe card
Alexander Sverdlin (2):
sctp: Fix race between OOTB responce and route removal
MIPS: Octeon: Remove udelay() causing huge IRQ latency
Alexei Starovoitov (1):
x86: bpf_jit: fix compilation of large bpf programs
Andrew Morton (1):
fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-length mappings
Andrey Ryabinin (1):
ARM: 8320/1: fix integer overflow in ELF_ET_DYN_BASE
Andy Grover (1):
target/pscsi: Don't leak scsi_host if hba is VIRTUAL_HOST
Anton Blanchard (3):
powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH
powerpc: Align TOC to 256 bytes
powerpc: Make logical to real cpu mapping code endian safe
Aravind Gopalakrishnan (1):
x86/iommu: Fix header comments regarding standard and _FINISH macros
Arnd Bergmann (1):
staging: line6: avoid __sync_fetch_and_{and,or}Baruch Siach (1):
pinctrl: fix example .get_group_pins implementation signature
Ben Greear (1):
Fix lockup related to stop_machine being stuck in __do_softirq.
Ben Hutchings (6):
xen-pciback: Add name prefix to global 'permissive' variable
dmi_scan: refactor dmi_scan_machine(), {smbios,dmi}_present()
x86_64: Fix strnlen_user() to not touch memory after specified maximum
pipe: iovec: Fix memory corruption when retrying atomic copy as non-atomic
debugfs: Fix statfs() regression in 3.2.69
Linux 3.2.70
Ben Serebrin (1):
KVM: VMX: Preserve host CR4.MCE value while in guest mode.
Benjamin Tissoires (1):
Input: elantech - fix semi-mt protocol for v3 HW
Bob Moore (1):
ACPICA: Debug output: Update output for Processor object.
Brian Norris (4):
UBI: account for bitflips in both the VID header and data
UBI: fix out of bounds write
UBI: initialize LEB number variable
UBI: fix check for "too many bytes"
Christoph Hellwig (5):
megaraid_sas: use raw_smp_processor_id()
3w-sas: fix command completion race
3w-xxxx: fix command completion race
3w-9xxx: fix command completion race
nfsd: fix the check for confirmed openowner in nfs4_preprocess_stateid_op
Clemens Ladisch (2):
ALSA: usb-audio: add MAYA44 USB+ mixer control names
ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+)
Dan Carpenter (1):
memstick: mspro_block: add missing curly braces
Dan McGee (1):
powerpc+sparc64/mm: Remove hack in mmap randomize layout
Dan Williams (1):
ahci: avoton port-disable reset-quirk
Darrick J. Wong (1):
jbd2: fix r_count overflows leading to buffer overflow in journal recovery
Dave Olson (1):
powerpc: Fix missing L2 cache size in /sys/devices/system/cpu
David Henningsson (1):
ALSA: hda - Add Conexant codecs CX20721, CX20722, CX20723 and CX20724
David Sterba (1):
btrfs: don't accept bare namespace as a valid xattr
David Vrabel (1):
xen/events: don't bind non-percpu VIRQs with percpu chip
Davide Italiano (1):
ext4: move check under lock scope to close a race.
Ekaterina Tumanova (1):
KVM: s390: Zero out current VMDB of STSI before including level3 data.
Erez Shitrit (1):
IB/mlx4: Fix WQE LSO segment calculation
Eric Dumazet (3):
udp: fix behavior of wrong checksums
packet: read num_members once in packet_rcv_fanout()
softirq: reduce latencies
Eryu Guan (1):
ext4: check for zero length extent explicitly
Felipe Balbi (1):
usb: musb: core: fix TX/RX endpoint order
Feng Tang (1):
x86/reboot: Fix a warning message triggered by stop_other_cpus()
Filipe Manana (2):
Btrfs: fix log tree corruption when fs mounted with -o discard
Btrfs: fix inode eviction infinite loop after cloning into it
Gabriele Mazzotta (2):
libata: Add helper to determine when PHY events should be ignored
libata: Ignore spurious PHY event on LPM policy change
Grant Likely (1):
of: Add of_property_match_string() to find index into a string list
Grygorii Strashko (1):
mmc: core: add missing pm event in mmc_pm_notify to fix hib restore
Hans Schillstrom (1):
ipvs: kernel oops - do_ip_vs_get_ctl
Hans de Goede (2):
usb-storage: Add NO_WP_DETECT quirk for Lacie 059f:0651 devices
Input: elantech - fix detection of touchpads where the revision matches a known rate
Harald Freudenberger (1):
crypto: s390/ghash - Fix incorrect ghash icv buffer handling.
Heiko Carstens (1):
s390/hibernate: fix save and restore of kernel text section
Huacai Chen (1):
MIPS: Hibernate: flush TLB entries earlier
Ian Campbell (1):
xen: netback: read hotplug script once at start of day.
James Hogan (1):
MIPS: Fix enabling of DEBUG_STACKOVERFLOW
Janusz Dziedzic (1):
mac80211: move WEP tailroom size check
Jason A. Donenfeld (1):
USB: pl2303: Remove support for Samsung I330
Jean Delvare (1):
firmware: dmi_scan: Fix ordering of product_uuid
Jim Snow (1):
sb_edac: Fix erroneous bytes->gigabytes conversion
Joe Lawrence (1):
xhci: gracefully handle xhci_irq dead device
Johan Hovold (2):
gpio: unregister gpiochip device before removing it
gpio: sysfs: fix memory leaks and device hotplug
John D. Blair (1):
USB: cp210x: add ID for HubZ dual ZigBee and Z-Wave dongle
John David Anglin (1):
parisc: Provide __ucmpdi2 to resolve undefined references in 32 bit builds.
Joonsoo Kim (1):
slub: refactoring unfreeze_partials()
Jordan Rife (1):
Input: elantech - add support for newer elantech touchpads
Julian Anastasov (1):
neigh: do not modify unlinked entries
Junling Zheng (1):
net: socket: Fix the wrong returns for recvmsg and sendmsg
Junxiao Bi (1):
ocfs2: dlm: fix race between purge and get lock resource
K. Y. Srinivasan (3):
Drivers: hv: vmbus: Fix a bug in the error path in vmbus_open()
Drivers: hv: vmbus: Don't wait after requesting offers
scsi: storvsc: Fix a bug in copy_from_bounce_buffer()
Konrad Rzeszutek Wilk (1):
config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected
Koro Chen (1):
ASoC: dapm: Modify widget stream name according to prefix
Krzysztof Kozlowski (1):
compal-laptop: Check return value of power_supply_register
Larry Finger (2):
rtlwifi: rtl8192cu: Add new USB ID
rtlwifi: rtl8192cu: Fix kernel deadlock
Lars Persson (1):
MIPS: Fix race condition in lazy cache flushing.
Lukas Czerner (1):
ext4: make fsync to sync parent dir in no-journal for real this time
Lv Zheng (4):
ACPICA: Utilities: split IO address types from data type models.
ACPICA: Tables: Change acpi_find_root_pointer() to use acpi_physical_address.
ACPICA: Utilities: Cleanup to convert physical address printing formats.
ACPICA: Utilities: Cleanup to remove useless ACPI_PRINTF/FORMAT_xxx helpers.
Maksim A. Boyko (1):
ALSA: usb-audio: Fix invalid volume resolution for Logitech HD Webcam C525
Marcelo Ricardo Leitner (1):
sctp: fix ASCONF list handling
Mark Edwards (1):
USB: cp210x: add ID for KCF Technologies PRN device
Mark Grondona (1):
__ptrace_may_access() should not deny sub-threads
Mark Hounschell (1):
sd: Disable support for 256 byte/sector disks
Mark Salyzyn (1):
unix/caif: sk_socket can disappear when state is unlocked
Mathias Nyman (2):
xhci: fix isoc endpoint dequeue from advancing too far on transaction error
xhci: Solve full event ring by increasing TRBS_PER_SEGMENT to 256
Matt Walker (1):
Input: elantech - add support for newer (August 2013) devices
Matteo Delfino (1):
Input: elantech - fix for newer hardware versions (v7)
Mauro Carvalho Chehab (1):
Fix sb_edac compilation with 32 bits kernels
Michael Davidson (1):
fs/binfmt_elf.c: fix bug in loading of PIE binaries
Michael Gernoth (1):
ALSA: emu10k1: don't deadlock in proc-functions
Michal Simek (2):
serial: xilinx: Use platform_get_irq to get irq description structure
serial: of-serial: Remove device_type = "serial" registration
Nathan Fontenot (1):
powerpc/pseries: Correct cpu affinity for dlpar added cpus
NeilBrown (1):
md/raid5: don't record new size if resize_stripes fails.
Nicolas Dichtel (5):
selinux/nlmsg: add XFRM_MSG_GETSPDINFO selinux/nlmsg: add XFRM_MSG_[NEW|GET]SADINFO selinux/nlmsg: add XFRM_MSG_REPORT selinux/nlmsg: add XFRM_MSG_MIGRATE selinux/nlmsg: add XFRM_MSG_MAPPING
Nicolas Iooss (1):
firmware/ihex2fw.c: restore missing default in switch statement
Nikolay Aleksandrov (2):
bridge: fix multicast router rlist endless loop
bridge: fix br_stp_set_bridge_priority race conditions
Oleg Nesterov (2):
ptrace: fix race between ptrace_resume() and wait_task_stopped() include/linux/sched.h: don't use task->pid/tgid in same_thread_group/has_group_leader_pid
Oliver Neukum (1):
cdc-wdm: fix endianness bug in debug statements
Paolo Bonzini (1):
KVM: MMU: fix CR4.SMEP=1, CR0.WP=0 with shadow pages
Pascal Huerst (1):
ASoC: cs4271: Increase delay time after reset
Patrick Riphagen (1):
USB: serial: ftdi_sio: Add support for a Motion Tracker Development Board
Peter Zubaj (1):
ALSA: emu10k1: Emu10k2 32 bit DMA mode
Quentin Casasnovas (1):
cdc-acm: prevent infinite loop when parsing CDC headers.
Rafael J. Wysocki (1):
ACPI / init: Fix the ordering of acpi_reserve_resources()
Ralf Baechle (2):
MIPS: Fix cpu_has_mips_r2_exec_hazard.
MIPS: Octeon: Delete override of cpu_has_mips_r2_exec_hazard.
Richard Cochran (1):
net: dp83640: fix broken calibration routine.
Rob Herring (1):
ahci: un-staticize ahci_dev_classify
Rusty Russell (1):
lguest: fix out-by-one error in address checking.
Ryusuke Konishi (1):
nilfs2: fix sanity check of btree level in nilfs_btree_root_broken()
Sabrina Dubroca (1):
e1000: add dummy allocator to fix race condition between mtu change and netpoll
Sam Ravnborg (1):
sparc32,leon: fix leon build
Sam hung (1):
Input: elantech - support new ICs types for version 4
Sasha Levin (2):
fs, omfs: add NULL terminator in the end up the token list
vfs: read file_handle only once in handle_to_path
Scott Wood (1):
powerpc: Don't skip ePAPR spin-table CPUs
Sergej Sawazki (1):
ASoC: wm8741: Fix rates constraints values
Sowmini Varadhan (1):
RDS: Documentation: Document AF_RDS, PF_RDS and SOL_RDS correctly.
Steven Rostedt (1):
tracing: Have filter check for balanced ops
Sudip Mukherjee (1):
staging: panel: fix lcd type
Takashi Iwai (3):
ALSA: emu10k1: Fix card shortname string buffer overflow
ALSA: emux: Fix mutex deadlock at unloading
ALSA: emux: Fix mutex deadlock in OSS emulation
Tejun Heo (1):
writeback: use |1 instead of +1 to protect against div by zero
Thadeu Lima de Souza Cascardo (1):
bridge: fix parsing of MLDv2 reports
Thierry Reding (1):
dt: Add empty of_property_match_string() function
Tommi Rantala (1):
ipvs: fix memory leak in ip_vs_ctl.c
Ulrik De Bie (1):
Input: elantech - fix absolute mode setting on some ASUS laptops
Wang Long (1):
ring-buffer-benchmark: Fix the wrong sched_priority of producer
Willem de Bruijn (1):
packet: avoid out of bounds read in round robin fanout
Wolfram Sang (1):
ALSA: usb-audio: Add mic volume fix quirk for Logitech Quickcam Fusion
Yann Droneaud (2):
IB/core: disallow registering 0-sized memory region IB/core: don't disallow registering region starting at 0x0
Zidan Wang (2):
ASoC: wm8960: fix "RINPUT3" audio route error
ASoC: wm8994: correct BCLK DIV 348 to 384
hujianyang (1):
UBI: fix soft lockup in ubi_check_volume()
mancha security (1):
lib: memzero_explicit: use barrier instead of OPTIMIZER_HIDE_VAR
洪一竹 (1):
Input: elantech - add new icbody type
Signature · 2 lines
Ben Hutchings Computers are not intelligent. They only think they are.
Documentation/networking/rds.txt +4 -5
@@ -62,11 +62,10 @@ Socket Interface ================ AF_RDS, PF_RDS, SOL_RDS - These constants haven't been assigned yet, because RDS isn't in - mainline yet. Currently, the kernel module assigns some constant - and publishes it to user space through two sysctl files - /proc/sys/net/rds/pf_rds - /proc/sys/net/rds/sol_rds + AF_RDS and PF_RDS are the domain type to be used with socket(2) + to create RDS sockets. SOL_RDS is the socket-level to be used + with setsockopt(2) and getsockopt(2) for RDS specific socket + options. fd = socket(PF_RDS, SOCK_SEQPACKET, 0); This creates a new, unbound RDS socket.
Documentation/pinctrl.txt +2 -2
@@ -164,8 +164,8 @@ static const char *foo_get_group_name(struct pinctrl_dev *pctldev, } static int foo_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, - unsigned ** const pins, - unsigned * const num_pins) + const unsigned **pins, + unsigned *num_pins) { *pins = (unsigned *) foo_groups[selector].pins; *num_pins = foo_groups[selector].num_pins;
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 69 +SUBLEVEL = 70 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/include/asm/elf.h +1 -1
@@ -116,7 +116,7 @@ int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs);the loader. We need to make sure that it is out of the way of the program that it will "exec", and that there is sufficient room for the brk. */ -#define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3) +#define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)/* When the program starts, a1 contains a pointer to a function to be registered with atexit, as per the SVR4 ABI. A value of 0 means we
arch/mips/include/asm/cacheflush.h +23 -15
@@ -29,6 +29,20 @@* - flush_icache_all() flush the entire instruction cache * - flush_data_cache_page() flushes a page from the data cache */ + +/* +* This flag is used to indicate that the page pointed to by a pte +* is dirty and requires cleaning before returning it to the user. +*/ +#define PG_dcache_dirty PG_arch_1 + +#define Page_dcache_dirty (page) \ + test_bit(PG_dcache_dirty, &(page)->flags) +#define SetPageDcacheDirty (page) \ + set_bit(PG_dcache_dirty, &(page)->flags) +#define ClearPageDcacheDirty (page) \ + clear_bit(PG_dcache_dirty, &(page)->flags) +extern void (*flush_cache_all)(void );extern void (*__flush_cache_all)(void );extern void (*flush_cache_mm)(struct mm_struct *mm);
@@ -37,13 +51,15 @@ extern void (*flush_cache_range)(struct vm_area_struct *vma, unsigned long start, unsigned long end);extern void (*flush_cache_page)(struct vm_area_struct *vma,unsigned long page,unsigned long pfn);extern void __flush_dcache_page (struct page *page); +extern void __flush_icache_page (struct vm_area_struct *vma,struct page *page);#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1static inline void flush_dcache_page (struct page *page) { -if (cpu_has_dc_aliases || !cpu_has_ic_fills_f_dc) +if (cpu_has_dc_aliases)__flush_dcache_page (page); - +else if (!cpu_has_ic_fills_f_dc) +SetPageDcacheDirty (page); }#define flush_dcache_mmap_lock (mapping) do { } while (0)
@@ -61,6 +77,11 @@ static inline void flush_anon_page(struct vm_area_struct *vma,static inline void flush_icache_page (struct vm_area_struct *vma,struct page *page) { +if (!cpu_has_ic_fills_f_dc && (vma->vm_flags &VM_EXEC ) && +Page_dcache_dirty (page)) { +__flush_icache_page (vma, page); +ClearPageDcacheDirty (page); + } }extern void (*flush_icache_range)(unsigned long start,unsigned long end);
@@ -95,19 +116,6 @@ extern void (*flush_icache_all)(void);extern void (*local_flush_data_cache_page)(void * addr);extern void (*flush_data_cache_page)(unsigned long addr); -/* -* This flag is used to indicate that the page pointed to by a pte -* is dirty and requires cleaning before returning it to the user. -*/ -#define PG_dcache_dirty PG_arch_1 - -#define Page_dcache_dirty (page) \ - test_bit(PG_dcache_dirty, &(page)->flags) -#define SetPageDcacheDirty (page) \ - set_bit(PG_dcache_dirty, &(page)->flags) -#define ClearPageDcacheDirty (page) \ - clear_bit(PG_dcache_dirty, &(page)->flags) -/* Run kernel code uncached, useful for cache probing functions. */ unsigned long run_uncached (void *func);
arch/mips/include/asm/cpu-features.h +25 -1
@@ -153,8 +153,32 @@#define cpu_has_mips_r (cpu_has_mips32r1 | cpu_has_mips32r2 | \ cpu_has_mips64r1 | cpu_has_mips64r2) +/* +* cpu_has_mips_r2_exec_hazard - return if IHB is required on current processor +* +* Returns non-zero value if the current processor implementation requires +* an IHB instruction to deal with an instruction hazard as per MIPS R2 +* architecture specification, zero otherwise. +*/ #ifndef cpu_has_mips_r2_exec_hazard -#define cpu_has_mips_r2_exec_hazard cpu_has_mips_r2 +#define cpu_has_mips_r2_exec_hazard \ +({ \ + int __res; \ + \ + switch (current_cpu_type()) { \ + case CPU_74K: \ + case CPU_CAVIUM_OCTEON: \ + case CPU_CAVIUM_OCTEON_PLUS: \ + case CPU_CAVIUM_OCTEON2: \ + __res = 0; \ + break; \ + \ + default: \ + __res = 1; \ + } \ + \ + __res; \ +})#endif /*
arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h +0 -1
@@ -51,7 +51,6 @@#define cpu_has_mips32r2 0#define cpu_has_mips64r1 0#define cpu_has_mips64r2 1 -#define cpu_has_mips_r2_exec_hazard 0#define cpu_has_dsp 0#define cpu_has_mipsmt 0#define cpu_has_vint 0
arch/mips/include/asm/octeon/pci-octeon.h +0 -3
@@ -11,9 +11,6 @@#include <linux/pci.h> -/* Some PCI cards require delays when accessing config space. */ -#define PCI_CONFIG_SPACE_DELAY 10000 -/* * The physical memory base mapped by BAR1. 256MB at the end of the * first 4GB.
arch/mips/kernel/irq.c +1 -1
@@ -111,7 +111,7 @@ void __init init_IRQ(void)#endif } -#ifdef DEBUG_STACKOVERFLOW +#ifdef CONFIG_DEBUG_STACKOVERFLOW static inline void check_stack_overflow (void ) {unsigned long sp;
arch/mips/mm/cache.c +12 -0
@@ -118,6 +118,18 @@ void __flush_anon_page(struct page *page, unsigned long vmaddr)EXPORT_SYMBOL (__flush_anon_page); +void __flush_icache_page (struct vm_area_struct *vma,struct page *page) +{ +unsigned long addr; + +if (PageHighMem (page)) +return ; + + addr = (unsigned long )page_address (page); +flush_data_cache_page (addr); +} +EXPORT_SYMBOL_GPL (__flush_icache_page); +void __update_cache (struct vm_area_struct *vma,unsigned long address,pte_t pte) {
arch/mips/pci/pci-octeon.c +0 -6
@@ -279,9 +279,6 @@ static int octeon_read_config(struct pci_bus *bus, unsigned int devfn, pci_addr.s.func = devfn &0x7 ; pci_addr.s.reg = reg; -#if PCI_CONFIG_SPACE_DELAY -udelay (PCI_CONFIG_SPACE_DELAY ); -#endif switch (size) {case 4 : *val =le32_to_cpu (cvmx_read64_uint32 (pci_addr.u64));
@@ -316,9 +313,6 @@ static int octeon_write_config(struct pci_bus *bus, unsigned int devfn, pci_addr.s.func = devfn &0x7 ; pci_addr.s.reg = reg; -#if PCI_CONFIG_SPACE_DELAY -udelay (PCI_CONFIG_SPACE_DELAY ); -#endif switch (size) {case 4 :cvmx_write64_uint32 (pci_addr.u64,cpu_to_le32 (val));
arch/mips/pci/pcie-octeon.c +0 -3
@@ -1219,9 +1219,6 @@ static inline int octeon_pcie_write_config(int pcie_port, struct pci_bus *bus, devfn & 0x7, reg, val);return PCIBIOS_SUCCESSFUL ; } -#if PCI_CONFIG_SPACE_DELAY -udelay (PCI_CONFIG_SPACE_DELAY ); -#endif return PCIBIOS_FUNC_NOT_SUPPORTED ; }
arch/mips/power/hibernate.S +2 -1
@@ -31,6 +31,8 @@ LEAF(swsusp_arch_suspend) END(swsusp_arch_suspend) LEAF(swsusp_arch_resume) + /* Avoid TLB mismatch during and after kernel resume */ + jal local_flush_tlb_all PTR_L t0, restore_pblist 0: PTR_L t1, PBE_ADDRESS(t0) /* source */
@@ -44,7 +46,6 @@ LEAF(swsusp_arch_resume) bne t1, t3, 1b PTR_L t0, PBE_NEXT(t0) bnez t0, 0b - jal local_flush_tlb_all /* Avoid TLB mismatch after kernel resume */ PTR_LA t0, saved_regs PTR_L ra, PT_R31(t0) PTR_L sp, PT_R29(t0)
arch/parisc/kernel/parisc_ksyms.c +2 -0
@@ -121,11 +121,13 @@ extern void __ashrdi3(void);extern void __ashldi3 (void );extern void __lshrdi3 (void );extern void __muldi3 (void ); +extern void __ucmpdi2 (void );EXPORT_SYMBOL (__ashrdi3);EXPORT_SYMBOL (__ashldi3);EXPORT_SYMBOL (__lshrdi3);EXPORT_SYMBOL (__muldi3); +EXPORT_SYMBOL (__ucmpdi2); asmlinkage void * __canonicalize_funcptr_for_compare(void *);EXPORT_SYMBOL (__canonicalize_funcptr_for_compare);
arch/parisc/lib/Makefile +2 -1
@@ -2,6 +2,7 @@ # Makefile for parisc-specific library files # -lib-y := lusercopy.o bitops.o checksum.o io.o memset.o fixup.o memcpy.o +lib-y := lusercopy.o bitops.o checksum.o io.o memset.o fixup.o memcpy.o \ + ucmpdi2.o obj-y := iomap.o
arch/parisc/lib/ucmpdi2.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <linux/module.h> + +union ull_union { +unsigned long long ull; +struct { +unsigned int high; +unsigned int low; + } ui; +}; + +int __ucmpdi2 (unsigned long long a,unsigned long long b) +{ +union ull_union au = {.ull = a}; +union ull_union bu = {.ull = b}; + +if (au.ui.high < bu.ui.high) +return 0 ; +else if (au.ui.high > bu.ui.high) +return 2 ; +if (au.ui.low < bu.ui.low) +return 0 ; +else if (au.ui.low > bu.ui.low) +return 2 ; +return 1 ; +}
arch/powerpc/kernel/cacheinfo.c +34 -9
68 lines not on this page · raw message
arch/powerpc/kernel/perf_callchain.c +1 -1
@@ -243,7 +243,7 @@ static void perf_callchain_user_64(struct perf_callchain_entry *entry, sp = regs->gpr[1 ];perf_callchain_store (entry, next_ip); -for (;;) { +while (entry->nr <PERF_MAX_STACK_DEPTH ) { fp = (unsigned long __user *) sp;if (!valid_user_sp (sp,1 ) ||read_user_stack_64 (fp, &next_sp))return ;
arch/powerpc/kernel/setup-common.c +12 -4
@@ -428,7 +428,7 @@ void __init smp_setup_cpu_maps(void)DBG ("smp_setup_cpu_maps()\n" );while ((dn =of_find_node_by_type (dn,"cpu" )) && cpu < nr_cpu_ids) { -const int *intserv; +const __be32 *intserv;int j, len;DBG (" * %s...\n" , dn->full_name);
@@ -447,10 +447,18 @@ void __init smp_setup_cpu_maps(void) }for (j =0 ; j < nthreads && cpu < nr_cpu_ids; j++) { +bool avail; +DBG (" thread %d -> cpu %d (hard id %d)\n" , - j, cpu, intserv[j]); -set_cpu_present (cpu,of_device_is_available (dn)); -set_hard_smp_processor_id (cpu, intserv[j]); + j, cpu,be32_to_cpu (intserv[j])); + + avail =of_device_is_available (dn); +if (!avail) + avail = !of_property_match_string (dn, +"enable-method" ,"spin-table" ); + +set_cpu_present (cpu, avail); +set_hard_smp_processor_id (cpu,be32_to_cpu (intserv[j]));set_cpu_possible (cpu, true); cpu++; }
arch/powerpc/kernel/vmlinux.lds.S +1 -0
@@ -212,6 +212,7 @@ SECTIONS *(.opd) } + . = ALIGN(256); .got : AT(ADDR(.got) - LOAD_OFFSET) { __toc_start = .; *(.got)
arch/powerpc/mm/mmap_64.c +3 -11
@@ -53,14 +53,6 @@ static inline int mmap_is_legacy(void)return sysctl_legacy_va_layout; } -/* -* Since get_random_int() returns the same value within a 1 jiffy window, -* we will almost always get the same randomisation for the stack and mmap -* region. This will mean the relative distance between stack and mmap will -* be the same. -* -* To avoid this we can shift the randomness by 1 bit. -*/ static unsigned long mmap_rnd (void ) {unsigned long rnd =0 ;
@@ -68,11 +60,11 @@ static unsigned long mmap_rnd(void)if (current->flags &PF_RANDOMIZE ) {/* 8MB for 32bit, 1GB for 64bit */ if (is_32bit_task ()) - rnd = (long )(get_random_int () % (1 <<(22 -PAGE_SHIFT ))); + rnd = (long )(get_random_int () % (1 <<(23 -PAGE_SHIFT )));else - rnd = (long )(get_random_int () % (1 <<(29 -PAGE_SHIFT ))); + rnd = (long )(get_random_int () % (1 <<(30 -PAGE_SHIFT ))); } -return (rnd <<PAGE_SHIFT ) *2 ; +return rnd <<PAGE_SHIFT ; }static inline unsigned long mmap_base (void )
arch/powerpc/platforms/pseries/dlpar.c +6 -7
@@ -416,6 +416,12 @@ static ssize_t dlpar_cpu_probe(const char *buf, size_t count) goto out; } + rc =dlpar_acquire_drc (drc_index); +if (rc) { + rc = -EINVAL ; + goto out; + } + dn =dlpar_configure_connector (drc_index);if (!dn) { rc = -EINVAL ;
@@ -436,13 +442,6 @@ static ssize_t dlpar_cpu_probe(const char *buf, size_t count)kfree (dn->full_name); dn->full_name = cpu_name; - rc =dlpar_acquire_drc (drc_index); -if (rc) { -dlpar_free_cc_nodes (dn); - rc = -EINVAL ; - goto out; - } - rc =dlpar_attach_node (dn);if (rc) {dlpar_release_drc (drc_index);
arch/s390/crypto/ghash_s390.c +13 -12
@@ -16,11 +16,12 @@#define GHASH_DIGEST_SIZE 16struct ghash_ctx { -u8 icv[16 ]; -u8 key[16 ]; +u8 key[GHASH_BLOCK_SIZE ]; };struct ghash_desc_ctx { +u8 icv[GHASH_BLOCK_SIZE ]; +u8 key[GHASH_BLOCK_SIZE ];u8 buffer[GHASH_BLOCK_SIZE ];u32 bytes; };
@@ -28,8 +29,10 @@ struct ghash_desc_ctx {static int ghash_init (struct shash_desc *desc) {struct ghash_desc_ctx *dctx =shash_desc_ctx (desc); +struct ghash_ctx *ctx =crypto_shash_ctx (desc->tfm);memset (dctx,0 ,sizeof (*dctx)); +memcpy (dctx->key, ctx->key,GHASH_BLOCK_SIZE );return 0 ; }
@@ -45,7 +48,6 @@ static int ghash_setkey(struct crypto_shash *tfm, }memcpy (ctx->key, key,GHASH_BLOCK_SIZE ); -memset (ctx->icv,0 ,GHASH_BLOCK_SIZE );return 0 ; }
@@ -54,7 +56,6 @@ static int ghash_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) {struct ghash_desc_ctx *dctx =shash_desc_ctx (desc); -struct ghash_ctx *ctx =crypto_shash_ctx (desc->tfm);unsigned int n;u8 *buf = dctx->buffer;int ret;
@@ -70,7 +71,7 @@ static int ghash_update(struct shash_desc *desc, src += n;if (!dctx->bytes) { - ret =crypt_s390_kimd (KIMD_GHASH , ctx, buf, + ret =crypt_s390_kimd (KIMD_GHASH , dctx, buf,GHASH_BLOCK_SIZE );if (ret !=GHASH_BLOCK_SIZE )return -EIO ;
@@ -79,7 +80,7 @@ static int ghash_update(struct shash_desc *desc, n = srclen & ~(GHASH_BLOCK_SIZE -1 );if (n) { - ret =crypt_s390_kimd (KIMD_GHASH , ctx, src, n); + ret =crypt_s390_kimd (KIMD_GHASH , dctx, src, n);if (ret != n)return -EIO ; src += n;
@@ -94,7 +95,7 @@ static int ghash_update(struct shash_desc *desc,return 0 ; } -static int ghash_flush (struct ghash_ctx *ctx,struct ghash_desc_ctx *dctx) +static int ghash_flush (struct ghash_desc_ctx *dctx) {u8 *buf = dctx->buffer;int ret;
@@ -104,24 +105,24 @@ static int ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx)memset (pos,0 , dctx->bytes); - ret =crypt_s390_kimd (KIMD_GHASH , ctx, buf,GHASH_BLOCK_SIZE ); + ret =crypt_s390_kimd (KIMD_GHASH , dctx, buf,GHASH_BLOCK_SIZE );if (ret !=GHASH_BLOCK_SIZE )return -EIO ; + + dctx->bytes =0 ; } - dctx->bytes =0 ;return 0 ; }static int ghash_final (struct shash_desc *desc,u8 *dst) {struct ghash_desc_ctx *dctx =shash_desc_ctx (desc); -struct ghash_ctx *ctx =crypto_shash_ctx (desc->tfm);int ret; - ret =ghash_flush (ctx, dctx); + ret =ghash_flush (dctx);if (!ret) -memcpy (dst, ctx->icv,GHASH_BLOCK_SIZE ); +memcpy (dst, dctx->icv,GHASH_BLOCK_SIZE );return ret; }
arch/s390/kernel/suspend.c +6 -0
@@ -9,6 +9,8 @@#include <linux/pfn.h> #include <linux/suspend.h> #include <linux/mm.h> +#include <asm/ipl.h> +#include <asm/sections.h> #include <asm/system.h> /*
@@ -137,6 +139,8 @@ int pfn_is_nosave(unsigned long pfn) {unsigned long nosave_begin_pfn =PFN_DOWN (__pa (&__nosave_begin));unsigned long nosave_end_pfn =PFN_DOWN (__pa (&__nosave_end)); +unsigned long eshared_pfn =PFN_DOWN (__pa (&_eshared)) -1 ; +unsigned long stext_pfn =PFN_DOWN (__pa (&_stext));/* Always save lowcore pages (LC protection might be enabled). */ if (pfn <=LC_PAGES )
@@ -144,6 +148,8 @@ int pfn_is_nosave(unsigned long pfn)if (pfn >= nosave_begin_pfn && pfn < nosave_end_pfn)return 1 ;/* Skip memory holes and read-only pages (NSS, DCSS, ...). */ +if (pfn >= stext_pfn && pfn <= eshared_pfn) +return ipl_info.type ==IPL_TYPE_NSS ?1 :0 ;if (tprot (PFN_PHYS (pfn)))return 1 ;return 0 ;
arch/s390/kvm/priv.c +1 -0
@@ -219,6 +219,7 @@ static void handle_stsi_3_2_2(struct kvm_vcpu *vcpu, struct sysinfo_3_2_2 *mem)for (n = mem->count -1 ; n >0 ; n--)memcpy (&mem->vm[n], &mem->vm[n -1 ],sizeof (mem->vm[0 ])); +memset (&mem->vm[0 ],0 ,sizeof (mem->vm[0 ])); mem->vm[0 ].cpus_total = cpus; mem->vm[0 ].cpus_configured = cpus; mem->vm[0 ].cpus_standby =0 ;
arch/sparc/kernel/leon_pci.c +0 -13
@@ -78,7 +78,6 @@ EXPORT_SYMBOL(pcibios_bus_to_resource);void __devinit pcibios_fixup_bus (struct pci_bus *pbus) { -struct leon_pci_info *info = pbus->sysdata;struct pci_dev *dev;int i, has_io, has_mem;u16 cmd;
@@ -153,18 +152,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)return pci_enable_resources (dev, mask); } -struct device_node *pci_device_to_OF_node (struct pci_dev *pdev) -{ -/* -* Currently the OpenBoot nodes are not connected with the PCI device, -* this is because the LEON PROM does not create PCI nodes. Eventually -* this will change and the same approach as pcic.c can be used to -* match PROM nodes with pci devices. -*/ -return NULL ; -} -EXPORT_SYMBOL (pci_device_to_OF_node); -void __devinit pcibios_update_irq (struct pci_dev *dev,int irq) {#ifdef CONFIG_PCI_DEBUG
arch/sparc/kernel/sys_sparc_64.c +3 -3
@@ -368,11 +368,11 @@ static unsigned long mmap_rnd(void)if (current->flags &PF_RANDOMIZE ) {unsigned long val =get_random_int ();if (test_thread_flag (TIF_32BIT )) - rnd = (val % (1UL << (22UL -PAGE_SHIFT ))); + rnd = (val % (1UL << (23UL -PAGE_SHIFT )));else - rnd = (val % (1UL << (29UL -PAGE_SHIFT ))); + rnd = (val % (1UL << (30UL -PAGE_SHIFT ))); } -return (rnd <<PAGE_SHIFT ) *2 ; +return rnd <<PAGE_SHIFT ; }void arch_pick_mmap_layout (struct mm_struct *mm)
arch/x86/Kconfig +2 -1
@@ -133,7 +133,8 @@ config SBUS bool config NEED_DMA_MAP_STATE - def_bool (X86_64 || INTEL_IOMMU || DMA_API_DEBUG) + def_bool y + depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG || SWIOTLB config NEED_SG_DMA_LENGTH def_bool y
arch/x86/include/asm/iommu_table.h +6 -5
@@ -79,11 +79,12 @@ struct iommu_table_entry {* d). Similar to the 'init', except that this gets called from pci_iommu_init * where we do have a memory allocator. * -* The standard vs the _FINISH differs in that the _FINISH variant will -* continue detecting other IOMMUs in the call list after the -* the detection routine returns a positive number. The _FINISH will -* stop the execution chain. Both will still call the 'init' and -* 'late_init' functions if they are set. +* The standard IOMMU_INIT differs from the IOMMU_INIT_FINISH variant +* in that the former will continue detecting other IOMMUs in the call +* list after the detection routine returns a positive number, while the +* latter will stop the execution chain upon first successful detection. +* Both variants will still call the 'init' and 'late_init' functions if +* they are set. */ #define IOMMU_INIT_FINISH (_detect, _depend, _init, _late_init) \ __IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
arch/x86/kernel/reboot.c +5 -2
@@ -700,9 +700,12 @@ void native_machine_shutdown(void)/* Make certain I only run on the appropriate processor */ set_cpus_allowed_ptr (current,cpumask_of (reboot_cpu_id)); -/* O.K Now that I'm on the appropriate processor, -* stop all of the others. +/* +* O.K Now that I'm on the appropriate processor, stop all of the +* others. Also disable the local irq to not receive the per-cpu +* timer interrupt which may trigger scheduler's load balance. */ +local_irq_disable ();stop_other_cpus ();#endif
arch/x86/kvm/mmu.c +1 -1
@@ -3609,7 +3609,7 @@ void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, } } - mask.cr0_wp = mask.cr4_pae = mask.nxe =1 ; + mask.cr0_wp = mask.cr4_pae = mask.nxe = mask.smep_andnot_wp =1 ;for_each_gfn_indirect_valid_sp (vcpu->kvm, sp, gfn, node) { pte_size = sp->role.cr4_pae ?8 :4 ; misaligned = (offset ^ (offset + bytes -1 )) & ~(pte_size -1 );
arch/x86/kvm/vmx.c +10 -2
@@ -3032,8 +3032,16 @@ static void vmx_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)static int vmx_set_cr4 (struct kvm_vcpu *vcpu,unsigned long cr4) { -unsigned long hw_cr4 = cr4 | (to_vmx (vcpu)->rmode.vm86_active ? -KVM_RMODE_VM_CR4_ALWAYS_ON :KVM_PMODE_VM_CR4_ALWAYS_ON ); +/* +* Pass through host's Machine Check Enable value to hw_cr4, which +* is in force while we are in guest mode. Do not let guests control +* this bit, even if host CR4.MCE == 0. +*/ +unsigned long hw_cr4 = + (read_cr4 () &X86_CR4_MCE ) | + (cr4 & ~X86_CR4_MCE ) | + (to_vmx (vcpu)->rmode.vm86_active ? +KVM_RMODE_VM_CR4_ALWAYS_ON :KVM_PMODE_VM_CR4_ALWAYS_ON );if (cr4 &X86_CR4_VMXE ) {/*
arch/x86/lib/usercopy_64.c +1 -1
@@ -113,7 +113,7 @@ long __strnlen_user(const char __user *s, long n)char c;while (1 ) { -if (res>n) +if (res >= n)return n+1 ;if (__get_user (c, s))return 0 ;
arch/x86/net/bpf_jit_comp.c +6 -1
@@ -150,7 +150,12 @@ void bpf_jit_compile(struct sk_filter *fp) } cleanup_addr = proglen;/* epilogue address */ -for (pass =0 ; pass <10 ; pass++) { +/* JITed image shrinks with every pass and the loop iterates +* until the image stops shrinking. Very large bpf programs +* may converge on the last pass. In such case do one more +* pass to emit the final image +*/ +for (pass =0 ; pass <10 || image; pass++) {u8 seen_or_pass0 = (pass ==0 ) ? (SEEN_XREG |SEEN_DATAREF |SEEN_MEM ) : seen;/* no prologue/epilogue for trivial filters (RET something) */ proglen =0 ;
drivers/acpi/acpica/acmacros.h +3 -7
@@ -59,19 +59,15 @@#define ACPI_SET64 (ptr) *ACPI_CAST_PTR (u64, ptr)/* -* printf() format helpers +* printf() format helper. This macros is a workaround for the difficulties +* with emitting 64-bit integers and 64-bit pointers with the same code +* for both 32-bit and 64-bit hosts. */ /* Split 64-bit integer into two 32-bit values. Use with %8.8_x%8.8_x */ #define ACPI_FORMAT_UINT64 (i) ACPI_HIDWORD(i), ACPI_LODWORD(i) -#if ACPI_MACHINE_WIDTH ==64 -#define ACPI_FORMAT_NATIVE_UINT (i) ACPI_FORMAT_UINT64(i) -#else -#define ACPI_FORMAT_NATIVE_UINT (i) 0, (i) -#endif -/* * Macros for moving data around to/from buffers that are possibly unaligned. * If the hardware supports the transfer of unaligned data, just do the store.
drivers/acpi/acpica/dsopcode.c +2 -2
@@ -446,7 +446,7 @@ acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state,ACPI_DEBUG_PRINT ((ACPI_DB_EXEC ,"RgnObj %p Addr %8.8X%8.8X Len %X\n" , obj_desc, -ACPI_FORMAT_NATIVE_UINT (obj_desc->region.address), +ACPI_FORMAT_UINT64 (obj_desc->region.address), obj_desc->region.length));/* Now the address and length are valid for this opregion */
@@ -545,7 +545,7 @@ acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state,ACPI_DEBUG_PRINT ((ACPI_DB_EXEC ,"RgnObj %p Addr %8.8X%8.8X Len %X\n" , obj_desc, -ACPI_FORMAT_NATIVE_UINT (obj_desc->region.address), +ACPI_FORMAT_UINT64 (obj_desc->region.address), obj_desc->region.length));/* Now the address and length are valid for this opregion */
drivers/acpi/acpica/evregion.c +2 -2
@@ -450,8 +450,8 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION ,"Handler %p (@%p) Address %8.8X%8.8X [%s]\n" , ®ion_obj->region.handler->address_space, handler, -ACPI_FORMAT_NATIVE_UINT (region_obj->region.address + - region_offset), +ACPI_FORMAT_UINT64 (region_obj->region.address + + region_offset),acpi_ut_get_region_name (region_obj->region. space_id)));
drivers/acpi/acpica/exdump.c +2 -2
@@ -613,8 +613,8 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)acpi_os_printf ("\n" ); }else {acpi_os_printf (" base %8.8X%8.8X Length %X\n" , -ACPI_FORMAT_NATIVE_UINT (obj_desc->region. - address), +ACPI_FORMAT_UINT64 (obj_desc->region. + address), obj_desc->region.length); }break ;
drivers/acpi/acpica/exfldio.c +4 -6
@@ -257,17 +257,15 @@ acpi_ex_access_region(union acpi_operand_object *obj_desc, }ACPI_DEBUG_PRINT_RAW ((ACPI_DB_BFIELD , -" Region [%s:%X], Width %X, ByteBase %X, Offset %X at %p\n" , +" Region [%s:%X], Width %X, ByteBase %X, Offset %X at %8.8X%8.8X\n" ,acpi_ut_get_region_name (rgn_desc->region. space_id), rgn_desc->region.space_id, obj_desc->common_field.access_byte_width, obj_desc->common_field.base_byte_offset, - field_datum_byte_offset,ACPI_CAST_PTR (void, - (rgn_desc-> - region. - address + - region_offset)))); + field_datum_byte_offset, +ACPI_FORMAT_UINT64 (rgn_desc->region.address + + region_offset)));/* Invoke the appropriate address_space/op_region handler */
drivers/acpi/acpica/exregion.c +3 -5
@@ -174,7 +174,7 @@ acpi_ex_system_memory_space_handler(u32 function,if (!mem_info->mapped_logical_address) {ACPI_ERROR ((AE_INFO ,"Could not map memory at 0x%8.8X%8.8X, size %u" , -ACPI_FORMAT_NATIVE_UINT (address), +ACPI_FORMAT_UINT64 (address), (u32 ) map_length)); mem_info->mapped_length =0 ;return_ACPI_STATUS (AE_NO_MEMORY );
@@ -195,8 +195,7 @@ acpi_ex_system_memory_space_handler(u32 function,ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"System-Memory (width %u) R/W %u Address=%8.8X%8.8X\n" , - bit_width, function, -ACPI_FORMAT_NATIVE_UINT (address))); + bit_width, function,ACPI_FORMAT_UINT64 (address)));/* * Perform the memory read or write
@@ -298,8 +297,7 @@ acpi_ex_system_io_space_handler(u32 function,ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"System-IO (width %u) R/W %u Address=%8.8X%8.8X\n" , - bit_width, function, -ACPI_FORMAT_NATIVE_UINT (address))); + bit_width, function,ACPI_FORMAT_UINT64 (address)));/* Decode the function parameter */
drivers/acpi/acpica/hwvalid.c +8 -8
@@ -141,17 +141,17 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width) byte_width =ACPI_DIV_8 (bit_width); last_address = address + byte_width -1 ; -ACPI_DEBUG_PRINT ((ACPI_DB_IO ,"Address %p LastAddress %p Length %X" , -ACPI_CAST_PTR (void, address),ACPI_CAST_PTR (void, - last_address), - byte_width)); +ACPI_DEBUG_PRINT ((ACPI_DB_IO , +"Address %8.8X%8.8X LastAddress %8.8X%8.8X Length %X" , +ACPI_FORMAT_UINT64 (address), +ACPI_FORMAT_UINT64 (last_address), byte_width));/* Maximum 16-bit address in I/O space */ if (last_address >ACPI_UINT16_MAX ) {ACPI_ERROR ((AE_INFO , -"Illegal I/O port address/length above 64K: %p/0x%X" , -ACPI_CAST_PTR (void, address), byte_width)); +"Illegal I/O port address/length above 64K: %8.8X%8.8X/0x%X" , +ACPI_FORMAT_UINT64 (address), byte_width));return_ACPI_STATUS (AE_LIMIT ); }
@@ -180,8 +180,8 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width)if (acpi_gbl_osi_data >= port_info->osi_dependency) {ACPI_DEBUG_PRINT ((ACPI_DB_IO , -"Denied AML access to port 0x%p/%X (%s 0x%.4X-0x%.4X)" , -ACPI_CAST_PTR (void, address), +"Denied AML access to port 0x%8.8X%8.8X/%X (%s 0x%.4X-0x%.4X)" , +ACPI_FORMAT_UINT64 (address), byte_width, port_info->name, port_info->start, port_info->end));
drivers/acpi/acpica/nsdump.c +6 -6
@@ -251,12 +251,11 @@ acpi_ns_dump_one_object(acpi_handle obj_handle,switch (type) {case ACPI_TYPE_PROCESSOR : -acpi_os_printf ("ID %X Len %.4X Addr %p\n" , +acpi_os_printf ("ID %02X Len %02X Addr %8.8X%8.8X\n" , obj_desc->processor.proc_id, obj_desc->processor.length, -ACPI_CAST_PTR (void, - obj_desc->processor. - address)); +ACPI_FORMAT_UINT64 (obj_desc->processor. + address));break ;case ACPI_TYPE_DEVICE :
@@ -327,8 +326,9 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, space_id));if (obj_desc->region.flags &AOPOBJ_DATA_VALID ) {acpi_os_printf (" Addr %8.8X%8.8X Len %.4X\n" , -ACPI_FORMAT_NATIVE_UINT - (obj_desc->region.address), +ACPI_FORMAT_UINT64 (obj_desc-> + region. + address), obj_desc->region.length); }else { acpi_os_printf
drivers/acpi/acpica/tbinstal.c +2 -2
@@ -228,9 +228,9 @@ acpi_tb_add_table(struct acpi_table_desc *table_desc, u32 *table_index) status =acpi_os_table_override (table_desc->pointer, &override_table);if (ACPI_SUCCESS (status) && override_table) {ACPI_INFO ((AE_INFO , -"%4.4s @ 0x%p Table override, replaced with:" , +"%4.4s @ 0x%8.8X%8.8X Table override, replaced with:" , table_desc->pointer->signature, -ACPI_CAST_PTR (void, table_desc->address))); +ACPI_FORMAT_UINT64 (table_desc->address)));/* We can delete the table that was passed as a parameter */
drivers/acpi/acpica/tbutils.c +8 -13
@@ -237,16 +237,12 @@ acpi_tb_print_table_header(acpi_physical_address address, {struct acpi_table_header local_header; -/* -* The reason that the Address is cast to a void pointer is so that we -* can use %p which will work properly on both 32-bit and 64-bit hosts. -*/ if (ACPI_COMPARE_NAME (header->signature,ACPI_SIG_FACS )) {/* FACS only has signature and length fields */ -ACPI_INFO ((AE_INFO ,"%4.4s %p %05X" , - header->signature,ACPI_CAST_PTR (void, address), +ACPI_INFO ((AE_INFO ,"%4.4s 0x%8.8X%8.8X %05X" , + header->signature,ACPI_FORMAT_UINT64 (address), header->length)); }else if (ACPI_COMPARE_NAME (header->signature,ACPI_SIG_RSDP )) {
@@ -257,8 +253,8 @@ acpi_tb_print_table_header(acpi_physical_address address, header)->oem_id, ACPI_OEM_ID_SIZE);acpi_tb_fix_string (local_header.oem_id,ACPI_OEM_ID_SIZE ); - ACPI_INFO((AE_INFO, "RSDP %p %05X (v%.2d %6.6s)", - ACPI_CAST_PTR (void, address), + ACPI_INFO((AE_INFO, "RSDP 0x%8.8X%8.8X %05X (v%.2d %6.6s)", + ACPI_FORMAT_UINT64(address), (ACPI_CAST_PTR(struct acpi_table_rsdp, header)-> revision > 0) ? ACPI_CAST_PTR(struct acpi_table_rsdp,
@@ -272,8 +268,8 @@ acpi_tb_print_table_header(acpi_physical_address address,acpi_tb_cleanup_table_header (&local_header, header); ACPI_INFO((AE_INFO, - "%4.4s %p %05X (v%.2d %6.6s %8.8s %08X %4.4s %08X)", - local_header.signature, ACPI_CAST_PTR(void, address), + "%-4.4s 0x%8.8X%8.8X %05X (v%.2d %-6.6s %-8.8s %08X %-4.4s %08X)", + local_header.signature, ACPI_FORMAT_UINT64(address), local_header.length, local_header.revision, local_header.oem_id, local_header.oem_table_id, local_header.oem_revision,
@@ -488,9 +484,8 @@ acpi_tb_install_table(acpi_physical_address address, status =acpi_os_table_override (mapped_table, &override_table);if (ACPI_SUCCESS (status) && override_table) {ACPI_INFO ((AE_INFO , -"%4.4s @ 0x%p Table override, replaced with:" , - mapped_table->signature,ACPI_CAST_PTR (void, - address))); +"%4.4s @ 0x%8.8X%8.8X Table override, replaced with:" , + mapped_table->signature,ACPI_FORMAT_UINT64 (address))); acpi_gbl_root_table_list.tables[table_index].pointer = override_table;
drivers/acpi/acpica/tbxfroot.c +4 -3
@@ -119,7 +119,7 @@ static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp)* ******************************************************************************/ -acpi_status acpi_find_root_pointer (acpi_size *table_address) +acpi_status acpi_find_root_pointer (acpi_physical_address * table_address) {u8 *table_ptr;u8 *mem_rover;
@@ -177,7 +177,8 @@ acpi_status acpi_find_root_pointer(acpi_size *table_address) physical_address += (u32 )ACPI_PTR_DIFF (mem_rover, table_ptr); - *table_address = physical_address; + *table_address = + (acpi_physical_address ) physical_address;return_ACPI_STATUS (AE_OK ); } }
@@ -210,7 +211,7 @@ acpi_status acpi_find_root_pointer(acpi_size *table_address) (ACPI_HI_RSDP_WINDOW_BASE +ACPI_PTR_DIFF (mem_rover, table_ptr)); - *table_address = physical_address; + *table_address = (acpi_physical_address ) physical_address;return_ACPI_STATUS (AE_OK ); }
drivers/acpi/osl.c +2 -4
@@ -179,7 +179,7 @@ static void __init acpi_request_region (struct acpi_generic_address *addr,request_mem_region (addr->address, length, desc); } -static int __init acpi_reserve_resources (void ) +static void __init acpi_reserve_resources (void ) {acpi_request_region (&acpi_gbl_FADT.xpm1a_event_block, acpi_gbl_FADT.pm1_event_length,"ACPI PM1a_EVT_BLK" );
@@ -208,10 +208,7 @@ static int __init acpi_reserve_resources(void)if (!(acpi_gbl_FADT.gpe1_block_length &0x1 ))acpi_request_region (&acpi_gbl_FADT.xgpe1_block, acpi_gbl_FADT.gpe1_block_length,"ACPI GPE1_BLK" ); - -return 0 ; } -device_initcall (acpi_reserve_resources);void acpi_os_printf (const char *fmt, ...) {
@@ -1630,6 +1627,7 @@ acpi_status __init acpi_os_initialize(void)acpi_status __init acpi_os_initialize1 (void ) { +acpi_reserve_resources (); kacpid_wq =alloc_workqueue ("kacpid" ,0 ,1 ); kacpi_notify_wq =alloc_workqueue ("kacpi_notify" ,0 ,1 ); kacpi_hotplug_wq =alloc_workqueue ("kacpi_hotplug" ,0 ,1 );
drivers/ata/ahci.c +94 -8
138 lines not on this page · raw message
drivers/ata/ahci.h +1 -0
@@ -314,6 +314,7 @@ extern struct device_attribute *ahci_sdev_attrs[];extern struct ata_port_operations ahci_ops;extern struct ata_port_operations ahci_pmp_retry_srst_ops; +unsigned int ahci_dev_classify (struct ata_port *ap);void ahci_fill_cmd_slot (struct ahci_port_priv *pp,unsigned int tag,u32 opts); void ahci_save_initial_config(struct device *dev,
drivers/ata/libahci.c +3 -3
@@ -1137,7 +1137,7 @@ static void ahci_dev_config(struct ata_device *dev) } } -static unsigned int ahci_dev_classify (struct ata_port *ap) +unsigned int ahci_dev_classify (struct ata_port *ap) {void __iomem *port_mmio =ahci_port_base (ap);struct ata_taskfile tf;
@@ -1151,6 +1151,7 @@ static unsigned int ahci_dev_classify(struct ata_port *ap)return ata_dev_classify (&tf); } +EXPORT_SYMBOL_GPL (ahci_dev_classify);void ahci_fill_cmd_slot (struct ahci_port_priv *pp,unsigned int tag,u32 opts)
@@ -1668,8 +1669,7 @@ static void ahci_port_intr(struct ata_port *ap)if (unlikely (resetting)) status &= ~PORT_IRQ_BAD_PMP ; -/* if LPM is enabled, PHYRDY doesn't mean anything */ -if (ap->link.lpm_policy >ATA_LPM_MAX_POWER ) { +if (sata_lpm_ignore_phy_events (&ap->link)) { status &= ~PORT_IRQ_PHYRDY ;ahci_scr_write (&ap->link,SCR_ERROR ,SERR_PHYRDY_CHG ); }
drivers/ata/libata-core.c +32 -0
@@ -6615,6 +6615,38 @@ u32 ata_wait_register(struct ata_port *ap, void __iomem *reg, u32 mask, u32 val,return tmp; } +/** +* sata_lpm_ignore_phy_events - test if PHY event should be ignored +* @link: Link receiving the event +* +* Test whether the received PHY event has to be ignored or not. +* +* LOCKING: +* None: +* +* RETURNS: +* True if the event has to be ignored. +*/ +bool sata_lpm_ignore_phy_events (struct ata_link *link) +{ +unsigned long lpm_timeout = link->last_lpm_change + +msecs_to_jiffies (ATA_TMOUT_SPURIOUS_PHY ); + +/* if LPM is enabled, PHYRDY doesn't mean anything */ +if (link->lpm_policy >ATA_LPM_MAX_POWER ) +return true; + +/* ignore the first PHY event after the LPM policy changed +* as it is might be spurious +*/ +if ((link->flags &ATA_LFLAG_CHANGED ) && +time_before (jiffies, lpm_timeout)) +return true; + +return false; +} +EXPORT_SYMBOL_GPL (sata_lpm_ignore_phy_events); +/* * Dummy port_ops */
drivers/ata/libata-eh.c +3 -0
@@ -3423,6 +3423,9 @@ static int ata_eh_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, } } + link->last_lpm_change = jiffies; + link->flags |=ATA_LFLAG_CHANGED ; +return 0 ; fail:
drivers/bluetooth/ath3k.c +1 -0
@@ -63,6 +63,7 @@ static struct usb_device_id ath3k_table[] = {/* Atheros AR3011 with sflash firmware*/ { USB_DEVICE(0x0489, 0xE027) }, { USB_DEVICE(0x0489, 0xE03D) }, + { USB_DEVICE(0x04F2, 0xAFF1) }, { USB_DEVICE(0x0930, 0x0215) }, { USB_DEVICE(0x0CF3, 0x3002) }, { USB_DEVICE(0x0CF3, 0xE019) },
drivers/bluetooth/btusb.c +1 -0
@@ -148,6 +148,7 @@ static struct usb_device_id blacklist_table[] = {/* Atheros 3011 with sflash firmware */ { USB_DEVICE(0x0489, 0xe027), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0489, 0xe03d), .driver_info = BTUSB_IGNORE }, + { USB_DEVICE(0x04f2, 0xaff1), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0930, 0x0215), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0cf3, 0x3002), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0cf3, 0xe019), .driver_info = BTUSB_IGNORE },
drivers/edac/Kconfig +1 -1
@@ -214,7 +214,7 @@ config EDAC_I7300 config EDAC_SBRIDGE tristate "Intel Sandy-Bridge Integrated MC" - depends on EDAC_MM_EDAC && PCI && X86_64 && X86_MCE_INTEL + depends on EDAC_MM_EDAC && PCI && X86 && X86_MCE_INTEL depends on EXPERIMENTAL help Support for error detection and correction the Intel
drivers/edac/sb_edac.c +29 -19
132 lines not on this page · raw message
drivers/firmware/dmi_scan.c +40 -45
132 lines not on this page · raw message
drivers/gpio/gpiolib.c +22 -4
@@ -726,6 +726,7 @@ static struct class gpio_class = {*/ int gpio_export (unsigned gpio,bool direction_may_change) { +struct gpio_chip *chip;unsigned long flags;struct gpio_desc *desc;int status;
@@ -743,10 +744,18 @@ int gpio_export(unsigned gpio, bool direction_may_change)return -EINVAL ; } + desc = &gpio_desc[gpio]; + chip = desc->chip; +mutex_lock (&sysfs_lock); +/* check if chip is being removed */ +if (!chip || !chip->exported) { + status = -ENODEV ; + goto fail_unlock; + } +spin_lock_irqsave (&gpio_lock, flags); - desc = &gpio_desc[gpio];if (!test_bit (FLAG_REQUESTED , &desc->flags) ||test_bit (FLAG_EXPORT , &desc->flags)) {spin_unlock_irqrestore (&gpio_lock, flags);
@@ -973,12 +982,15 @@ static void gpiochip_unexport(struct gpio_chip *chip) {int status;struct device *dev; +struct gpio_desc *desc; +unsigned int i;mutex_lock (&sysfs_lock); dev =class_find_device (&gpio_class,NULL , chip, match_export);if (dev) {put_device (dev);device_unregister (dev); +/* prevent further gpiod exports */ chip->exported =0 ; status =0 ; }else
@@ -988,6 +1000,13 @@ static void gpiochip_unexport(struct gpio_chip *chip)if (status)pr_debug ("%s: chip %s status %d\n" , __func__, chip->label, status); + +/* unregister gpio class devices owned by sysfs */ +for (i =0 ; i < chip->ngpio; i++) { + desc = &gpio_desc[chip->base + i]; +if (test_and_clear_bit (FLAG_SYSFS , &desc->flags)) +gpio_free (chip->base + i); + } }static int __init gpiolib_sysfs_init (void )
@@ -1137,6 +1156,8 @@ int gpiochip_remove(struct gpio_chip *chip)int status =0 ;unsigned id; +gpiochip_unexport (chip); +spin_lock_irqsave (&gpio_lock, flags);of_gpiochip_remove (chip);
@@ -1154,9 +1175,6 @@ int gpiochip_remove(struct gpio_chip *chip)spin_unlock_irqrestore (&gpio_lock, flags); -if (status ==0 ) -gpiochip_unexport (chip); -return status; }EXPORT_SYMBOL_GPL (gpiochip_remove);
drivers/gpu/drm/radeon/atombios_crtc.c +6 -2
@@ -302,8 +302,10 @@ atombios_set_crtc_dtd_timing(struct drm_crtc *crtc, misc |=ATOM_COMPOSITESYNC ;if (mode->flags &DRM_MODE_FLAG_INTERLACE ) misc |=ATOM_INTERLACE ; -if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) +if (mode->flags &DRM_MODE_FLAG_DBLCLK ) misc |=ATOM_DOUBLE_CLOCK_MODE ; +if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) + misc |=ATOM_H_REPLICATIONBY2 |ATOM_V_REPLICATIONBY2 ; args.susModeMiscInfo.usAccess =cpu_to_le16 (misc); args.ucCRTC = radeon_crtc->crtc_id;
@@ -346,8 +348,10 @@ static void atombios_crtc_set_timing(struct drm_crtc *crtc, misc |=ATOM_COMPOSITESYNC ;if (mode->flags &DRM_MODE_FLAG_INTERLACE ) misc |=ATOM_INTERLACE ; -if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) +if (mode->flags &DRM_MODE_FLAG_DBLCLK ) misc |=ATOM_DOUBLE_CLOCK_MODE ; +if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) + misc |=ATOM_H_REPLICATIONBY2 |ATOM_V_REPLICATIONBY2 ; args.susModeMiscInfo.usAccess =cpu_to_le16 (misc); args.ucCRTC = radeon_crtc->crtc_id;
drivers/hv/channel.c +5 -2
@@ -177,7 +177,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size, GFP_KERNEL);if (!open_info) { err = -ENOMEM ; - goto error0; + goto error_gpadl; }init_completion (&open_info->waitevent);
@@ -193,7 +193,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,if (userdatalen >MAX_USER_DEFINED_BYTES ) { err = -EINVAL ; - goto error0; + goto error_gpadl; }if (userdatalen)
@@ -234,6 +234,9 @@ error1:list_del (&open_info->msglistentry);spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); +error_gpadl: +vmbus_teardown_gpadl (newchannel, newchannel->ringbuffer_gpadlhandle); + error0:free_pages ((unsigned long )out,get_order (send_ringbuffer_size + recv_ringbuffer_size));
drivers/hv/channel_mgmt.c +1 -11
@@ -606,7 +606,7 @@ int vmbus_request_offers(void) {struct vmbus_channel_message_header *msg;struct vmbus_channel_msginfo *msginfo; -int ret, t; +int ret; msginfo = kmalloc(sizeof(*msginfo) + sizeof(struct vmbus_channel_message_header),
@@ -614,8 +614,6 @@ int vmbus_request_offers(void)if (!msginfo)return -ENOMEM ; -init_completion (&msginfo->waitevent); - msg = (struct vmbus_channel_message_header *)msginfo->msg; msg->msgtype =CHANNELMSG_REQUESTOFFERS ;
@@ -629,14 +627,6 @@ int vmbus_request_offers(void) goto cleanup; } - t =wait_for_completion_timeout (&msginfo->waitevent,5 *HZ ); -if (t ==0 ) { - ret = -ETIMEDOUT ; - goto cleanup; - } - - - cleanup:kfree (msginfo);
drivers/infiniband/core/umem.c +5 -2
@@ -94,12 +94,15 @@ struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr,if (dmasync)dma_set_attr (DMA_ATTR_WRITE_BARRIER , &attrs); +if (!size) +return ERR_PTR (-EINVAL ); +/* * If the combination of the addr and size requested for this memory * region causes an integer overflow, return error. */ -if ((PAGE_ALIGN (addr + size) <= size) || - (PAGE_ALIGN (addr + size) <= addr)) +if (((addr + size) < addr) || +PAGE_ALIGN (addr + size) < (addr + size))return ERR_PTR (-EINVAL );if (!can_do_mlock ())
drivers/infiniband/hw/mlx4/qp.c +1 -2
@@ -1670,8 +1670,7 @@ static int build_lso_seg(struct mlx4_wqe_lso_seg *wqe, struct ib_send_wr *wr,memcpy (wqe->header, wr->wr.ud.header, wr->wr.ud.hlen); - *lso_hdr_sz =cpu_to_be32 ((wr->wr.ud.mss - wr->wr.ud.hlen) <<16 | - wr->wr.ud.hlen); + *lso_hdr_sz =cpu_to_be32 (wr->wr.ud.mss <<16 | wr->wr.ud.hlen); *lso_seg_len = halign;return 0 ; }
drivers/input/mouse/elantech.c +39 -12
92 lines not on this page · raw message
drivers/input/mouse/elantech.h +1 -0
@@ -136,6 +136,7 @@ struct elantech_data {unsigned int width;struct finger_pos mt[ETP_MAX_FINGERS ];unsigned char parity[256 ]; +void (*original_set_rate)(struct psmouse *psmouse,unsigned int rate); };#ifdef CONFIG_MOUSE_PS2_ELANTECH
drivers/lguest/core.c +1 -1
@@ -171,7 +171,7 @@ static void unmap_switcher(void)bool lguest_address_ok (const struct lguest *lg,unsigned long addr,unsigned long len) { -return (addr+len) /PAGE_SIZE < lg->pfn_limit && (addr+len >= addr); +return addr+len <= lg->pfn_limit *PAGE_SIZE && (addr+len >= addr); }/*
drivers/md/raid5.c +2 -1
@@ -1554,7 +1554,8 @@ static int resize_stripes(struct r5conf *conf, int newsize) conf->slab_cache = sc; conf->active_name =1 -conf->active_name; - conf->pool_size = newsize; +if (!err) + conf->pool_size = newsize;return err; }
drivers/memstick/core/mspro_block.c +2 -1
@@ -760,7 +760,7 @@ static int mspro_block_complete_req(struct memstick_dev *card, int error)if (error || (card->current_mrq.tpc ==MSPRO_CMD_STOP )) {if (msb->data_dir ==READ ) { -for (cnt =0 ; cnt < msb->current_seg; cnt++) +for (cnt =0 ; cnt < msb->current_seg; cnt++) { t_len += msb->req_sg[cnt].length / msb->page_size;
@@ -768,6 +768,7 @@ static int mspro_block_complete_req(struct memstick_dev *card, int error) t_len += msb->current_page -1 ; t_len *= msb->page_size; + } } }else t_len =blk_rq_bytes (msb->block_req);
drivers/mmc/core/core.c +1 -0
@@ -2424,6 +2424,7 @@ int mmc_pm_notify(struct notifier_block *notify_block,switch (mode) {case PM_HIBERNATION_PREPARE :case PM_SUSPEND_PREPARE : +case PM_RESTORE_PREPARE :spin_lock_irqsave (&host->lock, flags); host->rescan_disable =1 ;
drivers/mtd/ubi/cdev.c +1 -1
@@ -475,7 +475,7 @@ static long vol_cdev_ioctl(struct file *file, unsigned int cmd,/* Validate the request */ err = -EINVAL ;if (req.lnum <0 || req.lnum >= vol->reserved_pebs || - req.bytes <0 || req.lnum >= vol->usable_leb_size) + req.bytes <0 || req.bytes > vol->usable_leb_size)break ;if (req.dtype !=UBI_LONGTERM && req.dtype !=UBI_SHORTTERM && req.dtype !=UBI_UNKNOWN )
drivers/mtd/ubi/eba.c +2 -1
@@ -1261,7 +1261,8 @@ int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_scan_info *si)* during re-size. */ ubi_scan_move_to_list (sv, seb, &si->erase); - vol->eba_tbl[seb->lnum] = seb->pnum; + else + vol->eba_tbl[seb->lnum] = seb->pnum; } }
drivers/mtd/ubi/misc.c +2 -0
@@ -74,6 +74,8 @@ int ubi_check_volume(struct ubi_device *ubi, int vol_id)for (i =0 ; i < vol->used_ebs; i++) {int size; +cond_resched (); +if (i == vol->used_ebs -1 ) size = vol->last_eb_bytes;else
drivers/mtd/ubi/scan.c +1 -1
@@ -408,7 +408,7 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_scan_leb *seb, second_is_newer = !second_is_newer; }else {dbg_bld ("PEB %d CRC is OK" , pnum); - bitflips = !!err; + bitflips |= !!err; }vfree (buf);
drivers/mtd/ubi/wl.c +1 -1
@@ -665,7 +665,7 @@ static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk, int cancel) {int err, scrubbing =0 , torture =0 , protect =0 , erroneous =0 ; -int vol_id =-1 ,uninitialized_var (lnum ); +int vol_id =-1 , lnum =-1 ;struct ubi_wl_entry *e1, *e2;struct ubi_vid_hdr *vid_hdr;
drivers/net/ethernet/intel/e1000/e1000_main.c +9 -1
@@ -149,6 +149,11 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,static bool e1000_clean_jumbo_rx_irq (struct e1000_adapter *adapter,struct e1000_rx_ring *rx_ring,int *work_done,int work_to_do); +static void e1000_alloc_dummy_rx_buffers (struct e1000_adapter *adapter, +struct e1000_rx_ring *rx_ring, +int cleaned_count) +{ +}static void e1000_alloc_rx_buffers (struct e1000_adapter *adapter,struct e1000_rx_ring *rx_ring,int cleaned_count);
@@ -3322,8 +3327,11 @@ static int e1000_change_mtu(struct net_device *netdev, int new_mtu)msleep (1 );/* e1000_down has a dependency on max_frame_size */ hw->max_frame_size = max_frame; -if (netif_running (netdev)) +if (netif_running (netdev)) { +/* prevent buffers from being reallocated */ + adapter->alloc_rx_buf = e1000_alloc_dummy_rx_buffers;e1000_down (adapter); + }/* NOTE: netdev_alloc_skb reserves 16 bytes, and typically NET_IP_ALIGN * means we reserve 2 more, this pushes us to allocate from the next
drivers/net/phy/dp83640.c +1 -1
@@ -42,7 +42,7 @@#define PSF_TX 0x1000#define EXT_EVENT 1#define CAL_EVENT 7 -#define CAL_TRIGGER 7 +#define CAL_TRIGGER 1#define PER_TRIGGER 6/* phyter seems to miss the mark by 16 ns */
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +1 -0
@@ -367,6 +367,7 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(0x2001, 0x3307, rtl92cu_hal_cfg)}, /*D-Link-Cameo*/ {RTL_USB_DEVICE(0x2001, 0x3309, rtl92cu_hal_cfg)}, /*D-Link-Alpha*/ {RTL_USB_DEVICE(0x2001, 0x330a, rtl92cu_hal_cfg)}, /*D-Link-Alpha*/ + {RTL_USB_DEVICE(0x2001, 0x330d, rtl92cu_hal_cfg)}, /*D-Link DWA-131 */ {RTL_USB_DEVICE(0x2019, 0xab2b, rtl92cu_hal_cfg)}, /*Planex -Abocom*/ {RTL_USB_DEVICE(0x20f4, 0x624d, rtl92cu_hal_cfg)}, /*TRENDNet*/ {RTL_USB_DEVICE(0x2357, 0x0100, rtl92cu_hal_cfg)}, /*TP-Link WN8200ND*/
drivers/net/wireless/rtlwifi/usb.c +1 -1
@@ -117,7 +117,7 @@ static int _usbctrl_vendorreq_sync_read(struct usb_device *udev, u8 request, reqtype =REALTEK_USB_VENQT_READ ; status =usb_control_msg (udev, pipe, request, reqtype, value, index, - pdata, len,0 );/* max. timeout */ + pdata, len,1000 );if (status <0 ) pr_err("reg 0x%x, usbctrl_vendorreq TimeOut! status:0x%x value=0x%x\n",
drivers/net/xen-netback/xenbus.c +19 -14
@@ -27,6 +27,8 @@ struct backend_info {enum xenbus_state frontend_state;struct xenbus_watch hotplug_status_watch; u8 have_hotplug_status_watch:1; + +const char *hotplug_script; };static int connect_rings (struct backend_info *);
@@ -45,6 +47,7 @@ static int netback_remove(struct xenbus_device *dev)xenvif_disconnect (be->vif); be->vif =NULL ; } +kfree (be->hotplug_script);kfree (be);dev_set_drvdata (&dev->dev,NULL );return 0 ;
@@ -62,6 +65,7 @@ static int netback_probe(struct xenbus_device *dev,struct xenbus_transaction xbt;int err;int sg; +const char *script;struct backend_info *be =kzalloc (sizeof (struct backend_info ),GFP_KERNEL );if (!be) {
@@ -122,6 +126,15 @@ static int netback_probe(struct xenbus_device *dev, goto fail; } + script =xenbus_read (XBT_NIL , dev->nodename,"script" ,NULL ); +if (IS_ERR (script)) { + err =PTR_ERR (script); +xenbus_dev_fatal (dev, err,"reading script" ); + goto fail; + } + + be->hotplug_script = script; + err =xenbus_switch_state (dev, XenbusStateInitWait);if (err) goto fail;
@@ -150,22 +163,14 @@ static int netback_uevent(struct xenbus_device *xdev, struct kobj_uevent_env *env) {struct backend_info *be =dev_get_drvdata (&xdev->dev); -char *val; - val =xenbus_read (XBT_NIL , xdev->nodename,"script" ,NULL ); -if (IS_ERR (val)) { -int err =PTR_ERR (val); -xenbus_dev_fatal (xdev, err,"reading script" ); -return err; - }else { -if (add_uevent_var (env,"script=%s" , val)) { -kfree (val); -return -ENOMEM ; - } -kfree (val); - } +if (!be) +return 0 ; + +if (add_uevent_var (env,"script=%s" , be->hotplug_script)) +return -ENOMEM ; -if (!be || !be->vif) +if (!be->vif)return 0 ;return add_uevent_var (env,"vif=%s" , be->vif->dev->name);
drivers/of/base.c +36 -0
@@ -761,6 +761,42 @@ int of_property_read_string_index(struct device_node *np, const char *propname, }EXPORT_SYMBOL_GPL (of_property_read_string_index); +/** +* of_property_match_string() - Find string in a list and return index +* @np: pointer to node containing string list property +* @propname: string list property name +* @string: pointer to string to search for in string list +* +* This function searches a string list property and returns the index +* of a specific string value. +*/ +int of_property_match_string (struct device_node *np,const char *propname, +const char *string) +{ +struct property *prop =of_find_property (np, propname,NULL ); +size_t l; +int i; +const char *p, *end; + +if (!prop) +return -EINVAL ; +if (!prop->value) +return -ENODATA ; + + p = prop->value; + end = p + prop->length; + +for (i =0 ; p < end; i++, p += l) { + l =strlen (p) +1 ; +if (p + l > end) +return -EILSEQ ; +pr_debug ("comparing %s with %s\n" , string, p); +if (strcmp (string, p) ==0 ) +return i;/* Found it; return index */ + } +return -ENODATA ; +} +EXPORT_SYMBOL_GPL (of_property_match_string);/** * of_property_count_strings - Find and return the number of strings from a
drivers/platform/x86/compal-laptop.c +8 -1
@@ -1046,7 +1046,14 @@ static int __devinit compal_probe(struct platform_device *pdev)/* Power supply */ initialize_power_supply_data (data); -power_supply_register (&compal_device->dev, &data->psy); + err =power_supply_register (&compal_device->dev, &data->psy); +if (err <0 ) { +hwmon_device_unregister (data->hwmon_dev); +sysfs_remove_group (&pdev->dev.kobj, + &compal_attribute_group); +kfree (data); +return err; + }platform_set_drvdata (pdev, data);
drivers/scsi/3w-9xxx.c +13 -44
110 lines not on this page · raw message
drivers/scsi/3w-9xxx.h +0 -5
@@ -324,11 +324,6 @@ static twa_message_type twa_error_table[] = {#define TW_CURRENT_DRIVER_BUILD 0#define TW_CURRENT_DRIVER_BRANCH 0 -/* Phase defines */ -#define TW_PHASE_INITIAL 0 -#define TW_PHASE_SINGLE 1 -#define TW_PHASE_SGLIST 2 -/* Misc defines */ #define TW_9550SX_DRAIN_COMPLETED 0xFFFF#define TW_SECTOR_SIZE 512
drivers/scsi/3w-sas.c +10 -40
89 lines not on this page · raw message
drivers/scsi/3w-sas.h +0 -4
@@ -103,10 +103,6 @@ static char *twl_aen_severity_table[] =#define TW_CURRENT_DRIVER_BUILD 0#define TW_CURRENT_DRIVER_BRANCH 0 -/* Phase defines */ -#define TW_PHASE_INITIAL 0 -#define TW_PHASE_SGLIST 2 -/* Misc defines */ #define TW_SECTOR_SIZE 512#define TW_MAX_UNITS 32
drivers/scsi/3w-xxxx.c +6 -36
75 lines not on this page · raw message
drivers/scsi/3w-xxxx.h +0 -5
@@ -195,11 +195,6 @@ static unsigned char tw_sense_table[][4] =#define TW_AEN_SMART_FAIL 0x000F#define TW_AEN_SBUF_FAIL 0x0024 -/* Phase defines */ -#define TW_PHASE_INITIAL 0 -#define TW_PHASE_SINGLE 1 -#define TW_PHASE_SGLIST 2 -/* Misc defines */ #define TW_ALIGNMENT_6000 64/* 64 bytes */ #define TW_ALIGNMENT_7000 4/* 4 bytes */
drivers/scsi/megaraid/megaraid_sas_fusion.c +2 -2
@@ -1426,11 +1426,11 @@ megasas_build_ldio_fusion(struct megasas_instance *instance, fp_possible = io_info.fpOkForIo; } -/* Use smp_processor_id() for now until cmd->request->cpu is CPU +/* Use raw_smp_processor_id() for now until cmd->request->cpu is CPU id by default, not CPU group id, otherwise all MSI-X queues won't be utilized */ cmd->request_desc->SCSIIO.MSIxIndex = instance->msix_vectors ? -smp_processor_id () % instance->msix_vectors :0 ; +raw_smp_processor_id () % instance->msix_vectors :0 ;if (fp_possible) { megasas_set_pd_lba(io_request, scp->cmd_len, &io_info, scp,
drivers/scsi/sd.c +5 -14
@@ -1338,6 +1338,7 @@ static unsigned int sd_completed_bytes(struct scsi_cmnd *scmd) {u64 start_lba =blk_rq_pos (scmd->request);u64 end_lba =blk_rq_pos (scmd->request) + (scsi_bufflen (scmd) /512 ); +u64 factor = scmd->device->sector_size /512 ;u64 bad_lba;int info_valid;/*
@@ -1359,16 +1360,9 @@ static unsigned int sd_completed_bytes(struct scsi_cmnd *scmd)if (scsi_bufflen (scmd) <= scmd->device->sector_size)return 0 ; -if (scmd->device->sector_size <512 ) { -/* only legitimate sector_size here is 256 */ - start_lba <<=1 ; - end_lba <<=1 ; - }else { -/* be careful ... don't want any overflows */ -u64 factor = scmd->device->sector_size /512 ; -do_div (start_lba, factor); -do_div (end_lba, factor); - } +/* be careful ... don't want any overflows */ +do_div (start_lba, factor); +do_div (end_lba, factor);/* The bad lba was reported incorrectly, we have no idea where * the error is.
@@ -1895,8 +1889,7 @@ got_data:if (sector_size !=512 && sector_size !=1024 && sector_size !=2048 && - sector_size !=4096 && - sector_size !=256 ) { + sector_size !=4096 ) {sd_printk (KERN_NOTICE , sdkp,"Unsupported sector size %d.\n" , sector_size);/*
@@ -1945,8 +1938,6 @@ got_data: sdkp->capacity <<=2 ; else if (sector_size == 1024) sdkp->capacity <<= 1; - else if (sector_size == 256) - sdkp->capacity >>= 1; blk_queue_physical_block_size(sdp->request_queue, sdkp->physical_block_size);
drivers/scsi/sg.c +3 -0
@@ -1687,6 +1687,9 @@ static int sg_start_req(Sg_request *srp, unsigned char *cmd) md->from_user =0 ; } +if (unlikely (iov_count >UIO_MAXIOV )) +return -EINVAL ; +if (iov_count) {int len, size =sizeof (struct sg_iovec ) * iov_count;struct iovec *iov;
drivers/staging/hv/storvsc_drv.c +8 -7
@@ -940,23 +940,24 @@ static unsigned int copy_to_bounce_buffer(struct scatterlist *orig_sgl,if (bounce_sgl[j].length ==PAGE_SIZE ) {/* full..move to next entry */ kunmap_atomic ((void *)bounce_addr,KM_IRQ0 ); + bounce_addr =0 ; j++; + } -/* if we need to use another bounce buffer */ -if (srclen || i != orig_sgl_count -1 ) - bounce_addr = +/* if we need to use another bounce buffer */ +if (srclen && bounce_addr ==0 ) + bounce_addr = (unsigned long )kmap_atomic (sg_page ((&bounce_sgl[j])),KM_IRQ0 ); - }else if (srclen ==0 && i == orig_sgl_count -1 ) { -/* unmap the last bounce that is < PAGE_SIZE */ -kunmap_atomic ((void *)bounce_addr,KM_IRQ0 ); - } }kunmap_atomic ((void *)(src_addr - orig_sgl[i].offset),KM_IRQ0 ); } +if (bounce_addr) +kunmap_atomic ((void *)bounce_addr,KM_IRQ0 ); +local_irq_restore (flags);return total_copied;
drivers/staging/line6/pcm.c +25 -15
@@ -88,10 +88,13 @@ static DEVICE_ATTR(impulse_period, S_IWUSR | S_IRUGO, pcm_get_impulse_period,int line6_pcm_start (struct snd_line6_pcm *line6pcm,int channels) { -unsigned long flags_old = -__sync_fetch_and_or (&line6pcm->flags, channels); -unsigned long flags_new = flags_old | channels; -int err =0 ; +unsigned long flags_old, flags_new; +int err; + +do { + flags_old =ACCESS_ONCE (line6pcm->flags); + flags_new = flags_old | channels; + }while (cmpxchg (&line6pcm->flags, flags_old, flags_new) != flags_old);#if LINE6_BACKUP_MONITOR_SIGNAL if (!(line6pcm->line6->properties->capabilities &LINE6_BIT_HWMON )) {
@@ -133,10 +136,8 @@ int line6_pcm_start(struct snd_line6_pcm *line6pcm, int channels) line6pcm->prev_fsize =0 ; err =line6_submit_audio_in_all_urbs (line6pcm); -if (err <0 ) { -__sync_fetch_and_and (&line6pcm->flags, ~channels); -return err; - } +if (err <0 ) + goto fail; } if (((flags_old & MASK_PLAYBACK) == 0) &&
@@ -160,20 +161,29 @@ int line6_pcm_start(struct snd_line6_pcm *line6pcm, int channels) line6pcm->count_out =0 ; err =line6_submit_audio_out_all_urbs (line6pcm); -if (err <0 ) { -__sync_fetch_and_and (&line6pcm->flags, ~channels); -return err; - } +if (err <0 ) + goto fail; }return 0 ; + +fail: +do { + flags_old =ACCESS_ONCE (line6pcm->flags); + flags_new = flags_old & ~channels; + }while (cmpxchg (&line6pcm->flags, flags_old, flags_new) != flags_old); + +return err; }int line6_pcm_stop (struct snd_line6_pcm *line6pcm,int channels) { -unsigned long flags_old = -__sync_fetch_and_and (&line6pcm->flags, ~channels); -unsigned long flags_new = flags_old & ~channels; +unsigned long flags_old, flags_new; + +do { + flags_old =ACCESS_ONCE (line6pcm->flags); + flags_new = flags_old & ~channels; + }while (cmpxchg (&line6pcm->flags, flags_old, flags_new) != flags_old);if (((flags_old &MASK_CAPTURE ) !=0 ) && ((flags_new &MASK_CAPTURE ) ==0 )) {
drivers/staging/panel/panel.c +6 -7
@@ -274,11 +274,11 @@ static unsigned char lcd_bits[LCD_PORTS][LCD_BITS][BIT_STATES];* LCD types */ #define LCD_TYPE_NONE 0 -#define LCD_TYPE_OLD 1 -#define LCD_TYPE_KS0074 2 -#define LCD_TYPE_HANTRONIX 3 -#define LCD_TYPE_NEXCOM 4 -#define LCD_TYPE_CUSTOM 5 +#define LCD_TYPE_CUSTOM 1 +#define LCD_TYPE_OLD 2 +#define LCD_TYPE_KS0074 3 +#define LCD_TYPE_HANTRONIX 4 +#define LCD_TYPE_NEXCOM 5/* * keypad types
@@ -456,8 +456,7 @@ MODULE_PARM_DESC(keypad_enabled, "Deprecated option, use keypad_type instead");static int lcd_type =-1 ;module_param (lcd_type, int,0000 );MODULE_PARM_DESC (lcd_type, -"LCD type: 0=none, 1=old //, 2=serial ks0074, " -"3=hantronix //, 4=nexcom //, 5=compiled-in" ); +"LCD type: 0=none, 1=compiled-in, 2=old, 3=serial ks0074, 4=hantronix, 5=nexcom" );static int lcd_proto =-1 ;module_param (lcd_proto, int,0000 );
drivers/target/target_core_pscsi.c +3 -0
@@ -569,6 +569,7 @@ static struct se_device *pscsi_create_virtdevice( " pdv_host_id: %d\n", pdv->pdv_host_id);return ERR_PTR (-EINVAL ); } + pdv->pdv_lld_host = sh; } }else {if (phv->phv_mode ==PHV_VIRUTAL_HOST_ID ) {
@@ -655,6 +656,8 @@ static void pscsi_free_device(void *p)if ((phv->phv_mode ==PHV_LLD_SCSI_HOST_NO ) && (phv->phv_lld_host !=NULL ))scsi_host_put (phv->phv_lld_host); +else if (pdv->pdv_lld_host) +scsi_host_put (pdv->pdv_lld_host);if ((sd->type ==TYPE_DISK ) || (sd->type ==TYPE_ROM ))scsi_device_put (sd);
drivers/target/target_core_pscsi.h +1 -0
@@ -46,6 +46,7 @@ struct pscsi_dev_virt {struct block_device *pdv_bd;struct scsi_device *pdv_sd;struct se_hba *pdv_se_hba; +struct Scsi_Host *pdv_lld_host; }____cacheline_aligned ; typedef enum phv_modes {
drivers/tty/hvc/hvc_xen.c +1 -1
@@ -167,7 +167,7 @@ static int __init xen_hvc_init(void)if (xen_initial_domain ()) { ops = &dom0_hvc_ops; - xencons_irq =bind_virq_to_irq (VIRQ_CONSOLE ,0 ); + xencons_irq =bind_virq_to_irq (VIRQ_CONSOLE ,0 , false); }else {if (!xen_start_info->console.domU.evtchn)return -ENODEV ;
drivers/tty/serial/of_serial.c +0 -1
@@ -192,7 +192,6 @@ static struct of_device_id __devinitdata of_platform_serial_table[] = { { .compatible = "ibm,qpace-nwp-serial", .data = (void *)PORT_NWPSERIAL, }, #endif - { .type = "serial", .data = (void *)PORT_UNKNOWN, }, { /* end of list */ }, };
drivers/tty/serial/uartlite.c +6 -5
@@ -573,7 +573,8 @@ MODULE_DEVICE_TABLE(of, ulite_of_match);static int __devinit ulite_probe (struct platform_device *pdev) { -struct resource *res, *res2; +struct resource *res; +int irq;int id = pdev->id;#ifdef CONFIG_OF const __be32 *prop;
@@ -587,11 +588,11 @@ static int __devinit ulite_probe(struct platform_device *pdev)if (!res)return -ENODEV ; - res2 =platform_get_resource (pdev,IORESOURCE_IRQ ,0 ); -if (!res2) -return -ENODEV ; + irq =platform_get_irq (pdev,0 ); +if (irq <=0 ) +return -ENXIO ; -return ulite_assign (&pdev->dev, id, res->start, res2->start); +return ulite_assign (&pdev->dev, id, res->start, irq); } static int __devexit ulite_remove(struct platform_device *pdev)
drivers/tty/serial/xilinx_uartps.c +6 -6
@@ -941,9 +941,9 @@ static struct uart_driver xuartps_uart_driver = {**/ static int __devinit xuartps_probe (struct platform_device *pdev) { -int rc; +int rc, irq;struct uart_port *port; -struct resource *res, *res2; +struct resource *res;int clk =0 ;#ifdef CONFIG_OF
@@ -964,9 +964,9 @@ static int __devinit xuartps_probe(struct platform_device *pdev)if (!res)return -ENODEV ; - res2 =platform_get_resource (pdev,IORESOURCE_IRQ ,0 ); -if (!res2) -return -ENODEV ; + irq =platform_get_irq (pdev,0 ); +if (irq <=0 ) +return -ENXIO ;/* Initialize the port structure */ port =xuartps_get_port ();
@@ -980,7 +980,7 @@ static int __devinit xuartps_probe(struct platform_device *pdev)* and triggers invocation of the config_port() entry point. */ port->mapbase = res->start; - port->irq = res2->start; + port->irq = irq; port->dev = &pdev->dev; port->uartclk = clk;dev_set_drvdata (&pdev->dev, port);
drivers/usb/class/cdc-acm.c +6 -1
@@ -947,11 +947,16 @@ static int acm_probe(struct usb_interface *intf, }while (buflen >0 ) { + elength = buffer[0 ]; +if (!elength) { +dev_err (&intf->dev,"skipping garbage byte\n" ); + elength =1 ; + goto next_desc; + }if (buffer[1 ] !=USB_DT_CS_INTERFACE ) {dev_err (&intf->dev,"skipping garbage\n" ); goto next_desc; } - elength = buffer[0 ];switch (buffer[2 ]) {case USB_CDC_UNION_TYPE :/* we've found it */
drivers/usb/class/cdc-wdm.c +7 -5
@@ -224,7 +224,7 @@ static void wdm_int_callback(struct urb *urb)case USB_CDC_NOTIFY_RESPONSE_AVAILABLE :dev_dbg (&desc->intf->dev,"NOTIFY_RESPONSE_AVAILABLE received: index %d len %d" , - dr->wIndex, dr->wLength); +le16_to_cpu (dr->wIndex),le16_to_cpu (dr->wLength));break ;case USB_CDC_NOTIFY_NETWORK_CONNECTION :
@@ -237,14 +237,16 @@ static void wdm_int_callback(struct urb *urb)clear_bit (WDM_POLL_RUNNING , &desc->flags);dev_err (&desc->intf->dev,"unknown notification %d received: index %d len %d\n" , - dr->bNotificationType, dr->wIndex, dr->wLength); + dr->bNotificationType, +le16_to_cpu (dr->wIndex), +le16_to_cpu (dr->wLength)); goto exit; } req->bRequestType = (USB_DIR_IN |USB_TYPE_CLASS |USB_RECIP_INTERFACE ); req->bRequest =USB_CDC_GET_ENCAPSULATED_RESPONSE ; req->wValue =0 ; - req->wIndex = desc->inum; + req->wIndex = desc->inum;/* already converted */ req->wLength =cpu_to_le16 (desc->wMaxCommand); usb_fill_control_urb(
@@ -401,7 +403,7 @@ static ssize_t wdm_write USB_RECIP_INTERFACE); req->bRequest =USB_CDC_SEND_ENCAPSULATED_COMMAND ; req->wValue =0 ; - req->wIndex = desc->inum; + req->wIndex = desc->inum;/* already converted */ req->wLength =cpu_to_le16 (count);set_bit (WDM_IN_USE , &desc->flags); desc->outbuf = buf;
@@ -414,7 +416,7 @@ static ssize_t wdm_writedev_err (&desc->intf->dev,"Tx URB error: %d\n" , rv); }else {dev_dbg (&desc->intf->dev,"Tx URB has been submitted index=%d" , - req->wIndex); +le16_to_cpu (req->wIndex)); } out:usb_autopm_put_interface (desc->intf);
drivers/usb/host/xhci-ring.c +6 -1
@@ -2060,8 +2060,13 @@ static int process_isoc_td(struct xhci_hcd *xhci, struct xhci_td *td,break ;case COMP_DEV_ERR :case COMP_STALL : + frame->status = -EPROTO ; + skip_td = true; +break ;case COMP_TX_ERR : frame->status = -EPROTO ; +if (event_trb != td->last_trb) +return 0 ; skip_td = true;break ;case COMP_STOP :
@@ -2646,7 +2651,7 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd)xhci_halt (xhci); hw_died:spin_unlock (&xhci->lock); -return -ESHUTDOWN ; +return IRQ_HANDLED ; }/*
drivers/usb/host/xhci.h +1 -1
@@ -1231,7 +1231,7 @@ union xhci_trb {* since the command ring is 64-byte aligned. * It must also be greater than 16. */ -#define TRBS_PER_SEGMENT 64 +#define TRBS_PER_SEGMENT 256/* Allow two commands + a link TRB, along with any reserved command TRBs */ #define MAX_RSVD_CMD_TRBS (TRBS_PER_SEGMENT - 3)#define SEGMENT_SIZE (TRBS_PER_SEGMENT*16)
drivers/usb/musb/musb_core.c +26 -18
85 lines not on this page · raw message
drivers/usb/serial/cp210x.c +2 -0
@@ -133,6 +133,8 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x88A5) }, /* Planet Innovation Ingeni ZigBee USB Device */ { USB_DEVICE(0x10C4, 0x8946) }, /* Ketra N1 Wireless Interface */ { USB_DEVICE(0x10C4, 0x8977) }, /* CEL MeshWorks DevKit Device */ + { USB_DEVICE(0x10C4, 0x8998) }, /* KCF Technologies PRN */ + { USB_DEVICE(0x10C4, 0x8A2A) }, /* HubZ dual ZigBee and Z-Wave dongle */ { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA61) }, /* Silicon Labs factory default */ { USB_DEVICE(0x10C4, 0xEA70) }, /* Silicon Labs factory default */
drivers/usb/serial/ftdi_sio.c +1 -0
@@ -723,6 +723,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(XSENS_VID, XSENS_AWINDA_DONGLE_PID) }, { USB_DEVICE(XSENS_VID, XSENS_AWINDA_STATION_PID) }, { USB_DEVICE(XSENS_VID, XSENS_CONVERTER_PID) }, + { USB_DEVICE(XSENS_VID, XSENS_MTDEVBOARD_PID) }, { USB_DEVICE(XSENS_VID, XSENS_MTW_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OMNI1509) }, { USB_DEVICE(MOBILITY_VID, MOBILITY_USB_SERIAL_PID) },
drivers/usb/serial/ftdi_sio_ids.h +1 -0
@@ -155,6 +155,7 @@#define XSENS_AWINDA_STATION_PID 0x0101#define XSENS_AWINDA_DONGLE_PID 0x0102#define XSENS_MTW_PID 0x0200/* Xsens MTw */ +#define XSENS_MTDEVBOARD_PID 0x0300/* Motion Tracker Development Board */ #define XSENS_CONVERTER_PID 0xD00D/* Xsens USB-serial converter */ /* Xsens devices using FTDI VID */
drivers/usb/serial/pl2303.c +0 -1
@@ -67,7 +67,6 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(DCU10_VENDOR_ID, DCU10_PRODUCT_ID) }, { USB_DEVICE(SITECOM_VENDOR_ID, SITECOM_PRODUCT_ID) }, { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_ID) }, - { USB_DEVICE(SAMSUNG_VENDOR_ID, SAMSUNG_PRODUCT_ID) }, { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_SX1) }, { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_X65) }, { USB_DEVICE(SIEMENS_VENDOR_ID, SIEMENS_PRODUCT_ID_X75) },
drivers/usb/serial/pl2303.h +0 -4
@@ -62,10 +62,6 @@#define ALCATEL_VENDOR_ID 0x11f7#define ALCATEL_PRODUCT_ID 0x02df -/* Samsung I330 phone cradle */ -#define SAMSUNG_VENDOR_ID 0x04e8 -#define SAMSUNG_PRODUCT_ID 0x8001 -#define SIEMENS_VENDOR_ID 0x11f5#define SIEMENS_PRODUCT_ID_SX1 0x0001#define SIEMENS_PRODUCT_ID_X65 0x0003
drivers/usb/storage/unusual_devs.h +7 -0
@@ -752,6 +752,13 @@ UNUSUAL_DEV( 0x059f, 0x0643, 0x0000, 0x0000, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_GO_SLOW ), +/* Reported by Christian Schaller <[email protected]> */ +UNUSUAL_DEV (0x059f ,0x0651 ,0x0000 ,0x0000 , +"LaCie" , +"External HDD" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , + US_FL_NO_WP_DETECT ), +/* Submitted by Joel Bourquard <[email protected]> * Some versions of this device need the SubClass and Protocol overrides * while others don't.
drivers/xen/events.c +8 -4
@@ -895,7 +895,7 @@ static int find_virq(unsigned int virq, unsigned int cpu)return rc; } -int bind_virq_to_irq (unsigned int virq,unsigned int cpu) +int bind_virq_to_irq (unsigned int virq,unsigned int cpu,bool percpu) {struct evtchn_bind_virq bind_virq;int evtchn, irq, ret;
@@ -909,8 +909,12 @@ int bind_virq_to_irq(unsigned int virq, unsigned int cpu)if (irq ==-1 ) goto out; -irq_set_chip_and_handler_name (irq, &xen_percpu_chip, - handle_percpu_irq,"virq" ); +if (percpu) +irq_set_chip_and_handler_name (irq, &xen_percpu_chip, + handle_percpu_irq,"virq" ); +else +irq_set_chip_and_handler_name (irq, &xen_dynamic_chip, + handle_edge_irq,"virq" ); bind_virq.virq = virq; bind_virq.vcpu = cpu;
@@ -1023,7 +1027,7 @@ int bind_virq_to_irqhandler(unsigned int virq, unsigned int cpu, {int irq, retval; - irq =bind_virq_to_irq (virq, cpu); + irq =bind_virq_to_irq (virq, cpu, irqflags &IRQF_PERCPU );if (irq <0 )return irq; retval =request_irq (irq, handler, irqflags, devname, dev_id);
drivers/xen/xen-pciback/conf_space.c +3 -3
@@ -16,8 +16,8 @@#include "conf_space.h" #include "conf_space_quirks.h" -bool permissive; -module_param (permissive, bool,0644 ); +bool xen_pcibk_permissive; +module_param_named (permissive, xen_pcibk_permissive, bool,0644 );/* This is where xen_pcibk_read_config_byte, xen_pcibk_read_config_word, * xen_pcibk_write_config_word, and xen_pcibk_write_config_byte are created. */
@@ -262,7 +262,7 @@ int xen_pcibk_config_write(struct pci_dev *dev, int offset, int size, u32 value)* This means that some fields may still be read-only because * they have entries in the config_field list that intercept * the write and do nothing. */ -if (dev_data->permissive || permissive) { +if (dev_data->permissive || xen_pcibk_permissive) {switch (size) {case 1 : err = pci_write_config_byte(dev, offset,
drivers/xen/xen-pciback/conf_space.h +1 -1
@@ -64,7 +64,7 @@ struct config_field_entry {void *data; }; -extern bool permissive; +extern bool xen_pcibk_permissive;#define OFFSET (cfg_entry) ((cfg_entry)->base_offset+(cfg_entry)->field->offset)
drivers/xen/xen-pciback/conf_space_header.c +1 -1
@@ -105,7 +105,7 @@ static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) cmd->val = value; -if (!permissive && (!dev_data || !dev_data->permissive)) +if (!xen_pcibk_permissive && (!dev_data || !dev_data->permissive))return 0 ;/* Only allow the guest to control certain bits. */
firmware/ihex2fw.c +1 -0
@@ -86,6 +86,7 @@ int main(int argc, char **argv)case 'j' : include_jump =1 ;break ; +default :return usage (); } }
fs/binfmt_elf.c +8 -1
@@ -746,6 +746,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) i < loc->elf_ex.e_phnum; i++, elf_ppnt++) {int elf_prot =0 , elf_flags;unsigned long k, vaddr; +unsigned long total_size =0 ;if (elf_ppnt->p_type !=PT_LOAD )continue ;
@@ -809,10 +810,16 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)#else load_bias =ELF_PAGESTART (ELF_ET_DYN_BASE - vaddr);#endif + total_size =total_mapping_size (elf_phdata, + loc->elf_ex.e_phnum); +if (!total_size) { + retval = -EINVAL ; + goto out_free_dentry; + } } error =elf_map (bprm->file, load_bias + vaddr, elf_ppnt, - elf_prot, elf_flags,0 ); + elf_prot, elf_flags, total_size);if (BAD_ADDR (error)) {send_sig (SIGKILL , current,0 ); retval = IS_ERR((void *)error) ?
fs/btrfs/extent-tree.c +2 -3
@@ -5678,12 +5678,11 @@ static int __btrfs_free_reserved_extent(struct btrfs_root *root,return -ENOSPC ; } -if (btrfs_test_opt (root,DISCARD )) - ret =btrfs_discard_extent (root, start, len,NULL ); -if (pin)pin_down_extent (root, cache, start, len,1 );else { +if (btrfs_test_opt (root,DISCARD )) + ret =btrfs_discard_extent (root, start, len,NULL );btrfs_add_free_space (cache, start, len);btrfs_update_reserved_bytes (cache, len,RESERVE_FREE ); }
fs/btrfs/ioctl.c +5 -0
@@ -2263,6 +2263,11 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,if (off + len == src->i_size) len =ALIGN (src->i_size, bs) - off; +if (len ==0 ) { + ret =0 ; + goto out_unlock; + } +/* verify the end result is block aligned */ if (!IS_ALIGNED (off, bs) || !IS_ALIGNED (off + len, bs) || !IS_ALIGNED (destoff, bs))
fs/btrfs/xattr.c +37 -13
91 lines not on this page · raw message
fs/pipe.c +32 -23
55 lines not on this page · raw message
mm/slub.c +14 -31
45 lines not on this page · raw message
net/netfilter/ipvs/ip_vs_ctl.c +33 -22
55 lines not on this page · raw message
net/sctp/socket.c +32 -11
43 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.