Re: Loading initrd above 4G causes freeze on boot

From: Mantas MikulÄnas
Date: Sun Aug 24 2014 - 15:19:11 EST


On Fri, Aug 22, 2014 at 5:43 PM, Mantas MikulÄnas <grawity@xxxxxxxxx> wrote:
>
> On Fri, Aug 22, 2014 at 5:24 PM, Harald Hoyer <harald@xxxxxxxxxx> wrote:
> > On 09.08.2014 16:23, Mantas MikulÄnas wrote:
> >> As of commit 4bf7111f5016 ("x86/efi: Support initrd loaded above 4G"),
> >> the kernel freezes at the earliest possible moment when trying to boot
> >> via UEFI on my Asus laptop. (It still boots via BIOS.)
> >>
> >> If I revert that commit on current master (c309bfa9b481), it boots
> >> correctly again [although I see "setup_efi_pci() failed" being printed].
> >>
> >> (Seems like it freezes when handle_cmdline_files() attempts to read
> >> the last chunk of the initramfs -- the last call to efi_file_read()
> >> never returns. Figuring out why that happens is beyond me, though.)
> >>
> >
> > I fixed my issue with: https://lkml.org/lkml/2014/8/22/232
>
> ...Well. If that's the _physical_ address, then I suppose it wouldn't
> have worked on my 4 GB laptop either way. (I thought UEFI already used
> some sort of virtual memory, so I never even thought to mention
> this... Oh well.)
>
> Though if that's the case, then I'm wondering why it would be affected
> by the read size? Shouldn't it have crashed either as soon as the high
> address was used, or never at all? (I really don't know much about
> memory at this level. Sorry.)
>
> > Care to test?
>
> Will try later today.

Finally got around to testing it, and yes, your patch fixes the initrd
boot for me.

--
Mantas MikulÄnas <grawity@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/