All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: Don't honour ACPI indicating absence of CMOS RTC
@ 2014-06-17 14:58 Andrew Cooper
  2014-06-17 15:12 ` Jan Beulich
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Cooper @ 2014-06-17 14:58 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, Keir Fraser, Jan Beulich

This reverts f74556693 "x86: honor ACPI indicating absence of CMOS RTC"

Certain HP Gen8 BIOSes have started setting this bit despite an RTC CMOS being
present and working.

Their reasonsing is to prevent EFI-booted OSes from playing with the CMOS,
combined with the erroneous assumption that the only OSes using legacy boot
are too old to know about ACPI v5 and therefore to understand this bit.

As a result, the change being reverted prevented modern Xen from booting on
modern HP hardware, despite older Xen working perfectly fine on the same
hardware.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
---
 xen/arch/x86/time.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index a4e1656..8745186 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -693,9 +693,6 @@ static unsigned long get_cmos_time(void)
             return res;
     }
 
-    if ( unlikely(acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_CMOS_RTC) )
-        panic("System without CMOS RTC must be booted from EFI");
-
     spin_lock_irqsave(&rtc_lock, flags);
 
     /* read RTC exactly on falling edge of update flag */
-- 
1.7.10.4

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

end of thread, other threads:[~2014-06-18 13:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17 14:58 [PATCH] x86: Don't honour ACPI indicating absence of CMOS RTC Andrew Cooper
2014-06-17 15:12 ` Jan Beulich
2014-06-17 15:47   ` Konrad Rzeszutek Wilk
2014-06-17 16:01     ` Jan Beulich
2014-06-17 16:31       ` Konrad Rzeszutek Wilk
2014-06-18 12:00         ` Jan Beulich
2014-06-18 13:06           ` Konrad Rzeszutek Wilk
2014-06-18 13:40             ` Jan Beulich
2014-06-17 17:01   ` Andrew Cooper
2014-06-18 12:02     ` Jan Beulich

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.