[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with accessing HPET from userspace
Hi all,
I was trying to use the userspace program given in Documentation/hpet.txt and
i could not get it working. The HPET_IE_ON ioctl was failing.
My HPET has 3 64 bit timers as I can see from the dmesg and they use interrups
2, 8, and 0. The zero is creating the problem in the function hpet_ioctl_ieon
and causes an -EIO to be returned because the IRQ is zero.
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
hpet0: 3 64-bit timers, 14318180 Hz
My /proc/interrupts shows me that IRQ 0 is timer and 8 is rtc. So, if am
correct, i should be given the IRQ 2. But surprisingly the hpet_open function
finds other hpet timers to be either open or busy and returns the last one
with irq 0.
CPU0 CPU1
0: 87 0 IO-APIC-edge timer
1: 11575 0 IO-APIC-edge i8042
7: 0 0 IO-APIC-edge parport0
8: 3 0 IO-APIC-edge rtc
9: 0 0 IO-APIC-fasteoi acpi
12: 309431 0 IO-APIC-edge i8042
14: 44 0 IO-APIC-edge libata
15: 0 0 IO-APIC-edge libata
16: 66 0 IO-APIC-fasteoi i915@pci:0000:00:02.0
17: 32839 0 IO-APIC-fasteoi uhci_hcd:usb3, libata
18: 2 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb2
19: 157562 0 IO-APIC-fasteoi uhci_hcd:usb4
20: 121978 0 IO-APIC-fasteoi uhci_hcd:usb5, HDA Intel
NMI: 0 0 Non-maskable interrupts
LOC: 476178 331599 Local timer interrupts
RES: 11690 16146 Rescheduling interrupts
CAL: 2638 14995 function call interrupts
TLB: 2068 2058 TLB shootdowns
TRM: 0 0 Thermal event interrupts
SPU: 0 0 Spurious interrupts
ERR: 0
MIS: 0
Is it a problem with my ACPI tables ?
Am i missing something here ? Please help me.
thank you,
balaji rao
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ