Re: [PATCH 2/2] Fetch dmi version from SMBIOS if it exist

From: zhenzhong.duan
Date: Wed Jul 25 2012 - 21:41:30 EST




ä 2012-07-26 03:55, Andrew Morton åé:
On Wed, 25 Jul 2012 19:05:09 +0800
"zhenzhong.duan"<zhenzhong.duan@xxxxxxxxxx> wrote:

The right dmi version is in SMBIOS if it's zero in DMI region

This description is too brief to permit me to understand the patch.
Can you please provide a more detailed explanation?

This issue was originally found from an oracle bug.
One customer noticed system UUID doesn't match between dmidecode & uek2.
HP ProLiant BL460c G6 :
# cat /sys/devices/virtual/dmi/id/product_uuid
00000000-0000-4C48-3031-4D5030333531
# dmidecode | grep -i uuid
UUID: 00000000-0000-484C-3031-4D5030333531
From SMBIOS 2.6 on, spec use little-endian encoding for UUID other than network byte order.
So we need to get dmi version to distinguish. If version is 0.0, the real version is taken from the SMBIOS version. This is part of original kernel comment in code.

thanks
zduan
--
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/