public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* NvmExpressDxe TimerEvent frequency
@ 2017-04-09  4:41 Arka Sharma
  2017-04-10  4:39 ` Tian, Feng
  0 siblings, 1 reply; 2+ messages in thread
From: Arka Sharma @ 2017-04-09  4:41 UTC (permalink / raw)
  To: edk2-devel

Hi,

UEFI Driver Write Guide section 5.1.6 says
"UEFI system firmware uses a hardware timer interrupt to measure time.
These. These
time measurements are used to determine when enough time has passed to signal a
timer event programmed with SetTimer(). In most systems, the timer interrupt is
generated every 10 ms to 50 ms, but the UEFI Specification does not require any
specific interrupt rate. This lack of specificity means that a
periodic timer programmed
with a period much smaller than 10 ms may only be signaled every 10 ms
to 50 ms.". So in case of NvmExpressDxe the Private->TimerEvent is set
with 1 ms, so the frequency of the routine ProcessAsyncTaskList might
be more than 1 ms as per the frequency of the timer interrupt ?

Regards,
Arka


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: NvmExpressDxe TimerEvent frequency
  2017-04-09  4:41 NvmExpressDxe TimerEvent frequency Arka Sharma
@ 2017-04-10  4:39 ` Tian, Feng
  0 siblings, 0 replies; 2+ messages in thread
From: Tian, Feng @ 2017-04-10  4:39 UTC (permalink / raw)
  To: Arka Sharma, edk2-devel@lists.01.org; +Cc: Tian, Feng

Yes.

For example, old platforms usually use 50ms as timer interval. So at such platforms, even the code is programming to use 1 ms timer, the actual trigger time interval is 50ms.

Thanks
Feng

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Arka Sharma
Sent: Sunday, April 9, 2017 12:41 PM
To: edk2-devel@lists.01.org
Subject: [edk2] NvmExpressDxe TimerEvent frequency

Hi,

UEFI Driver Write Guide section 5.1.6 says "UEFI system firmware uses a hardware timer interrupt to measure time.
These. These
time measurements are used to determine when enough time has passed to signal a timer event programmed with SetTimer(). In most systems, the timer interrupt is generated every 10 ms to 50 ms, but the UEFI Specification does not require any specific interrupt rate. This lack of specificity means that a periodic timer programmed with a period much smaller than 10 ms may only be signaled every 10 ms to 50 ms.". So in case of NvmExpressDxe the Private->TimerEvent is set with 1 ms, so the frequency of the routine ProcessAsyncTaskList might be more than 1 ms as per the frequency of the timer interrupt ?

Regards,
Arka
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-10  4:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-09  4:41 NvmExpressDxe TimerEvent frequency Arka Sharma
2017-04-10  4:39 ` Tian, Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox