Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-28 Thread Andrew Fish
un...@lists.01.org] On Behalf Of >>>> Heyi Guo >>>> Sent: Saturday, April 23, 2016 4:54 PM >>>> To: edk2-devel@lists.01.org >>>> Cc: Kinney, Michael D ; Heyi Guo >>>> ; Tian, Feng ; >>>> Zeng, Star >>>> Subject:

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-28 Thread Heyi Guo
To: Kinney, Michael D ; edk2-devel@lists.01.org Cc: Tian, Feng ; Zeng, Star Subject: Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode Hi Michael, I still have questions about measuring timer tick by event: 1. How can we measure the time elapsed? TimerLib is not in U

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-28 Thread Heyi Guo
Guo ; Tian, Feng ; Zeng, Star Subject: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode Calculate serial input polling rate according to parameters from serial IO mode as below, to fix potential input truncation. Polling interval (100ns) = FifoDepth * (StartBit

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-28 Thread Heyi Guo
] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode Calculate serial input polling rate according to parameters from serial IO mode as below, to fix potential input truncation. Polling interval (100ns) = FifoDepth * (StartBit + DataBits + StopBits + ParityBits) * 10,000,000

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-27 Thread Andrew Fish
> Cc: Kinney, Michael D ; Heyi Guo >> ; Tian, Feng ; >> Zeng, Star >> Subject: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial >> IO mode >> >> Calculate serial input polling rate according to parameters from >> serial IO mode a

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-27 Thread Ni, Ruiyu
dulePkg/TerminalDxe: Set polling rate by serial >IO mode > >Calculate serial input polling rate according to parameters from >serial IO mode as below, to fix potential input truncation. > >Polling interval (100ns) = >FifoDepth * (StartBit + DataBits + StopBits + ParityBits) * 10

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-27 Thread Kinney, Michael D
tar > Subject: Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by > serial IO > mode > > Hi Michael, > > I still have questions about measuring timer tick by event: > > 1. How can we measure the time elapsed? TimerLib is not in UEFI spec, > and shall we u

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-27 Thread Heyi Guo
ehalf Of Heyi Guo Sent: Tuesday, April 26, 2016 8:14 AM To: Kinney, Michael D ; edk2-devel@lists.01.org Cc: Tian, Feng ; Zeng, Star Subject: Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode Hi Michael, It seems we are making the implementation more and more complic

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-26 Thread Kinney, Michael D
> >> From: Heyi Guo [mailto:heyi@linaro.org] > >> Sent: Saturday, April 23, 2016 1:54 AM > >> To: edk2-devel@lists.01.org > >> Cc: Heyi Guo ; Tian, Feng ; > >> Zeng, Star > >> ; Kinney, Michael D > >> Subject: [edk2] [PATCH

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-26 Thread Heyi Guo
-Original Message- From: Heyi Guo [mailto:heyi@linaro.org] Sent: Saturday, April 23, 2016 1:54 AM To: edk2-devel@lists.01.org Cc: Heyi Guo ; Tian, Feng ; Zeng, Star ; Kinney, Michael D Subject: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode Calculate serial input

Re: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-23 Thread Kinney, Michael D
; Subject: [edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial > IO mode > > Calculate serial input polling rate according to parameters from > serial IO mode as below, to fix potential input truncation. > > Polling interval (100ns) = > FifoDepth * (StartBit + D

[edk2] [PATCH] MdeModulePkg/TerminalDxe: Set polling rate by serial IO mode

2016-04-23 Thread Heyi Guo
Calculate serial input polling rate according to parameters from serial IO mode as below, to fix potential input truncation. Polling interval (100ns) = FifoDepth * (StartBit + DataBits + StopBits + ParityBits) * 10,000,000 / BaudRate (StopBits is assumed to be 1 and ParityBits is ignored for simpl