PCR 4539 - Clarify thread timer interrupt latency accounting.
Summary: Clarify thread timer interrupt latency accounting.
Status: ASSIGNED
Alias: None
Product: Kernel
Classification: Deos
Component: Kernel (show other PCRs)
Version: mainline
Hardware: All Deos
: Any Upcoming
: Enhancement
Target Milestone: mainline
Assignee: .Kernel
URL:
Whiteboard:
: 5886 (view as PCR list)
Depends on:
Blocks:
 
Reported: 2007-08-09 10:30 MST by alarson
Modified: 2025-08-04 09:53 MST (History)
2 users (show)

See Also:
Impact Assessment: ---
Organization: DDC-I, Inc.
deosbugs.ccb: Requirements?
rroffelsen: Code-
rroffelsen: TestCases-
rroffelsen: TestProcedures-
rroffelsen: Other-


Attachments

Note You need to log in before you can comment on or make changes to this PCR.
Description alarson 2007-08-09 10:30:03 MST
Hardware induced timer interrupt latency should be more prominently
described in the Platform Integrator's Guide as part of "required
pad".
Comment 1 alarson 2007-08-09 10:30:50 MST
Proposed solution:

Add something like the following to the "Required Pad" section of the
PIG:

Any non critical section induced latency (e.g., hardware induced timer
interrupt latency) must also be accounted in "required pad".  In this
context, the latency does not include software induced latency just
the time between when the interrupt was supposed to be signaled to the
processor and when it actually was.

For example, if the CPU is not in a critical section (interrupts are
not disabled or masked), if the timer is programmed for 100us, and the
timer interrupt is not delivered to the CPU until (100+N)us, then N
must be added to "required pad".

Change "required pad" computation to be "worst possible+N".

Possibly add a note saying that we've seen modern pipelined
processors' interrupt response delayed by 10s of microseconds.

Note that non critical section induced latency is *not* measured by
the crittime kernel and thus not included in the ctxtime.py report.

Update PALSRD timerWRite() description to remind PAL developer to
convey to platform integrator the "non critical section induced
latency" so it can be included in "required pad".

In ctxtime.py:

Make help and the output reference the above.

Note that timer interrupt latency can cause "worst observed" to be
greater than "worst possible".  So can an improper timer
implementation.
Comment 2 alarson 2007-08-09 10:39:05 MST
Although the above is described as an enhancement, we are contacting
hardware to determine how much latency is possible, and how widespread
extended duration latency might be and whether an announcement to the
user community is appropriate.
Comment 3 alarson 2007-08-10 09:13:25 MST
The interrupt latency issue should also be referred to in the discussion on system tick jitter.
Comment 4 rroffelsen 2008-01-09 07:45:49 MST
Excerpt of an e-mail from Doug Farrell on this topic:

FYI 
Comment 5 mdiethelm 2009-01-19 10:17:27 MST
We recommend ctxtime and PIG be modifed to use equivalent terms.  We will need a companion PCR for ctxtime changes.
Comment 6 deosbugs.ccb 2009-02-12 09:32:58 MST
Recommend Deferral
The documentation is correct as written but could be made clearer, hence
Severity "Enhancement".
Comment 7 deosbugs.ccb 2010-02-03 15:22:54 MST
CCB visited this PCR on 2010-02-03
Comment 8 deosbugs.ccb 2010-02-25 13:36:24 MST
CCB visited this PCR on 2010-02-25.
Comment 9 deosbugs.ccb 2010-03-31 12:12:27 MST
CCB 2 visited this PCR on  2010-03-31
Comment 10 deosbugs.ccb 2010-05-11 15:05:37 MST
CCB visited this PCR on 2010-05-11
Comment 11 deosbugs.ccb 2010-09-30 14:51:40 MST
CCB 2 visited this PCR on 2010-09-30.
Comment 12 deosbugs.ccb 2010-12-17 10:17:35 MST
CCB visited this PCR on 2010-12-17.
Comment 13 deosbugs.ccb 2011-03-07 14:57:35 MST
*** PCR 5886 has been marked as a duplicate of this PCR. ***
Comment 14 deosbugs.ccb 2011-03-07 17:39:21 MST
CCB visited this PCR on 2011-03-07
Comment 15 deosbugs.ccb 2011-04-11 14:37:50 MST
CCB visited this PCR on 2011-04-11
Comment 16 deosbugs.ccb 2011-05-16 15:20:23 MST
CCB2 visited this PCR on 2011-05-16
Comment 17 deosbugs.ccb 2011-08-17 15:10:44 MST
CCB visited this PCR on 2011-08-17
Comment 18 deosbugs.ccb 2011-11-04 15:52:33 MST
CCB 2 visited this PCR on 2011-11-04
Comment 19 deosbugs.ccb 2012-01-31 13:45:43 MST
CCB visited this PCR on 2012-01-31
Comment 20 deosbugs.ccb 2012-05-15 08:40:29 MST
CCB visited this PCR on 2012-05-15
Comment 21 deosbugs.ccb 2012-06-08 13:16:58 MST
CCB 2 visited this PCR on 2012-06-08
Comment 22 deosbugs.ccb 2012-08-24 09:17:06 MST
CCB visited this PCR on 2012-08-24
Comment 23 deosbugs.ccb 2012-09-07 10:38:35 MST
CCB visited this PCR on 2012-09-07
Comment 24 rroffelsen 2012-09-17 16:00:44 MST
CCB visited this PCR on 2012-09-17
Comment 25 deosbugs.ccb 2012-11-19 12:19:44 MST
CCB visited this PCR on 2012-11-19
Comment 26 deosbugs.ccb 2012-11-26 17:46:04 MST
CCB visited this PCR on 2012-11-26
Comment 27 deosbugs.ccb 2013-02-12 21:17:37 MST
CCB visited this PCR on 2013-02-12
Comment 28 deosbugs.ccb 2013-03-18 14:35:29 MST
CCB visited this PCR on 2013-03-18
Comment 29 deosbugs.ccb 2013-05-15 10:12:17 MST
CCB visited this PCR on 2013-05-15
Comment 30 deosbugs.ccb 2013-07-19 11:26:01 MST
CCB visited this PCR on 2013-07-19
Comment 31 deosbugs.ccb 2013-11-15 17:40:17 MST
CCB visited this PCR on 2013-11-15
Comment 32 deosbugs.ccb 2014-05-20 10:14:14 MST
CCB 2 visited this PCR on 2014-05-20
Comment 33 deosbugs.ccb 2014-07-14 15:11:54 MST
CCB visited this PCR on 2014-07-14
Comment 34 deosbugs.ccb 2014-11-11 13:16:53 MST
CCB 2 visited this PCR on 2014-11-11
Comment 35 deosbugs.ccb 2014-11-17 08:58:03 MST
CCB visited this PCR on 2014-11-17
Comment 36 deosbugs.ccb 2016-04-18 12:56:33 MST
CCB visited this PCR on 2016-04-18
Comment 37 deosbugs.ccb 2016-06-20 13:09:27 MST
CCB visited this PCR on 2016-06-20
Comment 38 deosbugs.ccb 2017-02-01 09:35:52 MST
CCB visited this PCR on 2017-02-01-59501
Comment 39 deosbugs.ccb 2017-06-28 12:59:12 MST
CCB visited this PCR on 2017-06-28-69227
Comment 40 deosbugs.ccb 2017-07-06 11:05:32 MST
CCB visited this PCR on 2017-07-06-58325
Comment 41 deosbugs.ccb 2018-03-06 13:09:35 MST
CCB visited this PCR on 2018-03-06-71236
Comment 42 deosbugs.ccb 2021-03-26 09:33:39 MST
CCB visited this PCR on 2021-03-26-57787
Comment 43 deosbugs.ccb 2021-04-05 09:51:13 MST
CCB visited this PCR on 2021-04-05-59141
Comment 44 deosbugs.ccb 2023-08-14 11:04:30 MST
CCB visited this PCR on 2023-08-14-64795
Comment 45 deosbugs.ccb 2023-08-14 12:24:10 MST
PCR to be implemented for kismet.
Comment 46 deosbugs.ccb 2024-08-30 06:55:29 MST
CCB visited this PCR on 2024-08-30-49739
Comment 47 deosbugs.ccb 2024-12-11 13:04:51 MST
CCB visited this PCR on 2024-12-11-68907
Comment 48 deosbugs.ccb 2025-08-04 09:48:08 MST
PCR will be worked on Kismet if time permits.
Comment 49 deosbugs.ccb 2025-08-04 09:53:10 MST
CCB visited this PCR on 2025-08-04-59491