Files
OrangePi_CM5/include/linux
Jan Beulich bd52276fa1 x86-64/efi: Use EFI to deal with platform wall clock (again)
Other than ix86, x86-64 on EFI so far didn't set the
{g,s}et_wallclock accessors to the EFI routines, thus
incorrectly using raw RTC accesses instead.

Simply removing the #ifdef around the respective code isn't
enough, however: While so far early get-time calls were done in
physical mode, this doesn't work properly for x86-64, as virtual
addresses would still need to be set up for all runtime regions
(which wasn't the case on the system I have access to), so
instead the patch moves the call to efi_enter_virtual_mode()
ahead (which in turn allows to drop all code related to calling
efi-get-time in physical mode).

Additionally the earlier calling of efi_set_executable()
requires the CPA code to cope, i.e. during early boot it must be
avoided to call cpa_flush_array(), as the first thing this
function does is a BUG_ON(irqs_disabled()).

Also make the two EFI functions in question here static -
they're not being referenced elsewhere.

History:

    This commit was originally merged as bacef661ac ("x86-64/efi:
    Use EFI to deal with platform wall clock") but it resulted in some
    ASUS machines no longer booting due to a firmware bug, and so was
    reverted in f026cfa82f. A pre-emptive fix for the buggy ASUS
    firmware was merged in 03a1c254975e ("x86, efi: 1:1 pagetable
    mapping for virtual EFI calls") so now this patch can be
    reapplied.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Matt Fleming <matt.fleming@intel.com>
Acked-by: Matthew Garrett <mjg@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com> [added commit history]
2012-10-30 10:39:20 +00:00
..
2012-09-19 19:08:53 -06:00
…
2012-04-23 14:23:32 +03:00
2012-05-15 17:30:30 -04:00
2012-08-10 15:27:02 -04:00
…
…
…
2012-07-30 17:25:21 -07:00
…
2012-10-08 13:50:20 +10:30
…
…
2012-09-19 19:08:46 -06:00
2012-09-20 14:31:45 +02:00
…
…
…
…
…
…
…
…
…
…
…
2012-07-30 17:25:11 -07:00
2012-09-17 15:00:38 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-05-25 12:46:23 +05:30
…
…
…
2012-05-10 12:00:56 +02:00
…
…
…
…
…
…
…
…
2012-05-29 23:28:33 -04:00
…
2012-09-05 12:18:11 -07:00
…
2012-09-26 21:10:00 -04:00
…
…
…
…
…
…
…
2012-04-27 10:46:45 +08:00
2012-07-05 15:04:10 +02:00
…
2012-08-09 16:18:06 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-10-06 03:04:56 +09:00
…
…
…
2012-09-07 14:57:45 -04:00
…
…
2012-09-11 10:15:02 +02:00
…
…
…
…
…
…
2012-07-17 09:13:37 -07:00
…
2012-05-31 17:49:32 -07:00
…
…
2012-09-26 13:52:36 -07:00
2012-08-22 10:24:41 -04:00
…
…
…
…
…
2012-10-10 01:15:44 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-09-17 15:00:37 -07:00
…
2012-10-09 16:22:54 +09:00
2012-10-09 16:23:00 +09:00
2012-10-10 20:00:55 +10:30
…
…
…
…
…
…
…
2012-07-29 21:24:13 +04:00
…
…
…
…
…
…
2012-10-10 22:41:05 -04:00
2012-07-10 10:32:06 -05:00
…
2012-05-21 14:31:48 +01:00
…
…
2012-07-31 18:42:43 -07:00
…
…
2012-06-20 14:39:36 -07:00
…
…
2012-10-05 22:23:53 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-10-11 08:50:16 +09:00
…
2012-10-06 03:05:01 +09:00
…
…
…
…
2012-09-27 12:45:28 +02:00
…
…
2012-10-11 20:02:04 -04:00
…
…
…
2012-10-07 00:40:54 -04:00
…
…
…
2012-06-05 17:32:30 +02:00
…
…
2012-06-13 21:16:42 +02:00
…
…
2012-10-09 16:22:55 +09:00
…
…
…
…
…
…
…
…
…
…
2012-08-21 16:28:31 +02:00
…
2012-10-09 16:22:32 +09:00
2012-07-22 23:57:55 +04:00
…
…
2012-09-05 17:21:36 -07:00
…
…
…
…
…
…
…
…
…
2012-08-04 12:15:37 +04:00
…
…
…
…
…
…