Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HPET hardware support ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Anon5710
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 232
Location: Belgium

PostPosted: Fri Oct 12, 2012 10:09 am    Post subject: HPET hardware support ? Reply with quote

Alright, long time ago i posted a message here :)

I'm running the ubuntu live-cd on a small board ESM-945ETX (this is an embedded board) http://www.avalue.com.tw/products/ESM-945ETX.cfm

So about HPET, i can't figure out if it is supported or not.

Code:
ubuntu@ubuntu:~$ dmesg | grep hpet
[    0.184674] hpet clockevent registered
[    0.184760] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.184993] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[    0.188067] Switching to clocksource hpet
[    3.798968] rtc0: alarms up to one day, 114 bytes nvram, hpet irqs
ubuntu@ubuntu:~$


However running acpidump to dump my ACPI tables and iasl to decompile them, i do not find any reference to hpet.
So i find it strange that this live cd can find it, acording the hpet specs. The base adress should be reported by the bios aml tabels (ACPI DSDT table), but this adress isn't availabel in the decompiled asl file !


So does this embedded board have hpet support or not ?
Any sure fire way i can find out ?[/u]
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Oct 12, 2012 1:09 pm    Post subject: Reply with quote

If the kernel doesn't crash instantly when it switches to hpet, then it has one.
Back to top
View user's profile Send private message
Anon5710
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 232
Location: Belgium

PostPosted: Fri Oct 12, 2012 2:10 pm    Post subject: Reply with quote

So, how does Linux finds the HPET device ?
It can't use the acpi tabels, because the device isn4t listed there.

Is it possibel that Linux reports HPET but actualy uses an other clocksource ?
(Windows XP did this.)

Regards,
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Oct 12, 2012 2:27 pm    Post subject: Reply with quote

The kernel has code to force-enable a HPET at a hardcoded address in arch/x86/kernel/quirks.c, it matches the address in your dmesg output so that's a possibility.
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Fri Oct 12, 2012 2:46 pm    Post subject: Reply with quote

ACPI has a "HPET" table; on systems without it sometimes the kernel knows where
the HPET is and force-enables it. The HPET is overrated anyway.
Back to top
View user's profile Send private message
Anon5710
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 232
Location: Belgium

PostPosted: Sun Oct 14, 2012 9:36 am    Post subject: Reply with quote

Thanks that was helpfull information !
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Tue Oct 16, 2012 5:36 pm    Post subject: hpet not all that... Reply with quote

Code:
cat /sys/devices/system/clocksource/clocksource0/available_clocksource


and to check which one is being used:

Code:
cat /sys/devices/system/clocksource/clocksource0/current_clocksource


apparently acpi_pm si better than hpet nowadays. I read this reading about realtime kernel for audio.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum