linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [PATCH] /sys/firmware/efi/systab giving incorrect value for smbios
@ 2006-03-09 22:19 Tolentino, Matthew E
  0 siblings, 0 replies; 3+ messages in thread
From: Tolentino, Matthew E @ 2006-03-09 22:19 UTC (permalink / raw)
  To: Matthew Garrett, mactel-linux-devel, linux-kernel

Matthew Garrett <> wrote:
> Or, as an alternative, remove the virtual to physical mapping that
> efivars does. This requires fixing up IA64 to match. I've no idea
> which approach is right.

There's a patch (or set of patches?) in -mm from Bjorn that does 
this (retain the physical addresses), which I believe is the best
approach.  Particularly considering it alleviates a bunch of 
back-and-forth calculations in ACPI.

matt  

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH] /sys/firmware/efi/systab giving incorrect value for smbios
@ 2006-03-04 18:00 Matthew Garrett
  2006-03-04 19:00 ` Matthew Garrett
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Garrett @ 2006-03-04 18:00 UTC (permalink / raw)
  To: mactel-linux-devel, linux-kernel

On my Intel imac, /sys/firmware/efi/systab is the following:

ACPI20=0x1fefd014
ACPI=0x1fefd000
SMBIOS=0x9fec9000

if I have a kernel with a 2:2 user/kernel split, and

SMBIOS=0x5fec9000

if I have a kernel with a 3:1 split. The correct value is 0x1fec9000, 
which is what the kernel prints at boot time. The following trivial 
patch seems to fix things.

Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>

diff --git a/arch/i386/kernel/efi.c b/arch/i386/kernel/efi.c
index ecad519..6be705e 100644
--- a/arch/i386/kernel/efi.c
+++ b/arch/i386/kernel/efi.c
@@ -391,7 +391,7 @@ void __init efi_init(void)
 			printk(KERN_INFO " ACPI=0x%lx ", config_tables[i].table);
 		} else
 		    if (efi_guidcmp(config_tables[i].guid, SMBIOS_TABLE_GUID) == 0) {
-			efi.smbios = (void *) config_tables[i].table;
+			efi.smbios = __va(config_tables[i].table);
 			printk(KERN_INFO " SMBIOS=0x%lx ", config_tables[i].table);
 		} else
 		    if (efi_guidcmp(config_tables[i].guid, HCDP_TABLE_GUID) == 0) {

-- 
Matthew Garrett | mjg59@srcf.ucam.org

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-09 22:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-09 22:19 [PATCH] /sys/firmware/efi/systab giving incorrect value for smbios Tolentino, Matthew E
  -- strict thread matches above, loose matches on Subject: below --
2006-03-04 18:00 Matthew Garrett
2006-03-04 19:00 ` Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).