Re: [PATCH v2][EFI] Run EFI in physical mode

From: Eric W. Biederman
Date: Thu Jan 13 2011 - 12:16:43 EST


Matthew Garrett <mjg@xxxxxxxxxx> writes:

> We're seeing issues with some Dell hardware when EFI is run in physical
> mode - it seems that Windows uses virtual mode, so the physical path is
> never exercised. I'm not sure that changing the default to physical is
> going to be possible without compatibility issues.

The bootloaders use physical mode, and there shouldn't be a separate
physical vs virtual mode. It should be the same code with or without
relocations applied. At worst we can set virtual address to the
physical address, on buggy boards.

Honestly if the problem is the EFI code is so buggy we can't use it
in physical mode the answer is almost certainly not to use the
buggy EFI code.

The only bits that I don't think have an alternative are the firmware
variable accesses. Which are a nice to have, but not a show stopper
anywhere.

Eric
--
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/