x86, dmi, debug: Log board name (when present) in dmesg/oops output
authorNaga Chumbalkar <nagananda.chumbalkar@hp.com>
Mon, 14 Feb 2011 22:47:17 +0000 (22:47 +0000)
committerIngo Molnar <mingo@elte.hu>
Tue, 15 Feb 2011 03:20:57 +0000 (04:20 +0100)
commit84e383b322e5348db03be54ff64cc6da87003717
treeb1ed733fb82c002a41cbe13535d9ed80d52f9443
parent678301ecadec24ff77ab310eebf8a32ccddb1850
x86, dmi, debug: Log board name (when present) in dmesg/oops output

The "Type 2" SMBIOS record that contains Board Name is not
strictly required and may be absent in the SMBIOS on some
platforms.

( Please note that Type 2 is not listed in Table 3 in Sec 6.2
  ("Required Structures and Data") of the SMBIOS v2.7
  Specification. )

Use the Manufacturer Name (aka System Vendor) name.
Print Board Name only when it is present.

Before the fix:
  (i) dmesg output: DMI: /ProLiant DL380 G6, BIOS P62 01/29/2011
 (ii) oops output:  Pid: 2170, comm: bash Not tainted 2.6.38-rc4+ #3 /ProLiant DL380 G6

After the fix:
  (i) dmesg output: DMI: HP ProLiant DL380 G6, BIOS P62 01/29/2011
 (ii) oops output:  Pid: 2278, comm: bash Not tainted 2.6.38-rc4+ #4 HP ProLiant DL380 G6

Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: <stable@kernel.org> # .3x - good for debugging, please apply as far back as it applies cleanly
LKML-Reference: <20110214224423.2182.13929.sendpatchset@nchumbalkar.americas.hpqcorp.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/process.c
drivers/firmware/dmi_scan.c