Linux real-time development
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Clark Williams <clark.williams@gmail.com>
Cc: Clark Williams <clrkwllms@kernel.org>,
	Huacai Chen <chenhuacai@kernel.org>,
	Huacai Chen <chenhuacai@loongson.cn>,
	Xuerui Wang <kernel@xen0n.name>,
	loongarch@lists.linux.dev, Steven Rostedt <rostedt@goodmis.org>,
	linux-rt-devel@lists.linux.dev, Guo Ren <guoren@kernel.org>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] LoongArch: Allow to enable PREEMPT_RT
Date: Wed, 20 Nov 2024 08:36:37 +0100	[thread overview]
Message-ID: <20241120073637.iwQyy4q7@linutronix.de> (raw)
In-Reply-To: <CAPAFJkp_MQ8rNsTTY3xfYMhdtiWQunN65Yfft1SqZLptG2J5cw@mail.gmail.com>

On 2024-11-20 02:17:53 [+0000], Clark Williams wrote:
> On Mon, Nov 18, 2024 at 7:37 AM Sebastian Andrzej Siewior <
> bigeasy@linutronix.de> wrote:
> 
> > On 2024-11-14 08:43:21 [-0600], Clark Williams wrote:
> > > We see similar problems with chronyd accessing the RTC on aarch64
> > > systems that use UEFI. Accessing anything via the EFI Runtime is very
> > > slow. Probably going to turn off 'rtcsync' in chronyd when running
> > > low-latency workloads.
> >
> > But isn't "we call into EFI and have no clue what happens" exactly the
> > reason why we disable EFI runtime services?
> >
> >
> I've had customers want access to EFI variables. I believe we default EFI
> runtime to be off and allow it to be turned on.

So the efi-rtc is accessed via functions calls into EFI. So you call in
there and they do (probably) access the RTC via i2c and remain in EFI
(block) for the entire process. That is why the access is disabled. The
difference here is that the bus access is slow so every read/ write
seems to take a while.

The EFI variable access by itself is fine however the variables might be
saved in NAND flash. The write access may trigger an erase process and
relocate the data and so may the read if too many bit flips were
detected.

> Clark

Sebastian

      parent reply	other threads:[~2024-11-20  7:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-08  9:15 [PATCH 0/3] LoongArch: Add PREEMPT_RT support Huacai Chen
2024-11-08  9:15 ` [PATCH 1/3] LoongArch: Reduce min_delta for the arch clockevent device Huacai Chen
2024-11-14 10:21   ` Sebastian Andrzej Siewior
2024-11-14 11:46     ` Huacai Chen
2024-11-14 13:27       ` Sebastian Andrzej Siewior
2024-11-15  6:44         ` Huacai Chen
2024-11-08  9:15 ` [PATCH 2/3] LoongArch: Select HAVE_POSIX_CPU_TIMERS_TASK_WORK Huacai Chen
2024-11-08  9:15 ` [PATCH 3/3] LoongArch: Allow to enable PREEMPT_RT Huacai Chen
2024-11-08 15:05   ` Steven Rostedt
2024-11-14 10:31   ` Sebastian Andrzej Siewior
2024-11-14 11:07     ` Huacai Chen
2024-11-14 11:14       ` Sebastian Andrzej Siewior
2024-11-14 11:19         ` Huacai Chen
2024-11-14 11:30           ` Sebastian Andrzej Siewior
2024-11-14 11:36             ` Huacai Chen
2024-11-14 13:29               ` Sebastian Andrzej Siewior
2024-11-14 14:43                 ` Clark Williams
2024-11-18  7:36                   ` Sebastian Andrzej Siewior
     [not found]                     ` <CAPAFJkp_MQ8rNsTTY3xfYMhdtiWQunN65Yfft1SqZLptG2J5cw@mail.gmail.com>
2024-11-20  7:36                       ` Sebastian Andrzej Siewior [this message]

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=20241120073637.iwQyy4q7@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=chenhuacai@kernel.org \
    --cc=chenhuacai@loongson.cn \
    --cc=clark.williams@gmail.com \
    --cc=clrkwllms@kernel.org \
    --cc=guoren@kernel.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kernel@xen0n.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=loongarch@lists.linux.dev \
    --cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox