From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: xenomai@xenomai.org
Subject: Re: [PATCH 06/13] cobalt/clock: drop timer calibration
Date: Tue, 02 Feb 2021 17:26:38 +0100 [thread overview]
Message-ID: <87mtwmtozl.fsf@xenomai.org> (raw)
In-Reply-To: <dc0e32e6-b7f8-85c9-7c15-7bd9b10e6c6a@siemens.com>
Jan Kiszka <jan.kiszka@siemens.com> writes:
> On 31.01.21 15:45, Philippe Gerum wrote:
>> From: Philippe Gerum <rpm@xenomai.org>
>>
>> The calibrated timer setup time is currently accounted for in the
>> timer gravity triplet (.user, also used as default .irq latency),
>> exclusively. This forces in a dynamically calculated parameter with no
>> way to override it. Meanwhile, this value would be already included in
>> every gravity value which autotune may determine, so this setting is
>> pretty much redundant.
>>
>> Drop nktimerlat and the requirement for the machine section to provide
>> a timer calibration handler, we don't need these.
>>
>
> Do you recall the history of this features? Was it first, and then
> autotune came along, silently obsoleting it?
This stuff dates back to the early 2k, when we still used the i8254 for
timing on x86. Programming the I/O ports to schedule the next clock tick
was so excruciatingly slow that we had to account for such overhead in
the timeout date. Other archs simply mimicked this for their own
hardware timers following x86, but certainly with much less of a reason
to do so (some would actually set nktimerlat to 1 clock cycle...).
When autotune came in, the reasoning for having nktimelat was not
reconsidered, although it should have since as a result, this setting
became not only useless, but in fact redundant.
--
Philippe.
next prev parent reply other threads:[~2021-02-02 16:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-31 14:45 [PATCH 01/13] cobalt/kernel: pipeline: abstract context switching support Philippe Gerum
2021-01-31 14:45 ` [PATCH 02/13] cobalt/thread: pipeline: abstract synchronous single-stepping code Philippe Gerum
2021-01-31 14:45 ` [PATCH 03/13] cobalt/clock: pipeline: abstract access to host (real)time Philippe Gerum
2021-01-31 14:45 ` [PATCH 04/13] cobalt/arch: pipeline: move architecture code to pipeline-specific section Philippe Gerum
2021-02-03 10:18 ` Jan Kiszka
2021-01-31 14:45 ` [PATCH 05/13] cobalt/clock: pipeline: move TSC-related code to the I-pipe section Philippe Gerum
2021-01-31 14:45 ` [PATCH 06/13] cobalt/clock: drop timer calibration Philippe Gerum
2021-02-01 18:14 ` Jan Kiszka
2021-02-02 16:26 ` Philippe Gerum [this message]
2021-01-31 14:45 ` [PATCH 07/13] cobalt/arm: ipipe: remove obsolete calibration handler Philippe Gerum
2021-01-31 14:45 ` [PATCH 08/13] cobalt/arm64: " Philippe Gerum
2021-01-31 14:45 ` [PATCH 09/13] cobalt/x86: " Philippe Gerum
2021-01-31 14:45 ` [PATCH 10/13] cobalt/powerpc: " Philippe Gerum
2021-01-31 14:45 ` [PATCH 11/13] cobalt/machine: ipipe: drop timer frequency setting Philippe Gerum
2021-01-31 14:45 ` [PATCH 12/13] cobalt/init: ipipe: remove clock frequency override Philippe Gerum
2021-01-31 14:45 ` [PATCH 13/13] cobalt/assert: pipeline: add TODO() marker Philippe Gerum
2021-02-01 18:20 ` Jan Kiszka
2021-02-02 16:17 ` Philippe Gerum
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-all 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=87mtwmtozl.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=jan.kiszka@siemens.com \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.