Software Archive
Read-only legacy content
17061 Discussions

Q&A: HPET Timer

Intel_Software_Netw1
3,100 Views

The following is a question received by Intel Software Network Support, followed by a response supplied by an expert at Intel:

Q. I am looking on information about your HPET (former multimedia timer) technology. I am currently developing a project requiring HPET timer support, but got stuckon some questions about where it is built into. Is it built into Intelprocessors, or is it a mainboard-driven technology controlled by Bios/EFI? It's also very important for me to know which Intel componentssupport HPET, since I do not knowif it is widespread already or if I have to add some alternate support for other timers. I already have a link to the HPET specs, but thespecification documentationdid not answer my specific question.

A. The HPET (High Precision Event Timers)is a component that is part of the chipset. However, the firmware (BIOS/EFI) needs to enable it, and will provide you with the means to get to it via the various ACPI methods.

Intel chipsets, since quite some time ago (at least a year, if not more), haveHPET on board. However, not all vendors that sell machines with Intel chipsets enable HPET in their firmware. Some have it as a BIOS option, and sometimes it defaults to Off.

Edited to add: HPET has been productized and supported in chipsets since Intel ICH5 (at least from a client perspective --embedded and server/workstation specific chipsets may be different).

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
14 Replies
dessa
Beginner
3,100 Views
Is there any way to access HPET on Windows XP? There is intel driver installed for it in the system. It should be possible to use DeviceIoControl for it if driver provides interface. Is there any sample or unoficial/beta API available from Intel to access it?


0 Kudos
Intel_Software_Netw1
3,100 Views

Alex, we've been working ongetting an answer for you from our contacts here at Intel.

There's some basicrelated background HPETinfoon the Microsoft* site: Guidelines for Providing Multimedia Timer Support

(Please note that these links will take you to external web sites. Intel is not responsible for content or availability of these sites.)

We and/or our friends in engineering will follow up when we have more.

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
Intel_Software_Netw1
3,100 Views

Alex, in answer to your question, our engineering contacts confirmed that currently Microsoft Windows* XPs timer APIs do not support the HPET. However, HPET is supported and accessible in Windows Vista*. We currently do not have any sample APIs for testing HPET with Windows*. Ifyou aresimply looking at testing the HPET, Linux* timer APIs support it today.

However, for the most accurate and up-to-date information, we recommend verifying HPET support withthe OS vendor directly.

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
patrick-raffin
Beginner
3,100 Views

What about Windows 2003 ? And Windows 2003 R2 ? And Windows 2003 SP2 ?

Thank you

Patrick Raffin

0 Kudos
Intel_Software_Netw1
3,100 Views

We looked for documentation indicating it might besupported under Microsoft Windows* Server 2003and didn'tfind any. We're verifying with engineering.

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
Intel_Software_Netw1
3,100 Views

We received confirmation from our engineering contacts that the answer is still no for all Windows* 2003 versions.

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
isaac_lee
Beginner
3,100 Views

Hi Lexi,

I'm a laptophardware designer. Currently, I met a problem that while our system enable HPET under Vista OS. The system will delay 24 seconds per day. I guess it's caused by the clock source of HPET. Would you please tell me which one is the clock source of HPET? 32.768KHz, or 14.318MHz?

Isaac

Mitac Technology Corporation

0 Kudos
Intel_Software_Netw1
3,100 Views

Isaac,

We forwarded your question to oursoftware engineering contacts, who responded that since this is more of a board design-related HPET question,you would be best off contactingMitac's assigned Intel representative to obtain assistance with this issue. Your company's purchasing department should have your Intel rep's contact information if you need it.

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
Intel_Software_Netw1
3,100 Views

Isaac, we heard back from one engineer who did have the answer to this: 14.318MHz.

We do still recommend consulting your FAE for technical assistance with your project.

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
Intel_Software_Netw1
3,100 Views

Q. Currently, I'm trying to use hpet. But I cannot use timer 0 and timer 1 since they are used for 8254 and rtc replacement, respectively. The only chance for me is to use timer 2. But timer 2 uses irq number 0, in Linux kernel, irq is reserved. How can I solve this? Is it possible for me to change timer 2's irq?

A. The ICH HPET Timer 2 interrupt may be routed to any one of the following IRQs: 11, 20, 21, 22, and 23, via the TIM2_CONF register. (Note: this register is called TIM3_CONF in Intel ICH5.)

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
espzzh
Beginner
3,100 Views
Hi Lexi, Is it possible to implement the HPET support as a stand alone driver in Windows 2003 SP2? We like to get a sub 1ms periodic timer interrupt in Windows 2003 environment. The existing legacy timer is not able to deliver such short period interrupt in Windows. Can we implement it using HPET if the motherboard BIOS enable the HPET? Thanks a lot! William
0 Kudos
Intel_Software_Netw1
3,100 Views

Our engineering contacts responded that your best bet would be to direct that question to Microsoft -- since common hardware resources are best managed by the OS, it would probably not be advisable to have independent drivers accessing that hardware, but Microsoft should be able to verify that for you.

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us


0 Kudos
lzueducn
Beginner
3,100 Views
Hello, Lexi:

It is possibl to make HPET timer0 use different irq but not with the same irq number with PIT? I really need more physical timers.
Thanks a lot.

0 Kudos
Intel_Software_Netw1
3,100 Views
Our recommendation here would be for you to ask your question on MSDN as well -- HPET was jointly developed by Microsoft and Intel, and support for it on the Microsoft technical forums appears to be more extensive.

==
Lexi S.
Intel Software Network Support
http://www.intel.com/software
Contact us: http://www.intel.com/cd/ids/developer/asmo-na/eng/58987.htm


0 Kudos
Reply