[PATCH] firmware: dmi: Change size of dmi_ids_string[] to 256

From: Tiezhu Yang
Date: Tue Feb 21 2023 - 20:55:12 EST


The current size of dmi_ids_string[] is 128, the BIOS date
can not be seen if the total string length of system vendor,
product name, board name, BIOS version and BIOS date is too
long to over 128, it is better and enough to change size of
dmi_ids_string[] to 256 for most cases.

Without this patch:

[ 0.000000] DMI: Loongson Loongson-3A5000-7A1000-1w-A2101/Loongson-LS3A5000-7A1000-1w-A2101, BIOS vUDK2018-LoongArch-V4.0.05132-beta10 12/13/202

With this patch:

[ 0.000000] DMI: Loongson Loongson-3A5000-7A1000-1w-A2101/Loongson-LS3A5000-7A1000-1w-A2101, BIOS vUDK2018-LoongArch-V4.0.05132-beta10 12/13/2022

Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
---
drivers/firmware/dmi_scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index 015c95a..37c39f9 100644
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -32,7 +32,7 @@ static u8 smbios_entry_point[32];
static int smbios_entry_point_size;

/* DMI system identification string used during boot */
-static char dmi_ids_string[128] __initdata;
+static char dmi_ids_string[256] __initdata;

static struct dmi_memdev_info {
const char *device;
--
2.1.0