diff mbox

Re: [BUG 2.6.30_rc5] Null pointer dereference in rtc-cmos driver

Message ID 20090516154912.a0efc677.akpm@linux-foundation.org
State Awaiting Upstream, archived
Headers show

Commit Message

Andrew Morton May 16, 2009, 10:49 p.m. UTC
On Fri, 15 May 2009 21:01:34 +0200 Alessandro Zummo <alessandro.zummo@towertech.it> wrote:

> On Fri, 15 May 2009 19:40:56 +0200
> Ingo Molnar <mingo@elte.hu> wrote:
> 
>  more Cc:s
>  

c'mon guys, it isn't that hard.

>
> ...
>
> > > [   10.428691] Error: Driver 'rtc_cmos' is already registered, aborting...

This should fix the symptoms:

From: Andrew Morton <akpm@linux-foundation.org>

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13326

Prevents a null-pointer deref under the above-described circumstances.

pnp_unregister_driver() shouldn't oops the kernel either - that's a

Comments

Kay Sievers May 16, 2009, 11:36 p.m. UTC | #1
On Sun, May 17, 2009 at 00:49, Andrew Morton <akpm@linux-foundation.org> wrote:

> This should fix the symptoms:

> +++ a/drivers/rtc/rtc-cmos.c
> @@ -1179,7 +1179,9 @@ static int __init cmos_init(void)
>        int retval = 0;
>
>  #ifdef CONFIG_PNP
> -       pnp_register_driver(&cmos_pnp_driver);
> +       retval = pnp_register_driver(&cmos_pnp_driver);
> +       if (retval < 0)
> +               return retval;
>  #endif

That looks like a good fix.

> Can someone please test it?

I'll try to reproduce it.

>> > > [   10.428728] BUG: unable to handle kernel NULL pointer dereference at 00000018
...
>> > > [   10.459009]  [<c03037e6>] ? driver_remove_file+0xf/0x11

> But we have arguably multiple more bugs here.
> pnp_unregister_driver(unregistered-driver) shouldn't oops the kernel.
> Neither pnp_unregister_driver() nor driver_unregister() nor
> bus_remove_driver() nor driver_remove_file() nor sysfs_remove_file()
> detected this.
>
> Kay, Greg: there are already a pile of checks on that path, but it
> seems there's one missing.  Could you please take a look and decide at
> the design level where this check should be occurring?

The issue is caused by a trying to unregister a driver which never got
registered before. I guess we try to access the private part of the
driver to reach the kobject, but for unregistered drivers there is no
such thing at that time. In:
  driver_remove_file()
we try to access the private part:
  sysfs_remove_file(&drv->p->kobj, ...
and that is NULL, for an unregistered driver, I would expect.

I'll try to reproduce the issue, and see if your fix cover the real problem.
If I can reproduce it, I'll take a look where to add a check for this.

Thanks,
Kay

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
-~----------~----~----~----~------~----~------~--~---
Ozan Çağlayan May 17, 2009, 12:26 a.m. UTC | #2
Andrew Morton wrote:
> This should fix the symptoms:
>
> From: Andrew Morton <akpm@linux-foundation.org>
>
> Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13326
>   

Tested-by: Ozan Caglayan <ozan@pardus.org.tr>

Yep, it fixes the problem. dmesg after applying the patch is attached.

Thanks,

Ozan Caglayan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
-~----------~----~----~----~------~----~------~--~---
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.30_rc5-116 (pardus@buildfarm) (gcc version 4.3.3 (Pardus Linux) ) #1 SMP Thu May 14 22:29:25 EEST 2009
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   NSC Geode by NSC
[    0.000000]   Cyrix CyrixInstead
[    0.000000]   Centaur CentaurHauls
[    0.000000]   Transmeta GenuineTMx86
[    0.000000]   Transmeta TransmetaCPU
[    0.000000]   UMC UMC UMC UMC
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
[    0.000000]  BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000006fee0000 (usable)
[    0.000000]  BIOS-e820: 000000006fee0000 - 000000006fee3000 (ACPI NVS)
[    0.000000]  BIOS-e820: 000000006fee3000 - 000000006fef0000 (ACPI data)
[    0.000000]  BIOS-e820: 000000006fef0000 - 000000006ff00000 (reserved)
[    0.000000]  BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
[    0.000000]  BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
[    0.000000] DMI 2.5 present.
[    0.000000] Phoenix BIOS detected: BIOS may corrupt low RAM, working around it.
[    0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
[    0.000000] last_pfn = 0x6fee0 max_arch_pfn = 0x100000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-BFFFF uncachable
[    0.000000]   C0000-C7FFF write-protect
[    0.000000]   C8000-FFFFF uncachable
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 0000000000 mask FFC0000000 write-back
[    0.000000]   1 base 0040000000 mask FFE0000000 write-back
[    0.000000]   2 base 0060000000 mask FFF0000000 write-back
[    0.000000]   3 base 006FF00000 mask FFFFF00000 uncachable
[    0.000000]   4 disabled
[    0.000000]   5 disabled
[    0.000000]   6 disabled
[    0.000000]   7 disabled
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] Scanning 0 areas for low memory corruption
[    0.000000] modified physical RAM map:
[    0.000000]  modified: 0000000000000000 - 0000000000010000 (reserved)
[    0.000000]  modified: 0000000000010000 - 000000000009f400 (usable)
[    0.000000]  modified: 000000000009f400 - 00000000000a0000 (reserved)
[    0.000000]  modified: 00000000000f0000 - 0000000000100000 (reserved)
[    0.000000]  modified: 0000000000100000 - 000000006fee0000 (usable)
[    0.000000]  modified: 000000006fee0000 - 000000006fee3000 (ACPI NVS)
[    0.000000]  modified: 000000006fee3000 - 000000006fef0000 (ACPI data)
[    0.000000]  modified: 000000006fef0000 - 000000006ff00000 (reserved)
[    0.000000]  modified: 00000000e0000000 - 00000000f0000000 (reserved)
[    0.000000]  modified: 00000000fec00000 - 0000000100000000 (reserved)
[    0.000000] init_memory_mapping: 0000000000000000-00000000377fe000
[    0.000000]  0000000000 - 0000400000 page 4k
[    0.000000]  0000400000 - 0037400000 page 2M
[    0.000000]  0037400000 - 00377fe000 page 4k
[    0.000000] kernel direct mapping tables up to 377fe000 @ 10000-15000
[    0.000000] RAMDISK: 37b41000 - 37fef620
[    0.000000] Allocated new RAMDISK: 006ab000 - 00b59620
[    0.000000] Move RAMDISK from 0000000037b41000 - 0000000037fef61f to 006ab000 - 00b5961f
[    0.000000] ACPI: RSDP 000f7cd0 00024 (v02 RS690 )
[    0.000000] ACPI: XSDT 6fee3080 00044 (v01 RS690  AWRDACPI 42302E31 AWRD 00000000)
[    0.000000] ACPI: FACP 6fee7b40 000F4 (v03 RS690  AWRDACPI 42302E31 AWRD 00000000)
[    0.000000] ACPI: DSDT 6fee3200 04915 (v01 RS690  AWRDACPI 00001000 MSFT 03000000)
[    0.000000] ACPI: FACS 6fee0000 00040
[    0.000000] ACPI: HPET 6fee7cc0 00038 (v01 RS690  AWRDACPI 42302E31 AWRD 00000098)
[    0.000000] ACPI: MCFG 6fee7d00 0003C (v01 RS690  AWRDACPI 42302E31 AWRD 00000000)
[    0.000000] ACPI: APIC 6fee7c40 00068 (v01 RS690  AWRDACPI 42302E31 AWRD 00000000)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] 902MB HIGHMEM available.
[    0.000000] 887MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 377fe000
[    0.000000]   low ram: 0 - 377fe000
[    0.000000]   node 0 low ram: 00000000 - 377fe000
[    0.000000]   node 0 bootmap 00011000 - 00017f00
[    0.000000] (9 early reservations) ==> bootmem [0000000000 - 00377fe000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
[    0.000000]   #1 [0000001000 - 0000002000]    EX TRAMPOLINE ==> [0000001000 - 0000002000]
[    0.000000]   #2 [0000006000 - 0000007000]       TRAMPOLINE ==> [0000006000 - 0000007000]
[    0.000000]   #3 [0000100000 - 00006a6e04]    TEXT DATA BSS ==> [0000100000 - 00006a6e04]
[    0.000000]   #4 [000009f400 - 0000100000]    BIOS reserved ==> [000009f400 - 0000100000]
[    0.000000]   #5 [00006a7000 - 00006aa0c2]              BRK ==> [00006a7000 - 00006aa0c2]
[    0.000000]   #6 [0000010000 - 0000011000]          PGTABLE ==> [0000010000 - 0000011000]
[    0.000000]   #7 [00006ab000 - 0000b59620]      NEW RAMDISK ==> [00006ab000 - 0000b59620]
[    0.000000]   #8 [0000011000 - 0000018000]          BOOTMAP ==> [0000011000 - 0000018000]
[    0.000000] found SMP MP-table at [c00f3b80] f3b80
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000010 -> 0x00001000
[    0.000000]   Normal   0x00001000 -> 0x000377fe
[    0.000000]   HighMem  0x000377fe -> 0x0006fee0
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000010 -> 0x0000009f
[    0.000000]     0: 0x00000100 -> 0x0006fee0
[    0.000000] On node 0 totalpages: 458351
[    0.000000] free_area_init_node: node 0, pgdat c05530e0, node_mem_map c1000200
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3951 pages, LIFO batch:0
[    0.000000]   Normal zone: 1744 pages used for memmap
[    0.000000]   Normal zone: 221486 pages, LIFO batch:31
[    0.000000]   HighMem zone: 1806 pages used for memmap
[    0.000000]   HighMem zone: 229332 pages, LIFO batch:31
[    0.000000] Using APIC driver default
[    0.000000] Detected use of extended apic ids on hypertransport bus
[    0.000000] ACPI: PM-Timer IO Port: 0x4008
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 2, version 33, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Enabling APIC mode:  Flat.  Using 1 I/O APICs
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x10b9a201 base: 0xfed00000
[    0.000000] SMP: Allowing 2 CPUs, 0 hotplug CPUs
[    0.000000] nr_irqs_gsi: 24
[    0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[    0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[    0.000000] Allocating PCI resources starting at 70000000 (gap: 6ff00000:70100000)
[    0.000000] NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:2 nr_node_ids:1
[    0.000000] PERCPU: Embedded 12 pages at c1e07000, static data 26940 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 454769
[    0.000000] Kernel command line: root=LABEL=PARDUS_ROOT1 vga=791 splash=verbose mudur=debug
[    0.000000] bootsplash: verbose mode.
[    0.000000] Enabling fast FPU save and restore... done.
[    0.000000] Enabling unmasked SIMD FPU exception support... done.
[    0.000000] Initializing CPU#0
[    0.000000] NR_IRQS:1280
[    0.000000] PID hash table entries: 4096 (order: 12, 16384 bytes)
[    0.000000] Fast TSC calibration using PIT
[    0.000000] Detected 2511.513 MHz processor.
[    0.000999] Console: colour dummy device 80x25
[    0.000999] console [tty0] enabled
[    0.000999] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000999] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000999] allocated 9168960 bytes of page_cgroup
[    0.000999] please try cgroup_disable=memory option if you don't want
[    0.000999] Initializing HighMem for node 0 (000377fe:0006fee0)
[    0.000999] Memory: 1797712k/1833856k available (2940k kernel code, 34836k reserved, 1698k data, 380k init, 924552k highmem)
[    0.000999] virtual kernel memory layout:
[    0.000999]     fixmap  : 0xffe16000 - 0xfffff000   (1956 kB)
[    0.000999]     pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
[    0.000999]     vmalloc : 0xf7ffe000 - 0xff7fe000   ( 120 MB)
[    0.000999]     lowmem  : 0xc0000000 - 0xf77fe000   ( 887 MB)
[    0.000999]       .init : 0xc058e000 - 0xc05ed000   ( 380 kB)
[    0.000999]       .data : 0xc03df3cb - 0xc0587c8c   (1698 kB)
[    0.000999]       .text : 0xc0100000 - 0xc03df3cb   (2940 kB)
[    0.000999] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000999] SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000999] hpet clockevent registered
[    0.000999] HPET: 4 timers in total, 0 timers will be used for per-cpu timer
[    0.001007] Calibrating delay loop (skipped), value calculated using timer frequency.. 5023.02 BogoMIPS (lpj=2511513)
[    0.001034] Security Framework initialized
[    0.001044] Mount-cache hash table entries: 512
[    0.001154] Initializing cgroup subsys ns
[    0.001159] Initializing cgroup subsys cpuacct
[    0.001164] Initializing cgroup subsys memory
[    0.001171] Initializing cgroup subsys devices
[    0.001175] Initializing cgroup subsys freezer
[    0.001189] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[    0.001194] CPU: L2 Cache: 512K (64 bytes/line)
[    0.001198] CPU: Physical Processor ID: 0
[    0.001200] CPU: Processor Core ID: 0
[    0.001205] Intel machine check architecture supported.
[    0.001209] Intel machine check reporting enabled on CPU#0.
[    0.001213] using C1E aware idle routine
[    0.001222] Checking 'hlt' instruction... OK.
[    0.006688] ACPI: Core revision 20090320
[    0.016148] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.026159] CPU0: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ stepping 02
[    0.026995] Booting processor 1 APIC 0x1 ip 0x6000
[    0.000999] Initializing CPU#1
[    0.000999] Calibrating delay using timer specific routine.. 5022.47 BogoMIPS (lpj=2511238)
[    0.000999] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[    0.000999] CPU: L2 Cache: 512K (64 bytes/line)
[    0.000999] CPU: Physical Processor ID: 0
[    0.000999] CPU: Processor Core ID: 1
[    0.000999] Intel machine check architecture supported.
[    0.000999] Intel machine check reporting enabled on CPU#1.
[    0.000999] x86 PAT enabled: cpu 1, old 0x7040600070406, new 0x7010600070106
[    0.097491] CPU1: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ stepping 02
[    0.097618] Brought up 2 CPUs
[    0.097622] Total of 2 processors activated (10045.50 BogoMIPS).
[    0.097725] CPU0 attaching sched-domain:
[    0.097728]  domain 0: span 0-1 level CPU
[    0.097730]   groups: 0 1
[    0.097735] CPU1 attaching sched-domain:
[    0.097737]  domain 0: span 0-1 level CPU
[    0.097739]   groups: 1 0
[    0.097792] net_namespace: 1088 bytes
[    0.098008] Booting paravirtualized kernel on bare hardware
[    0.098154] regulator: core version 0.5
[    0.098154] NET: Registered protocol family 16
[    0.098154] ACPI: bus type pci registered
[    0.098209] PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255
[    0.098214] PCI: MCFG area at e0000000 reserved in E820
[    0.098218] PCI: Using MMCONFIG for extended config space
[    0.098222] PCI: Using configuration type 1 for base access
[    0.098749] bio: create slab <bio-0> at 0
[    0.099411] ACPI: EC: Look up EC in DSDT
[    0.105120] ACPI: Interpreter enabled
[    0.105132] ACPI: (supports S0 S1 S4 S5)
[    0.105160] ACPI: Using IOAPIC for interrupt routing
[    0.109412] ACPI: No dock devices found.
[    0.109424] ACPI: PCI Root Bridge [PCI0] (0000:00)
[    0.109508] pci 0000:00:04.0: PME# supported from D0 D3hot D3cold
[    0.109513] pci 0000:00:04.0: PME# disabled
[    0.109571] pci 0000:00:12.0: reg 10 io port: [0xff00-0xff07]
[    0.109578] pci 0000:00:12.0: reg 14 io port: [0xfe00-0xfe03]
[    0.109585] pci 0000:00:12.0: reg 18 io port: [0xfd00-0xfd07]
[    0.109592] pci 0000:00:12.0: reg 1c io port: [0xfc00-0xfc03]
[    0.109599] pci 0000:00:12.0: reg 20 io port: [0xfb00-0xfb0f]
[    0.109606] pci 0000:00:12.0: reg 24 32bit mmio: [0xfe02f000-0xfe02f3ff]
[    0.109624] pci 0000:00:12.0: set SATA to AHCI mode
[    0.109670] pci 0000:00:13.0: reg 10 32bit mmio: [0xfe02e000-0xfe02efff]
[    0.109724] pci 0000:00:13.1: reg 10 32bit mmio: [0xfe02d000-0xfe02dfff]
[    0.109778] pci 0000:00:13.2: reg 10 32bit mmio: [0xfe02c000-0xfe02cfff]
[    0.109831] pci 0000:00:13.3: reg 10 32bit mmio: [0xfe02b000-0xfe02bfff]
[    0.109885] pci 0000:00:13.4: reg 10 32bit mmio: [0xfe02a000-0xfe02afff]
[    0.109956] pci 0000:00:13.5: reg 10 32bit mmio: [0xfe029000-0xfe0290ff]
[    0.110011] pci 0000:00:13.5: supports D1 D2
[    0.110012] pci 0000:00:13.5: PME# supported from D0 D1 D2 D3hot
[    0.110019] pci 0000:00:13.5: PME# disabled
[    0.110063] pci 0000:00:14.0: reg 10 io port: [0xb00-0xb0f]
[    0.110070] pci 0000:00:14.0: reg 14 32bit mmio: [0xfed00000-0xfed003ff]
[    0.110143] pci 0000:00:14.1: reg 10 io port: [0x00-0x07]
[    0.110150] pci 0000:00:14.1: reg 14 io port: [0x00-0x03]
[    0.110157] pci 0000:00:14.1: reg 18 io port: [0x00-0x07]
[    0.110164] pci 0000:00:14.1: reg 1c io port: [0x00-0x03]
[    0.110170] pci 0000:00:14.1: reg 20 io port: [0xf900-0xf90f]
[    0.110242] pci 0000:00:14.2: reg 10 64bit mmio: [0xfe024000-0xfe027fff]
[    0.110289] pci 0000:00:14.2: PME# supported from D0 D3hot D3cold
[    0.110295] pci 0000:00:14.2: PME# disabled
[    0.110466] pci 0000:01:05.0: reg 10 64bit mmio: [0xd0000000-0xdfffffff]
[    0.110471] pci 0000:01:05.0: reg 18 64bit mmio: [0xfdfe0000-0xfdfeffff]
[    0.110475] pci 0000:01:05.0: reg 20 io port: [0xde00-0xdeff]
[    0.110479] pci 0000:01:05.0: reg 24 32bit mmio: [0xfde00000-0xfdefffff]
[    0.110489] pci 0000:01:05.0: supports D1 D2
[    0.110505] pci 0000:01:05.2: reg 10 64bit mmio: [0xfdffc000-0xfdffffff]
[    0.110535] pci 0000:00:01.0: bridge io port: [0xd000-0xdfff]
[    0.110538] pci 0000:00:01.0: bridge 32bit mmio: [0xfde00000-0xfdffffff]
[    0.110542] pci 0000:00:01.0: bridge 64bit mmio pref: [0xd0000000-0xdfffffff]
[    0.110585] pci 0000:02:00.0: reg 10 io port: [0xee00-0xeeff]
[    0.110602] pci 0000:02:00.0: reg 18 64bit mmio: [0xfddff000-0xfddfffff]
[    0.110619] pci 0000:02:00.0: reg 30 32bit mmio: [0x000000-0x01ffff]
[    0.110654] pci 0000:02:00.0: supports D1 D2
[    0.110656] pci 0000:02:00.0: PME# supported from D1 D2 D3hot D3cold
[    0.110662] pci 0000:02:00.0: PME# disabled
[    0.110690] pci 0000:02:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    0.110778] pci 0000:00:04.0: bridge io port: [0xe000-0xefff]
[    0.110781] pci 0000:00:04.0: bridge 32bit mmio: [0xfdd00000-0xfddfffff]
[    0.110784] pci 0000:00:04.0: bridge 64bit mmio pref: [0xfdc00000-0xfdcfffff]
[    0.110841] pci 0000:00:14.4: transparent bridge
[    0.110847] pci 0000:00:14.4: bridge io port: [0xc000-0xcfff]
[    0.110852] pci 0000:00:14.4: bridge 32bit mmio: [0xfdb00000-0xfdbfffff]
[    0.110856] pci 0000:00:14.4: bridge 32bit mmio pref: [0xfda00000-0xfdafffff]
[    0.110867] pci_bus 0000:00: on NUMA node 0
[    0.110873] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.111033] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P_._PRT]
[    0.111093] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCE4._PRT]
[    0.111141] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
[    0.132401] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 11) *0, disabled.
[    0.132499] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 11) *0, disabled.
[    0.132596] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11) *0, disabled.
[    0.132692] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 11) *0, disabled.
[    0.132788] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11) *0, disabled.
[    0.132885] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11) *0, disabled.
[    0.132984] ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 10 11) *0, disabled.
[    0.133082] ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 10 11) *0, disabled.
[    0.133211] usbcore: registered new interface driver usbfs
[    0.133211] usbcore: registered new interface driver hub
[    0.133211] usbcore: registered new device driver usb
[    0.133211] PCI: Using ACPI for IRQ routing
[    0.135996] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0
[    0.136003] hpet0: 4 comparators, 32-bit 14.318180 MHz counter
[    0.139991] Switched to high resolution mode on CPU 0
[    0.140625] Switched to high resolution mode on CPU 1
[    0.142014] pnp: PnP ACPI init
[    0.142023] ACPI: bus type pnp registered
[    0.144648] pnp 00:0c: mem resource (0xfed00000-0xfed000ff) overlaps 0000:00:14.0 BAR 1 (0xfed00000-0xfed003ff), disabling
[    0.144694] pnp: PnP ACPI: found 13 devices
[    0.144697] ACPI: ACPI bus type pnp unregistered
[    0.144702] PnPBIOS: Disabled by ACPI PNP
[    0.144712] system 00:01: ioport range 0x4100-0x411f has been reserved
[    0.144717] system 00:01: ioport range 0x228-0x22f has been reserved
[    0.144722] system 00:01: ioport range 0x40b-0x40b has been reserved
[    0.144726] system 00:01: ioport range 0x4d6-0x4d6 has been reserved
[    0.144731] system 00:01: ioport range 0xc00-0xc01 has been reserved
[    0.144736] system 00:01: ioport range 0xc14-0xc14 has been reserved
[    0.144740] system 00:01: ioport range 0xc50-0xc52 has been reserved
[    0.144745] system 00:01: ioport range 0xc6c-0xc6d has been reserved
[    0.144750] system 00:01: ioport range 0xc6f-0xc6f has been reserved
[    0.144755] system 00:01: ioport range 0xcd0-0xcd1 has been reserved
[    0.144759] system 00:01: ioport range 0xcd2-0xcd3 has been reserved
[    0.144764] system 00:01: ioport range 0xcd4-0xcdf has been reserved
[    0.144768] system 00:01: ioport range 0x4000-0x40fe has been reserved
[    0.144773] system 00:01: ioport range 0x4210-0x4217 has been reserved
[    0.144778] system 00:01: ioport range 0xb10-0xb1f has been reserved
[    0.144786] system 00:07: ioport range 0x4d0-0x4d1 has been reserved
[    0.144791] system 00:07: ioport range 0x800-0x805 has been reserved
[    0.144799] system 00:0b: iomem range 0xe0000000-0xefffffff has been reserved
[    0.144806] system 00:0c: iomem range 0xf0000-0xfffff could not be reserved
[    0.144811] system 00:0c: iomem range 0x6ff00000-0x6fffffff has been reserved
[    0.144816] system 00:0c: iomem range 0x6fee0000-0x6fefffff could not be reserved
[    0.144822] system 00:0c: iomem range 0xffff0000-0xffffffff has been reserved
[    0.144827] system 00:0c: iomem range 0x0-0x9ffff could not be reserved
[    0.144832] system 00:0c: iomem range 0x100000-0x6fedffff could not be reserved
[    0.144839] system 00:0c: iomem range 0x70000000-0x7fffffff has been reserved
[    0.144844] system 00:0c: iomem range 0xfec00000-0xfec00fff has been reserved
[    0.144849] system 00:0c: iomem range 0xfee00000-0xfee00fff has been reserved
[    0.144854] system 00:0c: iomem range 0xfff80000-0xfffeffff has been reserved
[    0.179603] pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
[    0.179608] pci 0000:00:01.0:   IO window: 0xd000-0xdfff
[    0.179613] pci 0000:00:01.0:   MEM window: 0xfde00000-0xfdffffff
[    0.179618] pci 0000:00:01.0:   PREFETCH window: 0x000000d0000000-0x000000dfffffff
[    0.179626] pci 0000:00:04.0: PCI bridge, secondary bus 0000:02
[    0.179631] pci 0000:00:04.0:   IO window: 0xe000-0xefff
[    0.179635] pci 0000:00:04.0:   MEM window: 0xfdd00000-0xfddfffff
[    0.179640] pci 0000:00:04.0:   PREFETCH window: 0x000000fdc00000-0x000000fdcfffff
[    0.179646] pci 0000:00:14.4: PCI bridge, secondary bus 0000:03
[    0.179651] pci 0000:00:14.4:   IO window: 0xc000-0xcfff
[    0.179658] pci 0000:00:14.4:   MEM window: 0xfdb00000-0xfdbfffff
[    0.179665] pci 0000:00:14.4:   PREFETCH window: 0x000000fda00000-0x000000fdafffff
[    0.179680] pci 0000:00:04.0: setting latency timer to 64
[    0.179688] pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
[    0.179690] pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
[    0.179692] pci_bus 0000:01: resource 0 io:  [0xd000-0xdfff]
[    0.179695] pci_bus 0000:01: resource 1 mem: [0xfde00000-0xfdffffff]
[    0.179697] pci_bus 0000:01: resource 2 pref mem [0xd0000000-0xdfffffff]
[    0.179700] pci_bus 0000:02: resource 0 io:  [0xe000-0xefff]
[    0.179702] pci_bus 0000:02: resource 1 mem: [0xfdd00000-0xfddfffff]
[    0.179705] pci_bus 0000:02: resource 2 pref mem [0xfdc00000-0xfdcfffff]
[    0.179707] pci_bus 0000:03: resource 0 io:  [0xc000-0xcfff]
[    0.179710] pci_bus 0000:03: resource 1 mem: [0xfdb00000-0xfdbfffff]
[    0.179712] pci_bus 0000:03: resource 2 pref mem [0xfda00000-0xfdafffff]
[    0.179715] pci_bus 0000:03: resource 3 io:  [0x00-0xffff]
[    0.179717] pci_bus 0000:03: resource 4 mem: [0x000000-0xffffffff]
[    0.179744] NET: Registered protocol family 2
[    0.188062] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.188366] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.189071] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[    0.189435] TCP: Hash tables configured (established 131072 bind 65536)
[    0.189440] TCP reno registered
[    0.192097] NET: Registered protocol family 1
[    0.192154] Unpacking initramfs...
[    0.328677] Freeing initrd memory: 4793k freed
[    0.331875] cpu0(2) debug files 130
[    0.332628] cpu1(2) debug files 130
[    0.332634] Machine check exception polling timer started.
[    0.332648] cpufreq-nforce2: No nForce2 chipset.
[    0.332742] Scanning for low memory corruption every 60 seconds
[    0.332836] audit: initializing netlink socket (disabled)
[    0.332851] type=2000 audit(1242530816.332:1): initialized
[    0.338713] highmem bounce pool size: 64 pages
[    0.338721] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[    0.339805] VFS: Disk quotas dquot_6.5.2
[    0.339855] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.340215] fuse init (API version 7.11)
[    0.340457] aufs 2-29
[    0.340463] msgmni has been set to 1716
[    0.340792] alg: No test for stdrng (krng)
[    0.340846] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.340855] io scheduler noop registered
[    0.340858] io scheduler anticipatory registered
[    0.340862] io scheduler deadline registered
[    0.340896] io scheduler cfq registered (default)
[    0.456065] pci 0000:01:05.0: Boot video device
[    0.456167] pcieport-driver 0000:00:04.0: setting latency timer to 64
[    0.456221] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.456246] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.456461] vesafb: framebuffer at 0xd0000000, mapped to 0xf8080000, using 6144k, total 16384k
[    0.456468] vesafb: mode is 1024x768x16, linelength=2048, pages=9
[    0.456472] vesafb: protected mode interface info at c000:a008
[    0.456476] vesafb: pmi: set display start = c00ca092, set palette = c00ca150
[    0.456480] vesafb: scrolling: redraw
[    0.456485] vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
[    0.457376] bootsplash 3.1.6-2004/03/31: looking for picture...
[    0.473198] bootsplash: silentjpeg size 38809 bytes
[    0.473207] bootsplash: ...found (1024x768, 133910 bytes, v3).
[    0.489406] Console: switching to colour frame buffer device 128x45
[    0.548710] fb0: VESA VGA frame buffer device
[    0.549189] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    0.549794] ACPI: Power Button [PWRF]
[    0.550153] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
[    0.550822] ACPI: Power Button [PWRB]
[    0.551171] fan PNP0C0B:00: registered as cooling_device0
[    0.551622] ACPI: Fan [FAN] (on)
[    0.552143] processor ACPI_CPU:00: registered as cooling_device1
[    0.552675] processor ACPI_CPU:01: registered as cooling_device2
[    0.555380] thermal LNXTHERM:01: registered as thermal_zone0
[    0.555844] ACPI: Thermal Zone [THRM] (40 C)
[    0.556241] isapnp: Scanning for PnP cards...
[    0.869373] isapnp: No Plug & Play device found
[    0.870668] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.871298] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.872070] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.872670] Floppy drive(s): fd0 is 1.44M
[    3.884050] floppy0: no floppy controllers found
[    3.884725] loop: module loaded
[    3.885042] input: Macintosh mouse button emulation as /devices/virtual/input/input2
[    3.901480] Fixed MDIO Bus: probed
[    3.917671] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.934095] ehci_hcd 0000:00:13.5: PCI INT D -> GSI 19 (level, low) -> IRQ 19
[    3.950851] ehci_hcd 0000:00:13.5: EHCI Host Controller
[    3.967562] ehci_hcd 0000:00:13.5: new USB bus registered, assigned bus number 1
[    3.984516] ehci_hcd 0000:00:13.5: applying AMD SB600/SB700 USB freeze workaround
[    4.001431] ehci_hcd 0000:00:13.5: debug port 1
[    4.017962] ehci_hcd 0000:00:13.5: irq 19, io mem 0xfe029000
[    4.040021] ehci_hcd 0000:00:13.5: USB 2.0 started, EHCI 1.00
[    4.056549] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.073496] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.090636] usb usb1: Product: EHCI Host Controller
[    4.107687] usb usb1: Manufacturer: Linux 2.6.30_rc5-116 ehci_hcd
[    4.124758] usb usb1: SerialNumber: 0000:00:13.5
[    4.141629] usb usb1: configuration #1 chosen from 1 choice
[    4.158262] hub 1-0:1.0: USB hub found
[    4.174641] hub 1-0:1.0: 10 ports detected
[    4.190987] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.207410] ohci_hcd 0000:00:13.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    4.224012] ohci_hcd 0000:00:13.0: OHCI Host Controller
[    4.240460] ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 2
[    4.257016] ohci_hcd 0000:00:13.0: irq 16, io mem 0xfe02e000
[    4.328048] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    4.344708] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.361285] usb usb2: Product: OHCI Host Controller
[    4.377720] usb usb2: Manufacturer: Linux 2.6.30_rc5-116 ohci_hcd
[    4.394071] usb usb2: SerialNumber: 0000:00:13.0
[    4.410196] usb usb2: configuration #1 chosen from 1 choice
[    4.426072] hub 2-0:1.0: USB hub found
[    4.441522] hub 2-0:1.0: 2 ports detected
[    4.456905] ohci_hcd 0000:00:13.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[    4.472590] ohci_hcd 0000:00:13.1: OHCI Host Controller
[    4.488025] ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 3
[    4.503913] ohci_hcd 0000:00:13.1: irq 17, io mem 0xfe02d000
[    4.570075] hub 1-0:1.0: unable to enumerate USB device on port 3
[    4.574052] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    4.574055] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.574057] usb usb3: Product: OHCI Host Controller
[    4.574059] usb usb3: Manufacturer: Linux 2.6.30_rc5-116 ohci_hcd
[    4.574060] usb usb3: SerialNumber: 0000:00:13.1
[    4.574120] usb usb3: configuration #1 chosen from 1 choice
[    4.574143] hub 3-0:1.0: USB hub found
[    4.574153] hub 3-0:1.0: 2 ports detected
[    4.574235] ohci_hcd 0000:00:13.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[    4.574251] ohci_hcd 0000:00:13.2: OHCI Host Controller
[    4.574273] ohci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 4
[    4.574305] ohci_hcd 0000:00:13.2: irq 18, io mem 0xfe02c000
[    4.629035] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    4.629037] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.629039] usb usb4: Product: OHCI Host Controller
[    4.629040] usb usb4: Manufacturer: Linux 2.6.30_rc5-116 ohci_hcd
[    4.629042] usb usb4: SerialNumber: 0000:00:13.2
[    4.629079] usb usb4: configuration #1 chosen from 1 choice
[    4.629100] hub 4-0:1.0: USB hub found
[    4.629108] hub 4-0:1.0: 2 ports detected
[    4.629175] ohci_hcd 0000:00:13.3: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[    4.629183] ohci_hcd 0000:00:13.3: OHCI Host Controller
[    4.629198] ohci_hcd 0000:00:13.3: new USB bus registered, assigned bus number 5
[    4.629215] ohci_hcd 0000:00:13.3: irq 17, io mem 0xfe02b000
[    4.684034] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[    4.684036] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.684038] usb usb5: Product: OHCI Host Controller
[    4.684040] usb usb5: Manufacturer: Linux 2.6.30_rc5-116 ohci_hcd
[    4.684042] usb usb5: SerialNumber: 0000:00:13.3
[    4.684080] usb usb5: configuration #1 chosen from 1 choice
[    4.684100] hub 5-0:1.0: USB hub found
[    4.684109] hub 5-0:1.0: 2 ports detected
[    4.684173] ohci_hcd 0000:00:13.4: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[    4.684181] ohci_hcd 0000:00:13.4: OHCI Host Controller
[    4.684196] ohci_hcd 0000:00:13.4: new USB bus registered, assigned bus number 6
[    4.684213] ohci_hcd 0000:00:13.4: irq 18, io mem 0xfe02a000
[    4.739034] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
[    4.739037] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.739038] usb usb6: Product: OHCI Host Controller
[    4.739040] usb usb6: Manufacturer: Linux 2.6.30_rc5-116 ohci_hcd
[    4.739042] usb usb6: SerialNumber: 0000:00:13.4
[    4.739077] usb usb6: configuration #1 chosen from 1 choice
[    4.739100] hub 6-0:1.0: USB hub found
[    4.739108] hub 6-0:1.0: 2 ports detected
[    4.739177] uhci_hcd: USB Universal Host Controller Interface driver
[    4.739244] PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
[    4.739246] PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    4.739532] serio: i8042 KBD port at 0x60,0x64 irq 1
[    4.739581] mice: PS/2 mouse device common for all mice
[    4.739695] rtc_cmos 00:04: RTC can wake from S4
[    4.739726] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
[    4.739760] rtc0: alarms up to one month, 242 bytes nvram, hpet irqs
[    4.739806] cpuidle: using governor ladder
[    4.739808] cpuidle: using governor menu
[    4.740017] usbcore: registered new interface driver hiddev
[    4.740028] usbcore: registered new interface driver usbhid
[    4.740029] usbhid: v2.6:USB HID core driver
[    4.740334] NET: Registered protocol family 17
[    5.461088] powernow-k8: Found 1 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ processors (2 cpu cores) (version 2.20.00)
[    5.476612] ------------[ cut here ]------------
[    5.491855] WARNING: at arch/x86/kernel/cpu/cpufreq/powernow-k8.c:1257 powernowk8_cpu_init+0x487/0x994()
[    5.507959] Hardware name: Unknow
[    5.523930] [Firmware Bug]: powernow-k8: Your BIOS does not provide ACPI _PSS objects in a way that Linux understands. Please report this to the Linux ACPI maintainers and complain to your BIOS vendor.
[    5.558275] Modules linked in:
[    5.559337] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[    5.593353] Pid: 1, comm: swapper Not tainted 2.6.30_rc5-116 #1
[    5.611296] Call Trace:
[    5.629086]  [<c0130161>] warn_slowpath_fmt+0x72/0xa1
[    5.646930]  [<c0143f3c>] ? up+0x2b/0x2f
[    5.664618]  [<c02b3000>] ? acpi_os_signal_semaphore+0x25/0x29
[    5.682391]  [<c02c9c1f>] ? acpi_ns_get_node+0x7c/0x86
[    5.700062]  [<c02c9c1f>] ? acpi_ns_get_node+0x7c/0x86
[    5.717564]  [<c03db8ef>] ? _spin_lock+0x8/0xb
[    5.734933]  [<c0123a44>] ? task_rq_lock+0x3c/0x66
[    5.752245]  [<c012d6ee>] ? set_cpus_allowed_ptr+0xc6/0xd0
[    5.769792]  [<c02ca097>] ? acpi_get_handle+0x6c/0x91
[    5.787177]  [<c02d5db2>] ? acpi_processor_register_performance+0x35c/0x377
[    5.804807]  [<c03d5ecf>] ? powernowk8_cpu_init+0x3f/0x994
[    5.822387]  [<c03d6317>] powernowk8_cpu_init+0x487/0x994
[    5.839933]  [<c012a495>] ? wake_up_process+0xf/0x11
[    5.857275]  [<c013808f>] ? process_timeout+0x8/0xa
[    5.874513]  [<c03db862>] ? _spin_lock_irq+0x15/0x18
[    5.891596]  [<c0138087>] ? process_timeout+0x0/0xa
[    5.892264] usb 3-1: new low speed USB device using ohci_hcd and address 2
[    5.925884]  [<c014abad>] ? tick_dev_program_event+0x28/0x95
[    5.943280]  [<c0138087>] ? process_timeout+0x0/0xa
[    5.960602]  [<c011c7d1>] ? default_spin_lock_flags+0x8/0xb
[    5.978129]  [<c03dad3f>] ? down_write+0xb/0x22
[    5.995480]  [<c034c30d>] ? lock_policy_rwsem_write+0x33/0x5b
[    6.012824]  [<c034c4c9>] cpufreq_add_dev+0x15f/0x51a
[    6.029875]  [<c01348d1>] ? irq_exit+0x34/0x57
[    6.046516]  [<c0115925>] ? smp_apic_timer_interrupt+0x6f/0x7d
[    6.063304]  [<c0103aa6>] ? apic_timer_interrupt+0x2a/0x30
[    6.080028]  [<c011c7d1>] ? default_spin_lock_flags+0x8/0xb
[    6.091032] usb 3-1: New USB device found, idVendor=093a, idProduct=2510
[    6.091035] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.091037] usb 3-1: Product: USB OPTICAL MOUSE
[    6.091038] usb 3-1: Manufacturer: PIXART
[    6.091082] usb 3-1: configuration #1 chosen from 1 choice
[    6.100277] input: PIXART USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/input/input4
[    6.100326] generic-usb 0003:093A:2510.0001: input,hidraw0: USB HID v1.10 Mouse [PIXART USB OPTICAL MOUSE] on usb-0000:00:13.1-1/input0
[    6.235870]  [<c0130b31>] ? vprintk+0x272/0x299
[    6.253555]  [<c03002da>] sysdev_driver_register+0x94/0xe3
[    6.270943]  [<c034ba49>] cpufreq_register_driver+0x7e/0x10f
[    6.287978]  [<c03d5e81>] powernowk8_init+0x65/0x74
[    6.304530]  [<c0101137>] do_one_initcall+0x4a/0x115
[    6.320495]  [<c03d5e1c>] ? powernowk8_init+0x0/0x74
[    6.336213]  [<c0169859>] ? register_irq_proc+0x7f/0x9b
[    6.351663]  [<c01698c8>] ? init_irq_proc+0x53/0x60
[    6.366704]  [<c058e2cc>] kernel_init+0xfc/0x14d
[    6.381603]  [<c058e1d0>] ? kernel_init+0x0/0x14d
[    6.396405]  [<c0103bf7>] kernel_thread_helper+0x7/0x10
[    6.411261] ---[ end trace 1a86c03389780157 ]---
[    6.426184] Using IPI No-Shortcut mode
[    6.440958] registered taskstats version 1
[    6.456100] rtc_cmos 00:04: setting system clock to 2009-05-17 03:27:03 UTC (1242530823)
[    6.471766] Freeing unused kernel memory: 380k freed
[    6.487729] Write protecting the kernel text: 2944k
[    6.503463] Write protecting the kernel read-only data: 1304k
[    6.601228] SCSI subsystem initialized
[    6.616604] libata version 3.00 loaded.
[    6.617936] pata_atiixp 0000:00:14.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    6.618076] scsi0 : pata_atiixp
[    6.618173] scsi1 : pata_atiixp
[    6.619070] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xf900 irq 14
[    6.619073] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xf908 irq 15
[    6.926791] ahci 0000:00:12.0: version 3.0
[    6.926816] ahci 0000:00:12.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[    6.926838] ahci 0000:00:12.0: controller can't do 64bit DMA, forcing 32bit
[    6.926939] ahci 0000:00:12.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode
[    6.926943] ahci 0000:00:12.0: flags: ncq sntf ilck led clo pmp pio 
[    6.927416] scsi2 : ahci
[    6.927499] scsi3 : ahci
[    6.927554] scsi4 : ahci
[    6.927609] scsi5 : ahci
[    6.927709] ata3: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f100 irq 22
[    6.927713] ata4: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f180 irq 22
[    6.927716] ata5: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f200 irq 22
[    6.927720] ata6: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f280 irq 22
[    7.232054] ata4: SATA link down (SStatus 0 SControl 300)
[    7.232105] ata6: SATA link down (SStatus 0 SControl 300)
[    7.385040] ata3: softreset failed (device not ready)
[    7.385043] ata3: failed due to HW bug, retry pmp=0
[    7.385058] ata5: softreset failed (device not ready)
[    7.385061] ata5: failed due to HW bug, retry pmp=0
[    7.538034] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    7.538054] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    7.548045] ata3.00: ATA-8: WDC WD1600AAJS-22WAA0, 58.01D58, max UDMA/133
[    7.548047] ata3.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    7.548066] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    7.548880] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    7.548883] ata3.00: configured for UDMA/133
[    7.548996] scsi 2:0:0:0: Direct-Access     ATA      WDC WD1600AAJS-2 58.0 PQ: 0 ANSI: 5
[    7.550768] ata5.00: ATAPI: Optiarc DVD RW AD-7191S, 1.01, max UDMA/100
[    7.550784] ata5.00: SB600 AHCI: limiting to 255 sectors per cmd
[    7.564207] ata5.00: SB600 AHCI: limiting to 255 sectors per cmd
[    7.564209] ata5.00: configured for UDMA/100
[    7.567575] scsi 4:0:0:0: CD-ROM            Optiarc  DVD RW AD-7191S  1.01 PQ: 0 ANSI: 5
[    7.643362] Driver 'sr' needs updating - please use bus_type methods
[    7.649441] sr0: scsi3-mmc drive: 48x/12x writer dvd-ram cd/rw xa/form2 cdda tray
[    7.649445] Uniform CD-ROM driver Revision: 3.20
[    7.649513] sr 4:0:0:0: Attached scsi CD-ROM sr0
[    7.656107] Driver 'sd' needs updating - please use bus_type methods
[    7.656208] sd 2:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
[    7.656220] sd 2:0:0:0: [sda] Write Protect is off
[    7.656223] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    7.656239] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.656307]  sda: sda1 sda2 < sda5 >
[    7.672502] sd 2:0:0:0: [sda] Attached SCSI disk
[    7.752301] brd: module loaded
[    7.794549] kjournald starting.  Commit interval 5 seconds
[    7.794559] EXT3-fs: mounted filesystem with writeback data mode.
[   10.247567] udev: starting version 141
[   10.621464] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   10.621491] sr 4:0:0:0: Attached scsi generic sg1 type 5
[   10.623817] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   10.687995] piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0
[   10.708894] Linux agpgart interface v0.103
[   10.749145] Error: Driver 'rtc_cmos' is already registered, aborting...
[   10.749148] Error: Driver 'rtc_cmos' is already registered, aborting...
[   10.858175] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[   10.858194] r8169 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   10.858214] r8169 0000:02:00.0: setting latency timer to 64
[   10.858269] r8169 0000:02:00.0: no MSI. Back to INTx.
[   10.858519] eth0: RTL8168b/8111b at 0xf8890000, 00:30:18:a2:26:76, XID 38500000 IRQ 16
[   10.918574] k8temp 0000:00:18.3: Temperature readouts might be wrong - check erratum #141
[   11.102298] parport_pc 00:09: reported by Plug and Play ACPI
[   11.102353] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[   11.184489] lp0: using parport0 (interrupt-driven).
[   11.210900] ppdev: user-space parallel port driver
[   11.435090] HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   11.502278] hda_codec: Unknown model for ALC883, trying auto-probe from BIOS...
[   11.502477] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:14.2/input/input5
[   11.506422] HDA Intel 0000:01:05.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[   12.444746] EXT3 FS on sda5, internal journal
[   12.772381] EXT4-fs: barriers enabled
[   12.785188] kjournald2 starting: pid 848, dev sda1:8, commit interval 5 seconds
[   12.785397] EXT4 FS on sda1, internal journal on sda1:8
[   12.785399] EXT4-fs: delayed allocation enabled
[   12.785401] EXT4-fs: file extents enabled
[   12.785506] EXT4-fs: mballoc enabled
[   12.785519] EXT4-fs: mounted filesystem sda1 with ordered data mode
[   13.351817] Adding 307192k swap on /.swap.  Priority:-1 extents:79 across:321904k 
[   16.015319] r8169: eth0: link up
[   16.015346] r8169: eth0: link up
[   17.776440] NET: Registered protocol family 10
[   17.776918] lo: Disabled Privacy Extensions
[   28.351021] eth0: no IPv6 routers present
Kay Sievers May 17, 2009, 12:36 a.m. UTC | #3
On Sun, May 17, 2009 at 01:36, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Sun, May 17, 2009 at 00:49, Andrew Morton <akpm@linux-foundation.org> wrote:
>
>> This should fix the symptoms:
>
>> +++ a/drivers/rtc/rtc-cmos.c
>> @@ -1179,7 +1179,9 @@ static int __init cmos_init(void)
>>        int retval = 0;
>>
>>  #ifdef CONFIG_PNP
>> -       pnp_register_driver(&cmos_pnp_driver);
>> +       retval = pnp_register_driver(&cmos_pnp_driver);
>> +       if (retval < 0)
>> +               return retval;
>>  #endif
>
> That looks like a good fix.
>
>> Can someone please test it?
>
> I'll try to reproduce it.

Looks good. It makes the issue go away:
  Error: Driver 'rtc_cmos' is already registered, aborting...
  initcall cmos_init+0x0/0x55 [rtc_cmos] returned -17 after 51 usecs
  initcall cmos_init+0x0/0x55 [rtc_cmos] returned with error code -17

Now to the driver core fix to prevent that ...

Thanks,
Kay

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
-~----------~----~----~----~------~----~------~--~---
diff mbox

Patch

different bug.

Reported-by: <ozan@pardus.org.tr>
Cc: Alessandro Zummo <alessandro.zummo@towertech.it>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Brownell <david-b@pacbell.net>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/rtc/rtc-cmos.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -puN drivers/rtc/rtc-cmos.c~drivers-rtc-rtc-cmosc-cmos_init-dont-ignore-pnp_register_driver-return-value drivers/rtc/rtc-cmos.c
--- a/drivers/rtc/rtc-cmos.c~drivers-rtc-rtc-cmosc-cmos_init-dont-ignore-pnp_register_driver-return-value
+++ a/drivers/rtc/rtc-cmos.c
@@ -1179,7 +1179,9 @@  static int __init cmos_init(void)
 	int retval = 0;
 
 #ifdef	CONFIG_PNP
-	pnp_register_driver(&cmos_pnp_driver);
+	retval = pnp_register_driver(&cmos_pnp_driver);
+	if (retval < 0)
+		return retval;
 #endif
 
 	if (!cmos_rtc.dev)