From: nicholasbishop@gmail.com
To: devel@edk2.groups.io
Subject: Bug report: serial timeout gets overwritten shortly after setting it
Date: Sun, 21 Nov 2021 09:52:28 -0800 [thread overview]
Message-ID: <K9Zs.1637517148982010459.MRDO@groups.io> (raw)
[-- 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 --]
next reply other threads:[~2021-11-21 17:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-21 17:52 nicholasbishop [this message]
2021-11-23 3:54 ` [edk2-devel] Bug report: serial timeout gets overwritten shortly after setting it Michael D Kinney
2021-12-04 7:19 ` nicholasbishop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=K9Zs.1637517148982010459.MRDO@groups.io \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox