linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rtc: Disable EFI rtc for x86
@ 2014-10-03 12:32 Matt Fleming
  2014-10-03 15:01 ` Mark Salter
  0 siblings, 1 reply; 16+ messages in thread
From: Matt Fleming @ 2014-10-03 12:32 UTC (permalink / raw)
  To: Alessandro Zummo, rtc-linux, Mark Salter
  Cc: linux-efi, linux-kernel, Matt Fleming, Dave Young

From: Matt Fleming <matt.fleming@intel.com>

commit da167ad7638759 ("rtc: ia64: allow other architectures to use EFI
RTC") inadvertently introduced a regression for x86. We've been careful
not to enable the EFI rtc driver for x86 due to the generally buggy
implementations of the time-related EFI runtime services.

Previous attempts have been made to us the time EFI services, but all
have eventually been reverted due to crashes inside the firmware code.

In fact, since the above commit was merged we've seen reports of crashes
on 32-bit tablets,

  https://bugzilla.kernel.org/show_bug.cgi?id=84241#c21

Disable it explicitly for x86 so that we don't give users false hope
that this driver will work - it won't, and your machine is likely to
crash.

Cc: Mark Salter <msalter@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
---

Unless anyone objects, I'm happy to take this through the EFI tree.

 drivers/rtc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index a168e96142b9..54ef393b0def 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -806,7 +806,7 @@ config RTC_DRV_DA9063
 
 config RTC_DRV_EFI
 	tristate "EFI RTC"
-	depends on EFI
+	depends on EFI && !X86
 	help
 	  If you say yes here you will get support for the EFI
 	  Real Time Clock.
-- 
1.9.3


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

end of thread, other threads:[~2014-11-14 11:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-03 12:32 [PATCH] rtc: Disable EFI rtc for x86 Matt Fleming
2014-10-03 15:01 ` Mark Salter
2014-11-09 17:37   ` Pali Rohár
2014-11-09 18:22     ` Borislav Petkov
2014-11-10 11:22       ` Matt Fleming
2014-11-10 16:23         ` Pali Rohár
2014-11-10 16:45           ` Austin S Hemmelgarn
2014-11-10 17:04             ` Matthew Garrett
2014-11-10 20:37               ` Austin S Hemmelgarn
2014-11-10 20:58                 ` H. Peter Anvin
2014-11-10 21:26                   ` Matthew Garrett
2014-11-11 11:38                   ` One Thousand Gnomes
2014-11-11 11:46                     ` Borislav Petkov
2014-11-11 11:53                     ` Pali Rohár
2014-11-11 12:14                     ` Austin S Hemmelgarn
2014-11-14 11:21             ` Pali Rohár

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).