Linux 2.6.31.6
Subsystems (58)
I'm announcing the release of the 2.6.31.6 kernel. All users of the 2.6.31 kernel series are very strongly encouraged to upgrade.
I'll also be replying to this message with a copy of the patch between 2.6.31.5 and 2.6.31.6
The updated 2.6.31.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.31.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.31.y.git;a=summarythanks,
greg k-h
------------
Documentation/dontdiff | 1 Makefile | 2 arch/alpha/kernel/vmlinux.lds.S | 1 arch/m68k/Kconfig | 6 arch/mips/kernel/Makefile | 2 arch/mips/kernel/vmlinux.lds.S | 12 arch/powerpc/platforms/powermac/cpufreq_32.c | 8 arch/powerpc/platforms/powermac/low_i2c.c | 7 arch/powerpc/platforms/powermac/pci.c | 61 ++ arch/powerpc/platforms/powermac/smp.c | 2 arch/powerpc/platforms/pseries/msi.c | 2 arch/powerpc/platforms/pseries/xics.c | 9 arch/sparc/kernel/ldc.c | 4 arch/sparc/kernel/setup_32.c | 2 arch/sparc/kernel/setup_64.c | 2 arch/x86/ia32/ia32entry.S | 5 arch/x86/include/asm/amd_iommu.h | 1 arch/x86/include/asm/uv/uv_hub.h | 7 arch/x86/kernel/amd_iommu.c | 2 arch/x86/kernel/amd_iommu_init.c | 24 + arch/x86/kernel/apic/x2apic_uv_x.c | 8 arch/x86/kernel/cpu/mcheck/therm_throt.c | 67 +-- arch/x86/kernel/e820.c | 4 arch/x86/kernel/tlb_uv.c | 4 arch/x86/kvm/i8254.c | 2 arch/x86/kvm/lapic.c | 2 arch/x86/kvm/x86.c | 3 arch/x86/xen/enlighten.c | 11 drivers/acpi/pci_root.c | 11 drivers/acpi/scan.c | 12 drivers/ata/ahci.c | 52 -- drivers/ata/libata-core.c | 12 drivers/ata/libata-eh.c | 6 drivers/ata/pata_sc1200.c | 3 drivers/ata/pata_via.c | 2 drivers/ata/sata_nv.c | 18 drivers/ata/sata_via.c | 1 drivers/base/driver.c | 2 drivers/char/Kconfig | 6 drivers/char/agp/intel-agp.c | 7 drivers/char/hvc_xen.c | 25 + drivers/char/vt.c | 3 drivers/cpuidle/cpuidle.c | 5 drivers/gpu/drm/i915/i915_drv.h | 2 drivers/gpu/drm/i915/i915_reg.h | 14 drivers/gpu/drm/i915/intel_display.c | 73 +++ drivers/hwmon/it87.c | 5 drivers/input/mouse/synaptics.c | 10 drivers/macintosh/via-pmu.c | 40 + drivers/md/dm-exception-store.c | 22 drivers/md/dm-exception-store.h | 8 drivers/md/dm-log-userspace-base.c | 2 drivers/md/dm-snap-persistent.c | 16 drivers/md/dm-snap.c | 25 - drivers/md/dm.c | 11 drivers/misc/sgi-gru/gruprocfs.c | 13 drivers/net/bonding/bond_main.c | 2 drivers/net/wireless/b43/rfkill.c | 3 drivers/net/wireless/iwlwifi/iwl-rx.c | 34 + drivers/net/wireless/iwlwifi/iwl3945-base.c | 33 + drivers/net/wireless/libertas/if_usb.c | 2 drivers/net/wireless/ray_cs.c | 2 drivers/pcmcia/cs.c | 69 +-- drivers/pcmcia/yenta_socket.c | 12 drivers/scsi/dpt_i2o.c | 4 drivers/serial/8250_pci.c | 11 drivers/usb/serial/option.c | 10 drivers/usb/serial/sierra.c | 23 - drivers/video/console/.gitignore | 2 drivers/video/console/Kconfig | 9 drivers/video/console/Makefile | 12 drivers/video/console/prom.uni | 11 drivers/video/console/promcon.c | 598 --------------------------- drivers/virtio/virtio_ring.c | 3 drivers/watchdog/riowd.c | 2 fs/cifs/connect.c | 3 fs/fuse/file.c | 5 fs/hfsplus/wrapper.c | 4 fs/nfs/client.c | 2 fs/nfs/dir.c | 2 fs/nfs/direct.c | 1 fs/nfs/nfs4proc.c | 15 fs/nfs/nfs4renewd.c | 6 fs/nfs/nfs4xdr.c | 1 fs/nfs/super.c | 2 fs/nilfs2/btnode.c | 3 fs/notify/inode_mark.c | 6 fs/pipe.c | 41 + include/drm/drm_pciids.h | 1 include/linux/moduleparam.h | 1 include/linux/pci_ids.h | 4 include/pcmcia/ss.h | 4 kernel/futex.c | 20 kernel/params.c | 17 mm/mempolicy.c | 13 mm/nommu.c | 6 mm/swapfile.c | 3 mm/vmscan.c | 2 net/mac80211/cfg.c | 6 net/mac80211/tx.c | 2 net/sched/cls_api.c | 2 net/unix/af_unix.c | 2 scripts/Makefile | 1 security/keys/keyctl.c | 2 sound/pci/ice1712/ice1724.c | 2 virt/kvm/kvm_main.c | 7 106 files changed, 715 insertions(+), 980 deletions(-)
Alan Cox (4):
ray_cs: Fix copy_from_user handling
dpt_i2o: Fix up copy*user
tty: Mark generic_serial users as BROKEN
pata_sc1200: Fix crash on boot
Anand V. Avati (1):
fuse: prevent fuse_put_request on invalid pointer
Andre Detsch (1):
powerpc/pci: Fix regression in powerpc MSI-X
Andre Przywara (1):
KVM: ignore reads from AMDs C1E enabled MSR
Andrew Morton (1):
dm log: userspace fix incorrect luid cast in userspace_ctr
Bastian Blank (1):
powerpc: Remove SMP warning from PowerMac cpufreq
Ben Hutchings (2):
hfsplus: refuse to mount volumes larger than 2TB
nfs: Avoid overrun when copying client IP address string
Benjamin Herrenschmidt (4):
8250_pci: add IBM Saturn serial card powerpc/pmac: Fix PowerSurge SMP IPI allocation powerpc/pmac: Fix issues with sleep on some powerbooks
powerpc: Fix some late PowerMac G5 with PCIe ATI graphics
Björn Smedman (1):
mac80211: fix for incorrect sequence number on hostapd injected frames
Bo Liu (1):
mm: remove incorrect swap_count() from try_to_unuse()
Bryan Wu (1):
USB: option: TLAYTECH TUE800 support
Chuck Ebbert (1):
ahci: revert "Restore SB600 sata controller 64 bit DMA"
Darren Hart (2):
futex: Check for NULL keys in match_futex
futex: Move drop_futex_key_refs out of spinlock'ed region
Darrick J. Wong (1):
KVM: Prevent kvm_init from corrupting debugfs structures
David Henningsson (1):
ALSA: ice1724 - Make call to set hw params succeed on ESI Juli@
David Howells (2):
NOMMU: Don't pass NULL pointers to fput() in do_mmap_pgoff()
KEYS: get_instantiation_keyring() should inc the keyring refcount in all cases
David S. Miller (2):
sparc64: Set IRQF_DISABLED on LDC channel IRQs.
sparc: Kill PROM console driver.
David Woodhouse (1):
libertas if_usb: Fix crash on 64-bit machines
Dmitry Torokhov (1):
Input: synaptics - add another Protege M300 to rate blacklist
Earl Chew (1):
fs: pipe.c null pointer dereference
Elina Pasheva (1):
USB: serial: sierra driver send_setup() autopm fix
Eric Paris (1):
fsnotify: do not set group for a mark before it is on the i_list
Fabian Henze (2):
agp/intel: Add B43 chipset support
drm/i915: add B43 chipset support
Gleb Natapov (1):
KVM: get_tss_base_addr() should return a gpa_t
Greg Kroah-Hartman (1):
Linux 2.6.31.6
Huzaifa Sidhpurwala (1):
USB: option: Support for AIRPLUS MCD650 Datacard
Ingo Molnar (2):
x86: mce: Clean up thermal throttling state tracking code
x86: mce: Fix thermal throttling message storm
Jan Beulich (1):
x86-64: Fix register leak in 32-bit syscall audting
Jean Delvare (1):
hwmon: (it87) Fix VID reading on IT8718F/IT8720F
Jens Axboe (1):
fuse: fix kunmap in fuse_ioctl_copy_user
Jeremy Fitzhardinge (2):
xen/hvc: make sure console output is always emitted, with explicit polling
xen: mask extended topology info in cpuid
Jiri Bohac (1):
bonding: fix a race condition in calls to slave MII ioctls
Jiri Pirko (1):
netlink: fix typo in initialization (CVE-2009-3612)
Joerg Roedel (2):
x86/amd-iommu: Workaround for erratum 63 x86/amd-iommu: Un__init function required on shutdown
Johannes Berg (1):
mac80211: check interface is down before type change
Jonathan Brassow (1):
dm snapshot: free exception store on init failure
[email protected] (2):
sata_via: Remove redundant device ID for VIA VT8261
pata_via: extend the rev_max for VT6330
KOSAKI Motohiro (2):
mbind(): fix leak of never putback pages
do_mbind(): fix memory leak
Kevin Hilman (1):
cpuidle: always return with interrupts enabled
Kiyoshi Ueda (1):
dm: dec_pending needs locking to save error value
Larry Finger (1):
b43: Fix Bugzilla #14181 and the bug from the previous 'fix'
Len Brown (1):
Revert "ACPI: Attach the ACPI device to the ACPI handle as early as possible"
Linus Torvalds (1):
sgi-gru: decrapfiy options_write() function
Manuel Lauss (1):
mips: fix build of vmlinux.lds
Marcelo Tosatti (1):
KVM: use proper hrtimer function to retrieve expiration time
Michael S. Tsirkin (1):
virtio: order used ring after used index read
Mikulas Patocka (5):
dm snapshot: sort by chunk size to fix race
dm exception store: fix failed set_chunk_size error path dm snapshot: lock snapshot while supplying status dm snapshot: require non zero chunk size by end of ctr dm snapshot: use unsigned integer chunk size
OGAWA Hirofumi (1):
dpt_i2o: Fix typo of EINVAL
Rafael J. Wysocki (2):
ACPI / PCI: Fix NULL pointer dereference in acpi_get_pci_dev() (rev. 2) PM / yenta: Split resume into early and late parts (rev. 4)
Reinette Chatre (2):
iwlwifi: fix potential rx buffer loss
iwlwifi: reduce noise when skb allocation fails
Robin Holt (2):
x86, UV: Fix information in __uv_hub_info structure
x86, UV: Set DELIVERY_MODE=4 for vector=NMI_VECTOR in uv_hub_send_ipi()
Ronnie Furuskog (1):
USB: option: Patch for Huawei Mobile Broadband E270+ Modem
Rusty Russell (3):
param: fix lots of bugs with writing charp params from sysfs, by leaking mem.
param: fix NULL comparison on oom
param: fix setting arrays of bool
Ryusuke Konishi (1):
nilfs2: fix dirty page accounting leak causing hang at write
Sam Ravnborg (1):
alpha: fix build after vmlinux.lds.S cleanup
Stas Sergeev (1):
Driver core: fix driver_register() return value
Steve French (1):
CIFS: Fixing to avoid invalid kfree() in cifs_get_tcp_session()
Tejun Heo (3):
libata: fix internal command failure handling
libata: fix PMP initialization
sata_nv: make sure link is brough up online when skipping hardreset
Terry Loftin (1):
nfs: Panic when commit fails
Thomas Gleixner (3):
futex: Handle spurious wake up
futex: Fix spurious wakeup for requeue_pi really
watchdog: Fix rio watchdog probe function
Tomoki Sekiyama (1):
AF_UNIX: Fix deadlock on connecting to shutdown socket (CVE-2009-3621)
Trond Myklebust (4):
NFSv4: Fix a bug when the server returns NFS4ERR_RESOURCE
NFSv4: Fix two unbalanced put_rpccred() issues.
NFSv4: Kill nfs4_renewd_prepare_shutdown()
NFSv4: The link() operation should return any delegation on the file
Wu Fengguang (1):
vmscan: limit VM_EXEC protection to file pages
Yinghai Lu (2):
pci: increase alignment to make more space for hidden code
nfs: Fix nfs_parse_mount_options() kfree() leak
Zdenek Kabelac (1):
dm: add missing del_gendisk to alloc_dev error path
Zhenyu Wang (3):
drm/i915: Fix FDI M/N setting according with correct color depth drm/i915: fix to setup display reference clock control on Ironlake drm/i915: fix panel fitting filter coefficient select for Ironlake
Documentation/dontdiff +0 -1
@@ -152,7 +152,6 @@ piggy.gz piggyback pnmtologo ppc_defs.h* -promcon_tbl.c pss_boot.h qconf raid6altivec*.c
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 31 -EXTRAVERSION = .5 +EXTRAVERSION = .6 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
arch/alpha/kernel/vmlinux.lds.S +1 -0
@@ -1,4 +1,5 @@ #include <asm-generic/vmlinux.lds.h> +#include <asm/thread_info.h> #include <asm/page.h> OUTPUT_FORMAT("elf64-alpha")
arch/m68k/Kconfig +3 -3
@@ -555,7 +555,7 @@ config HPAPCI config MVME147_SCC bool "SCC support for MVME147 serial ports" - depends on MVME147 + depends on MVME147 && BROKEN help This is the driver for the serial ports on the Motorola MVME147 boards. Everyone using one of these boards should say Y here.
@@ -570,14 +570,14 @@ config SERIAL167 config MVME162_SCC bool "SCC support for MVME162 serial ports" - depends on MVME16x + depends on MVME16x && BROKEN help This is the driver for the serial ports on the Motorola MVME162 and 172 boards. Everyone using one of these boards should say Y here. config BVME6000_SCC bool "SCC support for BVME6000 serial ports" - depends on BVME6000 + depends on BVME6000 && BROKEN help This is the driver for the serial ports on the BVME4000 and BVME6000 boards from BVM Ltd. Everyone using one of these boards should say
arch/mips/kernel/Makefile +2 -0
@@ -2,6 +2,8 @@ # Makefile for the Linux/MIPS kernel. # +CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) + extra-y := head.o init_task.o vmlinux.lds obj-y += cpu-probe.o branch.o entry.o genex.o irq.o process.o \
arch/mips/kernel/vmlinux.lds.S +6 -6
@@ -10,15 +10,15 @@ PHDRS { note PT_NOTE FLAGS(4); /* R__ */ } -ifdef CONFIG_32BIT - ifdef CONFIG_CPU_LITTLE_ENDIAN +#ifdef CONFIG_32BIT + #ifdef CONFIG_CPU_LITTLE_ENDIAN jiffies = jiffies_64; - else + #else jiffies = jiffies_64 + 4; - endif -else + #endif +#else jiffies = jiffies_64; -endif +#endif SECTIONS {
arch/powerpc/platforms/powermac/cpufreq_32.c +0 -8
@@ -44,14 +44,6 @@*/ #undef DEBUG_FREQ -/* -* There is a problem with the core cpufreq code on SMP kernels, -* it won't recalculate the Bogomips properly -*/ -#ifdef CONFIG_SMP -#warning "WARNING, CPUFREQ not recommended on SMP kernels" -#endif -extern void low_choose_7447a_dfs (int dfs);extern void low_choose_750fx_pll (int pll);extern void low_sleep_handler (void );
arch/powerpc/platforms/powermac/low_i2c.c +5 -2
@@ -540,8 +540,11 @@ static struct pmac_i2c_host_kw *__init kw_i2c_host_init(struct device_node *np)/* Make sure IRQ is disabled */ kw_write_reg (reg_ier,0 ); -/* Request chip interrupt */ -if (request_irq (host->irq, kw_i2c_irq,0 ,"keywest i2c" , host)) +/* Request chip interrupt. We set IRQF_TIMER because we don't +* want that interrupt disabled between the 2 passes of driver +* suspend or we'll have issues running the pfuncs +*/ +if (request_irq (host->irq, kw_i2c_irq,IRQF_TIMER ,"keywest i2c" , host)) host->irq =NO_IRQ ; printk(KERN_INFO "KeyWest i2c @0x%08x irq %d %s\n",
arch/powerpc/platforms/powermac/pci.c +61 -0
64 lines not on this page · raw message
arch/powerpc/platforms/powermac/smp.c +1 -1
@@ -408,7 +408,7 @@ static void __init smp_psurge_setup_cpu(int cpu_nr)/* reset the entry point so if we get another intr we won't * try to startup again */ out_be32 (psurge_start,0x100 ); -if (setup_irq (30 , &psurge_irqaction)) +if (setup_irq (irq_create_mapping (NULL ,30 ), &psurge_irqaction))printk (KERN_ERR "Couldn't get primary IPI interrupt" ); }
arch/powerpc/platforms/pseries/msi.c +0 -2
@@ -432,8 +432,6 @@ static int rtas_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)/* Read config space back so we can restore after reset */ read_msi_msg (virq, &msg); entry->msg = msg; - -unmask_msi_irq (virq); }return 0 ;
arch/powerpc/platforms/pseries/xics.c +9 -0
@@ -18,6 +18,7 @@#include <linux/init.h> #include <linux/radix-tree.h> #include <linux/cpu.h> +#include <linux/msi.h> #include <linux/of.h> #include <asm/firmware.h>
@@ -219,6 +220,14 @@ static void xics_unmask_irq(unsigned int virq)static unsigned int xics_startup (unsigned int virq) { +/* +* The generic MSI code returns with the interrupt disabled on the +* card, using the MSI mask bits. Firmware doesn't appear to unmask +* at that level, so we do it here by hand. +*/ +if (irq_to_desc (virq)->msi_desc) +unmask_msi_irq (virq); +/* unmask it */ xics_unmask_irq (virq);return 0 ;
arch/sparc/kernel/ldc.c +2 -2
@@ -1242,13 +1242,13 @@ int ldc_bind(struct ldc_channel *lp, const char *name)snprintf (lp->tx_irq_name,LDC_IRQ_NAME_MAX ,"%s TX" , name); err =request_irq (lp->cfg.rx_irq, ldc_rx, -IRQF_SAMPLE_RANDOM |IRQF_SHARED , +IRQF_SAMPLE_RANDOM |IRQF_DISABLED |IRQF_SHARED , lp->rx_irq_name, lp);if (err)return err; err =request_irq (lp->cfg.tx_irq, ldc_tx, -IRQF_SAMPLE_RANDOM |IRQF_SHARED , +IRQF_SAMPLE_RANDOM |IRQF_DISABLED |IRQF_SHARED , lp->tx_irq_name, lp);if (err) {free_irq (lp->cfg.rx_irq, lp);
arch/sparc/kernel/setup_32.c +0 -2
@@ -263,8 +263,6 @@ void __init setup_arch(char **cmdline_p)#ifdef CONFIG_DUMMY_CONSOLE conswitchp = &dummy_con; -#elif defined(CONFIG_PROM_CONSOLE ) - conswitchp = &prom_con;#endif boot_flags_init (*cmdline_p);
arch/sparc/kernel/setup_64.c +0 -2
@@ -295,8 +295,6 @@ void __init setup_arch(char **cmdline_p)#ifdef CONFIG_DUMMY_CONSOLE conswitchp = &dummy_con; -#elif defined(CONFIG_PROM_CONSOLE ) - conswitchp = &prom_con;#endif idprom_init ();
arch/x86/ia32/ia32entry.S +2 -3
@@ -204,7 +204,7 @@ sysexit_from_sys_call: movl RDI-ARGOFFSET(%rsp),%r8d /* reload 5th syscall arg */ .endm - .macro auditsys_exit exit,ebpsave=RBP + .macro auditsys_exit exit testl $(_TIF_ALLWORK_MASK & ~_TIF_SYSCALL_AUDIT),TI_flags(%r10) jnz ia32_ret_from_sys_call TRACE_IRQS_ON
@@ -217,7 +217,6 @@ sysexit_from_sys_call: call audit_syscall_exit GET_THREAD_INFO(%r10) movl RAX-ARGOFFSET(%rsp),%eax /* reload syscall return value */ - movl \ebpsave-ARGOFFSET(%rsp),%ebp /* reload user register value */ movl $(_TIF_ALLWORK_MASK & ~_TIF_SYSCALL_AUDIT),%edi cli TRACE_IRQS_OFF
@@ -351,7 +350,7 @@ cstar_auditsys: jmp cstar_dispatch sysretl_audit: - auditsys_exit sysretl_from_sys_call, RCX /* user %ebp in RCX slot */ + auditsys_exit sysretl_from_sys_call #endif cstar_tracesys:
arch/x86/include/asm/amd_iommu.h +1 -0
@@ -30,6 +30,7 @@ extern irqreturn_t amd_iommu_int_handler(int irq, void *data);extern void amd_iommu_flush_all_domains (void );extern void amd_iommu_flush_all_devices (void );extern void amd_iommu_shutdown (void ); +extern void amd_iommu_apply_erratum_63 (u16 devid);#else static inline int amd_iommu_init (void ) {return -ENODEV ; }static inline void amd_iommu_detect (void ) { }
arch/x86/include/asm/uv/uv_hub.h +7 -0
@@ -18,6 +18,8 @@#include <asm/types.h> #include <asm/percpu.h> #include <asm/uv/uv_mmrs.h> +#include <asm/irq_vectors.h> +#include <asm/io_apic.h> /*
@@ -420,9 +422,14 @@ static inline void uv_set_cpu_scir_bits(int cpu, unsigned char value)static inline void uv_hub_send_ipi (int pnode,int apicid,int vector) {unsigned long val; +unsigned long dmode = dest_Fixed; + +if (vector ==NMI_VECTOR ) + dmode = dest_NMI; val = (1UL <<UVH_IPI_INT_SEND_SHFT ) | ((apicid) <<UVH_IPI_INT_APIC_ID_SHFT ) | + (dmode <<UVH_IPI_INT_DELIVERY_MODE_SHFT ) | (vector <<UVH_IPI_INT_VECTOR_SHFT );uv_write_global_mmr64 (pnode,UVH_IPI_INT , val); }
arch/x86/kernel/amd_iommu.c +2 -0
@@ -1112,6 +1112,8 @@ static void __detach_device(struct protection_domain *domain, u16 devid) amd_iommu_dev_table[devid].data[1 ] =0 ; amd_iommu_dev_table[devid].data[2 ] =0 ; +amd_iommu_apply_erratum_63 (devid); +/* decrease reference counter */ domain->dev_cnt -=1 ;
arch/x86/kernel/amd_iommu_init.c +23 -1
@@ -240,7 +240,7 @@ static void iommu_feature_enable(struct amd_iommu *iommu, u8 bit)writel (ctrl, iommu->mmio_base +MMIO_CONTROL_OFFSET ); } -static void __init iommu_feature_disable (struct amd_iommu *iommu,u8 bit) +static void iommu_feature_disable (struct amd_iommu *iommu,u8 bit) {u32 ctrl;
@@ -509,6 +509,26 @@ static void set_dev_entry_bit(u16 devid, u8 bit) amd_iommu_dev_table[devid].data[i] |= (1 << _bit); } +static int get_dev_entry_bit (u16 devid,u8 bit) +{ +int i = (bit >>5 ) &0x07 ; +int _bit = bit &0x1f ; + +return (amd_iommu_dev_table[devid].data[i] & (1 << _bit)) >> _bit; +} + + +void amd_iommu_apply_erratum_63 (u16 devid) +{ +int sysmgt; + + sysmgt =get_dev_entry_bit (devid,DEV_ENTRY_SYSMGT1 ) | + (get_dev_entry_bit (devid,DEV_ENTRY_SYSMGT2 ) <<1 ); + +if (sysmgt ==0x01 ) +set_dev_entry_bit (devid,DEV_ENTRY_IW ); +} +/* Writes the specific IOMMU for a device into the rlookup table */ static void __init set_iommu_for_device (struct amd_iommu *iommu,u16 devid) {
@@ -537,6 +557,8 @@ static void __init set_dev_entry_from_acpi(struct amd_iommu *iommu,if (flags &ACPI_DEVFLAG_LINT1 )set_dev_entry_bit (devid,DEV_ENTRY_LINT1_PASS ); +amd_iommu_apply_erratum_63 (devid); +set_iommu_for_device (iommu, devid); }
arch/x86/kernel/apic/x2apic_uv_x.c +4 -4
@@ -352,14 +352,14 @@ static __init void get_lowmem_redirect(unsigned long *base, unsigned long *size)for (i =0 ; i <ARRAY_SIZE (redir_addrs); i++) { alias.v =uv_read_local_mmr (redir_addrs[i].alias); -if (alias.s.base ==0 ) { +if (alias.s.enable && alias.s.base ==0 ) { *size = (1UL << alias.s.m_alias); redirect.v =uv_read_local_mmr (redir_addrs[i].redirect); *base = (unsigned long )redirect.s.dest_base <<DEST_SHIFT ;return ; } } -BUG (); + *base = *size =0 ; }enum map_type {map_wb, map_uc};
@@ -609,12 +609,12 @@ void __init uv_system_init(void)uv_cpu_hub_info (cpu)->lowmem_remap_base = lowmem_redir_base;uv_cpu_hub_info (cpu)->lowmem_remap_top = lowmem_redir_size;uv_cpu_hub_info (cpu)->m_val = m_val; -uv_cpu_hub_info (cpu)->n_val = m_val; +uv_cpu_hub_info (cpu)->n_val = n_val;uv_cpu_hub_info (cpu)->numa_blade_id = blade;uv_cpu_hub_info (cpu)->blade_processor_id = lcpu;uv_cpu_hub_info (cpu)->pnode = pnode;uv_cpu_hub_info (cpu)->pnode_mask = pnode_mask; -uv_cpu_hub_info (cpu)->gpa_mask = (1 << (m_val + n_val)) -1 ; +uv_cpu_hub_info (cpu)->gpa_mask = (1UL << (m_val + n_val)) -1 ;uv_cpu_hub_info (cpu)->gnode_upper = gnode_upper;uv_cpu_hub_info (cpu)->gnode_extra = gnode_extra;uv_cpu_hub_info (cpu)->global_mmr_base = mmr_base;
arch/x86/kernel/cpu/mcheck/therm_throt.c +42 -25
120 lines not on this page · raw message
arch/x86/kernel/e820.c +2 -2
@@ -1378,8 +1378,8 @@ static unsigned long ram_alignment(resource_size_t pos)if (mb <16 )return 1024 *1024 ; -/* To 32MB for anything above that */ -return 32 *1024 *1024 ; +/* To 64MB for anything above that */ +return 64 *1024 *1024 ; }#define MAX_RESOURCE_SIZE ((resource_size_t)-1)
arch/x86/kernel/tlb_uv.c +2 -2
@@ -843,8 +843,8 @@ static int __init uv_bau_init(void) GFP_KERNEL, cpu_to_node(cur_cpu)); uv_bau_retry_limit =1 ; - uv_nshift = uv_hub_info->n_val; - uv_mmask = (1UL << uv_hub_info->n_val) -1 ; + uv_nshift = uv_hub_info->m_val; + uv_mmask = (1UL << uv_hub_info->m_val) -1 ; nblades =uv_num_possible_blades (); uv_bau_table_bases = (struct bau_control **)
arch/x86/kvm/i8254.c +1 -1
@@ -116,7 +116,7 @@ static s64 __kpit_elapsed(struct kvm *kvm)* itself with the initial count and continues counting * from there. */ - remaining =hrtimer_expires_remaining (&ps->pit_timer.timer); + remaining =hrtimer_get_remaining (&ps->pit_timer.timer); elapsed = ps->pit_timer.period -ktime_to_ns (remaining); elapsed =mod_64 (elapsed, ps->pit_timer.period);
arch/x86/kvm/lapic.c +1 -1
@@ -464,7 +464,7 @@ static u32 apic_get_tmcct(struct kvm_lapic *apic)if (apic_get_reg (apic,APIC_TMICT ) ==0 )return 0 ; - remaining =hrtimer_expires_remaining (&apic->lapic_timer.timer); + remaining =hrtimer_get_remaining (&apic->lapic_timer.timer);if (ktime_to_ns (remaining) <0 ) remaining =ktime_set (0 ,0 );
arch/x86/kvm/x86.c +2 -1
@@ -949,6 +949,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)case MSR_P6_EVNTSEL0 :case MSR_P6_EVNTSEL1 :case MSR_K7_EVNTSEL0 : +case MSR_K8_INT_PENDING_MSG : data =0 ;break ;case MSR_MTRRcap:
@@ -3761,7 +3762,7 @@ static int save_guest_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector,return kvm_write_guest (vcpu->kvm, gpa, seg_desc,8 ); } -static u32 get_tss_base_addr (struct kvm_vcpu *vcpu, +static gpa_t get_tss_base_addr (struct kvm_vcpu *vcpu,struct desc_struct *seg_desc) {u32 base_addr;
arch/x86/xen/enlighten.c +10 -1
@@ -178,6 +178,7 @@ static __read_mostly unsigned int cpuid_leaf1_ecx_mask = ~0;static void xen_cpuid (unsigned int *ax,unsigned int *bx,unsigned int *cx,unsigned int *dx) { +unsigned maskebx = ~0 ;unsigned maskecx = ~0 ;unsigned maskedx = ~0 ;
@@ -185,9 +186,16 @@ static void xen_cpuid(unsigned int *ax, unsigned int *bx,* Mask out inconvenient features, to try and disable as many * unsupported kernel subsystems as possible. */ -if (*ax ==1 ) { +switch (*ax) { +case 1 : maskecx = cpuid_leaf1_ecx_mask; maskedx = cpuid_leaf1_edx_mask; +break ; + +case 0xb : +/* Suppress extended topology stuff */ + maskebx =0 ; +break ; } asm(XEN_EMULATE_PREFIX "cpuid"
@@ -197,6 +205,7 @@ static void xen_cpuid(unsigned int *ax, unsigned int *bx, "=d" (*dx) : "0" (*ax), "2" (*cx)); + *bx &= maskebx; *cx &= maskecx; *dx &= maskedx; }
drivers/acpi/pci_root.c +11 -0
@@ -400,6 +400,17 @@ struct pci_dev *acpi_get_pci_dev(acpi_handle handle) pbus = pdev->subordinate;pci_dev_put (pdev); + +/* +* This function may be called for a non-PCI device that has a +* PCI parent (eg. a disk under a PCI SATA controller). In that +* case pdev->subordinate will be NULL for the parent. +*/ +if (!pbus) { +dev_dbg (&pdev->dev,"Not a PCI-to-PCI bridge\n" ); + pdev =NULL ; +break ; + } } out:list_for_each_entry_safe (node, tmp, &device_list, node)
drivers/acpi/scan.c +2 -10
@@ -1264,16 +1264,6 @@ acpi_add_single_object(struct acpi_device **child,acpi_device_set_id (device, parent, handle, type);/* -* The ACPI device is attached to acpi handle before getting -* the power/wakeup/peformance flags. Otherwise OS can't get -* the corresponding ACPI device by the acpi handle in the course -* of getting the power/wakeup/performance flags. -*/ - result =acpi_device_set_context (device, type); -if (result) - goto end; - -/* * Power Management * ---------------- */
@@ -1303,6 +1293,8 @@ acpi_add_single_object(struct acpi_device **child, goto end; } +if ((result =acpi_device_set_context (device, type))) + goto end; result =acpi_device_register (device, parent);
drivers/ata/ahci.c +2 -50
70 lines not on this page · raw message
drivers/ata/libata-core.c +7 -5
@@ -5008,12 +5008,14 @@ void ata_qc_complete(struct ata_queued_cmd *qc) qc->flags |=ATA_QCFLAG_FAILED ;if (unlikely (qc->flags &ATA_QCFLAG_FAILED )) { -if (!ata_tag_internal (qc->tag)) { -/* always fill result TF for failed qc */ -fill_result_tf (qc); +/* always fill result TF for failed qc */ +fill_result_tf (qc); + +if (!ata_tag_internal (qc->tag))ata_qc_schedule_eh (qc); -return ; - } +else +__ata_qc_complete (qc); +return ; }/* read result TF if requested */
drivers/ata/libata-eh.c +4 -2
@@ -2849,12 +2849,14 @@ static int ata_eh_revalidate_and_attach(struct ata_link *link,* device detection messages backwards. */ ata_for_each_dev (dev, link,ALL ) { -if (!(new_mask & (1 << dev->devno)) || - dev->class ==ATA_DEV_PMP ) +if (!(new_mask & (1 << dev->devno)))continue ; dev->class = ehc->classes[dev->devno]; +if (dev->class ==ATA_DEV_PMP ) +continue ; + ehc->i.flags |=ATA_EHI_PRINTINFO ; rc =ata_dev_configure (dev); ehc->i.flags &= ~ATA_EHI_PRINTINFO ;
drivers/ata/pata_sc1200.c +1 -2
@@ -235,8 +235,7 @@ static int sc1200_init_one(struct pci_dev *dev, const struct pci_device_id *id) .udma_mask = ATA_UDMA2, .port_ops = &sc1200_port_ops }; -/* Can't enable port 2 yet, see top comments */ -const struct ata_port_info *ppi[] = { &info, }; +const struct ata_port_info *ppi[] = { &info,NULL };return ata_pci_sff_init_one (dev, ppi, &sc1200_sht,NULL ); }
drivers/ata/pata_via.c +1 -1
@@ -111,7 +111,7 @@ static const struct via_isa_bridge { { "vt8251", PCI_DEVICE_ID_VIA_8251, 0x00, 0x2f, VIA_UDMA_133 | VIA_BAD_AST }, { "cx700", PCI_DEVICE_ID_VIA_CX700, 0x00, 0x2f, VIA_UDMA_133 | VIA_BAD_AST | VIA_SATA_PATA }, { "vt6410", PCI_DEVICE_ID_VIA_6410, 0x00, 0x2f, VIA_UDMA_133 | VIA_BAD_AST | VIA_NO_ENABLES }, - { "vt6415", PCI_DEVICE_ID_VIA_6415, 0x00, 0x2f, VIA_UDMA_133 | VIA_BAD_AST | VIA_NO_ENABLES }, + { "vt6415", PCI_DEVICE_ID_VIA_6415, 0x00, 0xff, VIA_UDMA_133 | VIA_BAD_AST | VIA_NO_ENABLES }, { "vt8237a", PCI_DEVICE_ID_VIA_8237A, 0x00, 0x2f, VIA_UDMA_133 | VIA_BAD_AST }, { "vt8237", PCI_DEVICE_ID_VIA_8237, 0x00, 0x2f, VIA_UDMA_133 | VIA_BAD_AST }, { "vt8235", PCI_DEVICE_ID_VIA_8235, 0x00, 0x2f, VIA_UDMA_133 | VIA_BAD_AST },
drivers/ata/sata_nv.c +15 -3
@@ -1594,9 +1594,21 @@ static int nv_hardreset(struct ata_link *link, unsigned int *class, !ata_dev_enabled(link->device)) sata_link_hardreset(link, sata_deb_timing_hotplug, deadline, NULL, NULL); - else if (!(ehc->i.flags & ATA_EHI_QUIET)) -ata_link_printk (link,KERN_INFO , -"nv: skipping hardreset on occupied port\n" ); + else { +const unsigned long *timing =sata_ehc_deb_timing (ehc); +int rc; + +if (!(ehc->i.flags &ATA_EHI_QUIET )) +ata_link_printk (link,KERN_INFO ,"nv: skipping " +"hardreset on occupied port\n" ); + +/* make sure the link is online */ + rc =sata_link_resume (link, timing, deadline); +/* whine about phy resume failure but proceed */ +if (rc && rc != -EOPNOTSUPP ) +ata_link_printk (link,KERN_WARNING ,"failed to resume " +"link (errno=%d)\n" , rc); + }/* device signature acquisition is unreliable */ return -EAGAIN ;
drivers/ata/sata_via.c +0 -1
@@ -93,7 +93,6 @@ static const struct pci_device_id svia_pci_tbl[] = { { PCI_VDEVICE(VIA, 0x7372), vt6420 }, { PCI_VDEVICE(VIA, 0x5287), vt8251 }, /* 2 sata chnls (Master/Slave) */ { PCI_VDEVICE(VIA, 0x9000), vt8251 }, - { PCI_VDEVICE(VIA, 0x9040), vt8251 }, { } /* terminate list */ };
drivers/base/driver.c +1 -1
@@ -236,7 +236,7 @@ int driver_register(struct device_driver *drv)put_driver (other);printk (KERN_ERR "Error: Driver '%s' is already registered, " "aborting...\n" , drv->name); -return -EEXIST ; +return -EBUSY ; } ret =bus_add_driver (drv);
drivers/char/Kconfig +3 -3
@@ -323,7 +323,7 @@ config SPECIALIX config SX tristate "Specialix SX (and SI) card support" - depends on SERIAL_NONSTANDARD && (PCI || EISA || ISA) + depends on SERIAL_NONSTANDARD && (PCI || EISA || ISA) && BROKEN help This is a driver for the SX and SI multiport serial cards. Please read the file <file:Documentation/serial/sx.txt> for details.
@@ -334,7 +334,7 @@ config SX config RIO tristate "Specialix RIO system support" - depends on SERIAL_NONSTANDARD + depends on SERIAL_NONSTANDARD && BROKEN help This is a driver for the Specialix RIO, a smart serial card which drives an outboard box that can support up to 128 ports. Product
@@ -395,7 +395,7 @@ config NOZOMI config A2232 tristate "Commodore A2232 serial support (EXPERIMENTAL)" - depends on EXPERIMENTAL && ZORRO && BROKEN_ON_SMP + depends on EXPERIMENTAL && ZORRO && BROKEN ---help--- This option supports the 2232 7-port serial card shipped with the Amiga 2000 and other Zorro-bus machines, dating from 1989. At
drivers/char/agp/intel-agp.c +7 -0
@@ -36,6 +36,8 @@#define PCI_DEVICE_ID_INTEL_Q35_IG 0x29B2#define PCI_DEVICE_ID_INTEL_Q33_HB 0x29D0#define PCI_DEVICE_ID_INTEL_Q33_IG 0x29D2 +#define PCI_DEVICE_ID_INTEL_B43_HB 0x2E40 +#define PCI_DEVICE_ID_INTEL_B43_IG 0x2E42#define PCI_DEVICE_ID_INTEL_GM45_HB 0x2A40#define PCI_DEVICE_ID_INTEL_GM45_IG 0x2A42#define PCI_DEVICE_ID_INTEL_IGD_E_HB 0x2E00
@@ -81,6 +83,7 @@ agp_bridge->dev->device ==PCI_DEVICE_ID_INTEL_G45_HB || \ agp_bridge->dev->device ==PCI_DEVICE_ID_INTEL_GM45_HB || \ agp_bridge->dev->device ==PCI_DEVICE_ID_INTEL_G41_HB || \ + agp_bridge->dev->device ==PCI_DEVICE_ID_INTEL_B43_HB || \ agp_bridge->dev->device ==PCI_DEVICE_ID_INTEL_IGDNG_D_HB || \ agp_bridge->dev->device ==PCI_DEVICE_ID_INTEL_IGDNG_M_HB || \ agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IGDNG_MA_HB)
@@ -1232,6 +1235,7 @@ static void intel_i965_get_gtt_range(int *gtt_offset, int *gtt_size)case PCI_DEVICE_ID_INTEL_Q45_HB :case PCI_DEVICE_ID_INTEL_G45_HB :case PCI_DEVICE_ID_INTEL_G41_HB : +case PCI_DEVICE_ID_INTEL_B43_HB :case PCI_DEVICE_ID_INTEL_IGDNG_D_HB :case PCI_DEVICE_ID_INTEL_IGDNG_M_HB :case PCI_DEVICE_ID_INTEL_IGDNG_MA_HB :
@@ -2208,6 +2212,8 @@ static const struct intel_driver_description { "Q45/Q43", NULL, &intel_i965_driver }, {PCI_DEVICE_ID_INTEL_G45_HB ,PCI_DEVICE_ID_INTEL_G45_IG ,0 , "G45/G43", NULL, &intel_i965_driver }, + { PCI_DEVICE_ID_INTEL_B43_HB, PCI_DEVICE_ID_INTEL_B43_IG, 0, + "B43", NULL, &intel_i965_driver }, { PCI_DEVICE_ID_INTEL_G41_HB, PCI_DEVICE_ID_INTEL_G41_IG, 0, "G41", NULL, &intel_i965_driver }, { PCI_DEVICE_ID_INTEL_IGDNG_D_HB, PCI_DEVICE_ID_INTEL_IGDNG_D_IG, 0,
@@ -2408,6 +2414,7 @@ static struct pci_device_id agp_intel_pci_table[] = {ID (PCI_DEVICE_ID_INTEL_Q45_HB ),ID (PCI_DEVICE_ID_INTEL_G45_HB ),ID (PCI_DEVICE_ID_INTEL_G41_HB ), +ID (PCI_DEVICE_ID_INTEL_B43_HB ),ID (PCI_DEVICE_ID_INTEL_IGDNG_D_HB ),ID (PCI_DEVICE_ID_INTEL_IGDNG_M_HB ), ID(PCI_DEVICE_ID_INTEL_IGDNG_MA_HB),
drivers/char/hvc_xen.c +24 -1
@@ -55,7 +55,7 @@ static inline void notify_daemon(void)notify_remote_via_evtchn (xen_start_info->console.domU.evtchn); } -static int write_console (uint32_t vtermno,const char *data,int len) +static int __write_console (const char *data,int len) {struct xencons_interface *intf =xencons_interface ();XENCONS_RING_IDX cons, prod;
@@ -76,6 +76,29 @@ static int write_console(uint32_t vtermno, const char *data, int len)return sent; } +static int write_console (uint32_t vtermno,const char *data,int len) +{ +int ret = len; + +/* +* Make sure the whole buffer is emitted, polling if +* necessary. We don't ever want to rely on the hvc daemon +* because the most interesting console output is when the +* kernel is crippled. +*/ +while (len) { +int sent =__write_console (data, len); + + data += sent; + len -= sent; + +if (unlikely (len)) +HYPERVISOR_sched_op (SCHEDOP_yield,NULL ); + } + +return ret; +} +static int read_console (uint32_t vtermno,char *buf,int len) {struct xencons_interface *intf =xencons_interface ();
drivers/char/vt.c +0 -3
@@ -2948,9 +2948,6 @@ int __init vty_init(const struct file_operations *console_fops)panic ("Couldn't register console driver\n" );kbd_init ();console_map_init (); -#ifdef CONFIG_PROM_CONSOLE -prom_con_init (); -#endif #ifdef CONFIG_MDA_CONSOLE mda_console_init ();#endif
drivers/cpuidle/cpuidle.c +4 -1
@@ -75,8 +75,11 @@ static void cpuidle_idle_call(void)#endif /* ask the governor for the next state */ next_state = cpuidle_curr_governor->select (dev); -if (need_resched ()) +if (need_resched ()) { +local_irq_enable ();return ; + } + target_state = &dev->states[next_state];/* enter the state and update stats */
drivers/gpu/drm/i915/i915_drv.h +2 -0
@@ -854,6 +854,7 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller); (dev)->pci_device ==0x2E12 || \ (dev)->pci_device ==0x2E22 || \ (dev)->pci_device ==0x2E32 || \ + (dev)->pci_device ==0x2E42 || \ (dev)->pci_device ==0x0042 || \ (dev)->pci_device == 0x0046)
@@ -866,6 +867,7 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller); (dev)->pci_device == 0x2E12 || \ (dev)->pci_device == 0x2E22 || \ (dev)->pci_device == 0x2E32 || \ + (dev)->pci_device == 0x2E42 || \ IS_GM45(dev))#define IS_IGDG (dev) ((dev)->pci_device == 0xa001)
drivers/gpu/drm/i915/i915_reg.h +12 -2
@@ -1616,6 +1616,11 @@#define PIPE_START_VBLANK_INTERRUPT_STATUS (1UL<<2)/* 965 or later */ #define PIPE_VBLANK_INTERRUPT_STATUS (1UL<<1)#define PIPE_OVERLAY_UPDATED_STATUS (1UL<<0) +#define PIPE_BPC_MASK (7 << 5)/* Ironlake */ +#define PIPE_8BPC (0 << 5) +#define PIPE_10BPC (1 << 5) +#define PIPE_6BPC (2 << 5) +#define PIPE_12BPC (3 << 5)#define DSPARB 0x70030#define DSPARB_CSTART_MASK (0x7f << 7)
@@ -1866,6 +1871,11 @@#define PFA_CTL_1 0x68080#define PFB_CTL_1 0x68880#define PF_ENABLE (1<<31) +#define PF_FILTER_MASK (3<<23) +#define PF_FILTER_PROGRAMMED (0<<23) +#define PF_FILTER_MED_3x3 (1<<23) +#define PF_FILTER_EDGE_ENHANCE (2<<23) +#define PF_FILTER_EDGE_SOFTEN (3<<23)#define PFA_WIN_SZ 0x68074#define PFB_WIN_SZ 0x68874#define PFA_WIN_POS 0x68070
@@ -1985,11 +1995,11 @@#define DREF_CPU_SOURCE_OUTPUT_MASK (3<<13)#define DREF_SSC_SOURCE_DISABLE (0<<11)#define DREF_SSC_SOURCE_ENABLE (2<<11) -#define DREF_SSC_SOURCE_MASK (2<<11) +#define DREF_SSC_SOURCE_MASK (3<<11)#define DREF_NONSPREAD_SOURCE_DISABLE (0<<9)#define DREF_NONSPREAD_CK505_ENABLE (1<<9)#define DREF_NONSPREAD_SOURCE_ENABLE (2<<9) -#define DREF_NONSPREAD_SOURCE_MASK (2<<9) +#define DREF_NONSPREAD_SOURCE_MASK (3<<9)#define DREF_SUPERSPREAD_SOURCE_DISABLE (0<<7)#define DREF_SUPERSPREAD_SOURCE_ENABLE (2<<7)#define DREF_SSC4_DOWNSPREAD (0<<6)
drivers/gpu/drm/i915/intel_display.c +68 -5
106 lines not on this page · raw message
drivers/hwmon/it87.c +2 -3
@@ -1028,12 +1028,11 @@ static int __init it87_find(unsigned short *address, chip_type, *address, sio_data->revision);/* Read GPIO config and VID value from LDN 7 (GPIO) */ -if (chip_type !=IT8705F_DEVID ) { +if (sio_data->type != it87) {int reg;superio_select (GPIO ); -if ((chip_type == it8718) || - (chip_type == it8720)) +if (sio_data->type == it8718 || sio_data->type == it8720) sio_data->vid_value =superio_inb (IT87_SIO_VID_REG ); reg =superio_inb (IT87_SIO_PINX2_REG );
drivers/input/mouse/synaptics.c +10 -0
@@ -652,6 +652,16 @@ static const struct dmi_system_id toshiba_dmi_table[] = { DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), DMI_MATCH(DMI_PRODUCT_NAME, "PORTEGE M300"), }, + + }, + { + .ident = "Toshiba Portege M300", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "Portable PC"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Version 1.0"), + }, + }, { } };
drivers/macintosh/via-pmu.c +23 -17
@@ -405,7 +405,11 @@ static int __init via_pmu_start(void)printk (KERN_ERR "via-pmu: can't map interrupt\n" );return -ENODEV ; } -if (request_irq (irq, via_pmu_interrupt,0 ,"VIA-PMU" , (void *)0 )) { +/* We set IRQF_TIMER because we don't want the interrupt to be disabled +* between the 2 passes of driver suspend, we control our own disabling +* for that one +*/ +if (request_irq (irq, via_pmu_interrupt,IRQF_TIMER ,"VIA-PMU" , (void *)0 )) {printk (KERN_ERR "via-pmu: can't request irq %d\n" , irq);return -ENODEV ; }
@@ -419,7 +423,7 @@ static int __init via_pmu_start(void) gpio_irq =irq_of_parse_and_map (gpio_node,0 );if (gpio_irq !=NO_IRQ ) { -if (request_irq (gpio_irq, gpio1_interrupt,0 , +if (request_irq (gpio_irq, gpio1_interrupt,IRQF_TIMER ,"GPIO1 ADB" , (void *)0 ))printk (KERN_ERR "pmu: can't get irq %d" " (GPIO1)\n" , gpio_irq);
@@ -925,8 +929,7 @@ proc_write_options(struct file *file, const char __user *buffer,#ifdef CONFIG_ADB /* Send an ADB command */ -static int -pmu_send_request (struct adb_request *req,int sync) +static int pmu_send_request (struct adb_request *req,int sync) {int i, ret;
@@ -1005,16 +1008,11 @@ pmu_send_request(struct adb_request *req, int sync) }/* Enable/disable autopolling */ -static int -pmu_adb_autopoll (int devs) +static int __pmu_adb_autopoll (int devs) {struct adb_request req; -if ((vias ==NULL ) || (!pmu_fully_inited) || !pmu_has_adb) -return -ENXIO ; -if (devs) { - adb_dev_map = devs;pmu_request (&req,NULL ,5 ,PMU_ADB_CMD ,0 ,0x86 , adb_dev_map >>8 , adb_dev_map); pmu_adb_flags =2 ;
@@ -1027,9 +1025,17 @@ pmu_adb_autopoll(int devs)return 0 ; } +static int pmu_adb_autopoll (int devs) +{ +if ((vias ==NULL ) || (!pmu_fully_inited) || !pmu_has_adb) +return -ENXIO ; + + adb_dev_map = devs; +return __pmu_adb_autopoll (devs); +} +/* Reset the ADB bus */ -static int -pmu_adb_reset_bus (void ) +static int pmu_adb_reset_bus (void ) {struct adb_request req;int save_autopoll = adb_dev_map;
@@ -1038,13 +1044,13 @@ pmu_adb_reset_bus(void)return -ENXIO ;/* anyone got a better idea?? */ -pmu_adb_autopoll (0 ); +__pmu_adb_autopoll (0 ); - req.nbytes =5 ; + req.nbytes =4 ; req.done =NULL ; req.data[0 ] =PMU_ADB_CMD ; - req.data[1 ] =0 ; - req.data[2 ] =ADB_BUSRESET ; + req.data[1 ] =ADB_BUSRESET ; + req.data[2 ] =0 ; req.data[3 ] =0 ; req.data[4 ] =0 ; req.reply_len =0 ;
@@ -1056,7 +1062,7 @@ pmu_adb_reset_bus(void)pmu_wait_complete (&req);if (save_autopoll !=0 ) -pmu_adb_autopoll (save_autopoll); +__pmu_adb_autopoll (save_autopoll);return 0 ; }
drivers/md/dm-exception-store.c +12 -10
@@ -155,7 +155,8 @@ static int set_chunk_size(struct dm_exception_store *store,char *value; chunk_size_ulong =simple_strtoul (chunk_size_arg, &value,10 ); -if (*chunk_size_arg =='\0' || *value !='\0' ) { +if (*chunk_size_arg =='\0' || *value !='\0' || + chunk_size_ulong >UINT_MAX ) { *error ="Invalid chunk size" ;return -EINVAL ; }
@@ -171,34 +172,35 @@ static int set_chunk_size(struct dm_exception_store *store,*/ chunk_size_ulong =round_up (chunk_size_ulong,PAGE_SIZE >>9 ); -return dm_exception_store_set_chunk_size (store, chunk_size_ulong, +return dm_exception_store_set_chunk_size (store, + (unsigned ) chunk_size_ulong, error); }int dm_exception_store_set_chunk_size (struct dm_exception_store *store, -unsigned long chunk_size_ulong, +unsigned chunk_size,char **error) {/* Check chunk_size is a power of 2 */ -if (!is_power_of_2 (chunk_size_ulong)) { +if (!is_power_of_2 (chunk_size)) { *error ="Chunk size is not a power of 2" ;return -EINVAL ; }/* Validate the chunk size against the device block size */ -if (chunk_size_ulong % (bdev_logical_block_size (store->cow->bdev) >>9 )) { +if (chunk_size % (bdev_logical_block_size (store->cow->bdev) >>9 )) { *error ="Chunk size is not a multiple of device blocksize" ;return -EINVAL ; } -if (chunk_size_ulong >INT_MAX >>SECTOR_SHIFT ) { +if (chunk_size >INT_MAX >>SECTOR_SHIFT ) { *error ="Chunk size is too high" ;return -EINVAL ; } - store->chunk_size = chunk_size_ulong; - store->chunk_mask = chunk_size_ulong -1 ; - store->chunk_shift =ffs (chunk_size_ulong) -1 ; + store->chunk_size = chunk_size; + store->chunk_mask = chunk_size -1 ; + store->chunk_shift =ffs (chunk_size) -1 ;return 0 ; }
@@ -251,7 +253,7 @@ int dm_exception_store_create(struct dm_target *ti, int argc, char **argv, r =set_chunk_size (tmp_store, argv[2 ], &ti->error);if (r) - goto bad_cow; + goto bad_ctr; r = type->ctr (tmp_store,0 ,NULL );if (r) {
drivers/md/dm-exception-store.h +4 -4
@@ -101,9 +101,9 @@ struct dm_exception_store {struct dm_dev *cow;/* Size of data blocks saved - must be a power of 2 */ -chunk_t chunk_size; -chunk_t chunk_mask; -chunk_t chunk_shift; +unsigned chunk_size; +unsigned chunk_mask; +unsigned chunk_shift;void *context; };
@@ -169,7 +169,7 @@ int dm_exception_store_type_register(struct dm_exception_store_type *type);int dm_exception_store_type_unregister (struct dm_exception_store_type *type);int dm_exception_store_set_chunk_size (struct dm_exception_store *store, -unsigned long chunk_size_ulong, +unsigned chunk_size,char **error); int dm_exception_store_create(struct dm_target *ti, int argc, char **argv,
drivers/md/dm-log-userspace-base.c +1 -1
@@ -156,7 +156,7 @@ static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, }/* The ptr value is sufficient for local unique id */ - lc->luid = (uint64_t )lc; + lc->luid = (unsigned long )lc; lc->ti = ti;
drivers/md/dm-snap-persistent.c +8 -8
@@ -284,12 +284,13 @@ static int read_header(struct pstore *ps, int *new_snapshot) {int r;struct disk_header *dh; -chunk_t chunk_size; +unsigned chunk_size;int chunk_size_supplied =1 ;char *chunk_err;/* -* Use default chunk size (or hardsect_size, if larger) if none supplied +* Use default chunk size (or logical_block_size, if larger) +* if none supplied */ if (!ps->store->chunk_size) { ps->store->chunk_size = max(DM_CHUNK_SIZE_DEFAULT_SECTORS,
@@ -334,10 +335,9 @@ static int read_header(struct pstore *ps, int *new_snapshot)return 0 ;if (chunk_size_supplied) -DMWARN ("chunk size %llu in device metadata overrides " -"table chunk size of %llu." , - (unsigned long long )chunk_size, - (unsigned long long )ps->store->chunk_size); +DMWARN ("chunk size %u in device metadata overrides " +"table chunk size of %u." , + chunk_size, ps->store->chunk_size);/* We had a bogus chunk_size. Fix stuff up. */ free_area (ps);
@@ -345,8 +345,8 @@ static int read_header(struct pstore *ps, int *new_snapshot) r =dm_exception_store_set_chunk_size (ps->store, chunk_size, &chunk_err);if (r) { -DMERR ("invalid on-disk chunk size %llu: %s." , - (unsigned long long )chunk_size, chunk_err); +DMERR ("invalid on-disk chunk size %u: %s." , + chunk_size, chunk_err);return r; }
drivers/md/dm-snap.c +21 -4
@@ -296,6 +296,7 @@ static void __insert_origin(struct origin *o)*/ static int register_snapshot (struct dm_snapshot *snap) { +struct dm_snapshot *l;struct origin *o, *new_o;struct block_device *bdev = snap->origin->bdev;
@@ -319,7 +320,11 @@ static int register_snapshot(struct dm_snapshot *snap)__insert_origin (o); } -list_add_tail (&snap->list, &o->snapshots); +/* Sort the list according to chunk size, largest-first smallest-last */ +list_for_each_entry (l, &o->snapshots, list) +if (l->store->chunk_size < snap->store->chunk_size) +break ; +list_add_tail (&snap->list, &l->list);up_write (&_origins_lock);return 0 ;
@@ -668,6 +673,11 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv)bio_list_init (&s->queued_bios);INIT_WORK (&s->queued_bios_work, flush_queued_bios); +if (!s->store->chunk_size) { + ti->error ="Chunk size not set" ; + goto bad_load_and_register; + } +/* Add snapshot to the list of snapshots for this origin */ /* Exceptions aren't triggered till snapshot_resume() is called */ if (register_snapshot (s)) {
@@ -951,7 +961,7 @@ static void start_copy(struct dm_snap_pending_exception *pe) src.bdev = bdev; src.sector =chunk_to_sector (s->store, pe->e.old_chunk); - src.count =min (s->store->chunk_size, dev_size - src.sector); + src.count =min ((sector_t )s->store->chunk_size, dev_size - src.sector); dest.bdev = s->store->cow->bdev; dest.sector =chunk_to_sector (s->store, pe->e.new_chunk);
@@ -1142,6 +1152,8 @@ static int snapshot_status(struct dm_target *ti, status_type_t type,unsigned sz =0 ;struct dm_snapshot *snap = ti->private; +down_write (&snap->lock); +switch (type) {case STATUSTYPE_INFO :if (!snap->valid)
@@ -1173,6 +1185,8 @@ static int snapshot_status(struct dm_target *ti, status_type_t type,break ; } +up_write (&snap->lock); +return 0 ; }
@@ -1388,7 +1402,7 @@ static void origin_resume(struct dm_target *ti)struct dm_dev *dev = ti->private;struct dm_snapshot *snap;struct origin *o; -chunk_t chunk_size =0 ; +unsigned chunk_size =0 ;down_read (&_origins_lock); o =__lookup_origin (dev->bdev);
@@ -1465,7 +1479,7 @@ static int __init dm_snapshot_init(void) r =dm_register_target (&snapshot_target);if (r) {DMERR ("snapshot target register failed %d" , r); -return r; + goto bad_register_snapshot_target; } r =dm_register_target (&origin_target);
@@ -1522,6 +1536,9 @@ bad2:dm_unregister_target (&origin_target); bad1:dm_unregister_target (&snapshot_target); + +bad_register_snapshot_target: +dm_exception_store_exit ();return r; }
drivers/md/dm.c +9 -2
@@ -47,6 +47,7 @@ struct dm_io {atomic_t io_count;struct bio *bio;unsigned long start_time; +spinlock_t endio_lock; };/*
@@ -576,8 +577,12 @@ static void dec_pending(struct dm_io *io, int error)struct mapped_device *md = io->md;/* Push-back supersedes any I/O errors */ -if (error && !(io->error >0 &&__noflush_suspending (md))) - io->error = error; +if (unlikely (error)) { +spin_lock_irqsave (&io->endio_lock, flags); +if (!(io->error >0 &&__noflush_suspending (md))) + io->error = error; +spin_unlock_irqrestore (&io->endio_lock, flags); + }if (atomic_dec_and_test (&io->io_count)) {if (io->error ==DM_ENDIO_REQUEUE ) {
@@ -1224,6 +1229,7 @@ static void __split_and_process_bio(struct mapped_device *md, struct bio *bio)atomic_set (&ci.io->io_count,1 ); ci.io->bio = bio; ci.io->md = md; +spin_lock_init (&ci.io->endio_lock); ci.sector = bio->bi_sector; ci.sector_count =bio_sectors (bio);if (unlikely (bio_empty_barrier (bio)))
@@ -1819,6 +1825,7 @@ static struct mapped_device *alloc_dev(int minor) bad_bdev:destroy_workqueue (md->wq); bad_thread: +del_gendisk (md->disk);put_disk (md->disk); bad_disk:blk_cleanup_queue (md->queue);
drivers/misc/sgi-gru/gruprocfs.c +7 -6
@@ -161,14 +161,15 @@ static int options_show(struct seq_file *s, void *p)static ssize_t options_write (struct file *file,const char __user *userbuf,size_t count,loff_t *data) { -unsigned long val; -char buf[80 ]; +char buf[20 ]; -if (strncpy_from_user (buf, userbuf,sizeof (buf) -1 ) <0 ) +if (count >=sizeof (buf)) +return -EINVAL ; +if (copy_from_user (buf, userbuf, count))return -EFAULT ; - buf[count -1 ] ='\0' ; -if (!strict_strtoul (buf,10 , &val)) - gru_options = val; + buf[count] ='\0' ; +if (strict_strtoul (buf,0 , &gru_options)) +return -EINVAL ;return count; }
drivers/net/bonding/bond_main.c +1 -1
@@ -691,7 +691,7 @@ static int bond_check_dev_link(struct bonding *bond, struct net_device *slave_dev, int reporting) {const struct net_device_ops *slave_ops = slave_dev->netdev_ops; -static int (*ioctl)(struct net_device *,struct ifreq *,int ); +int (*ioctl)(struct net_device *,struct ifreq *,int );struct ifreq ifr;struct mii_ioctl_data *mii;
drivers/net/wireless/b43/rfkill.c +2 -1
@@ -33,7 +33,8 @@ bool b43_is_hw_radio_enabled(struct b43_wldev *dev) & B43_MMIO_RADIO_HWENABLED_HI_MASK))return 1 ; }else { -if (b43_read16 (dev,B43_MMIO_RADIO_HWENABLED_LO ) +if (b43_status (dev) >=B43_STAT_STARTED && +b43_read16 (dev,B43_MMIO_RADIO_HWENABLED_LO ) &B43_MMIO_RADIO_HWENABLED_LO_MASK )return 1 ; }
drivers/net/wireless/iwlwifi/iwl-rx.c +26 -8
@@ -239,33 +239,51 @@ void iwl_rx_allocate(struct iwl_priv *priv, gfp_t priority)struct iwl_rx_queue *rxq = &priv->rxq;struct list_head *element;struct iwl_rx_mem_buffer *rxb; +struct sk_buff *skb;unsigned long flags;while (1 ) {spin_lock_irqsave (&rxq->lock, flags); -if (list_empty (&rxq->rx_used)) {spin_unlock_irqrestore (&rxq->lock, flags);return ; } - element = rxq->rx_used.next; - rxb = list_entry(element, struct iwl_rx_mem_buffer, list); -list_del (element); -spin_unlock_irqrestore (&rxq->lock, flags); +if (rxq->free_count >RX_LOW_WATERMARK ) + priority |= __GFP_NOWARN;/* Alloc a new receive buffer */ - rxb->skb =alloc_skb (priv->hw_params.rx_buf_size +256 , + skb =alloc_skb (priv->hw_params.rx_buf_size +256 , priority); -if (!rxb->skb) { -IWL_CRIT (priv,"Can not allocate SKB buffers\n" ); +if (!skb) { +if (net_ratelimit ()) +IWL_DEBUG_INFO (priv,"Failed to allocate SKB buffer.\n" ); +if ((rxq->free_count <=RX_LOW_WATERMARK ) && +net_ratelimit ()) +IWL_CRIT (priv,"Failed to allocate SKB buffer with %s. Only %u free buffers remaining.\n" , + priority ==GFP_ATOMIC ?"GFP_ATOMIC" :"GFP_KERNEL" , + rxq->free_count);/* We don't reschedule replenish work here -- we will * call the restock method and if it still needs * more buffers it will schedule replenish */ break ; } +spin_lock_irqsave (&rxq->lock, flags); + +if (list_empty (&rxq->rx_used)) { +spin_unlock_irqrestore (&rxq->lock, flags); +dev_kfree_skb_any (skb); +return ; + } + element = rxq->rx_used.next; + rxb = list_entry(element, struct iwl_rx_mem_buffer, list); +list_del (element); + +spin_unlock_irqrestore (&rxq->lock, flags); + + rxb->skb = skb;/* Get physical address of RB/SKB */ rxb->real_dma_addr = pci_map_single( priv->pci_dev,
drivers/net/wireless/iwlwifi/iwl3945-base.c +24 -9
@@ -1196,6 +1196,7 @@ static void iwl3945_rx_allocate(struct iwl_priv *priv, gfp_t priority)struct iwl_rx_queue *rxq = &priv->rxq;struct list_head *element;struct iwl_rx_mem_buffer *rxb; +struct sk_buff *skb;unsigned long flags;while (1 ) {
@@ -1205,25 +1206,39 @@ static void iwl3945_rx_allocate(struct iwl_priv *priv, gfp_t priority)spin_unlock_irqrestore (&rxq->lock, flags);return ; } - - element = rxq->rx_used.next; - rxb = list_entry(element, struct iwl_rx_mem_buffer, list); -list_del (element);spin_unlock_irqrestore (&rxq->lock, flags); +if (rxq->free_count >RX_LOW_WATERMARK ) + priority |= __GFP_NOWARN;/* Alloc a new receive buffer */ - rxb->skb = -alloc_skb (priv->hw_params.rx_buf_size, - priority); -if (!rxb->skb) { + skb =alloc_skb (priv->hw_params.rx_buf_size, priority); +if (!skb) {if (net_ratelimit ()) -IWL_CRIT (priv,": Can not allocate SKB buffers\n" ); +IWL_DEBUG_INFO (priv,"Failed to allocate SKB buffer.\n" ); +if ((rxq->free_count <=RX_LOW_WATERMARK ) && +net_ratelimit ()) +IWL_CRIT (priv,"Failed to allocate SKB buffer with %s. Only %u free buffers remaining.\n" , + priority ==GFP_ATOMIC ?"GFP_ATOMIC" :"GFP_KERNEL" , + rxq->free_count);/* We don't reschedule replenish work here -- we will * call the restock method and if it still needs * more buffers it will schedule replenish */ break ; } +spin_lock_irqsave (&rxq->lock, flags); +if (list_empty (&rxq->rx_used)) { +spin_unlock_irqrestore (&rxq->lock, flags); +dev_kfree_skb_any (skb); +return ; + } + element = rxq->rx_used.next; + rxb = list_entry(element, struct iwl_rx_mem_buffer, list); +list_del (element); +spin_unlock_irqrestore (&rxq->lock, flags); + + rxb->skb = skb; +/* If radiotap head is required, reserve some headroom here. * The physical head count is a variable rx_stats->phy_count. * We reserve 4 bytes here. Plus these extra bytes, the
drivers/net/wireless/libertas/if_usb.c +1 -1
@@ -507,7 +507,7 @@ static int __if_usb_submit_rx_urb(struct if_usb_card *cardp,/* Fill the receive configuration URB and initialise the Rx call back */ usb_fill_bulk_urb (cardp->rx_urb, cardp->udev,usb_rcvbulkpipe (cardp->udev, cardp->ep_in), - (void *) (skb->tail + (size_t )IPFIELD_ALIGN_OFFSET ), + skb->data +IPFIELD_ALIGN_OFFSET ,MRVDRV_ETH_RX_PACKET_BUFFER_SIZE , callbackfn, cardp);
drivers/net/wireless/ray_cs.c +1 -1
@@ -2878,7 +2878,7 @@ static int write_essid(struct file *file, const char __user *buffer, unsigned long count, void *data) {static char proc_essid[33 ]; -int len = count; +unsigned int len = count;if (len >32 ) len =32 ;
drivers/pcmcia/cs.c +43 -26
117 lines not on this page · raw message
drivers/pcmcia/yenta_socket.c +11 -1
@@ -1275,16 +1275,26 @@ static int yenta_dev_resume_noirq(struct device *dev)if (socket->type && socket->type->restore_state) socket->type->restore_state (socket); -return pcmcia_socket_dev_resume (dev); +pcmcia_socket_dev_early_resume (dev); +return 0 ; +} + +static int yenta_dev_resume (struct device *dev) +{ +pcmcia_socket_dev_late_resume (dev); +return 0 ; }static struct dev_pm_ops yenta_pm_ops = { .suspend_noirq = yenta_dev_suspend_noirq, .resume_noirq = yenta_dev_resume_noirq, + .resume = yenta_dev_resume, .freeze_noirq = yenta_dev_suspend_noirq, .thaw_noirq = yenta_dev_resume_noirq, + .thaw = yenta_dev_resume, .poweroff_noirq = yenta_dev_suspend_noirq, .restore_noirq = yenta_dev_resume_noirq, + .restore = yenta_dev_resume, };#define YENTA_PM_OPS (¥ta_pm_ops)
drivers/scsi/dpt_i2o.c +4 -0
@@ -1918,6 +1918,10 @@ static int adpt_i2o_passthru(adpt_hba* pHba, u32 __user *arg) } size = size>>16 ; size *=4 ; +if (size >MAX_MESSAGE_SIZE ) { + rcode = -EINVAL ; + goto cleanup; + }/* Copy in the user's I2O command */ if (copy_from_user (msg, user_msg, size)) { rcode = -EFAULT ;
drivers/serial/8250_pci.c +11 -0
@@ -1561,6 +1561,7 @@ enum pci_board_num_t { pbn_exar_XR17C152, pbn_exar_XR17C154, pbn_exar_XR17C158, + pbn_exar_ibm_saturn, pbn_pasemi_1682M, pbn_ni8430_2, pbn_ni8430_4,
@@ -2146,6 +2147,13 @@ static struct pciserial_board pci_boards[] __devinitdata = { .base_baud = 921600, .uart_offset = 0x200, }, + [pbn_exar_ibm_saturn] = { + .flags = FL_BASE0, + .num_ports = 1, + .base_baud = 921600, + .uart_offset = 0x200, + }, +/* * PA Semi PWRficient PA6T-1682M on-chip UART */
@@ -2649,6 +2657,9 @@ static struct pci_device_id serial_pci_tbl[] = {PCI_SUBVENDOR_ID_CONNECT_TECH ,PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_485 ,0 ,0 , pbn_b0_8_1843200_200 }, + { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C152, +PCI_VENDOR_ID_IBM ,PCI_SUBDEVICE_ID_IBM_SATURN_SERIAL_ONE_PORT , + 0, 0, pbn_exar_ibm_saturn }, { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_U530, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
drivers/usb/serial/option.c +10 -0
@@ -166,6 +166,7 @@ static int option_resume(struct usb_serial *serial);#define HUAWEI_PRODUCT_E143D 0x143D#define HUAWEI_PRODUCT_E143E 0x143E#define HUAWEI_PRODUCT_E143F 0x143F +#define HUAWEI_PRODUCT_E14AC 0x14AC#define QUANTA_VENDOR_ID 0x0408#define QUANTA_PRODUCT_Q101 0xEA02
@@ -315,6 +316,9 @@ static int option_resume(struct usb_serial *serial);#define QISDA_PRODUCT_H20_4515 0x4515#define QISDA_PRODUCT_H20_4519 0x4519 +/* TLAYTECH PRODUCTS */ +#define TLAYTECH_VENDOR_ID 0x20B9 +#define TLAYTECH_PRODUCT_TEU800 0x1682/* TOSHIBA PRODUCTS */ #define TOSHIBA_VENDOR_ID 0x0930
@@ -328,6 +332,9 @@ static int option_resume(struct usb_serial *serial);#define ALCATEL_VENDOR_ID 0x1bbb#define ALCATEL_PRODUCT_X060S 0x0000 +/* Airplus products */ +#define AIRPLUS_VENDOR_ID 0x1011 +#define AIRPLUS_PRODUCT_MCD650 0x3198static struct usb_device_id option_ids[] = { {USB_DEVICE (OPTION_VENDOR_ID ,OPTION_PRODUCT_COLT ) },
@@ -426,6 +433,7 @@ static struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143D, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143E, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E143F, 0xff, 0xff, 0xff) }, + { USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E14AC) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_9508) }, { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V640) }, /* Novatel Merlin V640/XV620 */ { USB_DEVICE(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_V620) }, /* Novatel Merlin V620/S620 */
@@ -588,6 +596,8 @@ static struct usb_device_id option_ids[] = { { USB_DEVICE(ALINK_VENDOR_ID, 0x9000) }, { USB_DEVICE_AND_INTERFACE_INFO(ALINK_VENDOR_ID, ALINK_PRODUCT_3GU, 0xff, 0xff, 0xff) }, { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X060S) }, + { USB_DEVICE(AIRPLUS_VENDOR_ID, AIRPLUS_PRODUCT_MCD650) }, + { USB_DEVICE(TLAYTECH_VENDOR_ID, TLAYTECH_PRODUCT_TEU800) }, { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/usb/serial/sierra.c +14 -9
@@ -287,6 +287,8 @@ static int sierra_send_setup(struct usb_serial_port *port)struct sierra_port_private *portdata;__u16 interface =0 ;int val =0 ; +int do_send =0 ; +int retval;dev_dbg (&port->dev,"%s\n" , __func__);
@@ -305,10 +307,7 @@ static int sierra_send_setup(struct usb_serial_port *port)*/ if (port->interrupt_in_urb) {/* send control message */ -return usb_control_msg (serial->dev, -usb_rcvctrlpipe (serial->dev,0 ), -0x22 ,0x21 , val, interface, -NULL ,0 ,USB_CTRL_SET_TIMEOUT ); + do_send =1 ; } }
@@ -320,12 +319,18 @@ static int sierra_send_setup(struct usb_serial_port *port) interface =1 ; else if (port->bulk_out_endpointAddress == 5) interface =2 ; -return usb_control_msg (serial->dev, -usb_rcvctrlpipe (serial->dev,0 ), -0x22 ,0x21 , val, interface, -NULL ,0 ,USB_CTRL_SET_TIMEOUT ); + + do_send =1 ; } -return 0 ; +if (!do_send) +return 0 ; + +usb_autopm_get_interface (serial->interface); + retval =usb_control_msg (serial->dev,usb_rcvctrlpipe (serial->dev,0 ), +0x22 ,0x21 , val, interface,NULL ,0 ,USB_CTRL_SET_TIMEOUT ); +usb_autopm_put_interface (serial->interface); + +return retval; } static void sierra_set_termios(struct tty_struct *tty,
drivers/video/console/.gitignore deleted +0 -2
@@ -1,2 +0,0 @@ -# conmakehash generated file -promcon_tbl.c
drivers/video/console/Kconfig +1 -8
@@ -67,16 +67,9 @@ config SGI_NEWPORT_CONSOLE # bool 'IODC console' CONFIG_IODC_CONSOLE -config PROM_CONSOLE - bool "PROM console" - depends on SPARC - help - Say Y to build a console driver for Sun machines that uses the - terminal emulation built into their console PROMS. - config DUMMY_CONSOLE bool - depends on PROM_CONSOLE!=y || VGA_CONSOLE!=y || SGI_NEWPORT_CONSOLE!=y + depends on VGA_CONSOLE!=y || SGI_NEWPORT_CONSOLE!=y default y config DUMMY_CONSOLE_COLUMNS
drivers/video/console/Makefile +0 -12
@@ -22,7 +22,6 @@ font-objs += $(font-objs-y) obj-$(CONFIG_DUMMY_CONSOLE) += dummycon.o obj-$(CONFIG_SGI_NEWPORT_CONSOLE) += newport_con.o font.o -obj-$(CONFIG_PROM_CONSOLE) += promcon.o promcon_tbl.o obj-$(CONFIG_STI_CONSOLE) += sticon.o sticore.o font.o obj-$(CONFIG_VGA_CONSOLE) += vgacon.o obj-$(CONFIG_MDA_CONSOLE) += mdacon.o
@@ -40,14 +39,3 @@ obj-$(CONFIG_FB_STI) += sticore.o font.o ifeq ($(CONFIG_USB_SISUSBVGA_CON),y) obj-$(CONFIG_USB_SISUSBVGA) += font.o endif - -# Targets that kbuild needs to know about -targets := promcon_tbl.c - -quiet_cmd_conmakehash = CNMKHSH $@ - cmd_conmakehash = scripts/conmakehash $< | \ - sed -e '/\#include <[^>]*>/p' -e 's/types/init/' \ - -e 's/dfont\(_uni.*\]\)/promfont\1 /' > $@ - -$(obj)/promcon_tbl.c: $(src)/prom.uni - $(call cmd,conmakehash)
drivers/video/console/prom.uni deleted +0 -11
@@ -1,11 +0,0 @@ -# -# Unicode mapping table for font in Sun PROM -# -# -0x20-0x7e idem -0xa0-0xff idem -# -0x7c U+2502 -0x2d U+2500 -0x2b U+250c U+2510 U+2514 U+2518 U+251c U+2524 U+252c U+2534 U+253c -0xa4 U+fffd
drivers/video/console/promcon.c deleted +0 -598
598 lines not on this page · raw message
drivers/virtio/virtio_ring.c +3 -0
@@ -281,6 +281,9 @@ static void *vring_get_buf(struct virtqueue *_vq, unsigned int *len)return NULL ; } +/* Only get used array entries after they have been exposed by host. */ +rmb (); + i = vq->vring.used->ring[vq->last_used_idx%vq->vring.num].id; *len = vq->vring.used->ring[vq->last_used_idx%vq->vring.num].len;
drivers/watchdog/riowd.c +1 -1
@@ -206,7 +206,7 @@ static int __devinit riowd_probe(struct of_device *op,dev_set_drvdata (&op->dev, p); riowd_device = p; - err =0 ; +return 0 ; out_iounmap:of_iounmap (&op->resource[0 ], p->regs,2 );
fs/cifs/connect.c +2 -1
@@ -1556,7 +1556,8 @@ cifs_get_tcp_session(struct smb_vol *volume_info) out_err:if (tcp_ses) { -kfree (tcp_ses->hostname); +if (!IS_ERR (tcp_ses->hostname)) +kfree (tcp_ses->hostname);if (tcp_ses->ssocket)sock_release (tcp_ses->ssocket);kfree (tcp_ses);
fs/fuse/file.c +3 -2
@@ -1063,7 +1063,8 @@ ssize_t fuse_direct_io(struct file *file, const char __user *buf,break ; } } -fuse_put_request (fc, req); +if (!IS_ERR (req)) +fuse_put_request (fc, req);if (res >0 ) *ppos = pos;
@@ -1599,7 +1600,7 @@ static int fuse_ioctl_copy_user(struct page **pages, struct iovec *iov, kaddr += copy; } -kunmap (map); +kunmap (page); }return 0 ;
fs/hfsplus/wrapper.c +4 -0
@@ -99,6 +99,10 @@ int hfsplus_read_wrapper(struct super_block *sb)if (hfsplus_get_last_session (sb, &part_start, &part_size))return -EINVAL ; +if ((u64 )part_start + part_size >0x100000000ULL ) { +pr_err ("hfs: volumes larger than 2TB are not supported yet\n" ); +return -EINVAL ; + }while (1 ) { bh =sb_bread512 (sb, part_start +HFSPLUS_VOLHEAD_SECTOR , vhdr);if (!bh)
fs/nfs/client.c +1 -1
@@ -1171,7 +1171,7 @@ static int nfs4_init_client(struct nfs_client *clp, 1, flags & NFS_MOUNT_NORESVPORT);if (error <0 ) goto error; -memcpy (clp->cl_ipaddr, ip_addr,sizeof (clp->cl_ipaddr)); +strlcpy (clp->cl_ipaddr, ip_addr,sizeof (clp->cl_ipaddr)); error =nfs_idmap_new (clp);if (error <0 ) {
fs/nfs/dir.c +2 -0
@@ -1536,6 +1536,8 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) old_dentry->d_parent->d_name.name, old_dentry->d_name.name, dentry->d_parent->d_name.name, dentry->d_name.name); +nfs_inode_return_delegation (inode); +d_drop (dentry); error =NFS_PROTO (dir)->link (inode, dir, &dentry->d_name);if (error ==0 ) {
fs/nfs/direct.c +1 -0
@@ -457,6 +457,7 @@ static void nfs_direct_write_reschedule(struct nfs_direct_req *dreq) };struct rpc_task_setup task_setup_data = { .rpc_client =NFS_CLIENT (inode), + .rpc_message = &msg, .callback_ops = &nfs_write_direct_ops, .workqueue = nfsiod_workqueue, .flags =RPC_TASK_ASYNC ,
fs/nfs/nfs4proc.c +8 -7
@@ -71,12 +71,17 @@ static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,/* Prevent leaks of NFSv4 errors into userland */ static int nfs4_map_errors (int err) { -if (err <-1000 ) { +if (err >=-1000 ) +return err; +switch (err) { +case -NFS4ERR_RESOURCE : +return -EREMOTEIO ; +default :dprintk ("%s could not handle NFSv4 error %d\n" , __func__, -err); -return -EIO ; +break ; } -return err; +return -EIO ; }/*
@@ -3033,9 +3038,6 @@ static void nfs4_renew_done(struct rpc_task *task, void *data)if (time_before (clp->cl_last_renewal,timestamp)) clp->cl_last_renewal = timestamp;spin_unlock (&clp->cl_lock); -dprintk ("%s calling put_rpccred on rpc_cred %p\n" , __func__, - task->tk_msg.rpc_cred); -put_rpccred (task->tk_msg.rpc_cred); }static const struct rpc_call_ops nfs4_renew_ops = {
@@ -4850,7 +4852,6 @@ void nfs41_sequence_call_done(struct rpc_task *task, void *data)nfs41_sequence_free_slot (clp, task->tk_msg.rpc_resp);dprintk ("%s rpc_cred %p\n" , __func__, task->tk_msg.rpc_cred); -put_rpccred (task->tk_msg.rpc_cred);kfree (task->tk_msg.rpc_argp);kfree (task->tk_msg.rpc_resp);
fs/nfs/nfs4renewd.c +0 -6
@@ -127,12 +127,6 @@ nfs4_schedule_state_renewal(struct nfs_client *clp) }void -nfs4_renewd_prepare_shutdown (struct nfs_server *server) -{ -cancel_delayed_work (&server->nfs_client->cl_renewd); -} - -void nfs4_kill_renewd (struct nfs_client *clp) {cancel_delayed_work_sync (&clp->cl_renewd);
fs/nfs/nfs4xdr.c +0 -1
@@ -5406,7 +5406,6 @@ static struct { { NFS4ERR_SERVERFAULT, -ESERVERFAULT }, { NFS4ERR_BADTYPE, -EBADTYPE }, { NFS4ERR_LOCKED, -EAGAIN }, - { NFS4ERR_RESOURCE, -EREMOTEIO }, { NFS4ERR_SYMLINK, -ELOOP }, { NFS4ERR_OP_ILLEGAL, -EOPNOTSUPP }, { NFS4ERR_DEADLOCK, -EDEADLK },
fs/nfs/super.c +1 -1
@@ -1323,6 +1323,7 @@ static int nfs_parse_mount_options(char *raw,default :dfprintk (MOUNT ,"NFS: unrecognized " "transport protocol\n" ); +kfree (string);return 0 ; }break ;
@@ -2669,7 +2670,6 @@ static void nfs4_kill_super(struct super_block *sb)dprintk ("--> %s\n" , __func__);nfs_super_return_all_delegations (sb);kill_anon_super (sb); -nfs4_renewd_prepare_shutdown (server);nfs_fscache_release_super_cookie (sb);nfs_free_server (server);dprintk ("<-- %s\n" , __func__);
fs/nilfs2/btnode.c +1 -2
@@ -276,8 +276,7 @@ void nilfs_btnode_commit_change_key(struct address_space *btnc,"invalid oldkey %lld (newkey=%lld)" , (unsigned long long )oldkey, (unsigned long long)newkey); -if (!test_set_buffer_dirty (obh) &&TestSetPageDirty (opage)) -BUG (); +nilfs_btnode_mark_dirty (obh);spin_lock_irq (&btnc->tree_lock);radix_tree_delete (&btnc->page_tree, oldkey);
fs/notify/inode_mark.c +3 -3
@@ -324,11 +324,11 @@ int fsnotify_add_mark(struct fsnotify_mark_entry *entry,spin_lock (&group->mark_lock);spin_lock (&inode->i_lock); - entry->group = group; - entry->inode = inode; - lentry =fsnotify_find_mark_entry (group, inode);if (!lentry) { + entry->group = group; + entry->inode = inode; +hlist_add_head (&entry->i_list, &inode->i_fsnotify_mark_entries);list_add (&entry->g_list, &group->mark_entries);
fs/pipe.c +30 -11
66 lines not on this page · raw message
include/drm/drm_pciids.h +1 -0
@@ -552,6 +552,7 @@ {0x8086, 0x2e12, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, 0xffff00, 0}, \ {0x8086, 0x2e22, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, 0xffff00, 0}, \ {0x8086, 0x2e32, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, 0xffff00, 0}, \ + {0x8086, 0x2e42, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, 0xffff00, 0}, \ {0x8086, 0xa001, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, 0xffff00, 0}, \ {0x8086, 0xa011, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, 0xffff00, 0}, \ {0x8086, 0x35e8, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, 0xffff00, 0}, \
include/linux/moduleparam.h +0 -1
@@ -37,7 +37,6 @@ typedef int (*param_set_fn)(const char *val, struct kernel_param *kp);typedef int (*param_get_fn )(char *buffer,struct kernel_param *kp);/* Flag bits for kernel_param.flags */ -#define KPARAM_KMALLOCED 1#define KPARAM_ISBOOL 2struct kernel_param {
include/linux/pci_ids.h +4 -0
@@ -479,6 +479,9 @@#define PCI_DEVICE_ID_IBM_ICOM_V2_ONE_PORT_RVX_ONE_PORT_MDM_PCIE 0x0361#define PCI_DEVICE_ID_IBM_ICOM_FOUR_PORT_MODEL 0x252 +#define PCI_SUBVENDOR_ID_IBM 0x1014 +#define PCI_SUBDEVICE_ID_IBM_SATURN_SERIAL_ONE_PORT 0x03d4 +#define PCI_VENDOR_ID_UNISYS 0x1018#define PCI_DEVICE_ID_UNISYS_DMA_DIRECTOR 0x001C
@@ -877,6 +880,7 @@#define PCI_DEVICE_ID_APPLE_SH_SUNGEM 0x0051#define PCI_DEVICE_ID_APPLE_U3L_AGP 0x0058#define PCI_DEVICE_ID_APPLE_U3H_AGP 0x0059 +#define PCI_DEVICE_ID_APPLE_U4_PCIE 0x005b#define PCI_DEVICE_ID_APPLE_IPID2_AGP 0x0066#define PCI_DEVICE_ID_APPLE_IPID2_ATA 0x0069#define PCI_DEVICE_ID_APPLE_IPID2_FW 0x006a
include/pcmcia/ss.h +4 -0
@@ -262,6 +262,8 @@ struct pcmcia_socket {struct device dev;/* data internal to the socket driver */ void *driver_data; +/* status of the card during resume from a system sleep state */ +int resume_status; };
@@ -280,6 +282,8 @@ extern struct pccard_resource_ops pccard_nonstatic_ops;/* socket drivers are expected to use these callbacks in their .drv struct */ extern int pcmcia_socket_dev_suspend (struct device *dev); +extern void pcmcia_socket_dev_early_resume (struct device *dev); +extern void pcmcia_socket_dev_late_resume (struct device *dev);extern int pcmcia_socket_dev_resume (struct device *dev);/* socket drivers use this callback in their IRQ handler */
kernel/futex.c +15 -5
@@ -150,7 +150,8 @@ static struct futex_hash_bucket *hash_futex(union futex_key *key)*/ static inline int match_futex (union futex_key *key1,union futex_key *key2) { -return (key1->both.word == key2->both.word +return (key1 && key2 + && key1->both.word == key2->both.word && key1->both.ptr == key2->both.ptr && key1->both.offset == key2->both.offset); }
@@ -1027,7 +1028,6 @@ static inlinevoid requeue_pi_wake_futex (struct futex_q *q,union futex_key *key,struct futex_hash_bucket *hb) { -drop_futex_key_refs (&q->key);get_futex_key_refs (key); q->key = *key;
@@ -1225,6 +1225,7 @@ retry_private:*/ if (ret ==1 ) {WARN_ON (pi_state); + drop_count++; task_count++; ret =get_futex_value_locked (&curval2, uaddr2);if (!ret)
@@ -1303,6 +1304,7 @@ retry_private:if (ret ==1 ) {/* We got the lock. */ requeue_pi_wake_futex (this, &key2, hb2); + drop_count++;continue ; }else if (ret) {/* -EDEADLK */
@@ -1767,6 +1769,7 @@ static int futex_wait(u32 __user *uaddr, int fshared, current->timer_slack_ns); } +retry:/* Prepare to wait on uaddr. */ ret =futex_wait_setup (uaddr, val, fshared, &q, &hb);if (ret)
@@ -1784,9 +1787,14 @@ static int futex_wait(u32 __user *uaddr, int fshared, goto out_put_key;/* -* We expect signal_pending(current), but another thread may -* have handled it for us already. +* We expect signal_pending(current), but we might be the +* victim of a spurious wakeup as well. */ +if (!signal_pending (current)) { +put_futex_key (fshared, &q.key); + goto retry; + } + ret = -ERESTARTSYS ;if (!abs_time) goto out_put_key;
@@ -2094,9 +2102,11 @@ int handle_early_requeue_pi_wakeup(struct futex_hash_bucket *hb,*/ plist_del (&q->list, &q->list.plist); +/* Handle spurious wakeups gracefully */ + ret = -EWOULDBLOCK ;if (timeout && !timeout->task) ret = -ETIMEDOUT ; -else +else if (signal_pending (current)) ret = -ERESTARTNOINTR ; }return ret;
kernel/params.c +6 -11
@@ -217,15 +217,11 @@ int param_set_charp(const char *val, struct kernel_param *kp)return -ENOSPC ; } -if (kp->flags &KPARAM_KMALLOCED ) -kfree (*(char **)kp->arg); -/* This is a hack. We can't need to strdup in early boot, and we * don't need to; this mangled commandline is preserved. */ if (slab_is_available ()) { - kp->flags |=KPARAM_KMALLOCED ; *(char **)kp->arg =kstrdup (val,GFP_KERNEL ); -if (!kp->arg) +if (!*(char **)kp->arg)return -ENOMEM ; }else *(const char **)kp->arg = val;
@@ -303,6 +299,7 @@ static int param_array(const char *name, unsigned int min, unsigned int max, void *elem, int elemsize, int (*set)(const char *, struct kernel_param *kp), + u16 flags, unsigned int *num) { int ret;
@@ -312,6 +309,7 @@ static int param_array(const char *name,/* Get the name right for errors. */ kp.name = name; kp.arg = elem; + kp.flags = flags;/* No equals sign? */ if (!val) {
@@ -357,7 +355,8 @@ int param_array_set(const char *val, struct kernel_param *kp)unsigned int temp_num;return param_array (kp->name, val,1 , arr->max, arr->elem, - arr->elemsize, arr->set, arr->num ?: &temp_num); + arr->elemsize, arr->set, kp->flags, + arr->num ?: &temp_num); }int param_array_get (char *buffer,struct kernel_param *kp)
@@ -604,11 +603,7 @@ void module_param_sysfs_remove(struct module *mod)void destroy_params (const struct kernel_param *params,unsigned num) { -unsigned int i; - -for (i =0 ; i < num; i++) -if (params[i].flags &KPARAM_KMALLOCED ) -kfree (*(char **)params[i].arg); +/* FIXME: This should free kmalloced charp parameters. It doesn't. */ } static void __init kernel_add_sysfs_param(const char *name,
mm/mempolicy.c +7 -6
@@ -1024,7 +1024,7 @@ static long do_mbind(unsigned long start, unsigned long len, err =migrate_prep ();if (err) -return err; + goto mpol_out; } {NODEMASK_SCRATCH (scratch);
@@ -1039,10 +1039,9 @@ static long do_mbind(unsigned long start, unsigned long len, err = -ENOMEM ;NODEMASK_SCRATCH_FREE (scratch); } -if (err) { -mpol_put (new); -return err; - } +if (err) + goto mpol_out; + vma =check_range (mm, start, end, nmask, flags |MPOL_MF_INVERT , &pagelist);
@@ -1058,9 +1057,11 @@ static long do_mbind(unsigned long start, unsigned long len,if (!err && nr_failed && (flags &MPOL_MF_STRICT )) err = -EIO ; - } + }else +putback_lru_pages (&pagelist);up_write (&mm->mmap_sem); + mpol_out:mpol_put (new);return err; }
mm/nommu.c +4 -2
@@ -1384,9 +1384,11 @@ share: error_just_free:up_write (&nommu_region_sem); error: -fput (region->vm_file); +if (region->vm_file) +fput (region->vm_file);kmem_cache_free (vm_region_jar, region); -fput (vma->vm_file); +if (vma->vm_file) +fput (vma->vm_file);if (vma->vm_flags &VM_EXECUTABLE )removed_exe_file_vma (vma->vm_mm);kmem_cache_free (vm_area_cachep, vma);
mm/swapfile.c +1 -2
@@ -1149,8 +1149,7 @@ static int try_to_unuse(unsigned int type) }else retval =unuse_mm (mm, entry, page); -if (set_start_mm && -swap_count (*swap_map) < swcount) { +if (set_start_mm && *swap_map < swcount) {mmput (new_start_mm);atomic_inc (&mm->mm_users); new_start_mm = mm;
mm/vmscan.c +1 -1
@@ -1298,7 +1298,7 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,* IO, plus JVM can create lots of anon VM_EXEC pages, * so we ignore them here. */ -if ((vm_flags &VM_EXEC ) && !PageAnon (page)) { +if ((vm_flags &VM_EXEC ) &&page_is_file_cache (page)) {list_add (&page->lru, &l_active);continue ; }
net/mac80211/cfg.c +3 -3
@@ -87,6 +87,9 @@ static int ieee80211_change_iface(struct wiphy *wiphy, int ifindex,if (!dev)return -ENODEV ; +if (netif_running (dev)) +return -EBUSY ; +if (!nl80211_type_check (type))return -EINVAL ;
@@ -96,9 +99,6 @@ static int ieee80211_change_iface(struct wiphy *wiphy, int ifindex,if (ret)return ret; -if (netif_running (sdata->dev)) -return -EBUSY ; -if (ieee80211_vif_is_mesh (&sdata->vif) && params->mesh_id_len) ieee80211_sdata_set_mesh_id(sdata, params->mesh_id_len,
net/mac80211/tx.c +1 -1
@@ -1478,7 +1478,7 @@ int ieee80211_master_start_xmit(struct sk_buff *skb, struct net_device *dev)if (sdata->vif.type !=NL80211_IFTYPE_AP )continue ;if (compare_ether_addr (sdata->dev->dev_addr, - hdr->addr2)) { + hdr->addr2) ==0 ) {dev_hold (sdata->dev);dev_put (odev); osdata = sdata;
net/sched/cls_api.c +1 -1
@@ -348,7 +348,7 @@ static int tcf_fill_node(struct sk_buff *skb, struct tcf_proto *tp, tcm =NLMSG_DATA (nlh); tcm->tcm_family =AF_UNSPEC ; tcm->tcm__pad1 =0 ; - tcm->tcm__pad1 =0 ; + tcm->tcm__pad2 =0 ; tcm->tcm_ifindex =qdisc_dev (tp->q)->ifindex; tcm->tcm_parent = tp->classid; tcm->tcm_info =TC_H_MAKE (tp->prio, tp->protocol);
net/unix/af_unix.c +2 -0
@@ -1074,6 +1074,8 @@ restart: err = -ECONNREFUSED ;if (other->sk_state !=TCP_LISTEN ) goto out_unlock; +if (other->sk_shutdown &RCV_SHUTDOWN ) + goto out_unlock;if (unix_recvq_full (other)) { err = -EAGAIN ;
scripts/Makefile +0 -1
@@ -10,7 +10,6 @@ hostprogs-$(CONFIG_KALLSYMS) += kallsyms hostprogs-$(CONFIG_LOGO) += pnmtologo hostprogs-$(CONFIG_VT) += conmakehash -hostprogs-$(CONFIG_PROM_CONSOLE) += conmakehash hostprogs-$(CONFIG_IKCONFIG) += bin2c always := $(hostprogs-y) $(hostprogs-m)
security/keys/keyctl.c +1 -1
@@ -860,7 +860,7 @@ static long get_instantiation_keyring(key_serial_t ringid,/* otherwise specify the destination keyring recorded in the * authorisation key (any KEY_SPEC_*_KEYRING) */ if (ringid >=KEY_SPEC_REQUESTOR_KEYRING ) { - *_dest_keyring = rka->dest_keyring; + *_dest_keyring =key_get (rka->dest_keyring);return 0 ; }
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
As I've had with the last few kernel releases in the 2.6.31.x
series, I'm still having a problem where I'm constantly getting seemingly random I/O errors in dmesg output for my external usb hard drive. The thing that worries me is that although my ext4 filesystem is configured to remount readonly when problems occur, it is not in fact doing so. Does this mean the error is transient, worked around, and I can ignore it, or ... what?
Specifically it is these messages I'm recieving whenever I do heavy duty work with the drive that worries me:
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00end_request: I/O error, dev sda, sector 79713943
Note that the sector number is never the same, and has never been the same over a month's worth of I/O errors, but the unhandled error code result always stays the same, though that also does not always show up.
In my attempts to determine if there's some sort of filesystem corruption going on I haven't been able to find any problems - files that were changed while the I/O errors seemed to be being generated are in fact perfect copies according to md5sum.
I *really* need to know exactly what is going on here. Worst case scenario I can think of is that the hard drive is going bad, but the symptoms don't seem to bear that out. I need to know what the error messages - combined with the the filesystem behavior (NOT remounting readonly) - mean.
I use the usb drive (a 250gb seagate using a rosewill external usb kit) to backup two 120GB internal maxtors using rsync. These are all IDE hard drives.
I would appreciate any tips on how I can determine if linux is working around the problem silently on its own, or not.
The rest of this email includes dmesg output and various filesystem settings I've set. Note in the dmesg output I plugged in and turned on the drive, mounted it and poked around a bit, then unmounted it and ran my backup script (Which e2fsck's it, mounts it, runs rsync to do the actual backup, then unmounts it when it's done)
smartctl -H /dev/sda:
smartctl version 5.38 [i486-slackware-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
SMART Health Status: OK
fstab:
/dev/hda1 / ext4 defaults,barrier=1 1 1 /dev/hdb1 /home/tm/stuff ext4 defaults,user,barrier=1,noauto 0 1 /dev/sda1 /backup ext4 defaults,barrier=1,noauto 0 0 /swap none swap sw 0 0 /dev/cdrom /cdrom auto noauto,owner,ro 0 0 #/dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0
tune2fs -l /dev/sda1:
tune2fs 1.41.8 (11-July-2009)
Filesystem volume name: <none> Last mounted on: /backup Filesystem UUID: f624b34a-80d4-422d-9c9e-4c3898b20d03 Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index
filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Remount read-only Filesystem OS type: Linux Inode count: 15269888 Block count: 61049000 Reserved block count: 0 Free blocks: 11536553 Free inodes: 14717189 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 1009 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 8192 Inode blocks per group: 512 Flex block group size: 16 Filesystem created: Wed Oct 14 00:19:20 2009 Last mount time: Thu Nov 12 02:27:48 2009 Last write time: Thu Nov 12 02:36:22 2009 Mount count: 6 Maximum mount count: 38 Last checked: Mon Nov 9 11:59:38 2009 Check interval: 15552000 (6 months) Next check after: Sat May 8 12:59:38 2010 Lifetime writes: 204 GB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 28 Desired extra isize: 28 Journal inode: 8 Default directory hash: half_md4 Directory Hash Seed: 0a63a3e0-f270-41bd-8593-5fe644a69444 Journal backup: inode blocks
dmesg:
Linux version 2.6.31.6 (root@roll) (gcc version 4.3.3 (GCC) ) #1 Tue Nov 10 22:41:09 EST 2009
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
NSC Geode by NSC
Cyrix CyrixInstead
Centaur CentaurHauls
Transmeta GenuineTMx86
Transmeta TransmetaCPU
UMC UMC UMC UMC
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e8000 - 00000000000ea000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000005fff0000 (usable)
BIOS-e820: 000000005fff0000 - 000000005fff8000 (ACPI data)
BIOS-e820: 000000005fff8000 - 0000000060000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffee0000 - 00000000fff00000 (reserved)
BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
DMI 2.3 present.last_pfn = 0x5fff0 max_arch_pfn = 0x100000
MTRR default type: uncachable
MTRR fixed ranges enabled:
00000-9FFFF write-back
A0000-EFFFF uncachable
F0000-FFFFF write-protect
MTRR variable ranges enabled:
0 base 000000000 mask FC0000000 write-back
1 base 040000000 mask FE0000000 write-back
2 disabled
3 disabled
4 disabled
5 disabled
6 disabled
7 base 0D0000000 mask FF8000000 write-combining
initial memory mapped : 0 - 01800000init_memory_mapping: 0000000000000000-00000000377fe000
0000000000 - 0000400000 page 4k
0000400000 - 0037400000 page 2M
0037400000 - 00377fe000 page 4k
kernel direct mapping tables up to 377fe000 @ 7000-c000
ACPI: RSDP 000fa260 00014 (v00 AMI )
ACPI: RSDT 5fff0000 0002C (v01 AMIINT SiS740XX 00001000 MSFT 0100000B)
ACPI: FACP 5fff0030 00081 (v01 AMIINT SiS740XX 00000011 MSFT 0100000B)
ACPI: DSDT 5fff0110 034D2 (v01 SiS 740 00000100 MSFT 0100000D)
ACPI: FACS 5fff8000 00040
ACPI: APIC 5fff00c0 00050 (v01 AMIINT SiS740XX 00001000 MSFT 0100000B)
ACPI: Local APIC address 0xfee00000
647MB HIGHMEM available.
887MB LOWMEM available.
mapped low ram: 0 - 377fe000
low ram: 0 - 377fe000
node 0 low ram: 00000000 - 377fe000
node 0 bootmap 00008000 - 0000ef00
(6 early reservations) ==> bootmem [0000000000 - 00377fe000]
#0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 -
#0000001000]
#1 [0001000000 - 0001605bd8] TEXT DATA BSS ==> [0001000000 -
#0001605bd8]
#2 [000009fc00 - 0000100000] BIOS reserved ==> [000009fc00 -
#0000100000]
#3 [0001606000 - 000160c0dc] BRK ==> [0001606000 -
#000160c0dc]
#4 [0000007000 - 0000008000] PGTABLE ==> [0000007000 -
#0000008000]
#5 [0000008000 - 000000f000] BOOTMAP ==> [0000008000 -
#000000f000]
Zone PFN ranges:
DMA 0x00000000 -> 0x00001000
Normal 0x00001000 -> 0x000377fe
HighMem 0x000377fe -> 0x0005fff0
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0x00000000 -> 0x0000009f
0: 0x00000100 -> 0x0005fff0On node 0 totalpages: 393103free_area_init_node: node 0, pgdat c154b660, node_mem_map c160d000
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 3967 pages, LIFO batch:0
Normal zone: 1744 pages used for memmap
Normal zone: 221486 pages, LIFO batch:31
HighMem zone: 1296 pages used for memmap
HighMem zone: 164578 pages, LIFO batch:31
Using APIC driver default
ACPI: PM-Timer IO Port: 0x808
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode: Flat. Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration informationnr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000e8000
PM: Registered nosave memory: 00000000000e8000 - 00000000000ea000
PM: Registered nosave memory: 00000000000ea000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000 Allocating PCI resources starting at 60000000 (gap: 60000000:9ec00000) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 390031 Kernel command line: BOOT_IMAGE=Linux ro root=301 vt.default_utf8=0 PID hash table entries: 4096 (order: 12, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0
Initializing HighMem for node 0 (000377fe:0005fff0)
Memory: 1552220k/1572800k available (4017k kernel code, 19312k reserved, 1431k data, 376k init, 663496k highmem)
virtual kernel memory layout:
fixmap : 0xfffa4000 - 0xfffff000 ( 364 kB)
pkmap : 0xff800000 - 0xffc00000 (4096 kB)
vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB)
lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB)
.init : 0xc1553000 - 0xc15b1000 ( 376 kB)
.data : 0xc13ec426 - 0xc1552128 (1431 kB)
.text : 0xc1000000 - 0xc13ec426 (4017 kB)Checking if this processor honours the WP bit even in supervisor mode...Ok.
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:288
Fast TSC calibration using PIT
Detected 2083.004 MHz processor.
Console: colour VGA+ 80x25
console [tty0] enabled
Calibrating delay loop (skipped), value calculated using timer frequency.. 4166.00 BogoMIPS (lpj=2083004)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: CLK_CTL MSR was 6003d22f. Reprogramming to 2003d22f
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
mce: CPU supports 4 MCE banks
Performance Counters: AMD PMU driver.
... version: 0 ... bit width: 48 ... generic counters: 4 ... value mask: 0000ffffffffffff ... max period: 00007fffffffffff ... fixed-purpose counters: 0 ... counter mask: 000000000000000f
CPU: AMD Athlon(tm) XP 2800+ stepping 00
Checking 'hlt' instruction... OK.
ACPI: Core revision 20090521
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
xor: automatically using best checksumming function: pIII_sse
pIII_sse : 2740.000 MB/sec
xor: using function: pIII_sse (2740.000 MB/sec)
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfdb01, last bus=2
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: Power Resource [URP1] (off)
ACPI: Power Resource [URP2] (off)
ACPI: Power Resource [FDDP] (off)
ACPI: Power Resource [LPTP] (off)
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:00.0: reg 10 32bit mmio: [0xd0000000-0xd7ffffff] pci 0000:00:02.0: Enabling SiS 96x SMBus
pci 0000:00:02.1: reg 20 io port: [0xc00-0xc1f]
pci 0000:00:02.5: reg 20 io port: [0xff00-0xff0f]
pci 0000:00:03.0: reg 10 32bit mmio: [0xcfffe000-0xcfffefff] pci 0000:00:03.1: reg 10 32bit mmio: [0xcffff000-0xcfffffff] pci 0000:00:03.2: reg 10 32bit mmio: [0xcffdf000-0xcffdffff] pci 0000:00:03.2: PME# supported from D0 D3hot D3cold
pci 0000:00:03.2: PME# disabled
pci 0000:00:04.0: reg 10 io port: [0xdc00-0xdcff]
pci 0000:00:04.0: reg 14 32bit mmio: [0xcfffd000-0xcfffdfff] pci 0000:00:04.0: reg 30 32bit mmio: [0xcffa0000-0xcffbffff] pci 0000:00:04.0: supports D1 D2
pci 0000:00:04.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:04.0: PME# disabled
pci 0000:00:0a.0: reg 10 io port: [0xd800-0xd8ff]
pci 0000:00:0a.0: reg 14 32bit mmio: [0xcfffcf00-0xcfffcfff] pci 0000:00:0a.0: reg 30 32bit mmio: [0xcffe0000-0xcffeffff] pci 0000:00:0a.0: supports D1 D2
pci 0000:00:0a.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:0a.0: PME# disabled
pci 0000:00:0c.0: reg 10 io port: [0xd400-0xd43f]
pci 0000:00:0c.0: supports D2
pci 0000:01:00.0: reg 10 64bit mmio: [0xb0000000-0xbfffffff] pci 0000:01:00.0: reg 18 64bit mmio: [0xcfef0000-0xcfefffff] pci 0000:01:00.0: reg 20 io port: [0xb800-0xb8ff]
pci 0000:01:00.0: reg 30 32bit mmio: [0xcfec0000-0xcfedffff] pci 0000:01:00.0: supports D1 D2
pci 0000:01:00.1: reg 10 64bit mmio: [0xcfee0000-0xcfeeffff] pci 0000:01:00.1: supports D1 D2
pci 0000:00:01.0: bridge io port: [0xb000-0xbfff]
pci 0000:00:01.0: bridge 32bit mmio: [0xcfd00000-0xcfefffff] pci 0000:00:01.0: bridge 32bit mmio pref: [0xafa00000-0xcfbfffff] pci_bus 0000:00: on NUMA node 0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 *5 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 7 *10 11 12 14 15) SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1 898 MB/s
raid6: int32x2 914 MB/s
raid6: int32x4 722 MB/s
raid6: int32x8 640 MB/s
raid6: mmxx1 1675 MB/s
raid6: mmxx2 3050 MB/s
raid6: sse1x1 1613 MB/s
raid6: sse1x2 2609 MB/s
raid6: using algorithm sse1x2 (2609 MB/s)
PCI: Using ACPI for IRQ routing
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 12 devices
ACPI: ACPI bus type pnp unregistered
system 00:01: ioport range 0x290-0x297 has been reserved
system 00:01: ioport range 0x480-0x48f has been reserved
system 00:01: ioport range 0x4d0-0x4d1 has been reserved
system 00:01: ioport range 0xc00-0xc1f has been reserved
system 00:01: ioport range 0x3f0-0x3f1 has been reserved
system 00:01: iomem range 0xfee00000-0xfeefffff could not be reserved pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
pci 0000:00:01.0: IO window: 0xb000-0xbfff pci 0000:00:01.0: MEM window: 0xcfd00000-0xcfefffff pci 0000:00:01.0: PREFETCH window: 0xafa00000-0xcfbfffff
pci_bus 0000:00: resource 0 io: [0x00-0xffff]pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff] pci_bus 0000:01: resource 0 io: [0xb000-0xbfff]pci_bus 0000:01: resource 1 mem: [0xcfd00000-0xcfefffff] pci_bus 0000:01: resource 2 pref mem [0xafa00000-0xcfbfffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered
NET: Registered protocol family 1
highmem bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 1737
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for fcrypt (fcrypt-generic)
alg: No test for stdrng (krng)async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci 0000:01:00.0: Boot video devicepci_hotplug: PCI Hot Plug PCI Core version: 0.5
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled Switched to NOHz mode on CPU #0
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input0 Uniform Multi-Platform E-IDE driver
sis5513 0000:00:02.5: SiS 962/963 MuTIOL IDE UDMA133 controller sis5513 0000:00:02.5: IDE controller (0x1039:0x5513 rev 0x00) sis5513 0000:00:02.5: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xff00-0xff07
ide1: BM-DMA at 0xff08-0xff0fProbing IDE interface ide0...
hda: Maxtor 6Y120L0, ATA DISK drive
hdb: Maxtor 6Y120P0, ATA DISK drive
hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hda: UDMA/133 mode selected
hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdb: UDMA/133 mode selected
Probing IDE interface ide1...
hdc: HL-DT-STDVD-RAM GSA-H55N, ATAPI CD/DVD-ROM drive
hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdc: UDMA/66 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide-gd driver 1.18
hda: max request size: 128KiB
hda: 240121728 sectors (122942 MB) w/2048KiB Cache, CHS=65535/16/63
hda: cache flushes supported
hda: hda1
hdb: max request size: 128KiB
hdb: 240121728 sectors (122942 MB) w/7936KiB Cache, CHS=65535/16/63
hdb: cache flushes supported
hdb: hdb1
ide-cd driver 5.00
ide-cd: hdc: ATAPI 48X DVD-ROM DVD-R/RAM CD-R/RW drive, 2048kB Cache Uniform CD-ROM driver Revision: 3.20
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
md: multipath personality registered for level -4
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised:
[email protected]
cpuidle: using governor ladder
cpuidle: using governor menu
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
Using IPI Shortcut mode
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
EXT4-fs (hda1): barriers enabled
kjournald2 starting: pid 1091, dev hda1:8, commit interval 5 seconds EXT4-fs (hda1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (hda1): mounted filesystem with ordered data mode
VFS: Mounted root (ext4 filesystem) readonly on device 3:1. Freeing unused kernel memory: 376k freed
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
ACPI: Power Button [PWRF]
input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input3
ACPI: Power Button [PWRB]
input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input4
ACPI: Sleep Button [SLPB]sis900.c: v1.08.10 Apr. 2 2006
sis900 0000:00:04.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 0000:00:04.0: VIA 6103 PHY transceiver found at address 1. 0000:00:04.0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xdc00, IRQ 19, 00:19:21:9b:5b:e7ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_hcd 0000:00:03.2: PCI INT D -> GSI 23 (level, low) -> IRQ 23 ehci_hcd 0000:00:03.2: EHCI Host Controllerehci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:03.2: cache line size of 64 is not supported ehci_hcd 0000:00:03.2: irq 23, io mem 0xcffdf000
8139too Fast Ethernet driver 0.9.28ehci_hcd 0000:00:03.2: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.31.6 ehci_hcd
usb usb1: SerialNumber: 0000:00:03.2
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
8139too 0000:00:0a.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
eth1: RealTek RTL8139 at 0xd800, 00:e0:29:9b:1a:15, IRQ 18 processor LNXCPU:00: registered as cooling_device0rtc_cmos 00:03: RTC can wake from S4rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, 114 bytes nvram
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input5
Linux agpgart interface v0.103
agpgart-sis 0000:00:00.0: SiS chipset [1039/0746]
agpgart-sis 0000:00:00.0: AGP aperture is 128M @ 0xd0000000 sis96x_smbus 0000:00:02.1: SiS96x SMBus base address: 0x0c00
ACPI: I/O resource 0000:00:02.1 [0xc00-0xc1f] conflicts with ACPI region SMRG [0xc00-0xc1f]
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 parport_pc 00:0b: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driverohci_hcd 0000:00:03.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20 ohci_hcd 0000:00:03.0: OHCI Host Controllerohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:03.0: irq 20, io mem 0xcfffe000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: OHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.31.6 ohci_hcd
usb usb2: SerialNumber: 0000:00:03.0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detectedohci_hcd 0000:00:03.1: PCI INT B -> GSI 21 (level, low) -> IRQ 21 ohci_hcd 0000:00:03.1: OHCI Host Controllerohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:03.1: irq 21, io mem 0xcffff000
usb usb3: New USB device found, idVendor=1d6b, idProduct=0001 usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb3: Product: OHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.31.6 ohci_hcd
usb usb3: SerialNumber: 0000:00:03.1
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 3 ports detected
ENS1371 0000:00:0c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ppdev: user-space parallel port driver
usb 3-3: new low speed USB device using ohci_hcd and address 2 usb 3-3: New USB device found, idVendor=0428, idProduct=4001
usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 3-3: Product: GamePad Pro USB
usb 3-3: Manufacturer: Gravis
usb 3-3: configuration #1 chosen from 1 choice
fuse init (API version 7.12)
EXT4-fs (hda1): internal journal on hda1:8
hda: UDMA/133 mode selected
hdb: UDMA/133 mode selected
hdc: UDMA/66 mode selected
usbcore: registered new interface driver hiddev
input: Gravis GamePad Pro USB as /devices/pci0000:00/0000:00:03.1/usb3/3-3/3-3:1.0/input/input6 generic-usb 0003:0428:4001.0001: input,hidraw0: USB HID v1.00 Gamepad /[Gravis GamePad Pro USB ] on usb-0000:00:03.1-3/input0
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
PPP generic driver version 2.4.2
[drm] Initialized drm 1.1.0 20060810
pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [drm] Initialized radeon 1.31.0 20080528 for 0000:01:00.0 on minor 0uhci_hcd: USB Universal Host Controller Interface driver
input: PC Speaker as /devices/platform/pcspkr/input/input7
it87: Found IT8705F chip at 0x290, revision 3
Adding 2097144k swap on /swap. Priority:-1 extents:3 across:2793464k
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
eth1: no IPv6 routers present
warning: quid' uses 32-bit capabilities (legacy support in use) u32 classifier
Actions configured
eth0: Media Link On 100mbps full-duplex
PPP BSD Compression module registeredip_tables: (C) 2000-2006 Netfilter Core Teamnf_conntrack version 0.5.0 (16384 buckets, 65536 max) CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
eth0: no IPv6 routers present
agpgart-sis 0000:00:00.0: AGP 3.0 bridge
agpgart-sis 0000:00:00.0: putting AGP V3 device at 0000:00:00.0 into 4x mode agpgart-sis 0000:00:00.0: SiS delay workaround: giving bridge time to recover
agpgart-sis 0000:00:00.0: putting AGP V3 device at 0000:01:00.0 into 4x mode [drm] Setting GART location based on new memory map
[drm] Loading R500 Microcode
[drm] Num pipes: 1
[drm] writeback test succeeded in 1 usecs
[drm] Num pipes: 1
mtrr: MTRR 2 not used
agpgart-sis 0000:00:00.0: AGP 3.0 bridge
agpgart-sis 0000:00:00.0: putting AGP V3 device at 0000:00:00.0 into 4x mode agpgart-sis 0000:00:00.0: SiS delay workaround: giving bridge time to recover
agpgart-sis 0000:00:00.0: putting AGP V3 device at 0000:01:00.0 into 4x mode [drm] Setting GART location based on new memory map
[drm] Loading R500 Microcode
[drm] Num pipes: 1
[drm] writeback test succeeded in 1 usecs
usb 1-4: new high speed USB device using ehci_hcd and address 3 usb 1-4: New USB device found, idVendor=067b, idProduct=2506
usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-4: Product: Mass Storage Device
usb 1-4: Manufacturer: Prolific Technology Inc.
usb 1-4: SerialNumber: 0
usb 1-4: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access ST325082 3A 3.06 PQ: 0 ANSI: 0
usb-storage: device scan complete
sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB) sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda:
sd 0:0:0:0: Attached scsi generic sg0 type 0
sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk
EXT4-fs (sda1): barriers enabled
kjournald2 starting: pid 3390, dev sda1:8, commit interval 5 seconds EXT4-fs (sda1): internal journal on sda1:8
EXT4-fs (sda1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (sda1): mounted filesystem with ordered data mode
EXT4-fs: mballoc: 5780 blocks 36 reqs (13 success)
EXT4-fs: mballoc: 28 extents scanned, 2 goal hits, 26 2^N hits, 0 breaks, 0 lost
EXT4-fs: mballoc: 113 generated and it took 1911664
EXT4-fs: mballoc: 3961 preallocated, 3449 discarded
EXT4-fs (sda1): barriers enabled
kjournald2 starting: pid 3411, dev sda1:8, commit interval 5 seconds EXT4-fs (sda1): internal journal on sda1:8
EXT4-fs (sda1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (sda1): mounted filesystem with ordered data mode
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00end_request: I/O error, dev sda, sector 79713943
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00end_request: I/O error, dev sda, sector 79714231
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00end_request: I/O error, dev sda, sector 61431
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00end_request: I/O error, dev sda, sector 4223935
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00end_request: I/O error, dev sda, sector 8417519
EXT4-fs (hdb1): barriers enabled
kjournald2 starting: pid 3539, dev hdb1:8, commit interval 5 seconds EXT4-fs (hdb1): internal journal on hdb1:8
EXT4-fs (hdb1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (hdb1): mounted filesystem with ordered data mode
EXT4-fs: mballoc: 0 blocks 0 reqs (0 success)
EXT4-fs: mballoc: 0 extents scanned, 0 goal hits, 0 2^N hits, 0 breaks, 0 lost
EXT4-fs: mballoc: 0 generated and it took 0
EXT4-fs: mballoc: 0 preallocated, 0 discarded
EXT4-fs: mballoc: 452074 blocks 31860 reqs (29968 success)
EXT4-fs: mballoc: 2099 extents scanned, 263 goal hits, 2028 2^N hits, 0 breaks, 0 lost
EXT4-fs: mballoc: 1208 generated and it took 19874212
EXT4-fs: mballoc: 318579 preallocated, 48300 discarded