From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.106]) by mx.groups.io with SMTP id smtpd.web10.780.1683049811112198713 for ; Tue, 02 May 2023 10:50:11 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=cVnSIrSD; spf=pass (domain: os.amperecomputing.com, ip: 40.107.237.106, mailfrom: tinhnguyen@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m14PJ2tFWxMBwdQMaycj8xAVxkqv5mqt/pfHHn2uySzAJIomEFuZSOPhkU0aFZmT/fQSEAL9q+gHRfQi1Z7j1bqeodV4k9Urfq2mQlD1fj4OIZ+bFrdbNKWTMlwBHKF+vYIsjRVARmTKj157hsvO8H9bnn2eNmoTb5Jy/MsHumtlrx7CQwnxslG9s0GiLKb4lXcdmVxYuEiHZZhCZc6V8kdCjQ3d11F4U60mVy19SMECnLpu+383NRSG3XRx4shXYVVV8S5bVjzV2w7TUaLCSs8tqpCq+nO22NOZT/30ckVDlGFSiXtZkzA1LVAXsWG5vhGJL6jIzWNfZzggmGXAjA== 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=pVdhYE2l6duk8wEJlgU8KUlFOcbmDJvdAilPe0uDVHg=; b=ZRCmNmmosLWEhAE3itVIYpzugqTqQ67yGnlxIvN6XzbFvwDHfwh+ZgvBMMH3rfklfJXIncqZ279XkGq0HjZN/hnJCi/EiorxZXmh1r1QS9MWYAu1kTg78n2VZCqzooo3PYvIaSgoavO3zxUlJyAAQHWRTUnd5J8BpokcSF3DSt4Xy/YYCp92Fwb3rq71bln6AUlLG9eHXJ7fggYFwFeUR742MuBE1PkgzuBDF4yrnc85XabhAoIzl03+MAjA6XPAI7OqbBtAhnVecBqMwr6HpBuEZdhBc7C/jRddUp/VQYtzQVlnIiFYQlPVHShDviAvGnsqLZdqclIeb3y1kzvLwg== 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=pVdhYE2l6duk8wEJlgU8KUlFOcbmDJvdAilPe0uDVHg=; b=cVnSIrSD/je8I6ssvJe/UPkrBFjXmEFujOTF8x+rBjm09L5incEdP7PF+JxS757ndMO23UVxgb08IcjO8/6W+ekPtZMbT/D50BxxENijBP6mghMjCFdXnvi4YK/sQly6bPuMVYbWjXXclTXCNvjbYzh1XGvb+7PoohTtqyDTBXc= 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 LV2PR01MB7720.prod.exchangelabs.com (2603:10b6:408:172::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.30; Tue, 2 May 2023 17:50:06 +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.6340.030; Tue, 2 May 2023 17:50:06 +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 v2 2/3] MdePkg: Add new PCDs for IPMI SSIF Date: Wed, 3 May 2023 00:49:25 +0700 Message-ID: <20230502174926.2016955-1-tinhnguyen@os.amperecomputing.com> X-Mailer: git-send-email 2.40.0 X-ClientProxiedBy: SI1PR02CA0019.apcprd02.prod.outlook.com (2603:1096:4:1f4::15) 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_|LV2PR01MB7720:EE_ X-MS-Office365-Filtering-Correlation-Id: f7d1a523-b086-4ef7-1331-08db4b35a9e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T2zYefpRuHvjyBTM6oaM7oPzzfWKwiFxLom/+0z7jUyrekJ2H6Sh9iaGWKIHbEQgkgKFflmEmYgpMiUFm8KbQBa7Bt3GvOCeyeTCLxAx64RdgMUay3CkVBX0o50Z2Lj+yJ1PubNg0FegOQBSZiB9dOE4Vi1u0bXTKcRwmAMwOPuiMlmd3kKg9JeW6Pm1fsUcfo3Eh8OjARlqVnLEevyCwDHIQHrOPpDWsJHuopH8n6ddiBgfoEy1AixAAz6HXWenpPsb7LiansRo1y+mSeNP6be4pJcgeQrlEIf2m6YH51zqAQkpTt1I8GqdMAXlN1J9HctkkWBP5tpiDe9vpgse4CkzPA7RjyZ4MwmeS6JgrSICUdjjLubnSG3cx5ODwG74mzk3XELaY+dLf47CsuXbt5cEJe0A8wuqIUxgOizYdrs4XvBqBmM+wgLUmd8e5NC4+g3Teb4afKC7hHSlZVUX7ReWMfHtcgPDywD6Yo/OY+ET0d9gQ30agskbJe7m6N5F0gVIqG8pJnleeERV3Wxy5lRh4OIqOUR6/sZMwFO36fE6ZaNTVhHnEqVHW9iJgfWD6HK1c3n7AmD3uDWR0/sx9lxJZBE+8UYtMc1X9A/H5NQ= 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)(396003)(346002)(136003)(39850400004)(366004)(376002)(451199021)(86362001)(38350700002)(38100700002)(2616005)(6512007)(107886003)(1076003)(6506007)(186003)(26005)(83380400001)(6666004)(52116002)(6486002)(966005)(478600001)(8936002)(4326008)(66556008)(316002)(6916009)(41300700001)(66946007)(8676002)(66476007)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?wublmAclouJpawWD2sv2cT/KLcF8rWQY2o6H5UojIw6UBCsm07nH8ED0a8Sd?= =?us-ascii?Q?NpcG6BsVq7jo77VwQ0fycQ4Q3PB9corcA/TWjVr9fI9DXx8vuuq93nJpkhfX?= =?us-ascii?Q?DeJpKU8nLMVJf/arncDYiZc7hYG2Q3TWoQlmUGRwh1XibBsI8/de0tUDT2IL?= =?us-ascii?Q?erjB5uTHJw+k+EEZIxuJjGxFYrfTiY1xDyNiFaD4qJyfj9tsxnVOegCC2tCB?= =?us-ascii?Q?hdotPWIzoaq1rJYugn4OIOrXE6zPzpW7gYFz3KO+E/cQ0/+IGZkzJJP31pcx?= =?us-ascii?Q?gtBZpHTvjwAnBDHzv2h12Hc5ImJjtZQm4GiZBWIJXRheQDYbN8XYepWQ9qT1?= =?us-ascii?Q?VP6/uG/ruHTcud5nVhzMRLqdYWo7dN7PpzuxAAxMOQ3L9wT1aS6Gx4Ypdvph?= =?us-ascii?Q?wUNW5ilwfX43OKeBP8cE7DIvenoczvW9rLNenM7Sr72L2IXKo0mYvcR/M6eo?= =?us-ascii?Q?0EQoH5jOeaLf/3EC+F9zmumZ3axlKlGjA1KuYwShq6TTKUPreiv10Csc6BeP?= =?us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VhmaPYHF0/oz4bTTbLXikzmCi4D?= =?us-ascii?Q?GxJ/4+/KLkBhBH6+IY9/Co0zWR7YCnRkkAGsrFMFLDaGzrzgC3A2OXQdgce3?= =?us-ascii?Q?LfhBIuvlyLa5tzqQZGDWxOuX3xRpSrmU/3sMUcSFEO1ExiYss7q9sz3fkgT3?= =?us-ascii?Q?igITGJVOdamncF9gz6FoaaPufI/BpHxEzvC2m0+cgY8bN8pphmZ5qBdO82Go?= =?us-ascii?Q?SzjOEOxnTpgUbYE4tDkz+PSpL7Exh+i+o+AZRvhGUnuH?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: f7d1a523-b086-4ef7-1331-08db4b35a9e4 X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3336.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2023 17:50:06.1785 (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: XE7GCsLyTi25pf2jfTUhffzbZSDjOiVX9WDKc3RkTQIBlTmYVpmKjFBXfBb/lJQIRh6ZUGuqszIoPz3OnkRCgvrAJPmHVqRvq/zeZmVFNzix08lupjbSMBQBp2/D3Vp+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR01MB7720 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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 --- MdePkg/MdePkg.dec | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 7488ccda7a00..b840092382cb 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 # @@ -2353,6 +2354,31 @@ [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 + # @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