mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RT] rtc: Disable RTC_DRV_EFI on RT
@ 2018-07-26  9:04 Sebastian Andrzej Siewior
  2018-07-26  9:15 ` Ard Biesheuvel
  0 siblings, 1 reply; 10+ messages in thread
From: Sebastian Andrzej Siewior @ 2018-07-26  9:04 UTC (permalink / raw)
  To: linux-kernel
  Cc: tglx, rostedt, linux-rt-users, Marc Zyngier, Ard Biesheuvel,
	linux-efi, Anna-Maria Gleixner

Based on measurements the EFI functions get_variable /
get_next_variable take up to 2us. The functions get_time, set_time take
around 10ms. Those 10ms are too much. Even one ms would be too much.
The funny part is that EFI is invoked with enabled interrupts.
According to my tracing I see the interrupt almost 10ms later which
indicates that EFI is disabling interrupts while doing its thing.

This was observed on "EFI v2.60 by SoftIron Overdrive 1000". I don't say
that every EFI implementation does this but given that it has to access a
slow bus like I2C/SPI it is expected.

Disable EFI's RTC driver on RT.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 drivers/rtc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index a2ba5db36145..248d72711650 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -1087,7 +1087,7 @@ config RTC_DRV_DA9063
 
 config RTC_DRV_EFI
 	tristate "EFI RTC"
-	depends on EFI && !X86
+	depends on EFI && !X86 && !PREEMPT_RT_BASE
 	help
 	  If you say yes here you will get support for the EFI
 	  Real Time Clock.
-- 
2.18.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-07-26 16:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26  9:04 [PATCH RT] rtc: Disable RTC_DRV_EFI on RT Sebastian Andrzej Siewior
2018-07-26  9:15 ` Ard Biesheuvel
2018-07-26 12:15   ` Sebastian Andrzej Siewior
2018-07-26 12:26     ` Ard Biesheuvel
2018-07-26 12:46       ` Sebastian Andrzej Siewior
2018-07-26 12:52         ` Ard Biesheuvel
2018-07-26 13:13           ` Sebastian Andrzej Siewior
2018-07-26 13:14             ` Sebastian Andrzej Siewior
2018-07-26 16:01               ` Ard Biesheuvel
2018-07-26 16:04                 ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®