From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.100]) by mx.groups.io with SMTP id smtpd.web11.62543.1683451975776967050 for ; Sun, 07 May 2023 02:32:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=FLEafJf2; spf=pass (domain: os.amperecomputing.com, ip: 40.107.236.100, mailfrom: tinhnguyen@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TScGojwAsEPmfUd0jcOg/Kk3qjkx08jr/SfcfMYnKmA+IfWlqlatmCLBod/UpF+jK/R2E9AqUhX0pA6P/5JTdpVW3xjGcBpMDTcaHRhdc6golTz3dG+oufo9GarkrcqXmvWYSd9ct39UJ/IdMLY7EIuagoF1XuMEdeXe8f9s/8dUc6McSD+TVH+pf26qjlRWpupcxM+gWQF75IrIoCNk0vWHpSDc3aPMyCvhyQOcr9OdtpUDDfOypTbfIYSi3f71AGWOGGmM7G4R9bNxQ8zrQsMmn8m2RoZwX0n+O7Jlm3r6nDE88oz7nE1+iukNeY00ppkcSeO5Wg01iADjTQfp6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pY8FEikuQ9lKDXOPoYtMcRFD0J2WY57aRbGkjCeDQFE=; b=Cbtnb/gRokcgjQqSkH3qe7d+dYjKIsW4S44qOAy2hQK+Ln5Bx9+dY0YOM339Z/CTOUUpr8RPoBSMS85HZasN61qi0dVjUJhAUL9jM/riU/FRSggFSeyNMYGpbFEdxovPXutKMg7oAkw686FHX3rsnfsfG+jNX776ud54YlirTUlE8G5hlESwYM8jyZuXsonZ4i/dOcRXauXkV3PV3j7hg+fh45JGSDdFzEJikoYoNOa+RIpGib8MrDxMQNXEhWxGlxAWzOYm0tyvQ4aolupKsc+Pg0wwc+gFjV6Jvbf5GH4E5BMwIsEe2NFvWJcoKYTo75kJqtPvMkP8mgaIEVIIPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pY8FEikuQ9lKDXOPoYtMcRFD0J2WY57aRbGkjCeDQFE=; b=FLEafJf254ZSZnjqM1wpZBwE/uMx8+ffSGO+sBQnr6nXxD6ymDHgm2VZrwSFFMsUs0FbOAC+u38F4m1vxA2z0Ca7esk3PHCd8XCea9wspzJ5hP2dMyp0ZLAvwGoSF1AdPsEr3e0DqJQ4BdfxenS6kR00/WLHhxNNVchctiG7RTg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from DM5PR0102MB3336.prod.exchangelabs.com (2603:10b6:4:9f::11) by BL0PR0102MB3587.prod.exchangelabs.com (2603:10b6:207:38::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22; Sun, 7 May 2023 09:32:53 +0000 Received: from DM5PR0102MB3336.prod.exchangelabs.com ([fe80::bb9e:46d1:ae4b:caf2]) by DM5PR0102MB3336.prod.exchangelabs.com ([fe80::bb9e:46d1:ae4b:caf2%7]) with mapi id 15.20.6363.031; Sun, 7 May 2023 09:32:53 +0000 From: "Tinh Nguyen" To: devel@edk2.groups.io CC: patches@amperecomputing.com, michael.d.kinney@intel.com, gaoliming@byosoft.com.cn, zhiguang.liu@intel.com, abner.chang@amd.com, Tinh Nguyen Subject: [PATCH v4 2/3] MdePkg: Add new PCDs for IPMI SSIF Date: Sun, 7 May 2023 16:29:12 +0700 Message-ID: <20230507092913.2109108-3-tinhnguyen@os.amperecomputing.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230507092913.2109108-1-tinhnguyen@os.amperecomputing.com> References: <20230507092913.2109108-1-tinhnguyen@os.amperecomputing.com> X-ClientProxiedBy: SI2PR01CA0017.apcprd01.prod.exchangelabs.com (2603:1096:4:191::19) To DM5PR0102MB3336.prod.exchangelabs.com (2603:10b6:4:9f::11) Return-Path: tinhnguyen@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR0102MB3336:EE_|BL0PR0102MB3587:EE_ X-MS-Office365-Filtering-Correlation-Id: 67b4649e-a249-4176-42c1-08db4ede0817 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DQ3sCZYEMhgb0oqfZrQ4xJBzgvbzFDqALOzRGmx9hfVEwzl/nFiahlKXv4eVTWXAFSgLwWOKZhFJ5r8TjeqveFZJbOD1z/egXGnoZydQpTOLxJERkuYYDnI+lKENQI0anQnRn4Zfn+xfXpLeJ8jVDvf2WJJVnJ3fgSR9F/1zCuO4AQmLkVIeWlyiQdfcFsEHqoEPhtWLw6cjmoleWi1ETBT3wKc41d3/cA2pRcpPqlVqKiKhhwAzArGCzqzxXzakqOC+bOlJwL/5SJL+W1W/R6/D00huiuaD50J7qNiLlpuqNtAYyypSpryFMUfevJDmSUjNXNc+ylZzaejhhFUAQRA+Bw6nK7i7Lm6JJS9l0cXs4LuM+VO6WRCjK3pm2Qmv+WSIxPN+fyJVNrbdNAxL+yRBwv/QeeBxbTzADxFx9RVkZSKvSUEM9vwV/U8lSpBAepnVlYm9iahSgjZYxsJKR487IEqnzMc40wdDgKcVRehTty+XJsC7crCN/ohGByxorM7ECZreKKo8GuU+3WoXkhphmxOZdilvnsKG1Agp8Iw80XRc3a3xk/kjvPEHneNWh2p1SX2G3ZOCHKg0qrATGz988WqtVRl01Zjt/7i+Img= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR0102MB3336.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(366004)(396003)(39840400004)(136003)(376002)(451199021)(6512007)(2906002)(41300700001)(38350700002)(107886003)(38100700002)(83380400001)(6506007)(86362001)(186003)(52116002)(26005)(1076003)(8936002)(66476007)(5660300002)(966005)(316002)(6666004)(6916009)(478600001)(6486002)(4326008)(8676002)(66946007)(66556008)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?jwwPzCY+8M5Fgjgt2WjpWVSD/e1+AuvNGACqHmklHRvgk6klOnWdvVuY8WxJ?= =?us-ascii?Q?9RKOgRHdCXmw/CsSq2jHGETi5/yNfRxPYVLqddlZylp7eFEaoriKhrS5vhEL?= =?us-ascii?Q?G5bmzjkHNfkoq2Jfwx/wyvaSRGjU7716SefoycoZzgjwOhjwLfJCXbn/g0fv?= =?us-ascii?Q?qtFgBnas7MurWpv2ynKLiAiT2/kD7J5Cka3KNE60v8GOzRJC6PlXsEW+utll?= =?us-ascii?Q?rQJvtUb2BFylni3MGahVMCzSSEVaToNR1nvS8rOSIxQdPZbohG2Z2sa2G3n9?= =?us-ascii?Q?aMNXQB6juAtbHkHhPFi8BoDsrhockR7GrKH0nipi+/pfYfEu2dLvle8Nc0Ox?= =?us-ascii?Q?lOtyQ3Y7N74PVjUNGQ1VU9uQ8MtOU9viF1BHb9ff01uoriW0IWE0VtBxKEDc?= =?us-ascii?Q?QxaNNmpi0DFjDPemVnUly+GyhG4ZTLwnJEh6/B7qvAbskAXF9dYyN9xCyKc9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gmviHUqtnzlavdraqmsGJvR?= =?us-ascii?Q?5XAnCgGxFyZiJteJoyMErPbD93qGLG4yqgxVsnu9xpXdV6cB3q+S4gnuOW3E?= =?us-ascii?Q?L+B4lcnwa/Vopp6g5/owzmohmrt1EBl8cnxMpQmFLK3GrVmqeVpkkYTuk8Cp?= =?us-ascii?Q?64s8D8hMpAYpcAYNRpTB0GG7sB9x6kGueW97p3LC2LND0R1wIMROBrLus+XN?= =?us-ascii?Q?kjMbsoqUqQ7pSaTHhKbcF9gOnKlwno/TjhilIGHXB28lK8dTpZVyo6d93YCv?= =?us-ascii?Q?in5TjOP+VE7YCwnXrDT45K1hwTAhHmcMkFLj4lr0Ptpd?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67b4649e-a249-4176-42c1-08db4ede0817 X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3336.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2023 09:32:53.0698 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZJd5TvKLxDhvLruMDtxRYnwrcJ7fJRXiOV1TTI8rDJUsjVxW02ithx7HDnsDqJElj6sFoaJ9D4sN9PkhccilRT7bUtdiVp1zG+dgy8wuB1oFxLOQr1bfkDIXOPVxXcAc X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR0102MB3587 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain BZ#: 4434 - Add IPMI SSIF definitions. This change adds new PCDs for IPMI SSIF. Specification reference: https://www.intel.com/content/www/us/en/products/docs/servers/ipmi/ipmi-sec= ond-gen-interface-spec-v2-rev1-1.html Signed-off-by: Tinh Nguyen Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Abner Chang Reviewed-by: Abner Chang --- MdePkg/MdePkg.dec | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index d6c4179b2a48..fd4741682201 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -10,6 +10,7 @@ # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights = reserved.
# Copyright (c) 2021 - 2022, Arm Limited. All rights reserved.
# Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.
+# Copyright (c) 2023, Ampere Computing LLC. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -2357,6 +2358,32 @@ [PcdsFixedAtBuild,PcdsPatchableInModule] # @Prompt IPMI KCS Interface I/O Base Address gEfiMdePkgTokenSpaceGuid.PcdIpmiKcsIoBaseAddress|0xca2|UINT16|0x00000031 =20 + ## This is SMBus slave address for the SSIF to the BMC. + # The recommended value defined by IPMI specification is 0x20 (section = 12.12). + # @Prompt IPMI SSIF SMBus slave address + gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifSmbusSlaveAddr|0x20|UINT8|0x00000032 + + ## This is the maximum number of IPMI SSIF request retries. + # The IPMI specification specified min value is 5 (section 12.17). + # @Prompt Number of IPMI SSIF request retries. + gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifRequestRetryCount|0x05|UINT8|0x00000= 033 + + ## This is the required interval for each IPMI request retry. + # The IPMI specification specified a time range of 60ms to 250ms (secti= on 12.17). + # The default setting is min. + # @Prompt Time between IPMI SSIF request retries. + gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifRequestRetryIntervalMicrosecond|6000= 0|UINT32|0x00000034 + + ## This value is the maximum retries of an IPMI SSIF response + # The default value is the same as the Linux Kernel ipmi_ssif driver. + # @Prompt Number of IPMI SSIF response retries. + gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifResponseRetryCount|250|UINT8|0x00000= 035 + + ## This is the required interval for each IPMI response retry. + # The IPMI specification specified min value is 60ms (section 12.17). + # @Prompt Time-out for a response, internal + gEfiMdePkgTokenSpaceGuid.PcdIpmiSsifResponseRetryIntervalMicrosecond|600= 00|UINT32|0x00000036 + [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] ## This value is used to set the base address of PCI express hierarchy. # @Prompt PCI Express Base Address. --=20 2.40.0