From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 5CA0E74003A for ; Wed, 7 Aug 2024 06:50:24 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ImclFHaRd5SVDDict/mCzLqNBt+15jeaVSgj/WIOl0k=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20240206; t=1723013424; v=1; b=UYGVb8pQ1m6dE0qQyllFY6/bVKQiO/AxU3/yvwoEZOZ1c5az72Iu47R4mZQVUQWmsL+zlvPY HGqS/AkV/5wY7jDzLBIiUSjz9oJ44+8IKyJoxrC+JVYMgK/ZXxqUkhiyVXK+dwnnvMa4frWEnB5 2CLei8X3lMul72ekEfu8C8YRtZdCvfnNDucky4rRuyOVAkHIpdqwn1ibST6nQK7OB6/n9Qj7wc2 y7LNyNMPSr+Yh11JsLpmEXLdXUCtZrYt+bOqJZ7JYC/o9Ek2btv4j7tGjtaCM8cbtEWI/0/swjO 925SHsm920O72NklYsP3gceK6t1gWhmY8/6UUfN+Dqx7g== X-Received: by 127.0.0.2 with SMTP id c7SaYY7687511xOddUK0Z4Gv; Tue, 06 Aug 2024 23:50:22 -0700 X-Received: from NAM04-DM6-obe.outbound.protection.outlook.com (NAM04-DM6-obe.outbound.protection.outlook.com [40.107.102.115]) by mx.groups.io with SMTP id smtpd.web11.27781.1723013421836697113 for ; Tue, 06 Aug 2024 23:50:21 -0700 X-Received: from PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) by DS7PR01MB7664.prod.exchangelabs.com (2603:10b6:8:7b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.13; Wed, 7 Aug 2024 06:50:19 +0000 X-Received: from PH0PR01MB7287.prod.exchangelabs.com ([fe80::fc79:e629:93aa:8b8f]) by PH0PR01MB7287.prod.exchangelabs.com ([fe80::fc79:e629:93aa:8b8f%3]) with mapi id 15.20.7807.026; Wed, 7 Aug 2024 06:50:18 +0000 From: "Nhi Pham via groups.io" To: devel@edk2.groups.io CC: quic_llindhol@quicinc.com, chuong@os.amperecomputing.com, rebecca@os.amperecomputing.com, nhi@os.amperecomputing.com Subject: [edk2-devel] [edk2-platforms][PATCH v2 0/5] Add IPMI SSIF support Date: Wed, 7 Aug 2024 13:47:26 +0700 Message-ID: <20240807064731.4049764-1-nhi@os.amperecomputing.com> X-ClientProxiedBy: SG3P274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::22) To PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7287:EE_|DS7PR01MB7664:EE_ X-MS-Office365-Filtering-Correlation-Id: 7dc9a890-a887-4335-4a00-08dcb6ad3366 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?czTRy9Cq8xU/wmoRNA0K12u4QH7dxQybcGfQjkSCX5Kl1fHFb9eEULYGomZF?= =?us-ascii?Q?7HUlej6alFGlTn1dsnlUYesJfPWL8+Ia5Ew/Mvs2Btdr215a/AB63KdNS0IV?= =?us-ascii?Q?T5OYxmsOkdq/wlXA754tuYl6FXn6ndTaLrO/zQ5qtsbY17EUe9pwDdu/qhao?= =?us-ascii?Q?UKU5fw3vdBTEJ0MUWNrO0oG8nd4aOsXU0zgI1tRd+1y3z41NClaWRAgNq94N?= =?us-ascii?Q?33jpSncM68s/5DOqHEEONFqBsmTWin5KqcHpp4p8bu9u2bGX48R3jozGWtSz?= =?us-ascii?Q?2owBF6SGqHWWZ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=?us-ascii?Q?fEg6PRTWYBCWvHCXdtIhYuhm/ggVesYxXTriHu3Y1BLzLcbyolPpudhjHxIQ?= =?us-ascii?Q?T1OsZ8R2IaTqY4iuZC1T8GFCigyQEiz5ZaotKf3aDjDhWL6tJSyJc97vk1zz?= =?us-ascii?Q?qR1ZU84Z22ueUMheEfjnA8mvHbHgRe/oyVSwDtHKqK5j8z5FWksFhbhB8ZGj?= =?us-ascii?Q?teYkGDQKKdhldl9DLMlbuho4coLxutXgFklu23P9sybLs1AxfQ=3D=3D?= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?egYe9ddsqvZkpW3pNPLhg8nquImwwyXgj8ms5WmVVKGCqfTj/PxIaENjH+Qe?= =?us-ascii?Q?kYcp48wwX6x69EuaguCYdis1TxJ7j0SeEFY6ohUJRNvnCy2Cl7VA/zxWzklA?= =?us-ascii?Q?yWfvCPqhym1v61fc61lO0wA+8VS2Wyfow/a3dTweIh86wzCNzB/1IQCWj6Lc?= =?us-ascii?Q?aFEMN3PyMyTzgpnwMxaWUYs4C2+P2xSuqPJmZMj3hSvab/MyokXcBzNikHa7?= =?us-ascii?Q?6o76373mC1mQbxZeWNqCFfRjMn+wkjycUapjSK3UbuE7FQtLwKl+ZVdNygm7?= =?us-ascii?Q?s/iaoIhVtlrWje4VHWwXFtTWmc6wlib44JLeKPU475XcKQMPEEyT+U1G+Z+a?= =?us-ascii?Q?PEqyvze3OPRFNexzxt1GFfk4XYe7lTMqm9J6XG07S8ekTtA9hZor1jF8TOfs?= =?us-ascii?Q?rsxHN3atgM5+slOi6/KlghJPa5++4IuxDRmgjunAJ7QtXf8Q7Ql670M6KYXt?= =?us-ascii?Q?8IP6ZqJfFwZLSAMGziSpNU7vyHOelM2Thz2MtpxX1FoFeMgZmcDDrf3yocdJ?= =?us-ascii?Q?z251SH5hEL3ULZIfnNg5AkURgg7fkZCj14A4xeTVjG9bCw+yhDAhQsYBaQ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gjF9biCFepZLr5dSTT/GgX/fa?= =?us-ascii?Q?mqnRQFGgXLnk2topupF/4+kci9w1Wn3tPQy2zMAUxlpJK/o2uUz0d3gCJpzj?= =?us-ascii?Q?2bW3am6iYeZChB3E/ewydRnGAfS4EbdMjMaBuwrFBe1apqmG76G5ZyZk63QX?= =?us-ascii?Q?/w=3D=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7dc9a890-a887-4335-4a00-08dcb6ad3366 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7287.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2024 06:50:18.9211 (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: Kfbid9TH70pbZtOQbdM6J0FYcPbe4DJIMYdSSF7WVr5fgOjDcqChVCgx4a0bvzhC6TGFsHKHNJi/HvH1RGrrCt3Iz9HG1DO/K75DaJJjjMg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR01MB7664 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 Resent-Date: Tue, 06 Aug 2024 23:50:22 -0700 Resent-From: nhi@os.amperecomputing.com Reply-To: devel@edk2.groups.io,nhi@os.amperecomputing.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: km7lRa3AaZ3PswCCil2jRqgbx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=UYGVb8pQ; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io This updates the I2C library and implements SMBUS PEI/DXE drivers to support IPMI SSIF in the Mt. Jade platform. v2: - Refine the changes of the DwI2cLib per Leif's comments and update the commit message accordingly. - Remove the additional PCD PcdBmcSlaveAddr since it's is unused. NOTE: Regarding the controller/target terminology, the function prototype and comment are derived from edk2/MdePkg. In this patch set, I am trying to avoid misusing the terms in the implementation instead of altering the function prototype and comment with the PPI and Protocol. Nhi Pham (5): AmpereAltraPkg/DwI2cLib: Add support for SMBUS+PEC operation AmpereSiliconPkg: Define PCDs for SMBUS and BMC AmpereAltraPkg: Add SmbusHc PEI and DXE drivers JadePkg: Add PlatformBmcReadyLib to support BMC ready check Ampere/Jade: Enable IPMI SSIF Silicon/Ampere/AmpereSiliconPkg/AmpereSiliconPkg.dec = | 15 +- Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc = | 23 ++ Platform/Ampere/JadePkg/Jade.dsc = | 2 + Platform/Ampere/JadePkg/Jade.fdf = | 17 ++ Platform/Ampere/JadePkg/Library/PlatformBmcReadyLib/PlatformBmcReadyLib.in= f | 29 ++ Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcDxe.inf = | 43 +++ Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcPei.inf = | 43 +++ Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcCommon.h = | 95 +++++++ Silicon/Ampere/AmpereAltraPkg/Include/Library/I2cLib.h = | 11 +- Platform/Ampere/JadePkg/Library/PCF85063RealTimeClockLib/PCF85063.c = | 6 +- Platform/Ampere/JadePkg/Library/PlatformBmcReadyLib/PlatformBmcReadyLib.c = | 30 +++ Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcCommon.c = | 261 ++++++++++++++++++ Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcDxe.c = | 277 ++++++++++++++++++++ Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcPei.c = | 263 +++++++++++++++++++ Silicon/Ampere/AmpereAltraPkg/Library/DwI2cLib/DwI2cLib.c = | 129 ++++++++- 15 files changed, 1227 insertions(+), 17 deletions(-) create mode 100755 Platform/Ampere/JadePkg/Library/PlatformBmcReadyLib/Pla= tformBmcReadyLib.inf create mode 100644 Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcDx= e.inf create mode 100644 Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcPe= i.inf create mode 100644 Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcCo= mmon.h create mode 100644 Platform/Ampere/JadePkg/Library/PlatformBmcReadyLib/Pla= tformBmcReadyLib.c create mode 100644 Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcCo= mmon.c create mode 100644 Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcDx= e.c create mode 100644 Silicon/Ampere/AmpereAltraPkg/Drivers/SmbusHc/SmbusHcPe= i.c --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120261): https://edk2.groups.io/g/devel/message/120261 Mute This Topic: https://groups.io/mt/107765352/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-