From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.90]) by mx.groups.io with SMTP id smtpd.web11.16592.1683113132882786605 for ; Wed, 03 May 2023 04:25:33 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=tggFfGmv; spf=pass (domain: os.amperecomputing.com, ip: 40.107.93.90, mailfrom: tinhnguyen@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E6PHKsfvg7EYUMV/oWIbmAFLlNMedN2pp3ARZSW1TApDTJiuT3N1GgMgJ1LFI5Iv1Q9XzVKeis2J9Gg5NwhjoUGQl+riKlmGOKhUPNAnSZG2iqBhwfoqsCVLZTnNdNhGJZng4ra2ZxTKcvMY3fKFzcjQFfZBOtjjg8TF1fHawfLrVNVrnK9xl4U9+tSFjKZDIm9nJLExBG/g1lpKwVb2e1YfBM8vqbpQEQOXZ0rHKpyCW/CALZ8dE3836Qe6cfvcNC1OMg/dx+8okcmqspaPXwLilBJbEjBpnDL1qGtF6OHhb3YXKdcX4W37trIZ4tdS7FGxROV7psQ5eLzLkRudaQ== 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=0UmT9p1KkBhlW+/KDW1lz4nGZGfI866qOlV5mMJMQjI=; b=Sb7VlVnpkfs258MV8IPnMJwz+ey498hhhx2P2QEKXVncfqncxffSFWfTVKNr1TvQ9b41LJR9lE1JVM7U8js2p3YjlIqWe57eEjTUj1JJFWxU2odRx0zHPvo4wlrFkVSEfCzQrCkE9poG83v5ErqjP+mYfv92L02xdVff03eX316bWx5XoydNTqAKku+4XgL/p7FkOcSNXcD9psLB9/WMW9h/ZrPF+ylFikKTnRyZny6nrrbCowpQo5iisAt1Mxnoq3zaWG7oKMPah9ScucUPhoxZChU0yXBUoNRpys+80qJYWqmXnH+wN6C5+cd2va64uxOLHsXitOx+5DkNfXMbyw== 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=0UmT9p1KkBhlW+/KDW1lz4nGZGfI866qOlV5mMJMQjI=; b=tggFfGmvUvFDrT04jNLlmT2XT2uO8FgFrzFnK8ZXqSUndMFPBCTho1q7BOzfoOAE4/fjvUdHpIW94C2IBpdJshDFL3LSErDDdOIZA9Bp/dGiDZg7/G+FMUb5+BogEAypMY7jTw0Hq4FE54comc32F05U2BmJ7q+1VE+Yu4NfxM4= 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 SN7PR01MB7921.prod.exchangelabs.com (2603:10b6:806:342::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22; Wed, 3 May 2023 11:25:30 +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.022; Wed, 3 May 2023 11:25:30 +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 v3 2/3] MdePkg: Add new PCDs for IPMI SSIF Date: Wed, 3 May 2023 18:24:14 +0700 Message-ID: <20230503112415.2073176-3-tinhnguyen@os.amperecomputing.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230503112415.2073176-1-tinhnguyen@os.amperecomputing.com> References: <20230503112415.2073176-1-tinhnguyen@os.amperecomputing.com> X-ClientProxiedBy: SG2PR01CA0119.apcprd01.prod.exchangelabs.com (2603:1096:4:40::23) 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_|SN7PR01MB7921:EE_ X-MS-Office365-Filtering-Correlation-Id: f794adca-c1bd-48e0-66c9-08db4bc91a07 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rnUNS+IwjErQe7y6gVg5eDQyTqoeYzJrN3HA4VtwSRZKwnoZkzxOWoG0wu9/BdLgA14wu4zWL2Kuf9SSB2RSeMVZBUqfecOBRVYoJqkxrMxjXjwATUvM7lxwvDeOj7426PvvP9/Fa83krlNOB3MBhj23fRVJSW5FgfNZndoviE+iZXPkvcrcsnd/EP/DYidRSEjy7zknAZRYJy+qrAr8zPacReUEnziHpmDLpSMBEmLXE3eFi7cqQ792BFyUmTSpzoPJwgrw5ejk0AwFuIXgTb//E2Se7ODjukF7xoCFaUroOlWYoh3JUu34DvpUfmNE/dixo/Ti0Apo/gC/PYWH2iN5xkE61OymVSrDIuP3+UgR+I2x/Ph+V7WIPcDJC96CWVrXGq+2WNX7omyN4WB9za8Vmg85jQOezA29197o6DtegyPLUFI0DXOcqF3Ya95iyOC3G8QRhQA9WrjM3LNNX4gtGUMWqqcbHP12TWsZac5KTjO1zxNo7uXDhZmU13Hsz/z02zS00O42r0hTF3kJiAdC0LkYzHpxf+p8nb1LWGkeUI2xfgUKs6UxhAbN/xqIR9P1F+eLv27nmRc2W6SFtLZEvuPzIMJHNncOAZYxvKA= 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)(136003)(396003)(346002)(376002)(39850400004)(366004)(451199021)(966005)(52116002)(6486002)(6666004)(83380400001)(2616005)(186003)(38350700002)(38100700002)(86362001)(107886003)(26005)(6512007)(6506007)(1076003)(66476007)(66556008)(4326008)(6916009)(2906002)(66946007)(316002)(8676002)(8936002)(478600001)(5660300002)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?lJc13SWx0OyUv3O9j/+SspzS0QGKqPAAfaG5I8FhT3qYYpt+8rNcucT0Ka0C?= =?us-ascii?Q?6J9DtK5kEGNuoc4gupTL2nk12Gsm1KdzFmjQl8uzAcl7mo1dqJnqLFBG1B7h?= =?us-ascii?Q?n4ZGWICl9qa2Hxj8uLgeAyNhYbukzZLd44uSch/JBtNDdkqmKKPIJghQqUwV?= =?us-ascii?Q?7watahGRCvdvOjtbv43ZU+KpxxFkXw0WgZn86NhyFVexZSpUIvrgNm+G8nez?= =?us-ascii?Q?f50sjYYBJ56X163Knkuf35nhuPuVK9qOAmyw64aCml3ucT7/zjeznZa8IJXZ?= =?us-ascii?Q?/5TjcJf5s9JE5Jlp88W4juNmBeFmIayQnpalmKXUdac4b4SYlNh8XowatxIM?= =?us-ascii?Q?4S5lvg97ZOroYmpZmN6pwjU7/qzW/N5vqiqxc/EKGgvE2df5JVXvf4BXs4Sk?= =?us-ascii?Q?bNX9cIcEAubxSnao2zyGRgr6+dNrlGyed9LWjuOBqDMYC8WvKBC21Yt5pTZz?= =?us-ascii?Q?ekVJeG1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+8?= =?us-ascii?Q?TrYr4CdPOJuN0Q767AL0WlEi9ritcGldosbbzvxfFrQs0hy0M1rjbQfdgHOM?= =?us-ascii?Q?JxFMfmIcc6S4/ZBy3j7fqPqpm+LEirbtM7GLV9D08AFZVCpNKA8dQEE4Gl3x?= =?us-ascii?Q?X94qxJ9/Vpu0SwBwAearBaA/FXMZlOVePNb98HYsWL3htLycJU1dj0QIMbMz?= =?us-ascii?Q?byPOozGLyQjDGT6bl4O8QlIyOStSCKG4hDwYxcH+2DCE5c21BZcmnbihUo4E?= =?us-ascii?Q?G0b33XcTjFKonYVT64U+9AllzpOwYVQ8JDl/UPcH8aiR?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: f794adca-c1bd-48e0-66c9-08db4bc91a07 X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3336.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2023 11:25:30.3188 (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: 1AZeGGpNgVqb9YejYkXzRJ6jVqY2bX/u9xpJ4fP7Vu3m5NXuBRQC9HCb5P0kfuBuMY8tznxvQPMMSfv0KCet0GA8kprR/Sl2m4E9o3FHyzNPhCBNq3JhVSfCYvRVGYyD X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR01MB7921 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 7488ccda7a00..9aeff24a4916 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,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