Linux 2.6.28.8
Subsystems (71)
I'm announcing the release of the 2.6.28.8 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.28 kernel series are strongly encouraged to upgrade.
I'll also be replying to this message with a copy of the patch between 2.6.28.7 and 2.6.28.8
The updated 2.6.28.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.28.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.28.y.git;a=summarythanks,
greg "turns out, no one likes witty release notices" k-h
------------
Makefile | 2 arch/arm/mach-rpc/riscpc.c | 6 + arch/ia64/include/asm/mmzone.h | 4 arch/ia64/mm/numa.c | 4 arch/mips/include/asm/compat.h | 7 + arch/mips/include/asm/seccomp.h | 1 arch/powerpc/include/asm/compat.h | 5 + arch/powerpc/include/asm/seccomp.h | 4 arch/powerpc/kernel/align.c | 29 ++--- arch/sparc/include/asm/compat.h | 5 + arch/sparc/include/asm/seccomp.h | 6 - arch/sparc64/kernel/chmc.c | 1 arch/sparc64/kernel/traps.c | 17 +++ arch/x86/ia32/ia32entry.S | 8 + arch/x86/include/asm/math_emu.h | 29 +---- arch/x86/include/asm/mmzone_32.h | 2 arch/x86/include/asm/mmzone_64.h | 2 arch/x86/include/asm/paravirt.h | 17 --- arch/x86/include/asm/processor.h | 2 arch/x86/include/asm/seccomp_32.h | 6 - arch/x86/include/asm/seccomp_64.h | 8 - arch/x86/include/asm/traps.h | 4 arch/x86/kernel/cpu/mtrr/main.c | 3 arch/x86/kernel/hpet.c | 2 arch/x86/kernel/paravirt.c | 24 ++++ arch/x86/kernel/ptrace.c | 2 arch/x86/kernel/reboot.c | 8 + arch/x86/kernel/traps.c | 15 +-- arch/x86/kernel/vmiclock_32.c | 5 - arch/x86/math-emu/fpu_entry.c | 6 - arch/x86/math-emu/fpu_proto.h | 4 arch/x86/math-emu/fpu_system.h | 16 +-- arch/x86/math-emu/get_address.c | 69 ++++++------- arch/x86/mm/numa_64.c | 2 arch/x86/oprofile/op_model_ppro.c | 14 ++ arch/x86/xen/enlighten.c | 3 crypto/algapi.c | 6 + drivers/acpi/ec.c | 5 - drivers/acpi/power.c | 2 drivers/ata/libata-core.c | 10 +- drivers/ata/libata-eh.c | 5 - drivers/atm/fore200e.c | 4 drivers/block/aoe/aoe.h | 1 drivers/block/aoe/aoenet.c | 2 drivers/block/xen-blkfront.c | 30 +++--- drivers/char/agp/intel-agp.c | 8 + drivers/hid/hid-core.c | 12 +- drivers/hwmon/f71882fg.c | 2 drivers/hwmon/it87.c | 8 - drivers/i2c/busses/i2c-acorn.c | 3 drivers/i2c/busses/i2c-amd8111.c | 4 drivers/i2c/busses/i2c-pxa.c | 2 drivers/i2c/i2c-core.c | 3 drivers/ide/ide-iops.c | 2 drivers/infiniband/hw/nes/nes_cm.c | 37 ++++++- drivers/infiniband/hw/nes/nes_verbs.c | 2 drivers/infiniband/hw/nes/nes_verbs.h | 1 drivers/md/raid1.c | 3 drivers/md/raid10.c | 19 ++- drivers/media/common/tuners/tda8290.c | 3 drivers/media/dvb/frontends/s5h1409.c | 7 - drivers/media/video/ivtv/ivtv-ioctl.c | 24 ++-- drivers/media/video/saa7127.c | 52 ++++++---- drivers/misc/acer-wmi.c | 2 drivers/misc/hpilo.c | 1 drivers/mmc/card/block.c | 2 drivers/mmc/card/mmc_test.c | 2 drivers/mmc/core/mmc_ops.c | 15 +-- drivers/mmc/host/s3cmci.c | 5 - drivers/mmc/host/sdhci-pci.c | 1 drivers/mmc/host/sdhci.c | 9 + drivers/mmc/host/sdhci.h | 3 drivers/mtd/devices/mtd_dataflash.c | 3 drivers/net/usb/asix.c | 8 + drivers/net/usb/cdc_ether.c | 5 + drivers/net/usb/zaurus.c | 5 + drivers/net/wireless/rtl8187_dev.c | 12 ++ drivers/pci/pcie/aer/aerdrv_core.c | 48 +++++++-- drivers/pci/pcie/portdrv_pci.c | 3 drivers/pci/quirks.c | 29 +++++ drivers/scsi/hptiop.c | 1 drivers/scsi/sd.c | 7 + drivers/serial/8250.c | 15 +++ drivers/serial/8250_pci.c | 36 +++++++ drivers/serial/jsm/jsm_driver.c | 3 drivers/usb/class/cdc-acm.c | 2 drivers/usb/core/message.c | 11 +- drivers/usb/host/ehci-hcd.c | 2 drivers/usb/host/ehci-mem.c | 1 drivers/usb/host/ehci-sched.c | 56 +++++++++-- drivers/usb/host/ehci.h | 6 + drivers/usb/serial/option.c | 5 + drivers/usb/storage/unusual_devs.h | 4 drivers/watchdog/ks8695_wdt.c | 1 drivers/watchdog/rc32434_wdt.c | 168 +++++++++++++--------------------- fs/cifs/CHANGES | 2 fs/cifs/sess.c | 4 fs/compat_ioctl.c | 2 fs/ext4/ext4.h | 2 fs/ext4/ialloc.c | 7 + fs/ext4/inode.c | 36 ++++++- fs/ext4/mballoc.c | 32 +++--- fs/ext4/migrate.c | 8 - fs/ext4/super.c | 12 +- fs/fs-writeback.c | 9 + fs/inode.c | 7 + fs/inotify.c | 2 fs/jbd2/journal.c | 17 ++- fs/jbd2/transaction.c | 42 ++++++-- fs/jffs2/readinode.c | 42 ++++++-- fs/ocfs2/journal.h | 6 - fs/pipe.c | 8 - fs/proc/page.c | 4 fs/seq_file.c | 36 ++++++- fs/timerfd.c | 12 +- include/drm/i915_drm.h | 2 include/linux/fs.h | 18 ++- include/linux/jbd2.h | 3 include/linux/mm.h | 19 +++ include/linux/mmzone.h | 2 include/linux/pci_ids.h | 4 include/linux/seq_file.h | 1 include/linux/serial_core.h | 1 include/linux/skbuff.h | 9 - include/linux/timerfd.h | 16 ++- include/net/sock.h | 1 kernel/fork.c | 11 +- kernel/seccomp.c | 7 - kernel/tsacct.c | 6 + mm/page_alloc.c | 27 +++++ mm/vmalloc.c | 12 ++ net/core/skbuff.c | 8 - net/core/sock.c | 3 scripts/mod/file2alias.c | 1 security/selinux/netlabel.c | 9 + sound/core/oss/rate.c | 2 sound/pci/aw2/aw2-alsa.c | 2 sound/pci/hda/patch_realtek.c | 1 sound/pci/hda/patch_sigmatel.c | 2 sound/pci/oxygen/virtuoso.c | 17 --- sound/usb/usbaudio.c | 20 ++-- sound/usb/usbmidi.c | 1 142 files changed, 1015 insertions(+), 550 deletions(-)
Adam Lackorzynski (1):
jsm: additional device support
Adrian Hunter (1):
mmc: fix data timeout for SEND_EXT_CSD
Alan Stern (2):
USB: usb_get_string should check the descriptor type
USB: usb-storage: add IGNORE_RESIDUE flag for Genesys Logic adapters
Alex Chiang (1):
PCIe: portdrv: call pci_disable_device during remove
Alexander Duyck (1):
PCI: Add PCI quirk to disable L0s ASPM state for 82575 and 82598
Alexey Dobriyan (1):
WATCHDOG: ks8695_wdt.c: 'CLOCK_TICK_RATE' undeclared
Alok N Kataria (1):
x86, vmi: TSC going backwards check in vmi clocksource
Andres Salomon (1):
sdhci: Add NO_BUSY_IRQ quirk for Marvell CAFE host chip
Andrew Patterson (1):
PCI: Enable PCIe AER only after checking firmware support
Aneesh Kumar K.V (3):
ext4: Fix lockdep warning
ext4: Initialize preallocation list_head's properly
ext4: Implement range_cyclic in ext4_da_writepages instead of write_cache_pages
Anssi Hannula (2):
ALSA: aw2: do not grab every saa7146 based device
HID: move tmff and zpff devices from ignore_list to blacklist
Ben Dooks (2):
mmc: s3cmci: fix s3c2410_dma_config() arguments.
sdhci: Add quirk for controllers with no end-of-busy IRQ
Bill Nottingham (1):
vt: Declare PIO_CMAP/GIO_CMAP as compatbile ioctls.
Bjørn Mork (1):
cdc_ether: add usb id for Ericsson F3507g
Clemens Ladisch (2):
sound: virtuoso: revert "do not overwrite EEPROM on Xonar D2/D2X"
sound: usb-audio: fix uninitialized variable with M-Audio MIDI interfaces
Dan Carpenter (1):
ext4: Fix NULL dereference in ext4_ext_migrate()'s error handling
David Altobelli (1):
hpilo: new pci device
David S. Miller (3):
net: Kill skb_truesize_check(), it only catches false-positives.
sparc64: Fix crashes in jbusmc_print_dimm()
sparc64: Fix DAX handling via userspace access from kernel.
Davide Libenzi (1):
timerfd: add flags check
Devin Heitmueller (1):
DVB: s5h1409: Perform s5h1409 soft reset after tuning
Dmitriy Taychenachev (2):
USB: cdc-acm: add usb id for motomagx phones
zaurus: add usb id for motomagx phones
Ed L. Cashin (1):
aoe: ignore vendor extension AoE responses
Eric Anholt (1):
drm/i915: Add missing userland definitions for gem init/execbuffer.
Eric Biederman (1):
seq_file: properly cope with pread
Eugene Teo (1):
net: amend the fix for SO_BSDCOMPAT gsopt infoleak
Faisal Latif (1):
RDMA/nes: Don't allow userspace QPs to use STag zero
Greg Kroah-Hartman (2):
asix: new device ids
Linux 2.6.28.8
Hans Verkuil (1):
V4L: ivtv: fix decoder crash regression
Heiko Carstens (1):
Fix fixpoint divide exception in acct_update_integrals
Helge Bahmann (1):
proc: fix PG_locked reporting in /proc/kpageflags
Helmut Schaa (1):
sdhci: fix led naming
Henrique de Moraes Holschuh (2):
ACPI: fix broken usage of name.ascii
ACPI: fix broken usage of acpi_ut_get_node_name()
Herbert Xu (1):
crypto: api - Fix algorithm test race that broke aead initialisation
HighPoint Linux Team (1):
SCSI: hptiop: Add new PCI device ID
Ingo Molnar (2):
inotify: fix GFP_KERNEL related deadlock
x86: tone down mtrr_trim_uncached_memory() warning
Jan Kara (4):
jbd2: Fix return value of jbd2_journal_start_commit()
Revert "ext4: wait on all pending commits in ext4_sync_fs()"
jbd2: Avoid possible NULL dereference in jbd2_journal_begin_ordered_truncate()
ext4: Fix deadlock in ext4_write_begin() and ext4_da_write_begin()
Jean Delvare (2):
hwmon: (f71882fg) Hide misleading error message
hwmon: (it87) Properly decode -128 degrees C temperature
Jens Axboe (1):
xen/blkfront: use blk_rq_map_sg to generate ring entries
Jeremy Fitzhardinge (2):
xen: disable interrupts early, as start_kernel expects x86/paravirt: make arch_flush_lazy_mmu/cpu disable preemption
Jesse Sung (1):
USB: option: add BenQ 3g modem information
Jiri Slaby (1):
HID: fix bus endianity in file2alias
John Stultz (1):
x86, hpet: fix for LS21 + HPET = boot hang
Joris van Rantwijk (1):
ALSA: usb-audio - Workaround for misdetected sample rate with CM6207
KAMEZAWA Hiroyuki (2):
mm: clean up for early_pfn_to_nid()
mm: fix memmap init for handling memory hole
Karsten Wiese (1):
USB: EHCI: slow down ITD reuse
Larry Finger (1):
rtl8187: New USB ID's for RTL8187L
Leann Ogasawara (1):
x86: add Dell XPS710 reboot quirk
Lubomir Rintel (1):
intel-agp: fix a panic with 1M of shared memory, no GTT entries
Luke Yelavich (1):
ALSA: hda - add another MacBook Pro 3,1 SSID
Martin Dauskardt (1):
V4L: saa7127: fix broken S-Video with saa7129
Mauro Carvalho Chehab (1):
8250: fix boot hang with serial console when using with Serial Over Lan port
Meelis Roos (1):
fore200: fix oops on failed firmware load
Michael Krufky (1):
V4L: tda8290: fix TDA8290 + TDA18271 initialization
Michael Neuling (1):
powerpc: Fix load/store float double alignment handler
Michael Spang (1):
acer-wmi: fix regression in backlight detection
NeilBrown (3):
md: avoid races when stopping resync.
md/raid10: Don't call bitmap_cond_end_sync when we are doing recovery. md/raid10: Don't skip more than 1 bitmap-chunk at a time during recovery.
Nick Piggin (2):
mm: vmap fix overflow
fs: new inode i_state corruption fix
Oleg Nesterov (2):
copy_process: fix CLONE_PARENT && parent_exec_id interaction
pipe_rdwr_fasync: fix the error handling to prevent the leak/crash
Paul Moore (2):
selinux: Fix a panic in selinux_netlbl_inode_permission()
selinux: Fix the NetLabel glue code for setsockopt()
Paul Turner (1):
vfs: separate FMODE_PREAD/FMODE_PWRITE into separate flags
Phil Sutter (2):
WATCHDOG: rc32434_wdt: fix watchdog driver
WATCHDOG: rc32434_wdt: fix sections
Rabin Vincent (1):
mmc_test: fix basic read test
Ralf Baechle (1):
MIPS: compat: Implement is_compat_task.
Robert Hancock (1):
libata: Don't trust current capacity values in identify words 57-58
Roel Kluin (2):
i2c: Timeouts reach -1
i2c: Fix misplaced parentheses
Roland McGrath (3):
x86-64: fix int $0x80 -ENOSYS return
x86-64: seccomp: fix 32/64 syscall hole
x86-64: syscall-audit: fix 32/64 syscall holeRussell King (1):
ARM: Add i2c_board_info for RiscPC PCF8583
Sergei Shtylyov (1):
ide-iops: fix odd-length ATAPI PIO transfers
Steve Chen (1):
ALSA: fix excessive background noise introduced by OSS emulation rate shrink
Steve French (1):
Fix oops in cifs_strfromUCS_le mounting to servers which do not specify their OS
Takashi Iwai (2):
ALSA: usb-audio - Fix non-continuous rate detection
ALSA: hda - Fix digital mic on dell-m4-1 and dell-m4-3
Tejun Heo (5):
SCSI: sd: revive sd_index_lock
vmalloc: call flush_cache_vunmap() from unmap_kernel_range()
libata: make sure port is thawed when skipping resets
x86: math_emu info cleanup
x86: fix math_emu register frame access
Theodore Ts'o (1):
ext4: Add fallback for find_group_flex
Thomas Gleixner (1):
JFFS2: fix mount crash caused by removed nodes
Tim Blechmann (1):
x86: oprofile: don't set counter width from cpuid on Core2
Vegard Nossum (1):
mm: fix lazy vmap purging (use-after-free error)
Wei Yongjun (1):
ext4: Fix to read empty directory blocks correctly in 64k
Will Newton (1):
mtd_dataflash: fix probing of AT45DB321C chips.
Wu Fengguang (1):
proc: fix kflags to uflags copying in /proc/kpageflags
Yauhen Kharuzhy (1):
s3cmci: Fix hangup in do_pio_write()
Yi Li (1):
MMC: fix bug - SDHC card capacity not correct
Yinghai Lu (1):
PCI quirk: enable MSI on 8132
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 28 -EXTRAVERSION = .7 +EXTRAVERSION = .8 NAME = Erotic Pickled Herring # *DOCUMENTATION*
arch/arm/mach-rpc/riscpc.c +6 -0
@@ -19,6 +19,7 @@#include <linux/serial_8250.h> #include <linux/ata_platform.h> #include <linux/io.h> +#include <linux/i2c.h> #include <asm/elf.h> #include <asm/mach-types.h>
@@ -201,8 +202,13 @@ static struct platform_device *devs[] __initdata = { &pata_device, }; +static struct i2c_board_info i2c_rtc = { +I2C_BOARD_INFO ("pcf8583" ,0x50 ) +}; +static int __init rpc_init (void ) { +i2c_register_board_info (0 , &i2c_rtc,1 );return platform_add_devices (devs,ARRAY_SIZE (devs)); }
arch/ia64/include/asm/mmzone.h +0 -4
@@ -31,10 +31,6 @@ static inline int pfn_to_nid(unsigned long pfn)#endif } -#ifdef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID -extern int early_pfn_to_nid (unsigned long pfn); -#endif -#ifdef CONFIG_IA64_DIG /* DIG systems are small */ # define MAX_PHYSNODE_ID 8# define NR_NODE_MEMBLKS (MAX_NUMNODES * 8)
arch/ia64/mm/numa.c +2 -2
@@ -58,7 +58,7 @@ paddr_to_nid(unsigned long paddr)* SPARSEMEM to allocate the SPARSEMEM sectionmap on the NUMA node where * the section resides. */ -int early_pfn_to_nid (unsigned long pfn) +int __meminit __early_pfn_to_nid (unsigned long pfn) {int i, section = pfn >>PFN_SECTION_SHIFT , ssec, esec;
@@ -70,7 +70,7 @@ int early_pfn_to_nid(unsigned long pfn)return node_memblk[i].nid; } -return 0 ; +return -1 ; }#ifdef CONFIG_MEMORY_HOTPLUG
arch/mips/include/asm/compat.h +7 -0
@@ -3,6 +3,8 @@/* * Architecture specific compatibility types */ +#include <linux/seccomp.h> +#include <linux/thread_info.h> #include <linux/types.h> #include <asm/page.h> #include <asm/ptrace.h>
@@ -218,4 +220,9 @@ struct compat_shmid64_ds { compat_ulong_t __unused2; }; +static inline int is_compat_task (void ) +{ +return test_thread_flag (TIF_32BIT ); +} +#endif /* _ASM_COMPAT_H */
arch/mips/include/asm/seccomp.h +0 -1
@@ -1,6 +1,5 @@#ifndef __ASM_SECCOMP_H -#include <linux/thread_info.h> #include <linux/unistd.h> #define __NR_seccomp_read __NR_read
arch/powerpc/include/asm/compat.h +5 -0
@@ -210,5 +210,10 @@ struct compat_shmid64_ds {compat_ulong_t __unused6; }; +static inline int is_compat_task (void ) +{ +return test_thread_flag (TIF_32BIT ); +} +#endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_COMPAT_H */
arch/powerpc/include/asm/seccomp.h +0 -4
@@ -1,10 +1,6 @@#ifndef _ASM_POWERPC_SECCOMP_H#define _ASM_POWERPC_SECCOMP_H -#ifdef __KERNEL__ -#include <linux/thread_info.h> -#endif -#include <linux/unistd.h> #define __NR_seccomp_read __NR_read
arch/powerpc/kernel/align.c +13 -16
@@ -367,27 +367,24 @@ static int emulate_multiple(struct pt_regs *regs, unsigned char __user *addr,static int emulate_fp_pair (unsigned char __user *addr,unsigned int reg,unsigned int flags) { -char *ptr = (char *) ¤t->thread.TS_FPR (reg); -int i, ret; +char *ptr0 = (char *) ¤t->thread.TS_FPR (reg); +char *ptr1 = (char *) ¤t->thread.TS_FPR (reg+1 ); +int i, ret, sw =0 ;if (!(flags &F ))return 0 ;if (reg &1 )return 0 ;/* invalid form: FRS/FRT must be even */ -if (!(flags &SW )) { -/* not byte-swapped - easy */ -if (!(flags &ST )) - ret =__copy_from_user (ptr, addr,16 ); -else - ret =__copy_to_user (addr, ptr,16 ); - }else { -/* each FPR value is byte-swapped separately */ - ret =0 ; -for (i =0 ; i <16 ; ++i) { -if (!(flags &ST )) - ret |=__get_user (ptr[i^7 ], addr + i); -else - ret |=__put_user (ptr[i^7 ], addr + i); +if (flags &SW ) + sw =7 ; + ret =0 ; +for (i =0 ; i <8 ; ++i) { +if (!(flags &ST )) { + ret |=__get_user (ptr0[i^sw], addr + i); + ret |=__get_user (ptr1[i^sw], addr + i +8 ); + }else { + ret |=__put_user (ptr0[i^sw], addr + i); + ret |=__put_user (ptr1[i^sw], addr + i +8 ); } }if (ret)
arch/sparc/include/asm/compat.h +5 -0
@@ -240,4 +240,9 @@ struct compat_shmid64_ds { unsigned int __unused2; }; +static inline int is_compat_task (void ) +{ +return test_thread_flag (TIF_32BIT ); +} +#endif /* _ASM_SPARC64_COMPAT_H */
arch/sparc/include/asm/seccomp.h +0 -6
@@ -1,11 +1,5 @@#ifndef _ASM_SECCOMP_H -#include <linux/thread_info.h> /* already defines TIF_32BIT */ - -#ifndef TIF_32BIT -#error "unexpected TIF_32BIT on sparc64" -#endif -#include <linux/unistd.h> #define __NR_seccomp_read __NR_read
arch/sparc64/kernel/chmc.c +1 -0
@@ -306,6 +306,7 @@ static int jbusmc_print_dimm(int syndrome_code, buf[1 ] ='?' ; buf[2 ] ='?' ; buf[3 ] ='\0' ; +return 0 ; } p = dp->controller; prop = &p->layout;
arch/sparc64/kernel/traps.c +16 -1
@@ -1,6 +1,6 @@/* arch/sparc64/kernel/traps.c * -* Copyright (C) 1995,1997,2008 David S. Miller ([email protected]) +* Copyright (C) 1995,1997,2008,2009 David S. Miller ([email protected]) * Copyright (C) 1997,1999,2000 Jakub Jelinek ([email protected]) */
@@ -313,6 +313,21 @@ void sun4v_data_access_exception(struct pt_regs *regs, unsigned long addr, unsigreturn ;if (regs->tstate &TSTATE_PRIV ) { +/* Test if this comes from uaccess places. */ +const struct exception_table_entry *entry; + + entry =search_exception_tables (regs->tpc); +if (entry) { +/* Ouch, somebody is trying VM hole tricks on us... */ +#ifdef DEBUG_EXCEPTIONS +printk ("Exception: PC<%016lx> faddr<UNKNOWN>\n" , regs->tpc); +printk ("EX_TABLE: insn<%016lx> fixup<%016lx>\n" , + regs->tpc, entry->fixup); +#endif + regs->tpc = entry->fixup; + regs->tnpc = regs->tpc +4 ; +return ; + }printk ("sun4v_data_access_exception: ADDR[%016lx] " "CTX[%04x] TYPE[%04x], going.\n" , addr, ctx, type);
arch/x86/ia32/ia32entry.S +5 -3
@@ -418,9 +418,9 @@ ENTRY(ia32_syscall) orl $TS_COMPAT,TI_status(%r10) testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10) jnz ia32_tracesys -ia32_do_syscall: cmpl $(IA32_NR_syscalls-1),%eax - ja int_ret_from_sys_call /* ia32_tracesys has set RAX(%rsp) */ + ja ia32_badsys +ia32_do_call: IA32_ARG_FIXUP call *ia32_sys_call_table(,%rax,8) # xxx: rip relative ia32_sysret:
@@ -435,7 +435,9 @@ ia32_tracesys: call syscall_trace_enter LOAD_ARGS32 ARGOFFSET /* reload args from stack in case ptrace changed it */ RESTORE_REST - jmp ia32_do_syscall + cmpl $(IA32_NR_syscalls-1),%eax + ja int_ret_from_sys_call /* ia32_tracesys has set RAX(%rsp) */ + jmp ia32_do_call END(ia32_syscall) ia32_badsys:
arch/x86/include/asm/math_emu.h +8 -21
@@ -1,31 +1,18 @@#ifndef _ASM_X86_MATH_EMU_H#define _ASM_X86_MATH_EMU_H +#include <asm/ptrace.h> +#include <asm/vm86.h> +/* This structure matches the layout of the data saved to the stack following a device-not-present interrupt, part of it saved automatically by the 80386/80486. */ -struct info { +struct math_emu_info {long ___orig_eip; -long ___ebx; -long ___ecx; -long ___edx; -long ___esi; -long ___edi; -long ___ebp; -long ___eax; -long ___ds; -long ___es; -long ___fs; -long ___orig_eax; -long ___eip; -long ___cs; -long ___eflags; -long ___esp; -long ___ss; -long ___vm86_es;/* This and the following only in vm86 mode */ -long ___vm86_ds; -long ___vm86_fs; -long ___vm86_gs; +union { +struct pt_regs *regs; +struct kernel_vm86_regs *vm86; + }; };#endif /* _ASM_X86_MATH_EMU_H */
arch/x86/include/asm/mmzone_32.h +0 -2
@@ -32,8 +32,6 @@ static inline void get_memcfg_numa(void) get_memcfg_numa_flat(); } -extern int early_pfn_to_nid (unsigned long pfn); -extern void resume_map_numa_kva (pgd_t *pgd);#else /* !CONFIG_NUMA */
arch/x86/include/asm/mmzone_64.h +0 -2
@@ -40,8 +40,6 @@ static inline __attribute__((pure)) int phys_to_nid(unsigned long addr)#define node_end_pfn (nid) (NODE_DATA(nid)->node_start_pfn + \ NODE_DATA(nid)->node_spanned_pages) -extern int early_pfn_to_nid (unsigned long pfn); -#ifdef CONFIG_NUMA_EMU #define FAKE_NODE_MIN_SIZE (64 * 1024 * 1024)#define FAKE_NODE_MIN_HASH_MASK (~(FAKE_NODE_MIN_SIZE - 1UL))
arch/x86/include/asm/paravirt.h +2 -15
@@ -1352,14 +1352,7 @@ static inline void arch_leave_lazy_cpu_mode(void)PVOP_VCALL0 (pv_cpu_ops.lazy_mode.leave); } -static inline void arch_flush_lazy_cpu_mode (void ) -{ -if (unlikely (paravirt_get_lazy_mode () ==PARAVIRT_LAZY_CPU )) { -arch_leave_lazy_cpu_mode (); -arch_enter_lazy_cpu_mode (); - } -} - +void arch_flush_lazy_cpu_mode (void );#define __HAVE_ARCH_ENTER_LAZY_MMU_MODEstatic inline void arch_enter_lazy_mmu_mode (void )
@@ -1372,13 +1365,7 @@ static inline void arch_leave_lazy_mmu_mode(void)PVOP_VCALL0 (pv_mmu_ops.lazy_mode.leave); } -static inline void arch_flush_lazy_mmu_mode (void ) -{ -if (unlikely (paravirt_get_lazy_mode () ==PARAVIRT_LAZY_MMU )) { -arch_leave_lazy_mmu_mode (); -arch_enter_lazy_mmu_mode (); - } -} +void arch_flush_lazy_mmu_mode (void );static inline void __set_fixmap (unsigned /* enum fixed_addresses */ idx,unsigned long phys,pgprot_t flags)
arch/x86/include/asm/processor.h +1 -1
@@ -349,7 +349,7 @@ struct i387_soft_struct {u8 no_update;u8 rm;u8 alimit; -struct info *info; +struct math_emu_info *info;u32 entry_eip; };
arch/x86/include/asm/seccomp_32.h +0 -6
@@ -1,12 +1,6 @@#ifndef _ASM_X86_SECCOMP_32_H#define _ASM_X86_SECCOMP_32_H -#include <linux/thread_info.h> - -#ifdef TIF_32BIT -#error "unexpected TIF_32BIT on i386" -#endif -#include <linux/unistd.h> #define __NR_seccomp_read __NR_read
arch/x86/include/asm/seccomp_64.h +0 -8
@@ -1,14 +1,6 @@#ifndef _ASM_X86_SECCOMP_64_H#define _ASM_X86_SECCOMP_64_H -#include <linux/thread_info.h> - -#ifdef TIF_32BIT -#error "unexpected TIF_32BIT on x86_64" -#else -#define TIF_32BIT TIF_IA32 -#endif -#include <linux/unistd.h> #include <asm/ia32_unistd.h>
arch/x86/include/asm/traps.h +2 -2
@@ -41,7 +41,7 @@ dotraplinkage void do_int3(struct pt_regs *, long); dotraplinkage void do_overflow(struct pt_regs *, long); dotraplinkage void do_bounds(struct pt_regs *, long); dotraplinkage void do_invalid_op(struct pt_regs *, long); -dotraplinkage void do_device_not_available(struct pt_regs *, long); +dotraplinkage void do_device_not_available(struct pt_regs); dotraplinkage void do_coprocessor_segment_overrun(struct pt_regs *, long); dotraplinkage void do_invalid_TSS(struct pt_regs *, long); dotraplinkage void do_segment_not_present(struct pt_regs *, long);
@@ -74,8 +74,8 @@ extern int kstack_depth_to_print;#ifdef CONFIG_X86_32 void math_error (void __user *); +void math_emulate (struct math_emu_info *);unsigned long patch_espfix_desc (unsigned long ,unsigned long ); -asmlinkage void math_emulate(long);#endif #endif /* _ASM_X86_TRAPS_H */
arch/x86/kernel/cpu/mtrr/main.c +1 -2
@@ -1600,8 +1600,7 @@ int __init mtrr_trim_uncached_memory(unsigned long end_pfn)/* kvm/qemu doesn't have mtrr set right, don't trim them all */ if (!highest_pfn) { -WARN (!kvm_para_available (),KERN_WARNING -"WARNING: strange, CPU MTRRs all blank?\n" ); +printk (KERN_INFO "CPU MTRRs all blank - virtualized system.\n" );return 0 ; }
arch/x86/kernel/hpet.c +2 -0
@@ -267,6 +267,8 @@ static void hpet_set_mode(enum clock_event_mode mode, now =hpet_readl (HPET_COUNTER ); cmp = now + (unsigned long ) delta; cfg =hpet_readl (HPET_Tn_CFG (timer)); +/* Make sure we use edge triggered interrupts */ + cfg &= ~HPET_TN_LEVEL ; cfg |=HPET_TN_ENABLE |HPET_TN_PERIODIC |HPET_TN_SETVAL |HPET_TN_32BIT ;hpet_writel (cfg,HPET_Tn_CFG (timer));
arch/x86/kernel/paravirt.c +24 -0
@@ -268,6 +268,30 @@ enum paravirt_lazy_mode paravirt_get_lazy_mode(void)return __get_cpu_var (paravirt_lazy_mode); } +void arch_flush_lazy_mmu_mode (void ) +{ +preempt_disable (); + +if (paravirt_get_lazy_mode () ==PARAVIRT_LAZY_MMU ) { +arch_leave_lazy_mmu_mode (); +arch_enter_lazy_mmu_mode (); + } + +preempt_enable (); +} + +void arch_flush_lazy_cpu_mode (void ) +{ +preempt_disable (); + +if (paravirt_get_lazy_mode () ==PARAVIRT_LAZY_CPU ) { +arch_leave_lazy_cpu_mode (); +arch_enter_lazy_cpu_mode (); + } + +preempt_enable (); +} +struct pv_info pv_info = { .name ="bare hardware" , .paravirt_enabled =0 ,
arch/x86/kernel/ptrace.c +1 -1
@@ -1512,7 +1512,7 @@ void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,#ifdef CONFIG_X86_32 # define IS_IA32 1#elif definedCONFIG_IA32_EMULATION -# define IS_IA32 test_thread_flag(TIF_IA32) +# define IS_IA32 is_compat_task()#else # define IS_IA32 0#endif
arch/x86/kernel/reboot.c +8 -0
@@ -202,6 +202,14 @@ static struct dmi_system_id __initdata reboot_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "HP Compaq"), }, }, + { /* Handle problems with rebooting on Dell XPS710 */ + .callback = set_bios_reboot, + .ident = "Dell XPS710", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Dell XPS710"), + }, + }, { } };
arch/x86/kernel/traps.c +9 -6
@@ -912,7 +912,7 @@ asmlinkage void math_state_restore(void)EXPORT_SYMBOL_GPL (math_state_restore);#ifndef CONFIG_MATH_EMULATION -asmlinkage void math_emulate(long arg) +void math_emulate (struct math_emu_info *info) {printk (KERN_EMERG "math-emulation not enabled and no coprocessor found.\n" );
@@ -922,16 +922,19 @@ asmlinkage void math_emulate(long arg) }#endif /* CONFIG_MATH_EMULATION */ -dotraplinkage void __kprobes -do_device_not_available (struct pt_regs *regs,long error) +dotraplinkage void __kprobes do_device_not_available(struct pt_regs regs) {#ifdef CONFIG_X86_32 if (read_cr0 () &X86_CR0_EM ) { -conditional_sti (regs); -math_emulate (0 ); +struct math_emu_info info = { }; + +conditional_sti (®s); + + info.regs = ®s; +math_emulate (&info); }else {math_state_restore ();/* interrupts still off */ -conditional_sti (regs); +conditional_sti (®s); }#else math_state_restore ();
arch/x86/kernel/vmiclock_32.c +4 -1
@@ -283,10 +283,13 @@ void __devinit vmi_time_ap_init(void)#endif /** vmi clocksource */ +static struct clocksource clocksource_vmi;static cycle_t read_real_cycles (void ) { -return vmi_timer_ops.get_cycle_counter (VMI_CYCLES_REAL ); +cycle_t ret = (cycle_t )vmi_timer_ops.get_cycle_counter (VMI_CYCLES_REAL ); +return ret >= clocksource_vmi.cycle_last ? + ret : clocksource_vmi.cycle_last; }static struct clocksource clocksource_vmi = {
arch/x86/math-emu/fpu_entry.c +3 -3
@@ -131,7 +131,7 @@ u_char emulating = 0;static int valid_prefix (u_char *Byte,u_char __user ** fpu_eip,overrides * override); -asmlinkage void math_emulate(long arg) +void math_emulate (struct math_emu_info *info) {u_char FPU_modrm, byte1;unsigned short code;
@@ -161,7 +161,7 @@ asmlinkage void math_emulate(long arg)RE_ENTRANT_CHECK_ON ;#endif /* RE_ENTRANT_CHECKING */ -SETUP_DATA_AREA (arg); + FPU_info = info;FPU_ORIG_EIP =FPU_EIP ;
@@ -659,7 +659,7 @@ static int valid_prefix(u_char *Byte, u_char __user **fpu_eip, } } -void math_abort (struct info *info,unsigned int signal) +void math_abort (struct math_emu_info *info,unsigned int signal) {FPU_EIP =FPU_ORIG_EIP ; current->thread.trap_no =16 ;
arch/x86/math-emu/fpu_proto.h +2 -2
@@ -51,8 +51,8 @@ extern void ffreep(void);extern void fst_i_ (void );extern void fstp_i (void );/* fpu_entry.c */ -asmlinkage extern void math_emulate(long arg); -extern void math_abort (struct info *info,unsigned int signal); +extern void math_emulate (struct math_emu_info *info); +extern void math_abort (struct math_emu_info *info,unsigned int signal);/* fpu_etc.c */ extern void FPU_etc (void );/* fpu_tags.c */
arch/x86/math-emu/fpu_system.h +6 -10
@@ -16,10 +16,6 @@#include <linux/kernel.h> #include <linux/mm.h> -/* This sets the pointer FPU_info to point to the argument part -of the stack frame of math_emulate() */ -#define SETUP_DATA_AREA (arg) FPU_info = (struct info *) &arg -/* s is always from a cpu register, and the cpu does bounds checking * during register load --> no further bounds checks needed */ #define LDT_DESCRIPTOR (s) (((struct desc_struct *)current->mm->context.ldt)[(s) >> 3])
@@ -38,12 +34,12 @@#define I387 (current->thread.xstate)#define FPU_info (I387->soft.info) -#define FPU_CS (*(unsigned short *) &(FPU_info->___cs)) -#define FPU_SS (*(unsigned short *) &(FPU_info->___ss)) -#define FPU_DS (*(unsigned short *) &(FPU_info->___ds)) -#define FPU_EAX (FPU_info->___eax) -#define FPU_EFLAGS (FPU_info->___eflags) -#define FPU_EIP (FPU_info->___eip) +#define FPU_CS (*(unsigned short *) &(FPU_info->regs->cs)) +#define FPU_SS (*(unsigned short *) &(FPU_info->regs->ss)) +#define FPU_DS (*(unsigned short *) &(FPU_info->regs->ds)) +#define FPU_EAX (FPU_info->regs->ax) +#define FPU_EFLAGS (FPU_info->regs->flags) +#define FPU_EIP (FPU_info->regs->ip)#define FPU_ORIG_EIP (FPU_info->___orig_eip)#define FPU_lookahead (I387->soft.lookahead)
arch/x86/math-emu/get_address.c +33 -36
113 lines not on this page · raw message
arch/x86/mm/numa_64.c +1 -1
@@ -145,7 +145,7 @@ int __init compute_hash_shift(struct bootnode *nodes, int numnodes,return shift; } -int early_pfn_to_nid (unsigned long pfn) +int __meminit __early_pfn_to_nid (unsigned long pfn) {return phys_to_nid (pfn <<PAGE_SHIFT ); }
arch/x86/oprofile/op_model_ppro.c +12 -2
@@ -78,8 +78,18 @@ static void ppro_setup_ctrs(struct op_msrs const * const msrs)if (cpu_has_arch_perfmon) {union cpuid10_eax eax; eax.full =cpuid_eax (0xa ); -if (counter_width < eax.split.bit_width) - counter_width = eax.split.bit_width; + +/* +* For Core2 (family 6, model 15), don't reset the +* counter width: +*/ +if (!(eax.split.version_id ==0 && + current_cpu_data.x86 ==6 && + current_cpu_data.x86_model ==15 )) { + +if (counter_width < eax.split.bit_width) + counter_width = eax.split.bit_width; + } }/* clear all counters */
arch/x86/xen/enlighten.c +3 -0
@@ -1669,6 +1669,9 @@ asmlinkage void __init xen_start_kernel(void)possible map and a non-dummy shared_info. */ per_cpu (xen_vcpu,0 ) = &HYPERVISOR_shared_info->vcpu_info[0 ]; +local_irq_disable (); +early_boot_irqs_off (); +xen_raw_console_write ("mapping kernel into physical memory\n" ); pgd =xen_setup_kernel_pagetable (pgd, xen_start_info->nr_pages);
crypto/algapi.c +5 -1
@@ -149,6 +149,9 @@ static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)if (q == alg) goto err; +if (crypto_is_moribund (q)) +continue ; +if (crypto_is_larval (q)) {if (!strcmp (alg->cra_driver_name, q->cra_driver_name)) goto err;
@@ -197,7 +200,7 @@ void crypto_alg_tested(const char *name, int err)down_write (&crypto_alg_sem);list_for_each_entry (q, &crypto_alg_list, cra_list) { -if (!crypto_is_larval (q)) +if (crypto_is_moribund (q) || !crypto_is_larval (q))continue ; test = (struct crypto_larval *)q;
@@ -210,6 +213,7 @@ void crypto_alg_tested(const char *name, int err) goto unlock; found: + q->cra_flags |=CRYPTO_ALG_DEAD ; alg = test->adult;if (err ||list_empty (&alg->cra_list)) goto complete;
drivers/acpi/ec.c +3 -2
@@ -759,9 +759,10 @@ acpi_ec_register_query_methods(acpi_handle handle, u32 level,struct acpi_namespace_node *node = handle;struct acpi_ec *ec = context;int value =0 ; -if (sscanf (node->name.ascii,"_Q%x" , &value) ==1 ) { + +if (sscanf (node->name.ascii,"_Q%2x" , &value) ==1 )acpi_ec_add_query_handler (ec, value, handle,NULL ,NULL ); - } +return AE_OK ; }
drivers/acpi/power.c +1 -1
@@ -151,7 +151,7 @@ static int acpi_power_get_state(acpi_handle handle, int *state) *state = (sta &0x01 )?ACPI_POWER_RESOURCE_STATE_ON :ACPI_POWER_RESOURCE_STATE_OFF ; -ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"Resource [%s] is %s\n" , +ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"Resource [%4.4s] is %s\n" ,acpi_ut_get_node_name (handle), *state ?"on" :"off" ));
drivers/ata/libata-core.c +6 -4
@@ -1251,14 +1251,16 @@ static u64 ata_id_n_sectors(const u16 *id) {if (ata_id_has_lba (id)) {if (ata_id_has_lba48 (id)) -return ata_id_u64 (id,100 ); +return ata_id_u64 (id,ATA_ID_LBA_CAPACITY_2 );else -return ata_id_u32 (id,60 ); +return ata_id_u32 (id,ATA_ID_LBA_CAPACITY ); }else {if (ata_id_current_chs_valid (id)) -return ata_id_u32 (id,57 ); +return id[ATA_ID_CUR_CYLS ] * id[ATA_ID_CUR_HEADS ] * + id[ATA_ID_CUR_SECTORS ];else -return id[1 ] * id[3 ] * id[6 ]; +return id[ATA_ID_CYLS ] * id[ATA_ID_HEADS ] * + id[ATA_ID_SECTORS ]; } }
drivers/ata/libata-eh.c +4 -1
@@ -2366,11 +2366,14 @@ int ata_eh_reset(struct ata_link *link, int classify, }/* prereset() might have cleared ATA_EH_RESET. If so, -* bang classes and return. +* bang classes, thaw and return. */ if (reset && !(ehc->i.action &ATA_EH_RESET )) {ata_link_for_each_dev (dev, link) classes[dev->devno] =ATA_DEV_NONE ; +if ((ap->pflags &ATA_PFLAG_FROZEN ) && +ata_is_host_link (link)) +ata_eh_thaw_port (ap); rc =0 ; goto out; }
drivers/atm/fore200e.c +2 -2
@@ -2519,8 +2519,8 @@ fore200e_load_and_start_fw(struct fore200e* fore200e)return err;sprintf (buf,"%s%s" , fore200e->bus->proc_name,FW_EXT ); -if (request_firmware (&firmware, buf, device) ==1 ) { -printk (FORE200E "missing %s firmware image\n" , fore200e->bus->model_name); +if ((err =request_firmware (&firmware, buf, device)) <0 ) { +printk (FORE200E "problem loading firmware image %s\n" , fore200e->bus->model_name);return err; }
drivers/block/aoe/aoe.h +1 -0
@@ -18,6 +18,7 @@enum {AOECMD_ATA ,AOECMD_CFG , +AOECMD_VEND_MIN =0xf0 ,AOEFL_RSP = (1 <<3 ),AOEFL_ERR = (1 <<2 ),
drivers/block/aoe/aoenet.c +2 -0
@@ -153,6 +153,8 @@ aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt,aoecmd_cfg_rsp (skb);break ;default : +if (h->cmd >=AOECMD_VEND_MIN ) +break ;/* don't complain about vendor commands */ printk (KERN_INFO "aoe: unknown cmd %d\n" , h->cmd); } exit:
drivers/block/xen-blkfront.c +15 -15
@@ -40,6 +40,7 @@#include <linux/hdreg.h> #include <linux/cdrom.h> #include <linux/module.h> +#include <linux/scatterlist.h> #include <xen/xenbus.h> #include <xen/grant_table.h>
@@ -82,6 +83,7 @@ struct blkfront_infoenum blkif_state connected;int ring_ref;struct blkif_front_ring ring; +struct scatterlist sg[BLKIF_MAX_SEGMENTS_PER_REQUEST ];unsigned int evtchn, irq;struct request_queue *rq;struct work_struct work;
@@ -204,12 +206,11 @@ static int blkif_queue_request(struct request *req)struct blkfront_info *info = req->rq_disk->private_data;unsigned long buffer_mfn;struct blkif_request *ring_req; -struct req_iterator iter; -struct bio_vec *bvec;unsigned long id;unsigned int fsect, lsect; -int ref; +int i, ref;grant_ref_t gref_head; +struct scatterlist *sg;if (unlikely (info->connected !=BLKIF_STATE_CONNECTED ))return 1 ;
@@ -238,12 +239,13 @@ static int blkif_queue_request(struct request *req)if (blk_barrier_rq (req)) ring_req->operation =BLKIF_OP_WRITE_BARRIER ; - ring_req->nr_segments =0 ; -rq_for_each_segment (bvec, req, iter) { -BUG_ON (ring_req->nr_segments ==BLKIF_MAX_SEGMENTS_PER_REQUEST ); - buffer_mfn =pfn_to_mfn (page_to_pfn (bvec->bv_page)); - fsect = bvec->bv_offset >>9 ; - lsect = fsect + (bvec->bv_len >>9 ) -1 ; + ring_req->nr_segments =blk_rq_map_sg (req->q, req, info->sg); +BUG_ON (ring_req->nr_segments >BLKIF_MAX_SEGMENTS_PER_REQUEST ); + +for_each_sg (info->sg, sg, ring_req->nr_segments, i) { + buffer_mfn =pfn_to_mfn (page_to_pfn (sg_page (sg))); + fsect = sg->offset >>9 ; + lsect = fsect + (sg->length >>9 ) -1 ;/* install a grant reference. */ ref =gnttab_claim_grant_reference (&gref_head);BUG_ON (ref == -ENOSPC );
@@ -254,16 +256,12 @@ static int blkif_queue_request(struct request *req) buffer_mfn, rq_data_dir(req) ); - info->shadow[id].frame[ring_req->nr_segments] = -mfn_to_pfn (buffer_mfn); - - ring_req->seg[ring_req->nr_segments] = + info->shadow[id].frame[i] =mfn_to_pfn (buffer_mfn); + ring_req->seg[i] = (struct blkif_request_segment ) { .gref = ref, .first_sect = fsect, .last_sect = lsect }; - - ring_req->nr_segments++; } info->ring.req_prod_pvt++;
@@ -628,6 +626,8 @@ static int setup_blkring(struct xenbus_device *dev,SHARED_RING_INIT (sring);FRONT_RING_INIT (&info->ring, sring,PAGE_SIZE ); +sg_init_table (info->sg,BLKIF_MAX_SEGMENTS_PER_REQUEST ); + err =xenbus_grant_ring (dev,virt_to_mfn (info->ring.sring));if (err <0 ) {free_page ((unsigned long )sring);
drivers/char/agp/intel-agp.c +5 -3
@@ -633,13 +633,15 @@ static void intel_i830_init_gtt_entries(void)break ; } } -if (gtt_entries >0 ) +if (gtt_entries >0 ) {dev_info (&agp_bridge->dev->dev,"detected %dK %s memory\n" , gtt_entries /KB (1 ), local ?"local" :"stolen" ); -else + gtt_entries /=KB (4 ); + }else {dev_info (&agp_bridge->dev->dev,"no pre-allocated video memory detected\n" ); - gtt_entries /=KB (4 ); + gtt_entries =0 ; + } intel_private.gtt_entries = gtt_entries; }
drivers/hid/hid-core.c +6 -6
@@ -1302,6 +1302,12 @@ static const struct hid_device_id hid_blacklist[] = { { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) }, { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE) }, { HID_USB_DEVICE(USB_VENDOR_ID_SUNPLUS, USB_DEVICE_ID_SUNPLUS_WDESKTOP) }, + { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300) }, + { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb304) }, + { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651) }, + { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654) }, + { HID_USB_DEVICE(USB_VENDOR_ID_ZEROPLUS, 0x0005) }, + { HID_USB_DEVICE(USB_VENDOR_ID_ZEROPLUS, 0x0030) }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, 0x030c) }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_PRESENTER_8K_BT) },
@@ -1529,10 +1535,6 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_SOUNDGRAPH, USB_DEVICE_ID_SOUNDGRAPH_IMON_LCD3) }, { HID_USB_DEVICE(USB_VENDOR_ID_TENX, USB_DEVICE_ID_TENX_IBUDDY1) }, { HID_USB_DEVICE(USB_VENDOR_ID_TENX, USB_DEVICE_ID_TENX_IBUDDY2) }, - { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300) }, - { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb304) }, - { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651) }, - { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654) }, { HID_USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_LABPRO) }, { HID_USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_GOTEMP) }, { HID_USB_DEVICE(USB_VENDOR_ID_VERNIER, USB_DEVICE_ID_VERNIER_SKIP) },
@@ -1543,8 +1545,6 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_1_PHIDGETSERVO_20) }, { HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_8_8_4_IF_KIT) }, { HID_USB_DEVICE(USB_VENDOR_ID_YEALINK, USB_DEVICE_ID_YEALINK_P1K_P4K_B2K) }, - { HID_USB_DEVICE(USB_VENDOR_ID_ZEROPLUS, 0x0005) }, - { HID_USB_DEVICE(USB_VENDOR_ID_ZEROPLUS, 0x0030) }, { } };
drivers/hwmon/f71882fg.c +1 -1
@@ -837,7 +837,7 @@ static int __init f71882fg_find(int sioaddr, unsigned short *address) devid =superio_inw (sioaddr,SIO_REG_MANID );if (devid !=SIO_FINTEK_ID ) { - printk(KERN_INFO DRVNAME ": Not a Fintek device\n"); +pr_debug (DRVNAME ": Not a Fintek device\n" ); goto exit; }
drivers/hwmon/it87.c +4 -4
@@ -207,7 +207,7 @@ static inline u16 FAN16_TO_REG(long rpm)#define TEMP_TO_REG (val) (SENSORS_LIMIT(((val)<0?(((val)-500)/1000):\ ((val)+500)/1000),-128,127)) -#define TEMP_FROM_REG (val) (((val)>0x80?(val)-0x100:(val))*1000) +#define TEMP_FROM_REG (val) ((val) * 1000)#define PWM_TO_REG (val) ((val) >> 1)#define PWM_FROM_REG (val) (((val)&0x7f) << 1)
@@ -261,9 +261,9 @@ struct it87_data {u8 has_fan;/* Bitfield, fans enabled */ u16 fan[5 ];/* Register values, possibly combined */ u16 fan_min[5 ];/* Register values, possibly combined */ -u8 temp[3 ];/* Register value */ -u8 temp_high[3 ];/* Register value */ -u8 temp_low[3 ];/* Register value */ +s8 temp[3 ];/* Register value */ +s8 temp_high[3 ];/* Register value */ +s8 temp_low[3 ];/* Register value */ u8 sensor;/* Register value */ u8 fan_div[3 ];/* Register encoding, shifted right */ u8 vid;/* Register encoding, combined */
drivers/i2c/busses/i2c-acorn.c +2 -1
@@ -84,6 +84,7 @@ static struct i2c_algo_bit_data ioc_data = {static struct i2c_adapter ioc_ops = { .id =I2C_HW_B_IOC , + .nr =0 , .algo_data = &ioc_data, };
@@ -91,7 +92,7 @@ static int __init i2c_ioc_init(void) { force_ones =FORCE_ONES |SCL |SDA ; -return i2c_bit_add_bus (&ioc_ops); +return i2c_bit_add_numbered_bus (&ioc_ops); }module_init (i2c_ioc_init);
drivers/i2c/busses/i2c-amd8111.c +2 -2
@@ -72,7 +72,7 @@ static unsigned int amd_ec_wait_write(struct amd_smbus *smbus) {int timeout =500 ; -while (timeout-- && (inb (smbus->base +AMD_EC_SC ) &AMD_EC_SC_IBF )) +while ((inb (smbus->base +AMD_EC_SC ) &AMD_EC_SC_IBF ) && --timeout)udelay (1 );if (!timeout) {
@@ -88,7 +88,7 @@ static unsigned int amd_ec_wait_read(struct amd_smbus *smbus) {int timeout =500 ; -while (timeout-- && (~inb (smbus->base +AMD_EC_SC ) &AMD_EC_SC_OBF )) +while ((~inb (smbus->base +AMD_EC_SC ) &AMD_EC_SC_OBF ) && --timeout)udelay (1 );if (!timeout) {
drivers/i2c/busses/i2c-pxa.c +1 -1
@@ -644,7 +644,7 @@ static int i2c_pxa_do_pio_xfer(struct pxa_i2c *i2c,i2c_pxa_start_message (i2c); -while (timeout-- && i2c->msg_num >0 ) { +while (i2c->msg_num >0 && --timeout) {i2c_pxa_handler (0 , i2c);udelay (10 ); }
drivers/i2c/i2c-core.c +2 -1
@@ -1831,7 +1831,8 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter * adapter, u16 addr,case I2C_SMBUS_QUICK : msg[0 ].len =0 ;/* Special case: The read/write field is used as data */ - msg[0 ].flags = flags | (read_write==I2C_SMBUS_READ )?I2C_M_RD :0 ; + msg[0 ].flags = flags | (read_write ==I2C_SMBUS_READ ? +I2C_M_RD :0 ); num =1 ;break ;case I2C_SMBUS_BYTE :
drivers/ide/ide-iops.c +2 -0
@@ -324,6 +324,8 @@ void ide_output_data(ide_drive_t *drive, struct request *rq, void *buf,u8 io_32bit = drive->io_32bit;u8 mmio = (hwif->host_flags &IDE_HFLAG_MMIO ) ?1 :0 ; + len++; +if (io_32bit) {unsigned long uninitialized_var (flags );
drivers/infiniband/hw/nes/nes_cm.c +32 -5
@@ -2495,12 +2495,14 @@ static int nes_disconnect(struct nes_qp *nesqp, int abrupt)int ret =0 ;struct nes_vnic *nesvnic;struct nes_device *nesdev; +struct nes_ib_device *nesibdev; nesvnic =to_nesvnic (nesqp->ibqp.device);if (!nesvnic)return -EINVAL ; nesdev = nesvnic->nesdev; + nesibdev = nesvnic->nesibdev;nes_debug (NES_DBG_CM ,"netdev refcnt = %u.\n" ,atomic_read (&nesvnic->netdev->refcnt));
@@ -2512,6 +2514,8 @@ static int nes_disconnect(struct nes_qp *nesqp, int abrupt) }else {/* Need to free the Last Streaming Mode Message */ if (nesqp->ietf_frame) { +if (nesqp->lsmm_mr) + nesibdev->ibdev.dereg_mr (nesqp->lsmm_mr);pci_free_consistent (nesdev->pcidev, nesqp->private_data_len+sizeof (struct ietf_mpa_frame ), nesqp->ietf_frame, nesqp->ietf_frame_pbase);
@@ -2545,6 +2549,10 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)struct iw_cm_event cm_event;struct nes_hw_qp_wqe *wqe;struct nes_v4_quad nes_quad; +struct nes_ib_device *nesibdev; +struct ib_mr *ibmr =NULL ; +struct ib_phys_buf ibphysbuf; +struct nes_pd *nespd;u32 crc_value;int ret;
@@ -2605,6 +2613,26 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)if (cm_id->remote_addr.sin_addr.s_addr != cm_id->local_addr.sin_addr.s_addr) { u64temp = (unsigned long )nesqp; + nesibdev = nesvnic->nesibdev; + nespd = nesqp->nespd; + ibphysbuf.addr = nesqp->ietf_frame_pbase; + ibphysbuf.size = conn_param->private_data_len + +sizeof (struct ietf_mpa_frame ); + ibmr = nesibdev->ibdev.reg_phys_mr ((struct ib_pd *)nespd, + &ibphysbuf,1 , +IB_ACCESS_LOCAL_WRITE , + (u64 *)&nesqp->ietf_frame); +if (!ibmr) { +nes_debug (NES_DBG_CM ,"Unable to register memory region" +"for lSMM for cm_node = %p \n" , + cm_node); +return -ENOMEM ; + } + + ibmr->pd = &nespd->ibpd; + ibmr->device = nespd->ibpd.device; + nesqp->lsmm_mr = ibmr; + u64temp |=NES_SW_CONTEXT_ALIGN >>1 ; set_wqe_64bit_value(wqe->wqe_words, NES_IWARP_SQ_WQE_COMP_CTX_LOW_IDX,
@@ -2615,14 +2643,13 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) wqe->wqe_words[NES_IWARP_SQ_WQE_TOTAL_PAYLOAD_IDX ] =cpu_to_le32 (conn_param->private_data_len +sizeof (struct ietf_mpa_frame )); - wqe->wqe_words[NES_IWARP_SQ_WQE_FRAG0_LOW_IDX ] = -cpu_to_le32 ((u32 )nesqp->ietf_frame_pbase); - wqe->wqe_words[NES_IWARP_SQ_WQE_FRAG0_HIGH_IDX ] = -cpu_to_le32 ((u32)((u64 )nesqp->ietf_frame_pbase >>32 )); +set_wqe_64bit_value (wqe->wqe_words, +NES_IWARP_SQ_WQE_FRAG0_LOW_IDX , + (u64 )nesqp->ietf_frame); wqe->wqe_words[NES_IWARP_SQ_WQE_LENGTH0_IDX ] =cpu_to_le32 (conn_param->private_data_len +sizeof (struct ietf_mpa_frame )); - wqe->wqe_words[NES_IWARP_SQ_WQE_STAG0_IDX ] =0 ; + wqe->wqe_words[NES_IWARP_SQ_WQE_STAG0_IDX ] = ibmr->lkey; nesqp->nesqp_context->ird_ord_sizes |= cpu_to_le32(NES_QPCONTEXT_ORDIRD_LSMM_PRESENT |
drivers/infiniband/hw/nes/nes_verbs.c +2 -0
@@ -1360,8 +1360,10 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd, NES_QPCONTEXT_MISC_RQ_SIZE_SHIFT); nesqp->nesqp_context->misc |=cpu_to_le32 ((u32 )nesqp->hwqp.sq_encoded_size <<NES_QPCONTEXT_MISC_SQ_SIZE_SHIFT ); +if (!udata) { nesqp->nesqp_context->misc |=cpu_to_le32 (NES_QPCONTEXT_MISC_PRIV_EN ); nesqp->nesqp_context->misc |=cpu_to_le32 (NES_QPCONTEXT_MISC_FAST_REGISTER_EN ); + } nesqp->nesqp_context->cqs =cpu_to_le32 (nesqp->nesscq->hw_cq.cq_number + ((u32 )nesqp->nesrcq->hw_cq.cq_number <<16 )); u64temp = (u64 )nesqp->hwqp.sq_pbase;
drivers/infiniband/hw/nes/nes_verbs.h +1 -0
@@ -134,6 +134,7 @@ struct nes_qp {struct ietf_mpa_frame *ietf_frame;dma_addr_t ietf_frame_pbase;wait_queue_head_t state_waitq; +struct ib_mr *lsmm_mr;unsigned long socket;struct nes_hw_qp hwqp;struct work_struct work;
drivers/md/raid1.c +2 -1
@@ -1233,8 +1233,9 @@ static void end_sync_write(struct bio *bio, int error)update_head_pos (mirror, r1_bio);if (atomic_dec_and_test (&r1_bio->remaining)) { -md_done_sync (mddev, r1_bio->sectors, uptodate); +sector_t s = r1_bio->sectors;put_buf (r1_bio); +md_done_sync (mddev, s, uptodate); } }
drivers/md/raid10.c +10 -9
@@ -1236,6 +1236,7 @@ static void end_sync_read(struct bio *bio, int error)/* for reconstruct, we always reschedule after a read. * for resync, only after all reads */ +rdev_dec_pending (conf->mirrors[d].rdev, conf->mddev);if (test_bit (R10BIO_IsRecover, &r10_bio->state) ||atomic_dec_and_test (&r10_bio->remaining)) {/* we have read all the blocks,
@@ -1243,7 +1244,6 @@ static void end_sync_read(struct bio *bio, int error)*/ reschedule_retry (r10_bio); } -rdev_dec_pending (conf->mirrors[d].rdev, conf->mddev); }static void end_sync_write (struct bio *bio,int error)
@@ -1264,11 +1264,13 @@ static void end_sync_write(struct bio *bio, int error)update_head_pos (i, r10_bio); +rdev_dec_pending (conf->mirrors[d].rdev, mddev);while (atomic_dec_and_test (&r10_bio->remaining)) {if (r10_bio->master_bio ==NULL ) {/* the primary of several recovery bios */ -md_done_sync (mddev, r10_bio->sectors,1 ); +sector_t s = r10_bio->sectors;put_buf (r10_bio); +md_done_sync (mddev, s,1 );break ; }else {r10bio_t *r10_bio2 = (r10bio_t *)r10_bio->master_bio;
@@ -1276,7 +1278,6 @@ static void end_sync_write(struct bio *bio, int error) r10_bio = r10_bio2; } } -rdev_dec_pending (conf->mirrors[d].rdev, mddev); }/*
@@ -1749,8 +1750,6 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, iif (!go_faster && conf->nr_waiting)msleep_interruptible (1000 ); -bitmap_cond_end_sync (mddev->bitmap, sector_nr); -/* Again, very different code for resync and recovery. * Both must result in an r10bio with a list of bios that * have bi_end_io, bi_sector, bi_bdev set,
@@ -1886,6 +1885,8 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i/* resync. Schedule a read for every block at this virt offset */ int count =0 ; +bitmap_cond_end_sync (mddev->bitmap, sector_nr); +if (!bitmap_start_sync (mddev->bitmap, sector_nr, &sync_blocks, mddev->degraded) && !conf->fullsync && !test_bit (MD_RECOVERY_REQUESTED , &mddev->recovery)) {
@@ -2010,13 +2011,13 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i/* There is nowhere to write, so all non-sync * drives must be failed, so try the next chunk... */ - { -sector_t sec = max_sector - sector_nr; - sectors_skipped += sec; +if (sector_nr + max_sync < max_sector) + max_sector = sector_nr + max_sync; + + sectors_skipped += (max_sector - sector_nr); chunks_skipped ++; sector_nr = max_sector; goto skipped; - } }static int run (mddev_t *mddev)
drivers/media/common/tuners/tda8290.c +2 -1
@@ -724,7 +724,8 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe, fe->ops.analog_ops.info.name = name;if (priv->ver &TDA8290 ) { -tda8290_init_tuner (fe); +if (priv->ver & (TDA8275 |TDA8275A )) +tda8290_init_tuner (fe);tda8290_init_if (fe); }else if (priv->ver &TDA8295 )tda8295_init_if (fe);
drivers/media/dvb/frontends/s5h1409.c +4 -3
@@ -545,9 +545,6 @@ static int s5h1409_set_frontend(struct dvb_frontend *fe,s5h1409_enable_modulation (fe, p->u.vsb.modulation); -/* Allow the demod to settle */ -msleep (100 ); -if (fe->ops.tuner_ops.set_params) {if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl (fe,1 );
@@ -562,6 +559,10 @@ static int s5h1409_set_frontend(struct dvb_frontend *fe,s5h1409_set_qam_interleave_mode (fe); } +/* Issue a reset to the demod so it knows to resync against the +newly tuned frequency */ +s5h1409_softreset (fe); +return 0 ; }
drivers/media/video/ivtv/ivtv-ioctl.c +12 -12
@@ -1750,6 +1750,18 @@ static int ivtv_default(struct file *file, void *fh, int cmd, void *arg)break ; } +case IVTV_IOC_DMA_FRAME : +case VIDEO_GET_PTS : +case VIDEO_GET_FRAME_COUNT : +case VIDEO_GET_EVENT : +case VIDEO_PLAY : +case VIDEO_STOP : +case VIDEO_FREEZE : +case VIDEO_CONTINUE : +case VIDEO_COMMAND : +case VIDEO_TRY_COMMAND : +return ivtv_decoder_ioctls (file, cmd, (void *)arg); +default :return -EINVAL ; }
@@ -1792,18 +1804,6 @@ static long ivtv_serialized_ioctl(struct ivtv *itv, struct file *filp,ivtv_vapi (itv,CX2341X_DEC_SET_AUDIO_MODE ,2 , itv->audio_bilingual_mode, itv->audio_stereo_mode);return 0 ; -case IVTV_IOC_DMA_FRAME : -case VIDEO_GET_PTS : -case VIDEO_GET_FRAME_COUNT : -case VIDEO_GET_EVENT : -case VIDEO_PLAY : -case VIDEO_STOP : -case VIDEO_FREEZE : -case VIDEO_CONTINUE : -case VIDEO_COMMAND : -case VIDEO_TRY_COMMAND : -return ivtv_decoder_ioctls (filp, cmd, (void *)arg); -default :break ; }
drivers/media/video/saa7127.c +30 -22
86 lines not on this page · raw message
drivers/misc/acer-wmi.c +1 -1
@@ -1297,7 +1297,7 @@ static int __init acer_wmi_init(void)set_quirks (); -if (!acpi_video_backlight_support () &&has_cap (ACER_CAP_BRIGHTNESS )) { +if (acpi_video_backlight_support () &&has_cap (ACER_CAP_BRIGHTNESS )) { interface->capability &= ~ACER_CAP_BRIGHTNESS ;printk (ACER_INFO "Brightness must be controlled by " "generic video driver\n" );
drivers/misc/hpilo.c +1 -0
@@ -710,6 +710,7 @@ out:static struct pci_device_id ilo_devices[] = { {PCI_DEVICE (PCI_VENDOR_ID_COMPAQ ,0xB204 ) }, + {PCI_DEVICE (PCI_VENDOR_ID_HP ,0x3307 ) }, { } };MODULE_DEVICE_TABLE (pci, ilo_devices);
drivers/mmc/card/block.c +1 -1
@@ -514,7 +514,7 @@ static int mmc_blk_probe(struct mmc_card *card)if (err) goto out; -string_get_size (get_capacity (md->disk) <<9 ,STRING_UNITS_2 , +string_get_size ((u64 )get_capacity (md->disk) <<9 ,STRING_UNITS_2 , cap_str,sizeof (cap_str)); printk(KERN_INFO "%s: %s %s %s %s\n", md->disk->disk_name, mmc_card_id(card), mmc_card_name(card),
drivers/mmc/card/mmc_test.c +1 -1
@@ -494,7 +494,7 @@ static int mmc_test_basic_read(struct mmc_test_card *test)sg_init_one (&sg, test->buffer,512 ); - ret =mmc_test_simple_transfer (test, &sg,1 ,0 ,1 ,512 ,1 ); + ret =mmc_test_simple_transfer (test, &sg,1 ,0 ,1 ,512 ,0 );if (ret)return ret;
drivers/mmc/core/mmc_ops.c +9 -6
@@ -248,12 +248,15 @@ mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host,sg_init_one (&sg, data_buf, len); -/* -* The spec states that CSR and CID accesses have a timeout -* of 64 clock cycles. -*/ - data.timeout_ns =0 ; - data.timeout_clks =64 ; +if (opcode ==MMC_SEND_CSD || opcode ==MMC_SEND_CID ) { +/* +* The spec states that CSR and CID accesses have a timeout +* of 64 clock cycles. +*/ + data.timeout_ns =0 ; + data.timeout_clks =64 ; + }else +mmc_set_data_timeout (&data, card);mmc_wait_for_req (host, &mrq);
drivers/mmc/host/s3cmci.c +2 -3
@@ -329,7 +329,7 @@ static void do_pio_write(struct s3cmci_host *host) to_ptr = host->base + host->sdidata; -while ((fifo =fifo_free (host))) { +while ((fifo =fifo_free (host)) >3 ) {if (!host->pio_bytes) { res =get_data_buffer (host, &host->pio_bytes, &host->pio_ptr);
@@ -793,8 +793,7 @@ static void s3cmci_dma_setup(struct s3cmci_host *host, host->mem->start + host->sdidata);if (!setup_ok) { -s3c2410_dma_config (host->dma,4 , - (S3C2410_DCON_HWTRIG |S3C2410_DCON_CH0_SDI )); +s3c2410_dma_config (host->dma,4 ,0 );s3c2410_dma_set_buffdone_fn (host->dma, s3cmci_dma_done_callback);s3c2410_dma_setflags (host->dma,S3C2410_DMAF_AUTOSTART );
drivers/mmc/host/sdhci-pci.c +1 -0
@@ -107,6 +107,7 @@ static const struct sdhci_pci_fixes sdhci_ene_714 = {static const struct sdhci_pci_fixes sdhci_cafe = { .quirks =SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER | +SDHCI_QUIRK_NO_BUSY_IRQ |SDHCI_QUIRK_BROKEN_TIMEOUT_VAL , };
drivers/mmc/host/sdhci.c +7 -2
@@ -1286,8 +1286,11 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask)if (host->cmd->data)DBG ("Cannot wait for busy signal when also " "doing a data transfer" ); -else +else if (!(host->quirks &SDHCI_QUIRK_NO_BUSY_IRQ ))return ; + +/* The controller does not support the end-of-busy IRQ, +* fall through and take the SDHCI_INT_RESPONSE */ }if (intmask &SDHCI_INT_RESPONSE )
@@ -1718,7 +1721,9 @@ int sdhci_add_host(struct sdhci_host *host)#endif #ifdef CONFIG_LEDS_CLASS - host->led.name =mmc_hostname (mmc); +snprintf (host->led_name,sizeof (host->led_name), +"%s::" ,mmc_hostname (mmc)); + host->led.name = host->led_name; host->led.brightness =LED_OFF ; host->led.default_trigger =mmc_hostname (mmc); host->led.brightness_set = sdhci_led_control;
drivers/mmc/host/sdhci.h +3 -0
@@ -210,6 +210,8 @@ struct sdhci_host {#define SDHCI_QUIRK_BROKEN_SMALL_PIO (1<<13)/* Controller supports high speed but doesn't have the caps bit set */ #define SDHCI_QUIRK_FORCE_HIGHSPEED (1<<14) +/* Controller does not provide transfer-complete interrupt when not busy */ +#define SDHCI_QUIRK_NO_BUSY_IRQ (1<<15)int irq;/* Device IRQ */ void __iomem * ioaddr;/* Mapped address */
@@ -222,6 +224,7 @@ struct sdhci_host {#ifdef CONFIG_LEDS_CLASS struct led_classdev led;/* LED control */ +char led_name[32 ];#endif spinlock_t lock;/* Mutex */
drivers/mtd/devices/mtd_dataflash.c +2 -1
@@ -815,7 +815,8 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi)if (!(info->flags &IS_POW2PS ))return info; } - } + }else +return info; } }
drivers/net/usb/asix.c +8 -0
@@ -1450,6 +1450,14 @@ static const struct usb_device_id products [] = {// Cables-to-Go USB Ethernet Adapter USB_DEVICE(0x0b95, 0x772a), .driver_info = (unsigned long) &ax88772_info, +}, { +// ABOCOM for pci + USB_DEVICE(0x14ea, 0xab11), + .driver_info = (unsigned long ) &ax88178_info, +}, { +// ASIX 88772a +USB_DEVICE (0x0db0 ,0xa877 ), + .driver_info = (unsigned long) &ax88772_info, }, { }, // END };
drivers/net/usb/cdc_ether.c +5 -0
@@ -559,6 +559,11 @@ static const struct usb_device_id products [] = { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE), .driver_info = (unsigned long) &cdc_info, +}, { +/* Ericsson F3507g */ +USB_DEVICE_AND_INTERFACE_INFO (0x0bdb ,0x1900 ,USB_CLASS_COMM , + USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), + .driver_info = (unsigned long) &cdc_info, }, { }, // END };
drivers/net/usb/zaurus.c +5 -0
@@ -341,6 +341,11 @@ static const struct usb_device_id products [] = {USB_INTERFACE_INFO (USB_CLASS_COMM ,USB_CDC_SUBCLASS_MDLM , USB_CDC_PROTO_NONE), .driver_info = (unsigned long ) &bogus_mdlm_info, +}, { +/* Motorola MOTOMAGX phones */ +USB_DEVICE_AND_INTERFACE_INFO (0x22b8 ,0x6425 ,USB_CLASS_COMM , +USB_CDC_SUBCLASS_MDLM ,USB_CDC_PROTO_NONE ), + .driver_info = (unsigned long) &bogus_mdlm_info, },/* Olympus has some models with a Zaurus-compatible option.
drivers/net/wireless/rtl8187_dev.c +12 -0
@@ -40,6 +40,10 @@ static struct usb_device_id rtl8187_table[] __devinitdata = { {USB_DEVICE(0x0bda, 0x8189), .driver_info = DEVICE_RTL8187B}, {USB_DEVICE(0x0bda, 0x8197), .driver_info = DEVICE_RTL8187B}, {USB_DEVICE(0x0bda, 0x8198), .driver_info = DEVICE_RTL8187B}, + /* Surecom */ + {USB_DEVICE(0x0769, 0x11F2), .driver_info = DEVICE_RTL8187}, + /* Logitech */ + {USB_DEVICE(0x0789, 0x010C), .driver_info = DEVICE_RTL8187}, /* Netgear */ {USB_DEVICE(0x0846, 0x6100), .driver_info = DEVICE_RTL8187}, {USB_DEVICE(0x0846, 0x6a00), .driver_info = DEVICE_RTL8187},
@@ -49,8 +53,16 @@ static struct usb_device_id rtl8187_table[] __devinitdata = {/* Sitecom */ {USB_DEVICE(0x0df6, 0x000d), .driver_info = DEVICE_RTL8187}, {USB_DEVICE(0x0df6, 0x0028), .driver_info = DEVICE_RTL8187B}, + /* Sphairon Access Systems GmbH */ + {USB_DEVICE(0x114B, 0x0150), .driver_info = DEVICE_RTL8187}, + /* Dick Smith Electronics */ + {USB_DEVICE(0x1371, 0x9401), .driver_info = DEVICE_RTL8187}, /* Abocom */ {USB_DEVICE(0x13d1, 0xabe6), .driver_info = DEVICE_RTL8187}, + /* Qcom */ + {USB_DEVICE(0x18E8, 0x6232), .driver_info = DEVICE_RTL8187}, + /* AirLive */ + {USB_DEVICE(0x1b75, 0x8187), .driver_info = DEVICE_RTL8187}, {} };
drivers/pci/pcie/aer/aerdrv_core.c +39 -9
66 lines not on this page · raw message
drivers/pci/pcie/portdrv_pci.c +1 -2
@@ -101,14 +101,13 @@ static int __devinit pcie_portdrv_probe (struct pci_dev *dev,pcie_portdrv_save_config (dev); -pci_enable_pcie_error_reporting (dev); -return 0 ; }static void pcie_portdrv_remove (struct pci_dev *dev) {pcie_port_device_remove (dev); +pci_disable_device (dev);kfree (pci_get_drvdata (dev)); }
drivers/pci/quirks.c +28 -1
@@ -23,6 +23,7 @@#include <linux/acpi.h> #include <linux/kallsyms.h> #include <linux/dmi.h> +#include <linux/pci-aspm.h> #include "pci.h" int isa_dma_bridge_buggy;
@@ -1543,6 +1544,30 @@ static void __devinit quirk_e100_interrupt(struct pci_dev *dev) }DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,PCI_ANY_ID , quirk_e100_interrupt); +/* +* The 82575 and 82598 may experience data corruption issues when transitioning +* out of L0S. To prevent this we need to disable L0S on the pci-e link +*/ +static void __devinit quirk_disable_aspm_l0s (struct pci_dev *dev) +{ +dev_info (&dev->dev,"Disabling L0s\n" ); +pci_disable_link_state (dev,PCIE_LINK_STATE_L0S ); +} +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10a7 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10a9 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10b6 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10c6 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10c7 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10c8 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10d6 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10db , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10dd , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10e1 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10ec , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10f1 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x10f4 , quirk_disable_aspm_l0s); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL ,0x1508 , quirk_disable_aspm_l0s); +static void __devinit fixup_rev1_53c810 (struct pci_dev * dev) {/* rev 1 ncr53c810 chips don't set the class at all which means
@@ -1778,7 +1803,6 @@ static void __devinit quirk_msi_ht_cap(struct pci_dev *dev)DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_SERVERWORKS ,PCI_DEVICE_ID_SERVERWORKS_HT2000_PCIE , quirk_msi_ht_cap); -/* The nVidia CK804 chipset may have 2 HT MSI mappings. * MSI are supported if the MSI capability set in any of these mappings. */
@@ -1829,6 +1853,9 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SERVERWORKS,PCI_DEVICE_ID_SERVERWORKS_HT1000_PXB , ht_enable_msi_mapping); +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_AMD ,PCI_DEVICE_ID_AMD_8132_BRIDGE , + ht_enable_msi_mapping); +/* The P5N32-SLI Premium motherboard from Asus has a problem with msi * for the MCP55 NIC. It is not yet determined whether the msi problem * also affects other devices. As for now, turn off msi for this device.
drivers/scsi/hptiop.c +1 -0
@@ -1251,6 +1251,7 @@ static struct pci_device_id hptiop_id_table[] = { { PCI_VDEVICE(TTI, 0x3530), (kernel_ulong_t)&hptiop_itl_ops }, { PCI_VDEVICE(TTI, 0x3560), (kernel_ulong_t)&hptiop_itl_ops }, { PCI_VDEVICE(TTI, 0x4322), (kernel_ulong_t)&hptiop_itl_ops }, + { PCI_VDEVICE(TTI, 0x4321), (kernel_ulong_t)&hptiop_itl_ops }, { PCI_VDEVICE(TTI, 0x4210), (kernel_ulong_t)&hptiop_itl_ops }, { PCI_VDEVICE(TTI, 0x4211), (kernel_ulong_t)&hptiop_itl_ops }, { PCI_VDEVICE(TTI, 0x4310), (kernel_ulong_t)&hptiop_itl_ops },
drivers/scsi/sd.c +7 -0
@@ -106,6 +106,7 @@ static void scsi_disk_release(struct device *cdev);static void sd_print_sense_hdr (struct scsi_disk *,struct scsi_sense_hdr *);static void sd_print_result (struct scsi_disk *,int ); +static DEFINE_SPINLOCK (sd_index_lock);static DEFINE_IDA (sd_index_ida);/* This semaphore is used to mediate the 0->1 reference get in the
@@ -1847,7 +1848,9 @@ static int sd_probe(struct device *dev)if (!ida_pre_get (&sd_index_ida,GFP_KERNEL )) goto out_put; +spin_lock (&sd_index_lock); error =ida_get_new (&sd_index_ida, &index); +spin_unlock (&sd_index_lock); }while (error == -EAGAIN );if (error)
@@ -1910,7 +1913,9 @@ static int sd_probe(struct device *dev)return 0 ; out_free_index: +spin_lock (&sd_index_lock);ida_remove (&sd_index_ida, index); +spin_unlock (&sd_index_lock); out_put:put_disk (gd); out_free:
@@ -1960,7 +1965,9 @@ static void scsi_disk_release(struct device *dev)struct scsi_disk *sdkp =to_scsi_disk (dev);struct gendisk *disk = sdkp->disk; +spin_lock (&sd_index_lock);ida_remove (&sd_index_ida, sdkp->index); +spin_unlock (&sd_index_lock); disk->private_data =NULL ;put_disk (disk);
drivers/serial/8250.c +15 -0
@@ -2014,6 +2014,20 @@ static int serial8250_startup(struct uart_port *port)serial8250_set_mctrl (&up->port, up->port.mctrl); +/* Serial over Lan (SoL) hack: +Intel 8257x Gigabit ethernet chips have a +16550 emulation, to be used for Serial Over Lan. +Those chips take a longer time than a normal +serial device to signalize that a transmission +data was queued. Due to that, the above test generally +fails. One solution would be to delay the reading of +iir. However, this is not reliable, since the timeout +is variable. So, let's just don't test if we receive +TX irq. This way, we'll never enable UART_BUG_TXEN. +*/ +if (up->port.flags &UPF_NO_TXEN_TEST ) + goto dont_test_tx_en; +/* * Do a quick test to see if we receive an * interrupt when we enable the TX irq.
@@ -2033,6 +2047,7 @@ static int serial8250_startup(struct uart_port *port) up->bugs &= ~UART_BUG_TXEN ; } +dont_test_tx_en:spin_unlock_irqrestore (&up->port.lock, flags);/*
drivers/serial/8250_pci.c +36 -0
@@ -758,6 +758,21 @@ pci_default_setup(struct serial_private *priv, struct pciserial_board *board,return setup_port (priv, port, bar, offset, board->reg_shift); } +static int skip_tx_en_setup (struct serial_private *priv, +const struct pciserial_board *board, +struct uart_port *port,int idx) +{ + port->flags |=UPF_NO_TXEN_TEST ; +printk (KERN_DEBUG "serial8250: skipping TxEn test for device " +"[%04x:%04x] subsystem [%04x:%04x]\n" , + priv->dev->vendor, + priv->dev->device, + priv->dev->subsystem_vendor, + priv->dev->subsystem_device); + +return pci_default_setup (priv, board, port, idx); +} +/* This should be in linux/pci_ids.h */ #define PCI_VENDOR_ID_SBSMODULARIO 0x124B#define PCI_SUBVENDOR_ID_SBSMODULARIO 0x124B
@@ -824,6 +839,27 @@ static struct pci_serial_quirk pci_serial_quirks[] __refdata = { .init = pci_inteli960ni_init, .setup = pci_default_setup, }, + { + .vendor = PCI_VENDOR_ID_INTEL, + .device = PCI_DEVICE_ID_INTEL_8257X_SOL, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .setup = skip_tx_en_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTEL, + .device = PCI_DEVICE_ID_INTEL_82573L_SOL, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .setup = skip_tx_en_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTEL, + .device = PCI_DEVICE_ID_INTEL_82573E_SOL, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .setup = skip_tx_en_setup, + }, /* * ITE */
drivers/serial/jsm/jsm_driver.c +3 -0
@@ -84,6 +84,8 @@ static int jsm_probe_one(struct pci_dev *pdev, const struct pci_device_id *ent) brd->pci_dev = pdev;if (pdev->device ==PCIE_DEVICE_ID_NEO_4_IBM ) brd->maxports =4 ; +else if (pdev->device ==PCI_DEVICE_ID_DIGI_NEO_8 ) + brd->maxports =8 ;else brd->maxports =2 ;
@@ -212,6 +214,7 @@ static struct pci_device_id jsm_pci_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_NEO_2RJ45), 0, 0, 2 }, { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_NEO_2RJ45PRI), 0, 0, 3 }, { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCIE_DEVICE_ID_NEO_4_IBM), 0, 0, 4 }, + { PCI_DEVICE(PCI_VENDOR_ID_DIGI, PCI_DEVICE_ID_DIGI_NEO_8), 0, 0, 5 }, { 0, } };MODULE_DEVICE_TABLE (pci, jsm_pci_tbl);
drivers/usb/class/cdc-acm.c +2 -0
@@ -1370,6 +1370,8 @@ static struct usb_device_id acm_ids[] = { { USB_DEVICE(0x0572, 0x1321), /* Conexant USB MODEM CX93010 */ .driver_info =NO_UNION_NORMAL ,/* has no union descriptor */ }, + { USB_DEVICE(0x22b8, 0x6425), /* Motorola MOTOMAGX phones */ + }, /* control interfaces with various AT-command sets */ { USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM,
drivers/usb/core/message.c +8 -3
@@ -651,7 +651,7 @@ int usb_get_descriptor(struct usb_device *dev, unsigned char type,if (result <=0 && result != -ETIMEDOUT )continue ;if (result >1 && ((u8 *)buf)[1 ] != type) { - result = -EPROTO ; + result = -ENODATA ;continue ; }break ;
@@ -694,8 +694,13 @@ static int usb_get_string(struct usb_device *dev, unsigned short langid,USB_REQ_GET_DESCRIPTOR ,USB_DIR_IN , (USB_DT_STRING <<8 ) + index, langid, buf, size, USB_CTRL_GET_TIMEOUT); -if (!(result ==0 || result == -EPIPE )) -break ; +if (result ==0 || result == -EPIPE ) +continue ; +if (result >1 && ((u8 *) buf)[1 ] !=USB_DT_STRING ) { + result = -ENODATA ; +continue ; + } +break ; }return result; }
drivers/usb/host/ehci-hcd.c +2 -0
@@ -485,6 +485,7 @@ static int ehci_init(struct usb_hcd *hcd)* periodic_size can shrink by USBCMD update if hcc_params allows. */ ehci->periodic_size =DEFAULT_I_TDPS ; +INIT_LIST_HEAD (&ehci->cached_itd_list);if ((retval =ehci_mem_init (ehci,GFP_KERNEL )) <0 )return retval;
@@ -497,6 +498,7 @@ static int ehci_init(struct usb_hcd *hcd) ehci->reclaim =NULL ; ehci->next_uframe =-1 ; + ehci->clock_frame =-1 ;/* * dedicate a qh for the async ring head, since we couldn't unlink
drivers/usb/host/ehci-mem.c +1 -0
@@ -128,6 +128,7 @@ static inline void qh_put (struct ehci_qh *qh)static void ehci_mem_cleanup (struct ehci_hcd *ehci) { +free_cached_itd_list (ehci);if (ehci->async)qh_put (ehci->async); ehci->async =NULL ;
drivers/usb/host/ehci-sched.c +48 -8
91 lines not on this page · raw message
drivers/usb/host/ehci.h +6 -0
@@ -87,6 +87,10 @@ struct ehci_hcd { /* one per controller */int next_uframe;/* scan periodic, start here */ unsigned periodic_sched;/* periodic activity count */ +/* list of itds completed while clock_frame was still active */ +struct list_head cached_itd_list; +unsigned clock_frame; +/* per root hub port */ unsigned long reset_done [EHCI_MAX_ROOT_PORTS ];
@@ -210,6 +214,8 @@ timer_action (struct ehci_hcd *ehci, enum ehci_timer_action action) } } +static void free_cached_itd_list (struct ehci_hcd *ehci); +/*-------------------------------------------------------------------------*/ #include <linux/usb/ehci_def.h>
drivers/usb/serial/option.c +5 -0
@@ -289,6 +289,9 @@ static int option_send_setup(struct tty_struct *tty, struct usb_serial_port *po#define ERICSSON_VENDOR_ID 0x0bdb#define ERICSSON_PRODUCT_F3507G 0x1900 +#define BENQ_VENDOR_ID 0x04a5 +#define BENQ_PRODUCT_H10 0x4068 +static struct usb_device_id option_ids[] = { {USB_DEVICE (OPTION_VENDOR_ID ,OPTION_PRODUCT_COLT ) }, {USB_DEVICE (OPTION_VENDOR_ID ,OPTION_PRODUCT_RICOLA ) },
@@ -498,6 +501,8 @@ static struct usb_device_id option_ids[] = { { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_MF628) }, { USB_DEVICE(ZTE_VENDOR_ID, ZTE_PRODUCT_CDMA_TECH) }, { USB_DEVICE(ERICSSON_VENDOR_ID, ERICSSON_PRODUCT_F3507G) }, + { USB_DEVICE(BENQ_VENDOR_ID, BENQ_PRODUCT_H10) }, + { USB_DEVICE(0x1da5, 0x4515) }, /* BenQ H20 */ { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/usb/storage/unusual_devs.h +2 -2
@@ -876,13 +876,13 @@ UNUSUAL_DEV( 0x05e3, 0x0701, 0x0000, 0xffff, "Genesys Logic", "USB to IDE Optical", US_SC_DEVICE, US_PR_DEVICE, NULL, - US_FL_GO_SLOW | US_FL_MAX_SECTORS_64 ), + US_FL_GO_SLOW | US_FL_MAX_SECTORS_64 | US_FL_IGNORE_RESIDUE ),UNUSUAL_DEV (0x05e3 ,0x0702 ,0x0000 ,0xffff ,"Genesys Logic" ,"USB to IDE Disk" ,US_SC_DEVICE ,US_PR_DEVICE ,NULL , - US_FL_GO_SLOW | US_FL_MAX_SECTORS_64 ), + US_FL_GO_SLOW | US_FL_MAX_SECTORS_64 | US_FL_IGNORE_RESIDUE ),/* Reported by Hanno Boeck <[email protected]> * Taken from the Lycoris Kernel */
drivers/watchdog/ks8695_wdt.c +1 -0
@@ -21,6 +21,7 @@#include <linux/watchdog.h> #include <linux/io.h> #include <linux/uaccess.h> +#include <mach/timex.h> #include <mach/regs-timer.h> #define WDT_DEFAULT_TIME 5/* seconds */
drivers/watchdog/rc32434_wdt.c +69 -99
292 lines not on this page · raw message
fs/cifs/CHANGES +2 -0
@@ -1,3 +1,5 @@ +Fix oops in cifs_dfs_ref.c when prefixpath is not reachable when using DFS. + Version 1.55 ------------ Various fixes to make delete of open files behavior more predictable
fs/cifs/sess.c +2 -2
@@ -228,7 +228,7 @@ static int decode_unicode_ssetup(char **pbcc_area, int bleft,kfree (ses->serverOS);/* UTF-8 string will not grow more than four times as big as UCS-16 */ - ses->serverOS =kzalloc (4 * len,GFP_KERNEL ); + ses->serverOS =kzalloc ((4 * len) +2 /* trailing null */ ,GFP_KERNEL );if (ses->serverOS !=NULL )cifs_strfromUCS_le (ses->serverOS, (__le16 *)data, len, nls_cp); data +=2 * (len +1 );
@@ -241,7 +241,7 @@ static int decode_unicode_ssetup(char **pbcc_area, int bleft,return rc;kfree (ses->serverNOS); - ses->serverNOS =kzalloc (4 * len,GFP_KERNEL );/* BB this is wrong length FIXME BB */ + ses->serverNOS =kzalloc ((4 * len) +2 /* trailing null */ ,GFP_KERNEL );if (ses->serverNOS !=NULL ) {cifs_strfromUCS_le (ses->serverNOS, (__le16 *)data, len, nls_cp);
fs/compat_ioctl.c +2 -0
@@ -1938,6 +1938,8 @@ ULONG_IOCTL(SET_BITMAP_FILE)/* Big K */ COMPATIBLE_IOCTL(PIO_FONT) COMPATIBLE_IOCTL(GIO_FONT) +COMPATIBLE_IOCTL(PIO_CMAP) +COMPATIBLE_IOCTL(GIO_CMAP) ULONG_IOCTL(KDSIGACCEPT) COMPATIBLE_IOCTL(KDGETKEYCODE) COMPATIBLE_IOCTL(KDSETKEYCODE)
fs/ext4/ext4.h +1 -1
@@ -862,7 +862,7 @@ static inline unsigned ext4_rec_len_from_disk(__le16 dlen) {unsigned len =le16_to_cpu (dlen); -if (len ==EXT4_MAX_REC_LEN ) +if (len ==EXT4_MAX_REC_LEN || len ==0 )return 1 <<16 ;return len; }
fs/ext4/ialloc.c +7 -0
@@ -703,6 +703,13 @@ struct inode *ext4_new_inode(handle_t *handle, struct inode *dir, int mode)if (sbi->s_log_groups_per_flex) { ret2 =find_group_flex (sb, dir, &group); +if (ret2 ==-1 ) { + ret2 =find_group_other (sb, dir, &group); +if (ret2 ==0 &&printk_ratelimit ()) +printk (KERN_NOTICE "ext4: find_group_flex " +"failed, fallback succeeded dir %lu\n" , + dir->i_ino); + } goto got_group; }
fs/ext4/inode.c +31 -5
@@ -46,8 +46,10 @@static inline int ext4_begin_ordered_truncate (struct inode *inode,loff_t new_size) { -return jbd2_journal_begin_ordered_truncate (&EXT4_I (inode)->jinode, - new_size); +return jbd2_journal_begin_ordered_truncate ( +EXT4_SB (inode->i_sb)->s_journal, + &EXT4_I (inode)->jinode, + new_size); }static void ext4_invalidatepage (struct page *page,unsigned long offset);
@@ -1345,6 +1347,10 @@ retry: goto out; } +/* We cannot recurse into the filesystem as the transaction is already +* started */ + flags |=AOP_FLAG_NOFS ; + page =grab_cache_page_write_begin (mapping, index, flags);if (!page) {ext4_journal_stop (handle);
@@ -1354,7 +1360,7 @@ retry: *pagep = page; ret =block_write_begin (file, mapping, pos, len, flags, pagep, fsdata, - ext4_get_block); + ext4_get_block);if (!ret &&ext4_should_journal_data (inode)) { ret = walk_page_buffers(handle, page_buffers(page),
@@ -2400,6 +2406,7 @@ static int ext4_da_writepages(struct address_space *mapping,struct inode *inode = mapping->host;int no_nrwrite_index_update;long pages_written =0 , pages_skipped; +int range_cyclic, cycled =1 , io_done =0 ;int needed_blocks, ret =0 , nr_to_writebump =0 ;struct ext4_sb_info *sbi =EXT4_SB (mapping->host->i_sb);
@@ -2437,9 +2444,15 @@ static int ext4_da_writepages(struct address_space *mapping,if (wbc->range_start ==0 && wbc->range_end ==LLONG_MAX ) range_whole =1 ; -if (wbc->range_cyclic) + range_cyclic = wbc->range_cyclic; +if (wbc->range_cyclic) { index = mapping->writeback_index; -else +if (index) + cycled =0 ; + wbc->range_start = index <<PAGE_CACHE_SHIFT ; + wbc->range_end =LLONG_MAX ; + wbc->range_cyclic =0 ; + }else index = wbc->range_start >>PAGE_CACHE_SHIFT ; mpd.wbc = wbc;
@@ -2453,6 +2466,7 @@ static int ext4_da_writepages(struct address_space *mapping, wbc->no_nrwrite_index_update =1 ; pages_skipped = wbc->pages_skipped; +retry:while (!ret && wbc->nr_to_write >0 ) {/*
@@ -2495,6 +2509,7 @@ static int ext4_da_writepages(struct address_space *mapping, pages_written += mpd.pages_written; wbc->pages_skipped = pages_skipped; ret =0 ; + io_done =1 ; }else if (wbc->nr_to_write)/* * There is no more writeout needed
@@ -2503,6 +2518,13 @@ static int ext4_da_writepages(struct address_space *mapping,*/ break ; } +if (!io_done && !cycled) { + cycled =1 ; + index =0 ; + wbc->range_start = index <<PAGE_CACHE_SHIFT ; + wbc->range_end = mapping->writeback_index -1 ; + goto retry; + }if (pages_skipped != wbc->pages_skipped) printk(KERN_EMERG "This should not happen leaving %s " "with nr_to_write = %ld ret = %d\n",
@@ -2510,6 +2532,7 @@ static int ext4_da_writepages(struct address_space *mapping,/* Update index */ index += pages_written; + wbc->range_cyclic = range_cyclic;if (wbc->range_cyclic || (range_whole && wbc->nr_to_write >0 ))/* * set the writeback_index so that range_cyclic
@@ -2584,6 +2607,9 @@ retry: ret =PTR_ERR (handle); goto out; } +/* We cannot recurse into the filesystem as the transaction is already +* started */ + flags |=AOP_FLAG_NOFS ; page =grab_cache_page_write_begin (mapping, index, flags);if (!page) {
fs/ext4/mballoc.c +19 -13
@@ -3690,6 +3690,8 @@ ext4_mb_new_inode_pa(struct ext4_allocation_context *ac) pa->pa_free = pa->pa_len;atomic_set (&pa->pa_count,1 );spin_lock_init (&pa->pa_lock); +INIT_LIST_HEAD (&pa->pa_inode_list); +INIT_LIST_HEAD (&pa->pa_group_list); pa->pa_deleted =0 ; pa->pa_linear =0 ;
@@ -3748,6 +3750,7 @@ ext4_mb_new_group_pa(struct ext4_allocation_context *ac)atomic_set (&pa->pa_count,1 );spin_lock_init (&pa->pa_lock);INIT_LIST_HEAD (&pa->pa_inode_list); +INIT_LIST_HEAD (&pa->pa_group_list); pa->pa_deleted =0 ; pa->pa_linear =1 ;
@@ -4456,23 +4459,26 @@ static int ext4_mb_release_context(struct ext4_allocation_context *ac) pa->pa_free -= ac->ac_b_ex.fe_len; pa->pa_len -= ac->ac_b_ex.fe_len;spin_unlock (&pa->pa_lock); -/* -* We want to add the pa to the right bucket. -* Remove it from the list and while adding -* make sure the list to which we are adding -* doesn't grow big. -*/ -if (likely (pa->pa_free)) { -spin_lock (pa->pa_obj_lock); -list_del_rcu (&pa->pa_inode_list); -spin_unlock (pa->pa_obj_lock); -ext4_mb_add_n_trim (ac); - } } -ext4_mb_put_pa (ac, ac->ac_sb, pa); }if (ac->alloc_semp)up_read (ac->alloc_semp); +if (pa) { +/* +* We want to add the pa to the right bucket. +* Remove it from the list and while adding +* make sure the list to which we are adding +* doesn't grow big. We need to release +* alloc_semp before calling ext4_mb_add_n_trim() +*/ +if (pa->pa_linear &&likely (pa->pa_free)) { +spin_lock (pa->pa_obj_lock); +list_del_rcu (&pa->pa_inode_list); +spin_unlock (pa->pa_obj_lock); +ext4_mb_add_n_trim (ac); + } +ext4_mb_put_pa (ac, ac->ac_sb, pa); + }if (ac->ac_bitmap_page)page_cache_release (ac->ac_bitmap_page);if (ac->ac_buddy_page)
fs/ext4/migrate.c +3 -5
@@ -480,7 +480,7 @@ int ext4_ext_migrate(struct inode *inode) + 1);if (IS_ERR (handle)) { retval =PTR_ERR (handle); - goto err_out; +return retval; } tmp_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode,
@@ -488,8 +488,7 @@ int ext4_ext_migrate(struct inode *inode)if (IS_ERR (tmp_inode)) { retval = -ENOMEM ;ext4_journal_stop (handle); - tmp_inode =NULL ; - goto err_out; +return retval; }i_size_write (tmp_inode,i_size_read (inode));/*
@@ -617,8 +616,7 @@ err_out:ext4_journal_stop (handle); -if (tmp_inode) -iput (tmp_inode); +iput (tmp_inode);return retval; }
fs/ext4/super.c +6 -6
@@ -2914,15 +2914,15 @@ static void ext4_write_super(struct super_block *sb)static int ext4_sync_fs (struct super_block *sb,int wait) { -int ret =0 ; +tid_t target;trace_mark (ext4_sync_fs,"dev %s wait %d" , sb->s_id, wait); sb->s_dirt =0 ; -if (wait) - ret =ext4_force_commit (sb); -else -jbd2_journal_start_commit (EXT4_SB (sb)->s_journal,NULL ); -return ret; +if (jbd2_journal_start_commit (EXT4_SB (sb)->s_journal, &target)) { +if (wait) +jbd2_log_wait_commit (EXT4_SB (sb)->s_journal, target); + } +return 0 ; }/*
fs/fs-writeback.c +8 -1
@@ -274,6 +274,7 @@ __sync_single_inode(struct inode *inode, struct writeback_control *wbc)int ret;BUG_ON (inode->i_state &I_SYNC ); +WARN_ON (inode->i_state &I_NEW );/* Set I_SYNC, reset I_DIRTY */ dirty = inode->i_state &I_DIRTY ;
@@ -298,6 +299,7 @@ __sync_single_inode(struct inode *inode, struct writeback_control *wbc) }spin_lock (&inode_lock); +WARN_ON (inode->i_state &I_NEW ); inode->i_state &= ~I_SYNC ;if (!(inode->i_state &I_FREEING )) { if (!(inode->i_state & I_DIRTY) &&
@@ -470,6 +472,11 @@ void generic_sync_sb_inodes(struct super_block *sb,break ; } +if (inode->i_state &I_NEW ) { +requeue_io (inode); +continue ; + } +if (wbc->nonblocking &&bdi_write_congested (bdi)) { wbc->encountered_congestion =1 ;if (!sb_is_blkdev_sb (sb))
@@ -531,7 +538,7 @@ void generic_sync_sb_inodes(struct super_block *sb,list_for_each_entry (inode, &sb->s_inodes, i_sb_list) {struct address_space *mapping; -if (inode->i_state & (I_FREEING |I_WILL_FREE )) +if (inode->i_state & (I_FREEING |I_WILL_FREE |I_NEW ))continue ; mapping = inode->i_mapping;if (mapping->nrpages ==0 )
fs/inode.c +7 -0
@@ -339,6 +339,7 @@ static int invalidate_list(struct list_head *head, struct list_head *dispose)invalidate_inode_buffers (inode);if (!atomic_read (&inode->i_count)) {list_move (&inode->i_list, dispose); +WARN_ON (inode->i_state &I_NEW ); inode->i_state |=I_FREEING ; count++;continue ;
@@ -440,6 +441,7 @@ static void prune_icache(int nr_to_scan)continue ; }list_move (&inode->i_list, &freeable); +WARN_ON (inode->i_state &I_NEW ); inode->i_state |=I_FREEING ; nr_pruned++; }
@@ -595,6 +597,7 @@ void unlock_new_inode(struct inode *inode)* just created it (so there can be no old holders * that haven't tested I_LOCK). */ +WARN_ON ((inode->i_state & (I_LOCK |I_NEW )) != (I_LOCK |I_NEW )); inode->i_state &= ~(I_LOCK |I_NEW );wake_up_inode (inode); }
@@ -1041,6 +1044,7 @@ void generic_delete_inode(struct inode *inode)list_del_init (&inode->i_list);list_del_init (&inode->i_sb_list); +WARN_ON (inode->i_state &I_NEW ); inode->i_state |=I_FREEING ; inodes_stat.nr_inodes--;spin_unlock (&inode_lock);
@@ -1082,16 +1086,19 @@ static void generic_forget_inode(struct inode *inode)spin_unlock (&inode_lock);return ; } +WARN_ON (inode->i_state &I_NEW ); inode->i_state |=I_WILL_FREE ;spin_unlock (&inode_lock);write_inode_now (inode,1 );spin_lock (&inode_lock); +WARN_ON (inode->i_state &I_NEW ); inode->i_state &= ~I_WILL_FREE ; inodes_stat.nr_unused--;hlist_del_init (&inode->i_hash); }list_del_init (&inode->i_list);list_del_init (&inode->i_sb_list); +WARN_ON (inode->i_state &I_NEW ); inode->i_state |=I_FREEING ; inodes_stat.nr_inodes--;spin_unlock (&inode_lock);
fs/inotify.c +1 -1
@@ -156,7 +156,7 @@ static int inotify_handle_get_wd(struct inotify_handle *ih,int ret;do { -if (unlikely (!idr_pre_get (&ih->idr,GFP_KERNEL ))) +if (unlikely (!idr_pre_get (&ih->idr,GFP_NOFS )))return -ENOSPC ; ret =idr_get_new_above (&ih->idr, watch, ih->last_wd+1 , &watch->wd); }while (ret == -EAGAIN );
fs/jbd2/journal.c +11 -6
@@ -430,7 +430,7 @@ int __jbd2_log_space_left(journal_t *journal) }/* -* Called under j_state_lock. Returns true if a transaction was started. +* Called under j_state_lock. Returns true if a transaction commit was started. */ int __jbd2_log_start_commit (journal_t *journal,tid_t target) {
@@ -498,7 +498,8 @@ int jbd2_journal_force_commit_nested(journal_t *journal)/* * Start a commit of the current running transaction (if any). Returns true -* if a transaction was started, and fills its tid in at *ptid +* if a transaction is going to be committed (or is currently already +* committing), and fills its tid in at *ptid */ int jbd2_journal_start_commit (journal_t *journal,tid_t *ptid) {
@@ -508,15 +509,19 @@ int jbd2_journal_start_commit(journal_t *journal, tid_t *ptid)if (journal->j_running_transaction) {tid_t tid = journal->j_running_transaction->t_tid; - ret =__jbd2_log_start_commit (journal, tid); -if (ret && ptid) +__jbd2_log_start_commit (journal, tid); +/* There's a running transaction and we've just made sure +* it's commit has been scheduled. */ +if (ptid) *ptid = tid; - }else if (journal->j_committing_transaction && ptid) { + ret =1 ; + }else if (journal->j_committing_transaction) {/* * If ext3_write_super() recently started a commit, then we * have to wait for completion of that transaction */ - *ptid = journal->j_committing_transaction->t_tid; +if (ptid) + *ptid = journal->j_committing_transaction->t_tid; ret =1 ; }spin_unlock (&journal->j_state_lock);
fs/jbd2/transaction.c +31 -11
57 lines not on this page · raw message
fs/jffs2/readinode.c +33 -9
66 lines not on this page · raw message
fs/ocfs2/journal.h +4 -2
@@ -445,8 +445,10 @@ static inline int ocfs2_jbd2_file_inode(handle_t *handle, struct inode *inode)static inline int ocfs2_begin_ordered_truncate (struct inode *inode,loff_t new_size) { -return jbd2_journal_begin_ordered_truncate (&OCFS2_I (inode)->ip_jinode, - new_size); +return jbd2_journal_begin_ordered_truncate ( +OCFS2_SB (inode->i_sb)->journal->j_journal, + &OCFS2_I (inode)->ip_jinode, + new_size); }#endif /* OCFS2_JOURNAL_H */
fs/pipe.c +4 -4
@@ -699,12 +699,12 @@ pipe_rdwr_fasync(int fd, struct file *filp, int on)int retval;mutex_lock (&inode->i_mutex); - retval =fasync_helper (fd, filp, on, &pipe->fasync_readers); - -if (retval >=0 ) +if (retval >=0 ) { retval =fasync_helper (fd, filp, on, &pipe->fasync_writers); - +if (retval <0 )/* this can happen only if on == T */ +fasync_helper (-1 , filp,0 , &pipe->fasync_readers); + }mutex_unlock (&inode->i_mutex);if (retval <0 )
fs/proc/page.c +2 -2
@@ -80,7 +80,7 @@ static const struct file_operations proc_kpagecount_operations = {#define KPF_RECLAIM 9#define KPF_BUDDY 10 -#define kpf_copy_bit (flags, srcpos, dstpos) (((flags >> srcpos) & 1) << dstpos) +#define kpf_copy_bit (flags, dstpos, srcpos) (((flags >> srcpos) & 1) << dstpos)static ssize_t kpageflags_read (struct file *file,char __user *buf,size_t count,loff_t *ppos)
@@ -107,7 +107,7 @@ static ssize_t kpageflags_read(struct file *file, char __user *buf,else kflags = ppage->flags; - uflags =kpf_copy_bit (KPF_LOCKED , PG_locked, kflags) | + uflags =kpf_copy_bit (kflags,KPF_LOCKED , PG_locked) |kpf_copy_bit (kflags,KPF_ERROR , PG_error) |kpf_copy_bit (kflags,KPF_REFERENCED , PG_referenced) | kpf_copy_bit(kflags, KPF_UPTODATE, PG_uptodate) |
fs/seq_file.c +32 -4
@@ -48,8 +48,16 @@ int seq_open(struct file *file, const struct seq_operations *op)*/ file->f_version =0 ; -/* SEQ files support lseek, but not pread/pwrite */ - file->f_mode &= ~(FMODE_PREAD |FMODE_PWRITE ); +/* +* seq_files support lseek() and pread(). They do not implement +* write() at all, but we clear FMODE_PWRITE here for historical +* reasons. +* +* If a client of seq_files a) implements file.write() and b) wishes to +* support pwrite() then that client will need to implement its own +* file.open() which calls seq_open() and then sets FMODE_PWRITE. +*/ + file->f_mode &= ~FMODE_PWRITE ;return 0 ; }EXPORT_SYMBOL (seq_open);
@@ -131,6 +139,22 @@ ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)int err =0 ;mutex_lock (&m->lock); + +/* Don't assume *ppos is where we left it */ +if (unlikely (*ppos != m->read_pos)) { + m->read_pos = *ppos; +while ((err =traverse (m, *ppos)) == -EAGAIN ) + ; +if (err) { +/* With prejudice... */ + m->read_pos =0 ; + m->version =0 ; + m->index =0 ; + m->count =0 ; + goto Done; + } + } +/* * seq_file->op->..m_start/m_stop/m_next may do special actions * or optimisations based on the file->f_version, so we want to
@@ -230,8 +254,10 @@ Fill: Done:if (!copied) copied = err; -else +else { *ppos += copied; + m->read_pos += copied; + } file->f_version = m->version;mutex_unlock (&m->lock);return copied;
@@ -266,16 +292,18 @@ loff_t seq_lseek(struct file *file, loff_t offset, int origin)if (offset <0 )break ; retval = offset; -if (offset != file->f_pos) { +if (offset != m->read_pos) {while ((retval=traverse (m, offset)) == -EAGAIN ) ;if (retval) {/* with extreme prejudice... */ file->f_pos =0 ; + m->read_pos =0 ; m->version =0 ; m->index =0 ; m->count =0 ; }else { + m->read_pos = offset; retval = file->f_pos = offset; } }
fs/timerfd.c +6 -6
@@ -186,10 +186,9 @@ SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags)BUILD_BUG_ON (TFD_CLOEXEC !=O_CLOEXEC );BUILD_BUG_ON (TFD_NONBLOCK !=O_NONBLOCK ); -if (flags & ~(TFD_CLOEXEC |TFD_NONBLOCK )) -return -EINVAL ; -if (clockid !=CLOCK_MONOTONIC && - clockid !=CLOCK_REALTIME ) +if ((flags & ~TFD_CREATE_FLAGS ) || + (clockid !=CLOCK_MONOTONIC && + clockid !=CLOCK_REALTIME ))return -EINVAL ; ctx =kzalloc (sizeof (*ctx),GFP_KERNEL );
@@ -201,7 +200,7 @@ SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags)hrtimer_init (&ctx->tmr, clockid,HRTIMER_MODE_ABS ); ufd =anon_inode_getfd ("[timerfd]" , &timerfd_fops, ctx, - flags & (O_CLOEXEC |O_NONBLOCK )); + flags &TFD_SHARED_FCNTL_FLAGS );if (ufd <0 )kfree (ctx);
@@ -219,7 +218,8 @@ SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags,if (copy_from_user (&ktmr, utmr,sizeof (ktmr)))return -EFAULT ; -if (!timespec_valid (&ktmr.it_value) || +if ((flags & ~TFD_SETTIME_FLAGS ) || + !timespec_valid (&ktmr.it_value) || !timespec_valid (&ktmr.it_interval))return -EINVAL ;
include/drm/i915_drm.h +2 -0
@@ -177,6 +177,8 @@ typedef struct _drm_i915_sarea {#define DRM_IOCTL_I915_SET_VBLANK_PIPE DRM_IOW( DRM_COMMAND_BASE + DRM_I915_SET_VBLANK_PIPE, drm_i915_vblank_pipe_t)#define DRM_IOCTL_I915_GET_VBLANK_PIPE DRM_IOR( DRM_COMMAND_BASE + DRM_I915_GET_VBLANK_PIPE, drm_i915_vblank_pipe_t)#define DRM_IOCTL_I915_VBLANK_SWAP DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_VBLANK_SWAP, drm_i915_vblank_swap_t) +#define DRM_IOCTL_I915_GEM_INIT DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_INIT, struct drm_i915_gem_init) +#define DRM_IOCTL_I915_GEM_EXECBUFFER DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER, struct drm_i915_gem_execbuffer)#define DRM_IOCTL_I915_GEM_PIN DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_PIN, struct drm_i915_gem_pin)#define DRM_IOCTL_I915_GEM_UNPIN DRM_IOW(DRM_COMMAND_BASE + DRM_I915_GEM_UNPIN, struct drm_i915_gem_unpin)#define DRM_IOCTL_I915_GEM_BUSY DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_BUSY, struct drm_i915_gem_busy)
include/linux/fs.h +12 -6
@@ -63,24 +63,30 @@ extern int dir_notify_enable;#define MAY_ACCESS 16#define MAY_OPEN 32 +/* +* flags in file.f_mode. Note that FMODE_READ and FMODE_WRITE must correspond +* to O_WRONLY and O_RDWR via the strange trick in __dentry_open() +*/ +/* file is open for reading */ #define FMODE_READ ((__force fmode_t)1)/* file is open for writing */ #define FMODE_WRITE ((__force fmode_t)2)/* file is seekable */ #define FMODE_LSEEK ((__force fmode_t)4) -/* file can be accessed using pread/pwrite */ +/* file can be accessed using pread */ #define FMODE_PREAD ((__force fmode_t)8) -#define FMODE_PWRITE FMODE_PREAD/* These go hand in hand */ +/* file can be accessed using pwrite */ +#define FMODE_PWRITE ((__force fmode_t)16)/* File is opened for execution with sys_execve / sys_uselib */ -#define FMODE_EXEC ((__force fmode_t)16) +#define FMODE_EXEC ((__force fmode_t)32)/* File is opened with O_NDELAY (only set for block devices) */ -#define FMODE_NDELAY ((__force fmode_t)32) +#define FMODE_NDELAY ((__force fmode_t)64)/* File is opened with O_EXCL (only set for block devices) */ -#define FMODE_EXCL ((__force fmode_t)64) +#define FMODE_EXCL ((__force fmode_t)128)/* File is opened using open(.., 3, ..) and is writeable only for ioctls (specialy hack for floppy.c) */ -#define FMODE_WRITE_IOCTL ((__force fmode_t)128) +#define FMODE_WRITE_IOCTL ((__force fmode_t)256)#define RW_MASK 1#define RWA_MASK 2
include/linux/jbd2.h +2 -1
@@ -1087,7 +1087,8 @@ extern int jbd2_journal_clear_err (journal_t *);extern int jbd2_journal_bmap (journal_t *,unsigned long ,unsigned long long *);extern int jbd2_journal_force_commit (journal_t *);extern int jbd2_journal_file_inode (handle_t *handle,struct jbd2_inode *inode); -extern int jbd2_journal_begin_ordered_truncate (struct jbd2_inode *inode,loff_t new_size); +extern int jbd2_journal_begin_ordered_truncate (journal_t *journal, +struct jbd2_inode *inode,loff_t new_size);extern void jbd2_journal_init_jbd_inode (struct jbd2_inode *jinode,struct inode *inode);extern void jbd2_journal_release_jbd_inode (journal_t *journal,struct jbd2_inode *jinode);
include/linux/mm.h +16 -3
@@ -1027,10 +1027,23 @@ extern void free_bootmem_with_active_regions(int nid,typedef int (*work_fn_t )(unsigned long ,unsigned long ,void *);extern void work_with_active_regions (int nid,work_fn_t work_fn,void *data);extern void sparse_memory_present_with_active_regions (int nid); -#ifndef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID -extern int early_pfn_to_nid (unsigned long pfn); -#endif /* CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID */ #endif /* CONFIG_ARCH_POPULATES_NODE_MAP */ + +#if !defined(CONFIG_ARCH_POPULATES_NODE_MAP ) && \ + !defined(CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID ) +static inline int __early_pfn_to_nid (unsigned long pfn) +{ +return 0 ; +} +#else +/* please see mm/page_alloc.c */ +extern int __meminit early_pfn_to_nid (unsigned long pfn); +#ifdef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID +/* there is a per-arch backend function. */ +extern int __meminit __early_pfn_to_nid (unsigned long pfn); +#endif /* CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID */ +#endif +extern void set_dma_reserve (unsigned long new_dma_reserve);extern void memmap_init_zone (unsigned long ,int ,unsigned long ,unsigned long ,enum memmap_context );
include/linux/mmzone.h +1 -1
@@ -1067,7 +1067,7 @@ void sparse_init(void);#endif /* CONFIG_SPARSEMEM */ #ifdef CONFIG_NODES_SPAN_OTHER_NODES -#define early_pfn_in_nid (pfn, nid) (early_pfn_to_nid(pfn) == (nid)) +bool early_pfn_in_nid (unsigned long pfn,int nid);#else #define early_pfn_in_nid (pfn, nid) (1)#endif
include/linux/pci_ids.h +4 -0
@@ -1445,6 +1445,7 @@#define PCI_DEVICE_ID_DIGI_DF_M_E 0x0071#define PCI_DEVICE_ID_DIGI_DF_M_IOM2_A 0x0072#define PCI_DEVICE_ID_DIGI_DF_M_A 0x0073 +#define PCI_DEVICE_ID_DIGI_NEO_8 0x00B1#define PCI_DEVICE_ID_NEO_2DB9 0x00C8#define PCI_DEVICE_ID_NEO_2DB9PRI 0x00C9#define PCI_DEVICE_ID_NEO_2RJ45 0x00CA
@@ -2317,6 +2318,9 @@#define PCI_DEVICE_ID_INTEL_82378 0x0484#define PCI_DEVICE_ID_INTEL_I960 0x0960#define PCI_DEVICE_ID_INTEL_I960RM 0x0962 +#define PCI_DEVICE_ID_INTEL_8257X_SOL 0x1062 +#define PCI_DEVICE_ID_INTEL_82573E_SOL 0x1085 +#define PCI_DEVICE_ID_INTEL_82573L_SOL 0x108F#define PCI_DEVICE_ID_INTEL_82815_MC 0x1130#define PCI_DEVICE_ID_INTEL_82815_CGC 0x1132#define PCI_DEVICE_ID_INTEL_82092AA_0 0x1221
include/linux/seq_file.h +1 -0
@@ -19,6 +19,7 @@ struct seq_file {size_t from;size_t count;loff_t index; +loff_t read_pos;u64 version;struct mutex lock;const struct seq_operations *op;
include/linux/serial_core.h +1 -0
@@ -288,6 +288,7 @@ struct uart_port {#define UPF_HARDPPS_CD ((__force upf_t) (1 << 11))
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Re: Linux 2.6.28.8 (ocfs2 build failure)
In reply to Greg KHEnable all possible OCFS2 kconfig options:
In file included from fs/ocfs2/alloc.c:42:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer type fs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a cast fs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
CC [M] fs/ocfs2/buffer_head_io.o
In file included from fs/ocfs2/aops.c:42:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer type fs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a cast fs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
make[2]: *** [fs/ocfs2/aops.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from fs/ocfs2/buffer_head_io.c:37:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer type fs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a cast fs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
make[2]: *** [fs/ocfs2/buffer_head_io.o] Error 1
make[2]: *** [fs/ocfs2/alloc.o] Error 1
Signature · 1 line
~Randy
Re: [stable] Linux 2.6.28.8 (ocfs2 build failure)
Quoted 16 lines · Randy Dunlap
Enable all possible OCFS2 kconfig options:
In file included from
fs/ocfs2/alloc.c:42:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
CC [M]fs/ocfs2/buffer_head_io.o
In file included fromfs/ocfs2/aops.c:42:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
make[2]: *** [fs/ocfs2/aops.o] Error 1
Quoted 8 lines
make[2]: *** Waiting for unfinished jobs....
In file included fromfs/ocfs2/buffer_head_io.c:37:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
make[2]: *** [fs/ocfs2/buffer_head_io.o] Error 1
make[2]: *** [fs/ocfs2/alloc.o] Error 1
Did this show up in 2.6.28.7?
Odds are it's one of the jbd2 patches from Ted. Ted, any ideas?
thanks,
greg k-h
Re: [stable] Linux 2.6.28.8 (ocfs2 build failure)
Quoted 26 lines · Greg KH
Quoted 16 lines · Randy Dunlap
Enable all possible OCFS2 kconfig options:
In file included from
fs/ocfs2/alloc.c:42:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
CC [M]fs/ocfs2/buffer_head_io.o
In file included fromfs/ocfs2/aops.c:42:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
make[2]: *** [fs/ocfs2/aops.o] Error 1Quoted 8 lines
make[2]: *** Waiting for unfinished jobs....
In file included fromfs/ocfs2/buffer_head_io.c:37:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
make[2]: *** [fs/ocfs2/buffer_head_io.o] Error 1
make[2]: *** [fs/ocfs2/alloc.o] Error 1
Quoted 1 line
Did this show up in 2.6.28.7?
no.
Quoted 1 line
Odds are it's one of the jbd2 patches from Ted. Ted, any ideas?
Signature · 1 line
~Randy
Greg KH
Acked-by Joel BeckerRe: [stable] Linux 2.6.28.8 (ocfs2 build failure)
Quoted 27 lines · Randy Dunlap
Quoted 26 lines · Greg KH
Quoted 24 lines · Randy Dunlap
Enable all possible OCFS2 kconfig options:
In file included from
fs/ocfs2/alloc.c:42:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
CC [M]fs/ocfs2/buffer_head_io.o
In file included fromfs/ocfs2/aops.c:42:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
make[2]: *** [fs/ocfs2/aops.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included fromfs/ocfs2/buffer_head_io.c:37:fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate':fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer typefs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a castfs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate'
make[2]: *** [fs/ocfs2/buffer_head_io.o] Error 1
make[2]: *** [fs/ocfs2/alloc.o] Error 1
Quoted 5 lines
Quoted 1 line
Did this show up in 2.6.28.7?
no.
Quoted 1 line
Odds are it's one of the jbd2 patches from Ted. Ted, any ideas?
I tracked this down to commit 54dc90 in the 2.6.28.8 tree.
I've included it below. Jan and Ted, any ideas on how to fix this error?
Should I just revert this from the 2.6.28 tree? Or does no one really care about ocfs2 in the stable tree?
thanks,
greg k-h
From: Jan Kara <[email protected]>
Date: Tue, 24 Feb 2009 12:14:43 -0500
Subject: jbd2: Avoid possible NULL dereference in jbd2_journal_begin_ordered_truncate()
To: [email protected]
Cc: "Theodore Ts'o" <[email protected]>, Dan Carpenter <[email protected]>, [email protected], Jan Kara <[email protected]>, [email protected], [email protected]
Message-ID: <[email protected]>
From: Jan Kara <[email protected]>
(cherry picked from commit 7f5aa215088b817add9c71914b83650bdd49f8a9)
If we race with commit code setting i_transaction to NULL, we could possibly dereference it. Proper locking requires the journal pointer (to access journal->j_list_lock), which we don't have. So we have to change the prototype of the function so that filesystem passes us the journal pointer. Also add a more detailed comment about why the function jbd2_journal_begin_ordered_truncate() does what it does and how it should be used.
Thanks to Dan Carpenter <[email protected]> for pointing to the suspitious code.
--- fs/ext4/inode.c | 6 ++++-- fs/jbd2/transaction.c | 42 +++++++++++++++++++++++++++++++----------- fs/ocfs2/journal.h | 6 ++++-- include/linux/jbd2.h | 3 ++- 4 files changed, 41 insertions(+), 16 deletions(-)
fs/ext4/inode.c +4 -2
@@ -46,8 +46,10 @@static inline int ext4_begin_ordered_truncate (struct inode *inode,loff_t new_size) { -return jbd2_journal_begin_ordered_truncate (&EXT4_I (inode)->jinode, - new_size); +return jbd2_journal_begin_ordered_truncate ( +EXT4_SB (inode->i_sb)->s_journal, + &EXT4_I (inode)->jinode, + new_size); }static void ext4_invalidatepage (struct page *page,unsigned long offset);
fs/jbd2/transaction.c +31 -11
57 lines not on this page · raw message
fs/ocfs2/journal.h +4 -2
@@ -445,8 +445,10 @@ static inline int ocfs2_jbd2_file_inode(static inline int ocfs2_begin_ordered_truncate (struct inode *inode,loff_t new_size) { -return jbd2_journal_begin_ordered_truncate (&OCFS2_I (inode)->ip_jinode, - new_size); +return jbd2_journal_begin_ordered_truncate ( +OCFS2_SB (inode->i_sb)->journal->j_journal, + &OCFS2_I (inode)->ip_jinode, + new_size); }#endif /* OCFS2_JOURNAL_H */
include/linux/jbd2.h +2 -1
@@ -1087,7 +1087,8 @@ extern int jbd2_journal_clear_err (jextern int jbd2_journal_bmap (journal_t *,unsigned long ,unsigned long long *);extern int jbd2_journal_force_commit (journal_t *);extern int jbd2_journal_file_inode (handle_t *handle,struct jbd2_inode *inode); -extern int jbd2_journal_begin_ordered_truncate (struct jbd2_inode *inode,loff_t new_size); +extern int jbd2_journal_begin_ordered_truncate (journal_t *journal, +struct jbd2_inode *inode,loff_t new_size);extern void jbd2_journal_init_jbd_inode (struct jbd2_inode *jinode,struct inode *inode);extern void jbd2_journal_release_jbd_inode (journal_t *journal,struct jbd2_inode *jinode);
Theodore Tso
maintainerRe: [stable] Linux 2.6.28.8 (ocfs2 build failure)
Quoted 5 lines · Greg KH
I tracked this down to commit 54dc90 in the 2.6.28.8 tree.
I've included it below. Jan and Ted, any ideas on how to fix this error?
2.6.29 dropped the CONFIG_OCFS2_COMPAT_JBD option; if you enable it, causes a compile failure in 2.6.28.8. This should fix it...
fs/ocfs2/ocfs2_jbd_compat.h +2 -1
@@ -60,7 +60,8 @@ static inline int jbd2_journal_file_inode(handle_t *handle,return 0 ; } -static inline int jbd2_journal_begin_ordered_truncate (struct jbd2_inode *inode, +static inline int jbd2_journal_begin_ordered_truncate (journal_t *journal, +struct jbd2_inode *inode,loff_t new_size) {return 0 ;
Quoted 2 lines
Should I just revert this from the 2.6.28 tree? Or does no one really care about ocfs2 in the stable tree?
I'm not sure how much people will care about CONFIG_OCFS2_COMPAT_JBD, given that it disappears in 2.6.29, but the above patch should fix things.
- Ted
----- Original Message ----
Quoted 10 lines
From: Greg KH <[email protected]>
To: [email protected]; Andrew Morton <[email protected]>; [email protected]; [email protected]
Sent: Tuesday, March 17, 2009 2:20:28 AM
Subject: Linux 2.6.28.8thanks,
greg "turns out, no one likes witty release notices" k-h
so, what happened to Og? Hope the punishment wasn't to harsh ...
Cheers
Martin
Quoted 9 lines · Martin Knoblauch
----- Original Message ----
Quoted 6 lines
From: Greg KH <[email protected]>
To: [email protected]; Andrew Morton <[email protected]>; [email protected]; [email protected]
Sent: Tuesday, March 17, 2009 2:20:28 AM
Subject: Linux 2.6.28.8
Quoted 6 lines
Quoted 4 lines
thanks,
greg "turns out, no one likes witty release notices" k-h
so, what happened to Og? Hope the punishment wasn't to harsh ...
He's back with the rest of the Oracle gang, like always.
Re: [stable] Linux 2.6.28.8 (ocfs2 build failure)
In reply to Theodore TsoQuoted 9 lines · Theodore Tso
Quoted 5 lines · Greg KH
I tracked this down to commit 54dc90 in the 2.6.28.8 tree.
I've included it below. Jan and Ted, any ideas on how to fix this error?
2.6.29 dropped the
CONFIG_OCFS2_COMPAT_JBDoption; if you enable it, causes a compile failure in 2.6.28.8. This should fix it...
Can you send it in a format that I can apply it in?
thanks,
greg k-h
Theodore Tso
maintainerRe: [stable] Linux 2.6.28.8 (ocfs2 build failure)
Quoted 5 lines · Greg KH
Quoted 4 lines · Theodore Tso
Quoted 3 lines · Greg KH
I tracked this down to commit 54dc90 in the 2.6.28.8 tree.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
I've included it below. Jan and Ted, any ideas on how to fix this error?
2.6.29 dropped the
CONFIG_OCFS2_COMPAT_JBDoption; if you enable it, causes a compile failure in 2.6.28.8. This should fix it...Can you send it in a format that I can apply it in?
Will do. I have a batch of final patches that went in right before 2.6.29, I'll include it those patches.
- Ted
Re: [stable] Linux 2.6.28.8 (ocfs2 build failure)
In reply to Theodore TsoQuoted 25 lines · Theodore Tso
Quoted 5 lines · Greg KH
I tracked this down to commit 54dc90 in the 2.6.28.8 tree.
I've included it below. Jan and Ted, any ideas on how to fix this error?
2.6.29 dropped the
CONFIG_OCFS2_COMPAT_JBDoption; if you enable it, causes a compile failure in 2.6.28.8. This should fix it...fs/ocfs2/ocfs2_jbd_compat.h +2
-1@@ -60,7 +60,8 @@ static inline int jbd2_journal_file_inode(handle_t *handle,return 0 ; } -static inline int jbd2_journal_begin_ordered_truncate (struct jbd2_inode *inode, +static inline int jbd2_journal_begin_ordered_truncate (journal_t *journal, +struct jbd2_inode *inode,loff_t new_size) {return 0 ;
Quoted 6 lines
Quoted 2 lines
Should I just revert this from the 2.6.28 tree? Or does no one really care about ocfs2 in the stable tree?
I'm not sure how much people will care about
CONFIG_OCFS2_COMPAT_JBD, given that it disappears in 2.6.29, but the above patch should fix things.
CONFIG_OCFS2_COMPAT_JBD is off by default, and existed for a really short time so I don't think it'll matter much if it's broken (obviously fixing it is better). Btw, people definitely use Ocfs2 in the stable tree - I've submitted Ocfs2 patches to stable in the past.
--Mark
--
Mark Fasheh