add SMBIOS information to /proc/smbios -- UPDATE 2
Review
Quoted 4 lines
(quoted diff) +4
-0+ 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?
Quoted 7 lines · Lev Makhlis
Review
Quoted 4 lines
(quoted diff) +4
-0+ 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
Quoted 9 lines · Michael Brown
Quoted 7 lines · Lev Makhlis
Review
Quoted 4 lines
(quoted diff) +4
-0+ 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?
Quoted 8 lines
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
Quoted 5 lines · Lev Makhlis
Quoted 4 lines
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
Quoted 7 lines
The EFI spec is here: http://developer.intel.com/technology/efi/EFI_110.htm
(SMBIOS pointer is mentioned in section 4.3), butarch/ia64/kernel/efi*.calready 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.
Ok, good. Thanks. I was also looking around a bit. It looks like the right thing to do is to use efi.smbios. I'll look at this next week when I get a chance to hop on our test box. Looks like this makes the ia64 version of this a bit shorter than the x86 version. :-)
--
Michael