Re: [PATCH 4/4] x86, efi: Map runtime services 1:1

2013-06-10 Thread Borislav Petkov
On Thu, Jun 06, 2013 at 12:38:10PM -0700, H. Peter Anvin wrote:
 On 06/06/2013 12:36 PM, Borislav Petkov wrote:
  On Thu, Jun 06, 2013 at 12:28:20PM -0700, H. Peter Anvin wrote:
  Or we could materialize mappings for this specific PGD. However,
  adding a read of %cr3 in __do_page_fault sounds expensive.
  
  Yes, I think we want to make sure all mappings are there when we do an
  EFI runtime call so that we never #PF while it executes.
  
  Matt mentioned on IRC that the it could be that his EFI runtime is
  referencing EFI_RESERVED area which we don't map. However, we need to
  confirm/disprove that first, as it is currently only a hunch.

FWIW,

booting the patchset on my Dell looks good here. Booting at least, I
don't know about other stuff. If you have an EFI test suite or want me
to try stuff out, let me know. efibootmgr output looks sane too.

Btw, I've added a printk to the code so that we know that we've managed
switching to the 1:1 thing:

[0.073119] efi: Using 1:1 map.

Thanks.

-- 
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
--
To unsubscribe from this list: send the line unsubscribe linux-efi in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[GIT PULL] EFI urgent fixes

2013-06-10 Thread Matt Fleming
Hi folks,
 
The following changes since commit eccaf52fee8305d5207ff110950a82c100e459bc:

  x86, efi: initial the local variable of DataSize to zero (2013-05-14 08:13:05 
+0100)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git tags/efi-urgent

for you to fetch changes up to f8b8404337de4e2466e2e1139ea68b1f8295974f:

  Modify UEFI anti-bricking code (2013-06-10 21:59:37 +0100)


 * More tweaking to the EFI variable anti-bricking algorithm. Quite a
   few users were reporting boot regressions in v3.9. This has now been
   fixed with a more accurate minimum storage requirement to avoid
   bricking value from Samsung (5K instead of 50%) and code to trigger
   garbage collection when we near our limit - Matthew Garrett.


Matthew Garrett (1):
  Modify UEFI anti-bricking code

 arch/x86/boot/compressed/eboot.c  |  47 -
 arch/x86/include/asm/efi.h|   7 --
 arch/x86/include/uapi/asm/bootparam.h |   1 -
 arch/x86/platform/efi/efi.c   | 188 --
 4 files changed, 65 insertions(+), 178 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line unsubscribe linux-efi in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html