public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Bug report: serial timeout gets overwritten shortly after setting it
@ 2021-11-21 17:52 nicholasbishop
  2021-11-23  3:54 ` [edk2-devel] " Michael D Kinney
  0 siblings, 1 reply; 3+ messages in thread
From: nicholasbishop @ 2021-11-21 17:52 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 740 bytes --]

Hi, I have a bug to report with the serial I/O protocol. Using the SetAttributes function to change the timeout initially works, but after a short amount of time the timeout gets reset to 173 microseconds.

I believe this is likely due to the implementation of the simple text input protocol, which alters the serial timeout:
https://github.com/tianocore/edk2/blob/e1e7306b54147e65cb7347b060e94f336d4a82d2/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c#L549

I've created a full example here:
https://github.com/nicholasbishop/edk2/commit/d6087f863a48f3c7812f47ea21d5d673adb8d754

The example sets the timeout to 1s which works correctly, then sleeps for 1s and reads the timeout value again. The timeout is now 173ms.

[-- Attachment #2: Type: text/html, Size: 772 bytes --]

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

end of thread, other threads:[~2021-12-04  7:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-21 17:52 Bug report: serial timeout gets overwritten shortly after setting it nicholasbishop
2021-11-23  3:54 ` [edk2-devel] " Michael D Kinney
2021-12-04  7:19   ` nicholasbishop

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