Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
October 9, 2006 9:58 PM PDT
Q&A: HPET Timer

The following is a question received by Intel(R) 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 stuck on some questions about where it is built into. Is it built into Intel(R) processors, or is it a mainboard-driven technology controlled by Bios/EFI?  It's also very important for me to know which Intel components support HPET, since I do not know if 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 the specification documentation did 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(R) chipsets, since quite some time ago (at least a year, if not more), have HPET on board. However, not all vendors that sell machines with Intel(R) 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.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us

 

alex@streambox.com
Total Points:
0
Status Points:
0
Registered User
October 11, 2006 6:44 PM PDT
Rate
 
#1
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?




Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
October 17, 2006 8:49 PM PDT
Rate
 
#2 Reply to #1

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

There's some basic related background HPET info on 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.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us

 



Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
October 20, 2006 1:44 AM PDT
Rate
 
#3 Reply to #1

Alex, in answer to your question, our engineering contacts confirmed that currently Microsoft Windows* XP’s 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*.  If you are simply 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 with the OS vendor directly.

==

Lexi S.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us

 



patrick-raffin
March 14, 2007 10:07 AM PDT
Rate
 
#4 Reply to #3

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

Thank you

Patrick Raffin



Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
March 14, 2007 6:19 PM PDT
Rate
 
#5 Reply to #4

We looked for documentation indicating it might be supported under Microsoft Windows* Server 2003 and didn't find any.  We're verifying with engineering.

==

Lexi S.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us

 



Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
March 21, 2007 4:46 PM PDT
Rate
 
#6 Reply to #5

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

==

Lexi S.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us

 



isaac.lee@mitac-mtc.com.tw
September 11, 2007 5:20 AM PDT
Rate
 
#7 Reply to #6

Hi Lexi,

I'm a laptop hardware 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

 



Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
September 28, 2007 10:36 AM PDT
Rate
 
#8 Reply to #7

Isaac,

We forwarded your question to our software engineering contacts, who responded that since this is more of a board design-related HPET question, you would be best off contacting Mitac'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.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us

 



Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
October 3, 2007 3:16 PM PDT
Rate
 
#9 Reply to #8

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.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us

 



Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
November 29, 2007 11:41 AM PST
Rate
 
#10 Reply to #9

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.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us

 



espzzh
December 1, 2007 12:26 AM PST
Rate
 
#11 Reply to #10
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

Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
December 10, 2007 9:13 AM PST
Rate
 
#12 Reply to #11

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.

Intel(R) Software Network Support

http://www.intel.com/software

Contact us


 



lzueducn
Total Points:
20
Registered User
October 13, 2009 9:10 AM PDT
Rate
 
#13 Reply to #12
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.



Intel Software Network Support
Total Points:
3,808
Status Points:
3,308
Brown Belt
October 28, 2009 4:11 PM PDT
Rate
 
#14 Reply to #13
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(R) Software Network Support
http://www.intel.com/software
Contact us: http://www.intel.com/cd/ids/developer/asmo-na/eng/58987.htm






Intel Software Network Forums Statistics

8489 users have contributed to 31627 threads and 100761 posts to date.
In the past 24 hours, we have 33 new thread(s) 145 new posts(s), and 197 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to Crash when loading skeleton The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member chat1983