From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 98D907803D2 for ; Tue, 16 Jan 2024 07:12:11 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=en6pwsmNr4X68iiKCqWx1U1aOL0T1S60JhH2hGhgENs=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1705389130; v=1; b=dN2g1Zj6xbx7r0VnbCnJ0rsdGdYm/8wUaCBhEq2aMDezcCZCFom0YO2QpcIVikjBZwdkdZM1 MnFSrvrRxIk5HPMXWfiNiUi+RCCVv/hiCQaUDwzZEcFK6Vvgbrs/rAajfoL8m+RkT2JUpReMaVE LC7Des+kRfSWjx0j1j6nhVS4= X-Received: by 127.0.0.2 with SMTP id t0mzYY7687511xrvcFFzo4h4; Mon, 15 Jan 2024 23:12:10 -0800 X-Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web11.7205.1705389128424362028 for ; Mon, 15 Jan 2024 23:12:09 -0800 X-Received: from loongson.cn (unknown [10.2.9.245]) by gateway (Coremail) with SMTP id _____8CxSPBFLKZlgJsAAA--.3235S3; Tue, 16 Jan 2024 15:12:05 +0800 (CST) X-Received: from code-server.gen (unknown [10.2.9.245]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bx7c47LKZlgYYDAA--.18166S3; Tue, 16 Jan 2024 15:12:04 +0800 (CST) From: "Dongyan Qian" To: devel@edk2.groups.io Cc: Zhichao Gao , Chao Li Subject: [edk2-devel] [PATCH 2/2] ShellPkg: Update smbiosview for LoongArch Date: Tue, 16 Jan 2024 15:11:33 +0800 Message-Id: <20240116071133.38331-2-qiandongyan@loongson.cn> In-Reply-To: <20240116071133.38331-1-qiandongyan@loongson.cn> References: <20240116071133.38331-1-qiandongyan@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Bx7c47LKZlgYYDAA--.18166S3 X-CM-SenderInfo: htld0v5rqj5t3q6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,qiandongyan@loongson.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: FucvWdF9QAX7iOCIXS646Sw7x7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=dN2g1Zj6; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io According to SMBIOS spec3.6, LoongArch information support has been added, so this patch is submitted for display as information in smbiosview. Cc: Zhichao Gao Cc: Chao Li Signed-off-by: Dongyan Qian --- .../SmbiosView/PrintInfo.c | 68 +++++++++++++++++++ .../SmbiosView/QueryTable.c | 8 +++ 2 files changed, 76 insertions(+) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c index b6968cb36a..ba6e7b15fc 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c @@ -2610,6 +2610,74 @@ DisplayProcessorFamily2 ( Print (L"RISC-V RV128\n"); break; + case 0x258: + Print (L"LoongArch\n"); + break; + + case 0x259: + Print (L"Loongson1\n"); + break; + + case 0x25a: + Print (L"Loongson2\n"); + break; + + case 0x25b: + Print (L"Loongson3\n"); + break; + + case 0x25c: + Print (L"Loongson2K\n"); + break; + + case 0x25d: + Print (L"Loongson3A\n"); + break; + + case 0x25e: + Print (L"Loongson3B\n"); + break; + + case 0x25f: + Print (L"Loongson3C\n"); + break; + + case 0x260: + Print (L"Loongson3D\n"); + break; + + case 0x261: + Print (L"Loongson3E\n"); + break; + + case 0x262: + Print (L"DualCoreLoongson2K\n"); + break; + + case 0x26C: + Print (L"QuadCoreLoongson3A\n"); + break; + + case 0x26D: + Print (L"MultiCoreLoongson3A\n"); + break; + + case 0x26E: + Print (L"QuadCoreLoongson3B\n"); + break; + + case 0x26F: + Print (L"MultiCoreLoongson3B\n"); + break; + + case 0x270: + Print (L"MultiCoreLoongson3C\n"); + break; + + case 0x271: + Print (L"MultiCoreLoongson3D\n"); + break; + default: ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_UNDEFINED_PROC_FAMILY), gShellDebug1HiiHandle); } diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c index 82bb7a41f0..f57093c91c 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c @@ -3652,6 +3652,14 @@ TABLE_ITEM ProcessorArchitectureTypesTable[] = { { 8, L" 128-bit RISC-V (RV128) " + }, + { + 9, + L" 32-bit LoongArch (LoongArch32) " + }, + { + 10, + L" 64-bit LoongArch (LoongArch64) " } }; -- 2.27.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113871): https://edk2.groups.io/g/devel/message/113871 Mute This Topic: https://groups.io/mt/103757733/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-