Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1637506
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled |
| Date | 2017-05-08 17:30 +0200 |
| Message-ID | <tESLM-5F6-5@gated-at.bofh.it> (permalink) |
| References | <tAQpc-ol-31@gated-at.bofh.it> <tDSkN-6Lq-7@gated-at.bofh.it> <tDUZj-5y-5@gated-at.bofh.it> <tEDa1-3FM-9@gated-at.bofh.it> <tEFOx-5zP-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, May 08, 2017 at 09:36:49AM +0800, Baoquan He wrote:
> Thanks for explaining, Bhupesh.
>
> BIOS issue of SGI uv1 is still not fixed. There's a quirk for uv1 to
> use efi old map:
>
> void __init efi_apply_memmap_quirks(void)
> {
> ...
> ...
> /* UV2+ BIOS has a fix for this issue. UV1 still needs the quirk. */
> if (dmi_check_system(sgi_uv1_dmi))
> set_bit(EFI_OLD_MEMMAP, &efi.flags);
> }
>
> And because of some reasons, redhat also need efi old_map now.
>
> Hi Matt,
>
> This v2 patch works on my kvm guest, however there's still problem on
> SGI system. I will post v3 later after it's handled. So nack this v2
> patch.
Please do not top-post, you should know better.
Can you apply this debug patch and upload full dmesg?
---
diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c
index c488625c9712..ca9df6283040 100644
--- a/arch/x86/platform/efi/efi_64.c
+++ b/arch/x86/platform/efi/efi_64.c
@@ -88,9 +88,18 @@ pgd_t * __init efi_call_phys_prolog(void)
n_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT), PGDIR_SIZE);
save_pgd = kmalloc_array(n_pgds, sizeof(*save_pgd), GFP_KERNEL);
+ pr_info("%s: PAGE_OFFSET: 0x%lx\n", __func__, PAGE_OFFSET);
+
for (pgd = 0; pgd < n_pgds; pgd++) {
save_pgd[pgd] = *pgd_offset_k(pgd * PGDIR_SIZE);
vaddress = (unsigned long)__va(pgd * PGDIR_SIZE);
+
+ pr_info("%s: pgd: 0x%x: va: 0x%lx, 0x%lx -> 0x%lx\n",
+ __func__, pgd,
+ vaddress,
+ pgd_val(*pgd_offset_k(pgd * PGDIR_SIZE)),
+ pgd_val(*pgd_offset_k(vaddress)));
+
set_pgd(pgd_offset_k(pgd * PGDIR_SIZE), *pgd_offset_k(vaddress));
}
out:
---
Thanks.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Baoquan He <bhe@redhat.com> - 2017-04-27 14:10 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Thomas Garnier <thgarnie@google.com> - 2017-05-01 16:30 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Matt Fleming <matt@codeblueprint.co.uk> - 2017-05-05 22:50 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Borislav Petkov <bp@alien8.de> - 2017-05-06 01:40 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Bhupesh Sharma <bhsharma@redhat.com> - 2017-05-08 00:50 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Baoquan He <bhe@redhat.com> - 2017-05-08 03:40 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Borislav Petkov <bp@alien8.de> - 2017-05-08 17:30 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Baoquan He <bhe@redhat.com> - 2017-05-10 04:40 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Russ Anderson <rja@hpe.com> - 2017-05-08 05:30 +0200
Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled Baoquan He <bhe@redhat.com> - 2017-05-11 11:40 +0200
csiph-web