Re: [PATCH 2.4] add SMBIOS information to /proc/smbios -- UPDATE 2

Lev Makhlis
2004-05-01T04:07:21Z

On Friday 30 April 2004 23:32, Michael Brown wrote:
> On Fri, 2004-04-30 at 19:09, Lev Makhlis wrote:
> > > + for (fp = 0xF0000; fp < 0xFFFFF; fp += 16) {
> > > + isa_memcpy_fromio(table_eps, fp, sizeof(*table_eps));
> > > + if (memcmp(table_eps->anchor, "_SM_", 4)!=0)
> > > + continue;
> >
> > This is fine for x86 and x86_64, but for ia64 -- don't you need
> > to get the SMBIOS entry point from the EFI table?
>
> Sorry, but I am not familiar with how SMBIOS tables work on IA64
> architecture, and in fact, the DMI spec says nothing about how it
> differs on IA64, that I can see.
>
> Can you please send me a URL with this information? I have access to
> some IA64 machines. I will add this code if I have a spec.
> --
> Michael

The EFI spec is here: http://developer.intel.com/technology/efi/EFI_110.htm
(SMBIOS pointer is mentioned in section 4.3), but arch/ia64/kernel/efi*.c
already reads EFI. You may want to look at dmidecode
(http://freshmeat.net/projects/dmidecode/), which has code to read
/proc/efi/systab (which, last I checked, itself required a patch).
In kernel space, I think you could just use efi.smbios, but I'm not an expert
on that myself.

Lev