From patchwork Wed Feb 22 01:55:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 60304 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp341328wrd; Tue, 21 Feb 2023 18:27:18 -0800 (PST) X-Google-Smtp-Source: AK7set9YE6am83JmuOTYsuvfI9WzxtE2heYLBMcV/4KECCxvutZmZeMSsLJ8mveR0uEVwFGOS9KQ X-Received: by 2002:a17:90a:305:b0:233:d5ea:53c1 with SMTP id 5-20020a17090a030500b00233d5ea53c1mr8796080pje.29.1677032838226; Tue, 21 Feb 2023 18:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677032838; cv=none; d=google.com; s=arc-20160816; b=s8FDQn5DzVbWvlNl35OGIFv8hCGtIxJiRj0UZVcMxu89kXOvQv3Nsl0h5r2aNhXKzj ApBwWe9d2xgChbO3pPwn3cqHyhv0mAvzSublFO5vKzT3lXyWE8DjXsdu67HSdFuTm92o UHJclRlHSMTwAHeq6C4Q3II3hB/mFN6NNlI/2l9lD5woBbwGZbSBDkl+ety6eR+fFT9Z MlTOTT2aY25+AwarVXAF/I+dp1nfK7nZKCTnI9WWN9PhCFJXw0W2XG8glEEvs3BmbBhA is2Cc+XK9uRZaEcjpw5PNuxwkmcj2U4JqwtVHODxnPb2yrX5E7TZ3xpXV3d8cK5oBMv2 2J6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=4dSOpO5E4XUOdRxtb5mjAW0teOYxaqLnNkfseBU5Xq0=; b=fFsx6nWN79Sipjc1fGLp3kRG4d7bzXYQzPaq7a6hROPuIIAOf+93JWV1IF/tA5EMOa 1QmdkICInGSmlO1T7Gg0axQaRbRp1eTbjwpYDmiIqaXB1TepCoVYBGrlfm/pSTP7xJBH 9T2ahMhzSRsKI+DqRrjNqTaNOcPjmS/H7ZZITquJ293ld8Mqu1Z0LKaORQDRg/zOtd5e 7xU6Us+WJWIO8Ksi6qbfGKDbjm/H2wlMxJTSe7HjjlufNULbKfSuTwKPRJFqjijz8kzo JJ2PoCakdLOTUZ7l3/jrSZsppR3c+O72EBpH0DxrGCAAhVTTxZbgieDKWI1arybndwWA YPsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o89-20020a17090a0a6200b0023111ee967dsi14232678pjo.186.2023.02.21.18.27.01; Tue, 21 Feb 2023 18:27:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbjBVBzK (ORCPT + 99 others); Tue, 21 Feb 2023 20:55:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjBVBzJ (ORCPT ); Tue, 21 Feb 2023 20:55:09 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E2A712799B for ; Tue, 21 Feb 2023 17:55:07 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxMI_5dfVjH2gDAA--.1426S3; Wed, 22 Feb 2023 09:55:06 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxB735dfVj4FA4AA--.37399S2; Wed, 22 Feb 2023 09:55:05 +0800 (CST) From: Tiezhu Yang To: Jean Delvare Cc: linux-kernel@vger.kernel.org Subject: [PATCH] firmware: dmi: Change size of dmi_ids_string[] to 256 Date: Wed, 22 Feb 2023 09:55:01 +0800 Message-Id: <1677030901-29326-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxB735dfVj4FA4AA--.37399S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7WrykGr47JFyUGw43WryrtFb_yoW8JFW5pF 4Yka4rWF40qws7J3yUXan3XF15ua93ZFyDKFW2kws7uwn8A3WUJay3Jay8CF15Ary8ta40 gF18Kr15GF1UC3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UM2AI xVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64 kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJVW8JwAm 72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I3I 0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWU GVWUWwC2zVAF1VAY17CE14v26r1Y6r17MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI 0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0 rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r 4UYxBIdaVFxhVjvjDU0xZFpf9x07UWHqcUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758496385694773189?= X-GMAIL-MSGID: =?utf-8?q?1758496385694773189?= 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 --- 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;