Bug 9511 - RTC 'hwclock' causes system freeze
Summary: RTC 'hwclock' causes system freeze
Status: RESOLVED DUPLICATE of bug 6307
Alias: None
Product: Timers
Classification: Unclassified
Component: Realtime Clock (show other bugs)
Hardware: All Linux
: P1 high
Assignee: timers_realtime-clock
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-05 21:39 UTC by joe riley
Modified: 2008-03-18 13:41 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.24-rc4
Tree: Mainline
Regression: Yes


Attachments
My kernel config file. (55.05 KB, application/octet-stream)
2007-12-08 15:20 UTC, joe riley
Details

Description joe riley 2007-12-05 21:39:32 UTC
Most recent kernel where this bug did not occur: occured in both 2.6.22.x and 2.6.23.x kernels. 
Distribution: slackware amd64
Hardware Environment: 

Software Environment: during /sbin/reboot or anything involving hwclock
Problem Description:

Steps to reproduce:
simply issuing hwclock --localtime --systohc causes my notebook to freeze. i have everything rtc included with my kernel including debugging, here is some output from dmesg

root@excalibur:~# dmesg|grep RTC
ACPI: RTC can wake from S4
root@excalibur:~# dmesg|grep rtc
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
rtc_cmos 00:09: i/o registers already in use
rtc_cmos: probe of 00:09 failed with error -16
root@excalibur:~#      


running the hwclock command causes the machine to freeze, the temporary fix is to comment it out of all scripts. some times it will also freeze my laptop during boot but rare.
Comment 1 joe riley 2007-12-05 21:58:47 UTC
Linux version 2.6.24-rc4-kinesis-g7e1fb765 (root@excalibur) (gcc version 4.1.2)
#5 SMP Wed Dec 5 21:12:42 PST 2007
Command line: BOOT_IMAGE=linux ro root=803
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009dc00 (usable)
 BIOS-e820: 000000000009dc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000d2000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000077f00000 (usable)
 BIOS-e820: 0000000077f00000 - 0000000077f15000 (ACPI data)
 BIOS-e820: 0000000077f15000 - 0000000077f80000 (ACPI NVS)
 BIOS-e820: 0000000077f80000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
Entering add_active_range(0, 0, 157) 0 entries of 256 used
Entering add_active_range(0, 256, 491264) 1 entries of 256 used
end_pfn_map = 1048576
DMI present.
ACPI: RSDP 000F8930, 0014 (r0 HP    )
ACPI: RSDT 77F0C037, 0040 (r1 HPQOEM SLIC-MPC  6040000  LTP        0)
ACPI: FACP 77F14B58, 0074 (r1 HP     MCP51M    6040000 PTL_    F4240)
ACPI: DSDT 77F0C077, 8AE1 (r1 HP       MCP51M  6040000 MSFT  3000000)
ACPI: FACS 77F15FC0, 0040
ACPI: SSDT 77F14BCC, 01C4 (r1 PTLTD  POWERNOW  6040000  LTP        1)
ACPI: MCFG 77F14D90, 003C (r1 HP       MCFG    6040000  LTP        0)
ACPI: HPET 77F14DCC, 0038 (r1 PTLTD  HPETTBL   6040000  LTP        1)
ACPI: APIC 77F14E04, 005E (r1 HP         APIC    6040000  LTP        0)
ACPI: BOOT 77F14E62, 0028 (r1     HP $SBFTBL$  6040000  LTP        1)
ACPI: SLIC 77F14E8A, 0176 (r1 HPQOEM SLIC-MPC  6040000  LTP        1)
Entering add_active_range(0, 0, 157) 0 entries of 256 used
Entering add_active_range(0, 256, 491264) 1 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  DMA32        4096 ->  1048576
  Normal    1048576 ->  1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0:        0 ->      157
    0:      256 ->   491264
On node 0 totalpages: 491165
  DMA zone: 56 pages used for memmap
  DMA zone: 1403 pages reserved
  DMA zone: 2538 pages, LIFO batch:0
  DMA32 zone: 6660 pages used for memmap
  DMA32 zone: 480508 pages, LIFO batch:31
  Normal zone: 0 pages used for memmap
  Movable zone: 0 pages used for memmap
ACPI: PM-Timer IO Port: 0x1008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Setting APIC routing to flat
ACPI: HPET id: 0x10de8201 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
SMP: Allowing 2 CPUs, 0 hotplug CPUs
PERCPU: Allocating 28896 bytes of per cpu data
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 483046
Kernel command line: BOOT_IMAGE=linux ro root=803
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
hpet clockevent registered
TSC calibrated against HPET
Marking TSC unstable due to TSCs unsynchronized
time.c: Detected 1707.772 MHz processor.
Console: colour dummy device 80x25
console [tty0] enabled
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Checking aperture...
CPU 0: aperture @ 206000000 size 32 MB
Aperture too small (32 MB)
No AGP bridge found
Memory: 1928840k/1965056k available (3192k kernel code, 35720k reserved, 1502k d
ata, 232k init)
Calibrating delay using timer specific routine.. 3417.77 BogoMIPS (lpj=1708889)
Security Framework initialized
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
ACPI: Core revision 20070126
Using local APIC timer interrupts.
APIC timer calibration result 12557160
Detected 12.557 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/2 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 3415.58 BogoMIPS (lpj=1707794)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-53 stepping 01
AMD C1E detected late. Force timer broadcast.
Brought up 2 CPUs
net_namespace: 120 bytes
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using MMCONFIG at e0000000 - e06fffff
PCI: No mmconfig possible on device 00:18
ACPI: EC: Look up EC in DSDT
ACPI: System BIOS is requesting _OSI(Linux)
ACPI: If "acpi_osi=Linux" works better,
Please send dmidecode to linux-acpi@vger.kernel.org
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: EC: GPE = 0x10, I/O: command/status = 0x66, data = 0x62
ACPI: EC: driver started in poll mode
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:00:10.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P2P0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.XVR1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.XVR2._PRT]
ACPI: PCI Interrupt Link [LNK1] (IRQs 5 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK2] (IRQs 5 7 10 *11 14 15)
ACPI: PCI Interrupt Link [LNK3] (IRQs 5 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK4] (IRQs 5 7 10 11 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LK1E] (IRQs 16 17 18 19 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LK2E] (IRQs 16 17 18 19 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LK3E] (IRQs 16 17 18 19 20 21 22 23) *11
ACPI: PCI Interrupt Link [LK4E] (IRQs 16 17 18 19 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LSMB] (IRQs 16 17 18 19 20 21 22 23) *10
ACPI: PCI Interrupt Link [LPMU] (IRQs 16 17 18 19 20 21 22 23) *10
ACPI: PCI Interrupt Link [LUS0] (IRQs 16 17 18 19 20 21 22 23) *11
ACPI: PCI Interrupt Link [LUS2] (IRQs 16 17 18 19 20 21 22 23) *7
ACPI: PCI Interrupt Link [LMAC] (IRQs 16 17 18 19 20 21 22 23) *10
ACPI: PCI Interrupt Link [LAZA] (IRQs 16 17 18 19 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LACI] (IRQs 16 17 18 19 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LMCI] (IRQs 16 17 18 19 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LPID] (IRQs 16 17 18 19 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LTID] (IRQs 16 17 18 19 20 21 22 23) *5
ACPI: PCI Interrupt Link [LSI1] (IRQs 16 17 18 19 20 21 22 23) *10
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
ACPI: EC: non-query interrupt received, switching to interrupt mode
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
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
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
ACPI: RTC can wake from S4
Time: hpet clocksource has been installed.
system 00:00: iomem range 0xe0000000-0xefffffff could not be reserved
system 00:01: iomem range 0xffc00000-0xffffffff could not be reserved
system 00:01: iomem range 0xfec00000-0xfec00fff could not be reserved
system 00:01: iomem range 0xfee00000-0xfeefffff could not be reserved
system 00:01: iomem range 0xfed00000-0xfed00fff has been reserved
system 00:03: iomem range 0xe0000000-0xefffffff could not be reserved
system 00:04: ioport range 0x1000-0x107f has been reserved
system 00:04: ioport range 0x1080-0x10ff has been reserved
system 00:04: ioport range 0x1400-0x147f has been reserved
system 00:04: ioport range 0x1480-0x14ff has been reserved
system 00:04: ioport range 0x1800-0x187f has been reserved
system 00:04: ioport range 0x1880-0x18ff has been reserved
system 00:04: ioport range 0x2000-0x203f has been reserved
system 00:05: ioport range 0x360-0x361 has been reserved
system 00:05: ioport range 0x380-0x383 has been reserved
system 00:05: ioport range 0x4d0-0x4d1 has been reserved
PCI: Bridge: 0000:00:02.0
  IO window: 4000-4fff
  MEM window: b4000000-b7ffffff
  PREFETCH window: d0000000-d01fffff
PCI: Bridge: 0000:00:03.0
  IO window: disabled.
  MEM window: b8000000-bbffffff
  PREFETCH window: disabled.
PCI: Bridge: 0000:00:10.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
PCI: Setting latency timer of device 0000:00:02.0 to 64
PCI: Setting latency timer of device 0000:00:03.0 to 64
PCI: Setting latency timer of device 0000:00:10.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Simple Boot Flag at 0x36 set to 0x1
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
NTFS driver 2.1.29 [Flags: R/W].
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Boot video device is 0000:00:05.0
PCI: Setting latency timer of device 0000:00:02.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:02.0:pcie00]
Allocate Port Service[0000:00:02.0:pcie03]
PCI: Setting latency timer of device 0000:00:03.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:03.0:pcie00]
Allocate Port Service[0000:00:03.0:pcie03]
vesafb: framebuffer at 0xc0000000, mapped to 0xffffc20000800000, using 3072k, to
tal 131072k
vesafb: mode is 1024x768x16, linelength=2048, pages=1
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102
floppy0: no floppy controllers found
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: module loaded
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
NFORCE-MCP51: IDE controller (0x10de:0x0265 rev 0xf1) at  PCI slot 0000:00:0d.0
NFORCE-MCP51: not 100% native mode: will probe irqs later
NFORCE-MCP51: BIOS didn't set cable bits correctly. Enabling workaround.
NFORCE-MCP51: 0000:00:0d.0 (rev f1) UDMA133 controller
    ide0: BM-DMA at 0x3080-0x3087, BIOS settings: hda:DMA, hdb:pio
NFORCE-MCP51: IDE port disabled
Probing IDE interface ide0...
hda: Optiarc DVD RW AD-7560A, ATAPI CD/DVD-ROM drive
hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hda: MW DMA 2 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hda: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, (U)DMA
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
Loading iSCSI transport class v2.0-724.
sata_nv 0000:00:0e.0: version 3.5
PCI: Enabling device 0000:00:0e.0 (0005 -> 0007)
ACPI: PCI Interrupt Link [LTID] enabled at IRQ 23
ACPI: PCI Interrupt 0000:00:0e.0[A] -> Link [LTID] -> GSI 23 (level, high) -> IR
Q 23
PCI: Setting latency timer of device 0000:00:0e.0 to 64
scsi0 : sata_nv
scsi1 : sata_nv
ata1: SATA max UDMA/133 cmd 0x30c0 ctl 0x30b4 bmdma 0x3090 irq 23
ata2: SATA max UDMA/133 cmd 0x30b8 ctl 0x30b0 bmdma 0x3098 irq 23
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: TOSHIBA MK8037GSX, DL232C, max UDMA/100
ata1.00: 156301488 sectors, multi 16: LBA48
ata1.00: configured for UDMA/100
ata2: SATA link down (SStatus 0 SControl 300)
scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK8037GS DL23 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO
 or FUA
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO
 or FUA
 sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
I2O subsystem v1.325
i2o: max drivers = 8
I2O Configuration OSM v1.323
I2O Bus Adapter OSM v1.317
I2O Block Device OSM v1.325
I2O SCSI Peripheral OSM v1.316
I2O ProcFS OSM v1.316
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SPI Host driver 3.04.06
Fusion MPT FC Host driver 3.04.06
Fusion MPT SAS Host driver 3.04.06
usbmon: debugfs is not available
ACPI: PCI Interrupt Link [LUS2] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:0b.1[B] -> Link [LUS2] -> GSI 22 (level, high) -> IR
Q 22
PCI: Setting latency timer of device 0000:00:0b.1 to 64
ehci_hcd 0000:00:0b.1: EHCI Host Controller
ehci_hcd 0000:00:0b.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0b.1: debug port 1
PCI: cache line size of 64 is not supported by device 0000:00:0b.1
ehci_hcd 0000:00:0b.1: irq 22, io mem 0xb0005000
ehci_hcd 0000:00:0b.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
116x: driver isp116x-hcd, 03 Nov 2005
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ACPI: PCI Interrupt Link [LUS0] enabled at IRQ 21
ACPI: PCI Interrupt 0000:00:0b.0[A] -> Link [LUS0] -> GSI 21 (level, high) -> IR
Q 21
PCI: Setting latency timer of device 0000:00:0b.0 to 64
ohci_hcd 0000:00:0b.0: OHCI Host Controller
ohci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0b.0: irq 21, io mem 0xb0004000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v3.0
sl811: driver sl811-hcd, 19 May 2005
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:MSE0] 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
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/inpu
t0
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
ReiserFS: sda3: found reiserfs format "3.6" with standard journal
ReiserFS: sda3: using ordered data mode
ReiserFS: sda3: journal params: device sda3, size 8192, journal first block 18,
max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: sda3: checking transaction log (sda3)
ReiserFS: sda3: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 232k freed
input: PC Speaker as /devices/platform/pcspkr/input/input1
ndiswrapper version 1.50 loaded (smp=yes, preempt=no)
input: Power Button (FF) as /devices/virtual/input/input2
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /devices/virtual/input/input3
ACPI: Power Button (CM) [PWRB]
input: Sleep Button (CM) as /devices/virtual/input/input4
ACPI: Sleep Button (CM) [SLPB]
input: Lid Switch as /devices/virtual/input/input5
ACPI: Lid Switch [LID]
rtc_cmos 00:09: i/o registers already in use
rtc_cmos: probe of 00:09 failed with error -16
input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A03:00/LNXVIDEO:00/input/
input6
ACPI: Video Device [UVGA] (multi-head: yes  rom: no  post: no)
input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A03:00/device:26/LNXVIDEO
:01/input/input7
ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)
ACPI: Thermal Zone [THRM] (57 C)
ACPI: AC Adapter [ACAD] (on-line)
ndiswrapper (link_pe_images:576): fixing KI_USER_SHARED_DATA address in the driv
er
ndiswrapper: driver bcmwl5 (Broadcom,10/12/2006, 4.100.15.5) loaded
ACPI: PCI Interrupt Link [LK1E] enabled at IRQ 20
ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [LK1E] -> GSI 20 (level, high) -> IR
Q 20
PCI: Setting latency timer of device 0000:03:00.0 to 64
ndiswrapper: using IRQ 20
ACPI: Battery Slot [BAT0] (battery present)
wlan0: ethernet device 00:1a:73:a7:cf:33 using NDIS driver: bcmwl5, version: 0x4
640f05, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 14E4:4311.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP w
ith WPA, WPA2, WPA2PSK
usbcore: registered new interface driver ndiswrapper
i2c-adapter i2c-0: nForce2 SMBus adapter at 0x3040
i2c-adapter i2c-1: nForce2 SMBus adapter at 0x3000
forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61.
ACPI: PCI Interrupt Link [LMAC] enabled at IRQ 19
ACPI: PCI Interrupt 0000:00:14.0[A] -> Link [LMAC] -> GSI 19 (level, high) -> IR
Q 19
PCI: Setting latency timer of device 0000:00:14.0 to 64
forcedeth 0000:00:14.0: ifname eth0, PHY OUI 0x20 @ 1, addr 00:1b:24:af:d8:28
forcedeth 0000:00:14.0: highdma pwrctl timirq lnktim desc-v3
ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 18
ACPI: PCI Interrupt 0000:00:10.1[B] -> Link [LAZA] -> GSI 18 (level, high) -> IR
Q 18
PCI: Setting latency timer of device 0000:00:10.1 to 64
ACPI: PCI Interrupt Link [LK3E] enabled at IRQ 17
ACPI: PCI Interrupt 0000:00:05.0[A] -> Link [LK3E] -> GSI 17 (level, high) -> IR                                            Q 17
PCI: Setting latency timer of device 0000:00:05.0 to 64
NVRM: loading NVIDIA UNIX x86_64 Kernel Module  100.14.19  Wed Sep 12 14:08:38 P                                            DT 2007
powernow-k8: Found 1 AMD Athlon(tm) 64 X2 Dual-Core Processor TK-53 processors (                                            2 cpu cores) (version 2.20.00)
powernow-k8:    0 : fid 0x9 (1700 MHz), vid 0x13
powernow-k8:    1 : fid 0x8 (1600 MHz), vid 0x14
powernow-k8:    2 : fid 0x0 (800 MHz), vid 0x1a
Synaptics Touchpad, model: 1, fw: 6.3, id: 0x1a0b1, caps: 0xa04713/0x200000
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input8
NTFS volume version 3.1.
eth0: no link during initialization.
ndiswrapper (iw_set_wep:961): key 1 is not set
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): eth0: link is not ready
Clocksource tsc unstable (delta = -233005400 ns)
wlan0: no IPv6 routers present
Comment 2 joe riley 2007-12-08 15:06:13 UTC
Hardware is a Compaq Presario F712NR notebook
(In reply to comment #0)
> Most recent kernel where this bug did not occur: occured in both 2.6.22.x and
> 2.6.23.x kernels. 
> Distribution: slackware amd64
> Hardware Environment: 
> 
> Software Environment: during /sbin/reboot or anything involving hwclock
> Problem Description:
> 
> Steps to reproduce:
> simply issuing hwclock --localtime --systohc causes my notebook to freeze. i
> have everything rtc included with my kernel including debugging, here is some
> output from dmesg
> 
> root@excalibur:~# dmesg|grep RTC
> ACPI: RTC can wake from S4
> root@excalibur:~# dmesg|grep rtc
> drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
> rtc_cmos 00:09: i/o registers already in use
> rtc_cmos: probe of 00:09 failed with error -16
> root@excalibur:~#      
> 
> 
> running the hwclock command causes the machine to freeze, the temporary fix
> is
> to comment it out of all scripts. some times it will also freeze my laptop
> during boot but rare.
> 
Comment 3 joe riley 2007-12-08 15:13:55 UTC
hctosys works OK , but may freeze 5% of the time during boot
cat /proc/interrupts shows:
k@excalibur:~$ cat /proc/interrupts
           CPU0       CPU1
  0:      16175    6086154   IO-APIC-edge      timer
  1:         92       9318   IO-APIC-edge      i8042
  8:          0          1   IO-APIC-edge      rtc
  9:         53       3275   IO-APIC-fasteoi   acpi
 12:       2435     313828   IO-APIC-edge      i8042
 14:          0         34   IO-APIC-edge      ide0
 17:       2346     355588   IO-APIC-fasteoi   nvidia
 18:       1201     153616   IO-APIC-fasteoi   ndiswrapper
 19:        175      19819   IO-APIC-fasteoi   HDA Intel
 20:       3729     607985   IO-APIC-fasteoi   eth0
 21:          0          0   IO-APIC-fasteoi   ohci_hcd:usb2
 22:          0          0   IO-APIC-fasteoi   ehci_hcd:usb1
 23:        171      18846   IO-APIC-fasteoi   sata_nv
NMI:          0          0   Non-maskable interrupts
LOC:    6085975      16058   Local timer interrupts
RES:      65289      42473   Rescheduling interrupts
CAL:        161        111   function call interrupts
TLB:       7280       6264   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
SPU:          0          0   Spurious interrupts
ERR:          0
Comment 4 joe riley 2007-12-08 15:15:07 UTC
How do I fix hwclock so it does not freeze this machine?
Comment 5 joe riley 2007-12-08 15:20:18 UTC
Created attachment 13917 [details]
My kernel config file.

i dont know if this matters, but it's here for diagnostics. even the stock SLAMD64 kernel did this as well.
Comment 6 joe riley 2007-12-08 15:25:41 UTC
i am also aware arguments can be passed to rtc_cmos through modprobe, although i do not know which arguments, or how to resolve the conflict
Comment 7 joe riley 2007-12-08 19:13:23 UTC
windows xp boots the device fine on io range 0070-0071
Comment 8 Thomas Gleixner 2007-12-09 22:12:45 UTC
can you please try "hpet=disable" on the kernel commandline ?

Thanks,
      tglx
Comment 9 joe riley 2007-12-10 00:49:14 UTC
hpet=disable, i did it, but dmesg still reports the conflict.

root@excalibur:~# dmesg|grep rtc
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
rtc_cmos 00:09: i/o registers already in use
rtc_cmos: probe of 00:09 failed with error -16
Comment 10 David P. Reed 2007-12-13 18:49:04 UTC
On my AMD64x2 machine, I discovered the cause is the "outb" to port 0x80 done in the inb_p calls used in the CMOS_READ and CMOS_WRITE macros.  I am submitting a patch to fix this, at least on x86_64 builds.

There is some controversy about the best patch.  But a simple partial fix is just to change inb_p and outb_p to the variants without the _p in those macros, found in include/asm/mc146818rtc_64.h.

The full fix involves changing include/asm/ioport_64.h to use udelay instead of the "out" instruction.

(similar fixes apply to the 32-bit architectures, but there one must be concerned about legacy machines)
Comment 11 joe riley 2007-12-13 22:17:36 UTC
when do you think this can be fixed?

what exactly does the 'partial fix' do, will my RTC work?

thanks
Comment 12 Ingo Molnar 2007-12-17 14:32:30 UTC

*** This bug has been marked as a duplicate of bug 6307 ***
Comment 13 Ingo Molnar 2007-12-17 14:34:56 UTC
David's fix is now available for testing: please try the "IO delay quirk" patch attached to bug 6307 (ontop of 2.6.24-rc5) and boot that kernel with the io_delay=0xed boot option, does that do the trick for you?

Please also attach your dmidecode output to that bug, so that we can make the boot selection automatic.

Note You need to log in before you can comment on or make changes to this bug.