From: "Stanley Gan" <stanley.ganyezu@gmail.com>
To: devel@edk2.groups.io
Subject: Hang in CoreCheckTimers
Date: Sun, 13 Sep 2020 18:09:58 +0800 [thread overview]
Message-ID: <CAP5XhjAMDYY8mOfVmkuh6eQfZHGqy1fwgYonyQ6tb0zVRrPPxA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1173 bytes --]
Hi All,
I have some questions about MdeModulePkg\Core\Dxe\Event\Timer.c
CoreCheckTimers.
My system will keep looping in CoreCheckTimers in some scenarios:
· CPU run very slow (Cache disabled)
· A lot of timer event (Network stack enabled)
In normal boot, CoreCheckTimers will execute two times. 1st time, it
actually signifies timer event. 2nd time, because there is no expired
timer, it will exit quickly.
In my scenario, another time interrupt comes and updates EfiSystemTime at
second CoreCheckTimers. The system will keep looping in CoreCheckTimers.
My questions are:
1. Is the " CoreSignalEvent (mEfiCheckTimerEvent)" line below
necessary? Can we disable interrupt at TPL 30?
//
// If that's before now, then reset the timer to start from now
//
if (Event->Timer.TriggerTime <= SystemTime) {
Event->Timer.TriggerTime = SystemTime;
CoreSignalEvent (mEfiCheckTimerEvent);
}
2. If the system runs slowly, do we need to expand the timer
interrupt interval? Is there any requirments about the ratio between CPU
speed and timer interval?
[-- Attachment #2: Type: text/html, Size: 4154 bytes --]
reply other threads:[~2020-09-13 10:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAP5XhjAMDYY8mOfVmkuh6eQfZHGqy1fwgYonyQ6tb0zVRrPPxA@mail.gmail.com \
--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