From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998775; cv=none; d=zohomail.com; s=zohoarc; b=hmM7rpwjVAHYx3nvtyTnRm205MrXxSdDjTB+vFOt+GoopcsjdNF7ClMERRbq1Jj5HcMnS3DNafRNsd1+9JDDwpDe3iNHVcKJ7OiMciFkiqebGmCOjTeT/jE/n45gKr0RVvkJSEX0RJdzyVBYnh2qLL2ifWjwCCMrgXxBTAkb4wI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998775; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dMd/y3Y5/WTdOzBUvcXNDNceEaE1rJrJapd+W6yOSMo=; b=ifNUV3y5FS8PgdNnYspiaLkjtmIW08FSpb3fNRThyuDk2pjjaICVKA0dk/jn/ruIe7BMIpCMIzQl5yaOqGGFhZWm9FgJjNA4+zJn9GP8m2oROz/wlHl7cTjgw77xH8c3yRRDXn6n9sRRgFIfMrGRVYtJXxbKvPaQMZGIm5r8PGM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998775248446.7203586851873; Wed, 17 Dec 2025 11:12:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww2-0005gn-RK; Wed, 17 Dec 2025 14:11:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvw-0005cC-Tn; Wed, 17 Dec 2025 14:11:36 -0500 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvu-00013r-7E; Wed, 17 Dec 2025 14:11:36 -0500 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 29877EC00CD; Wed, 17 Dec 2025 14:11:32 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 17 Dec 2025 14:11:32 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:31 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998692; x=1766085092; bh=dMd/y3Y5/WTdOzBUvcXNDNceEaE1rJrJapd+W6yOSMo=; b= lFz4HRe1eyVUZd1cUcG9G/L2mojhFSQDuiIH3KE8d+b7i6kGYAm7z3qx0G1Y4z7I cPpEAW+e3SIAG8dyaYgHVV8asGy7VEqPAK77jy8wEi0Q86/DXOdNgLrdnUfzPYsz /eVT1fjO3/9TgUkdwGPL3Qkwb4A6cfOeb+F/NYl7ckzPw+0zeae2e48dwjz4AyMe Nk3ntUFwTM4CzpARZR62Bn9AuSJORQEcpy9BI5VJpfXkrZufh8dDdWVTABJ1hOgW D4aJV5q+pAcAbnml8obeb1Q05xEm0+fEQOyNUW3rshtCMMViJ3deDPIFLnjCS1zx p3MExpzLF8oFhjL7jPx2NQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998692; x= 1766085092; bh=dMd/y3Y5/WTdOzBUvcXNDNceEaE1rJrJapd+W6yOSMo=; b=q Mdiq2nQlLDprS8kyV5i/AXEpqHhiUWgpYKdryBIq+X26Vk2jnqUVb3rvLLA5HQE8 UrO0libS5NnPr9b3JiRae8gwHkDjnoc+l/4OFu9Z8teWPhWaeoeLlnyBkMhdtXuW Mhh72VJfVCJ2kc6o+cTlZ2Cr+0Er1j8sc74GjYnelOrKrhG4YPlNm6MpYoKoAduz Lp8jPUMIttqu9dU+5sXl67M2JLINVApAAkgsIyx1Efs+ddUmAmcxv3bBJH1c/zLu WaaBcga2uNc4r9O5MgbWxdzfeHGJxUc90mfUUOSdD0AaD3fJmkZ1hoje4eeLVRKp XVx5rvGtbbxo2wSgSpNow== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:28 -0500 Subject: [PATCH 01/11] hw/arm/aspeed: catalina: add BSM FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-1-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2680; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=pR+VRcSuXRhGmNKjk9xnzpQCKRPt529MoAxMrx7lqzY=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBgIW9ovf3wxSEFEIsF6MoyMmy4A2TMJunbz PVEpWlohuaJAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GeccD/4386x6ZgQ9Gx+m4q20CzS8StORbgyvlRLCaiqiUHQQ588EnSEeYkDCun0EydGovkleYXw 1WnXhnWF2UkJzOtugdtZFPzck7kh4aXfTV5Joe8pAHxhSCVD+H5Xvd4HeW28Uj6D6slYDeCmdaw s8FXZxLtgwrNFGrplg0ty22a6Nsx64Sj1oWayMMzrN9wkKcaMXRjUNB+IjI8ZKMnbl3aF/jkRgd BrIReAE8LBKRw6rTjr4Dl8gwIM1ujy/igrzNY0ARF/5fBLTX8gDVEXnSxfeB15RVid3iEjg3b/K z/SqsJtTarSsxuzec5UzDekVyWBKb5DpbR2mi/JsnoBVSHByt2/VZSyb9+Or4AdO+JrrtHMziXm 8w6748Mu//WuUFuKfwThFDmMX8db7esTKdug6413gMXgddEWrcATbrbTkpZ8svsOUZt+uJWSuVl ZkcUIX016sJdRknYfVnCRDgF7QEde20YfSqanZO2a6RgejQaFQ+WVhsUBcmencic7XCFZS4xnt4 X6a/HlFQ3f8szlRx2UQKR3YLf9MVn92SdYc9gb6aZS7IPDbvjw0IaRu1xOxMte3wZccfmsGrjAZ G3cU0mJCBCi0l3mJe7SMoeZ06H6UD6Iuvo6Zv4xQXuLtSvRCbxOmZcb3HhtIwchmWxwqY1zBG6E jp/j6rdXlgmzaeQ== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.151; envelope-from=patrick@stwcx.xyz; helo=fout-a8-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998776254158500 Use ipmitool/frugen tool to generate a BSM image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 40 ++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 91977a4d3c..0f229f4dc6 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -26,6 +26,44 @@ #define TYPE_TMP421 "tmp421" #define TYPE_DS1338 "ds1338" =20 +/* + * "BMC Storage Module" FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Quanta", + * "pname": "BMC Storage Module (QEMU)", + * "pn": "00000000000", + * "serial": "00000000000000", + * "date": "01/12/2025 00:00", + * "custom": ["09-100183"] + * }, + * "product": { + * "mfg": "Quanta", + * "pname": "CI-Catalina", + * "pn": "10000000001", + * "ver": "MP", + * "serial": "10000000000000", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t bsm_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xf4, 0x01, 0x09, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xd9, 0x42, 0x4d, + 0x43, 0x20, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, 0x29, 0x8b, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x89, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x01, 0xc0, 0x87, 0x50, + 0xd6, 0x44, 0x10, 0x14, 0x61, 0x13, 0xc1, 0x59, 0x01, 0x07, 0x19, 0xc6, + 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xcb, 0x43, 0x49, 0x2d, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x89, 0x11, 0x04, 0x41, 0x10, 0x04, + 0x41, 0x10, 0x14, 0x01, 0x82, 0x2d, 0x0c, 0x8b, 0x11, 0x04, 0x41, 0x10, + 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x83, 0x71, 0xd9, 0xd6, 0xc0, + 0xc1, 0x00, 0x00, 0x37 +}; +static const size_t bsm_eeprom_len =3D sizeof(bsm_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -147,7 +185,7 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) /* eeprom@50 */ at24c_eeprom_init(i2c[9], 0x50, 8 * KiB); /* eeprom@56 */ - at24c_eeprom_init(i2c[9], 0x56, 8 * KiB); + at24c_eeprom_init_rom(i2c[9], 0x56, 8 * KiB, bsm_eeprom, bsm_eeprom_le= n); =20 /* &i2c10 */ /* temperature-sensor@1f - tpm421 */ --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998733; cv=none; d=zohomail.com; s=zohoarc; b=DUBWpg+5Ul1ro9REGP5OhN7GKmVEUREj/pniOpc8QNE8cnTUoTQkxIg1mwkvqg+vpVJ6UDZAhyTYsh2Yga2YypQJRYEWtjYkzf8I+aHV8GNwAvfEkEPV2B6X37GZnM/JSfTWUkBXHfQtV7GB4GPe5i6UkBFcgU/vN9lGkJrA/dc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998733; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lpt5+IR16CqJoRHLmrUmUyPY1RM3rlR4vGhvmFAy/To=; b=ahFA5IDkJAAYUTEp+SzBFk0mbH0UXqRsXqYDnxVZxaZ7yw+O77ZtS2En6RoWBTCeqpvdSd6dR5QFXkvWMrI5g2bjksSb8M+8Ht8h2NHso3FH3fNgDIo+KDWR7rE8WLH7+quWahCLsdqPGIchqc8g+zCEHbUKAmw51rh2vn+C8PY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998733365818.1896558590231; Wed, 17 Dec 2025 11:12:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww4-0005iS-UN; Wed, 17 Dec 2025 14:11:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvw-0005cB-Tk; Wed, 17 Dec 2025 14:11:36 -0500 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvt-00014Q-TJ; Wed, 17 Dec 2025 14:11:36 -0500 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 07AAE1400135; Wed, 17 Dec 2025 14:11:33 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Wed, 17 Dec 2025 14:11:33 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:32 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998693; x=1766085093; bh=lpt5+IR16CqJoRHLmrUmUyPY1RM3rlR4vGhvmFAy/To=; b= k3q6I8Ks8QIjGyneT4lMGJYs+H8k279xT0ToHdL6Ty1FQ3RwIu/QIwBjHLMuG5iU LXidLgjcZYYZQhKcj9KIRDybrSHdHAV2NPwImbCENJjYF/5PfkdJ21q7ra1+6LlF LMnS1IBnI/92UKn9OhNClGuiIKX0Br4m/HOEZKKrNGNSmbYthqHOvXrLGRi5S8fO JFMbb4EIfeWEGKlU5ORFTbwiT1bZseKisNJPxoOiIVinj8KWVyjF7Kdq//YjXt7y f2UfgKX/bwo3KKZHcSTQ0MJ1nqdMqxNhyUOypMBzUWMBInVMkoIEUek1ABYNO4+H EZ0wvpYtgEhszzZToJOW5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998693; x= 1766085093; bh=lpt5+IR16CqJoRHLmrUmUyPY1RM3rlR4vGhvmFAy/To=; b=Q o2URXiiGOT9bjlWcyxFJSkchhx9b6Ai23P0UNGxKq5bHVZ1k1s/uIL7Hw13gcizc XxVE8ZfViXUuQQPKWZ/MujWW6/a0n/qsD0e7IsuRkd3jFV2oV9MUj3sUiL5fe7xn W4V5o4fnbktuySWrpcJs9Nt9NplByVcgRHLehYdhUS9ABoUI3fv0P/NfNIdIKQgR vEQQMRpg7QgHhBFSZiPa2KK13TNxkeWWcH2saKcClqQpUmVdNOhjD4eoywVyku7N o2Pyhd1mP+TgxpYdSp9e+iD/eCeVa4W+e46L9PPa+PTxMX2Drqr3s5cQA4SeQQST NCKdgIF3UCtJKP/xr0FBQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:29 -0500 Subject: [PATCH 02/11] hw/arm/aspeed: catalina: add DC-SCM FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-2-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2796; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=5sMIW5i+afOIdU1FbonCdPE8ODma6AUF6ZUDP3gaZZ4=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBg+5RsLUTyuPJInSJDgV0v1yuTH3mCu+x4X cqukxVzP9uJAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GZDDD/9JTpz3GoBiCt3Pk+dvchK2VpCRuiXWsCgrkLsNS2nS9OvsyFfPKJK/uQO2XRqWGogU2ux cxRX17b7a87+6AaaBnNgZGBX71Dr2VD2ChNwSqnTn2s6yHSIrCSS3Bbzn320QXOhCFIH07GMFIr TZz1N0BW3WwWtu9wGM6qEgHtHDx1b8bjzFESPRJmAB+/rEk303/keIJKC/LtFphGWZRxvh8GCXO 3iVmvacsJ5MrdmlRpHuB2npyTrhKaamRvLh61/pRQLmxoyxo0ODPPg38k/dctPDmKpXtui0jHEP iC5noY+nP/vwAT9sEN34/NH/CYEUInPslVz8l6JQNye4KO0Yy+hjyD0FOH56GItPsLXtJxvfunZ R6wCvmOWNBV1vlURnAk597LA0W01nPvpadZYFUC28nUzsMa26e1BITD3Qm93EKgMC1298v1X82R hHlfVmSYd5z1zsg7Zj3qHVAeT8coWKwMqfLzwMzLnOUgxZtOfmkqSHtmUxdGe1pwdjrCGdpybrt QwLPP8fXefDFoU3P03xW+T0jlvqeyLsNeaNjYGZjwjx6tedbX0UR4+PhmSds8FoOMddt39iZjNl Hjj5WfTvs7DCBp51CETAPdX+xD+skHY6BRlTjctUUh4eKRk9lTpsrhxypujYw2H8rYT0Y0cd6/D VgqTLwRWwws5BZw== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.152; envelope-from=patrick@stwcx.xyz; helo=fhigh-a1-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998736816158500 Use ipmitool/frugen tool to generate a DC-SCM image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 41 ++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 0f229f4dc6..6e8f4d39d9 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -64,6 +64,45 @@ static const uint8_t bsm_eeprom[] =3D { }; static const size_t bsm_eeprom_len =3D sizeof(bsm_eeprom); =20 +/* + * "Secure Control Module" FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Quanta", + * "pname": "Catalina SCM MP (QEMU)", + * "pn": "00000000000", + * "serial": "00000000000000", + * "date": "01/12/2025 00:00", + * "custom": ["19-100325"] + * }, + * "product": { + * "mfg": "Quanta", + * "pname": "CI-Catalina", + * "pn": "10000000001", + * "ver": "MP", + * "serial": "10000000000000", + * "atag": "QEMU" + * } + * } + * + */ +static const uint8_t scm_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xf4, 0x01, 0x09, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xd6, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x20, 0x53, 0x43, 0x4d, 0x20, 0x4d, + 0x50, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, 0x29, 0x8b, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x89, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x01, 0xc0, 0x87, 0x51, 0xd6, 0x44, 0x10, + 0x34, 0x49, 0x15, 0xc1, 0x00, 0x00, 0x00, 0xc1, 0x01, 0x07, 0x19, 0xc6, + 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xcb, 0x43, 0x49, 0x2d, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x89, 0x11, 0x04, 0x41, 0x10, 0x04, + 0x41, 0x10, 0x14, 0x01, 0x82, 0x2d, 0x0c, 0x8b, 0x11, 0x04, 0x41, 0x10, + 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x83, 0x71, 0xd9, 0xd6, 0xc0, + 0xc1, 0x00, 0x00, 0x37 +}; +static const size_t scm_eeprom_len =3D sizeof(scm_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -183,7 +222,7 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) /* temperature-sensor@4b - tpm75 */ i2c_slave_create_simple(i2c[9], TYPE_TMP75, 0x4b); /* eeprom@50 */ - at24c_eeprom_init(i2c[9], 0x50, 8 * KiB); + at24c_eeprom_init_rom(i2c[9], 0x50, 8 * KiB, scm_eeprom, scm_eeprom_le= n); /* eeprom@56 */ at24c_eeprom_init_rom(i2c[9], 0x56, 8 * KiB, bsm_eeprom, bsm_eeprom_le= n); =20 --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998762; cv=none; d=zohomail.com; s=zohoarc; b=VKmjfebhMibuzqOIOMa2L/7nd47/g1oGZ8oNVEFRA543zZkW6lBi/C48HUEPhFMVTOisxZOo9F/6WzdsyH6XcLdddTW8ZeJ/toCT0gmWyiogKESp8si3hL6E/jnfwJWlb8o84i1qETVxfEIdrLLo3T+pmvubL9Ms8FTDAbikQ+s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998762; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=IYNyEYtFuolxuLICrRO3YgG3x5tAFKgZGLn8f+nn+AM=; b=QfYkDItHbtrE12gw6IZsq3gObOp3l9jgq44EkixcoNNZ8htkbV5Wvm7vRMR1bD4GSp9ic5GYXw1Oc/qz666tCJ0C0YhjNlfqx/xVase93mmC4i0Qf17/niKMJsXX+U1FtYfy8diPtRVO2DSEUxqUuE9uywwgLRUeHHTsBtY/Ruw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998762711200.76811220489753; Wed, 17 Dec 2025 11:12:42 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww4-0005hi-1h; Wed, 17 Dec 2025 14:11:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvw-0005cA-Qu; Wed, 17 Dec 2025 14:11:36 -0500 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvu-00014r-Mc; Wed, 17 Dec 2025 14:11:36 -0500 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id D5924EC011C; Wed, 17 Dec 2025 14:11:33 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Wed, 17 Dec 2025 14:11:33 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998693; x=1766085093; bh=IYNyEYtFuolxuLICrRO3YgG3x5tAFKgZGLn8f+nn+AM=; b= GXwC3eHMtN+RqXYLPZjTju/Mut97Z8eA0GeOlQm8IltLQPa2e9NeWDatd5cux1mB LCatP9deUr2XuZOAXmtq0W+V05sSd25ud1kGzN123mbcetVfnnjecz+LQVlef56c xNjsukJLu8LTqrY+SSLptdae9tCgDWIkYV7HhkfAbLTcgMDSIlEsTauo3FzKkiHo bKaKUU9hgQ9neD2eCNqEjNcKQRY6JlAPUKfnKXTiJxeMIBSw8c+BvZwkim6WawU+ XL6xSzb7octU3HQrnb+qp53ZoNnnYzi1+adcsE6gF9A+InZYNTUU+FhMacmd3/RH KR/2BBC7zi567FFFYNfJkA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998693; x= 1766085093; bh=IYNyEYtFuolxuLICrRO3YgG3x5tAFKgZGLn8f+nn+AM=; b=J JuripEMixPr9lkiO2sLtpPMZqkXI6rHMD1KHM6O1j/imo6xR9+KetGVROKLjgbQm qDDoIu260ZuvMdiK2JIMbclcyOTA9DZVreb+pLoXUjBEI/lC+LlKN5KZNnDeV+aO LyFAs89qjtjClGO43C/eH1WzbQKA0KGJb5MWE6eyw0sdUOx+8A4CJJreLVjZL1gK M4hAIEr5yLJpZyJQoH0l8ORVy3CAHoNQ/hDl+c5j8WgBX8LqfyYftZGmYhR7EfgM ae3mWXJ/XsKtdqRt/yNjFwQdvAf8Q8cInIxkJps6F0JtQRIt7/ui+BmxsQQk4REp 5yJUq5xAPb5/leCr407JQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:30 -0500 Subject: [PATCH 03/11] hw/arm/aspeed: catalina: add PDB FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-3-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3439; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=743vlcsdT8g1t/2Q0+AWKYAMdQDwHhTqybRKjZPrPVI=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBgbh2DvhB1ArR7mzF27ViTfiAV4CawtMjeK hHPjBEzMNaJAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GY1gD/0b7HRp/1SjkoZmxbs8IblvgBWgZISK/QTXWYf3D+f91bfL/h70LNrK9PhwLXxKukzTNJx ASyJKFT4FSE1WWsbGs9DqqRpX7ScXF6wqQmRg8EH9aaSNAsP42Y5lhMJvaDQ2e1eqCtxCTYXhcu 48R2oYqfBcW9HEj+eAwePgJtR7ZtOU2WOREjclOE8x32nRCzmxvZvg0gZwuqa+ON6APlHjvbsN8 TVM/zU0yln6aqrEkY6cm0HocLlWEmDitTCxxu4BHpQ13mBKkHPSapcQMBlxo5EGSb3VqtnFxUAA F6dvF9iwsvGOZC1cgCkbyAdxTnm0LlyPmrvzjkrdpxHP0G3xBwv9echLk7ztas3O7/sQaHZwq71 acWF29aKf7ZVa71cKDi6B5y1FKHHJpI3KXOCb+bymqxIwmQ8L2DrnXa8yS4GHaEQnaZqiyl46sX MmpdNeeQW8XEfI06mYIFs7FpkVBfA5jAvfXWftsDQ1MX5fzLK5uRg2B0f9T1ONmUUG3jIREKYwr hvmLKvjG1urhV/p7gWGqldbHYEQBHmZPy4bxvKUZbOzm1h8Y88w49TXI2SnTfCqWexZpM1mOhvn zvjLJQ1MS2Uc4r9ptn+tKovaW9+vna9PLtCi5MYJZKfxGZ/sfvmqnEtf7T7jRpHk9TQ22iCnksO ZUF+70MFsA4AQbw== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.151; envelope-from=patrick@stwcx.xyz; helo=fout-a8-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998765262154100 Use ipmitool/frugen tool to generate a PDB image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 51 ++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 6e8f4d39d9..2ba2c5c088 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -103,6 +103,54 @@ static const uint8_t scm_eeprom[] =3D { }; static const size_t scm_eeprom_len =3D sizeof(scm_eeprom); =20 +/* + * "Power Distribution Board" FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Quanta", + * "pname": "Catalina PDB MP (QEMU)", + * "pn": "00000000000", + * "serial": "00000000000000", + * "date": "01/12/2025 00:00", + * "custom": [ + * "19-100579", + * "", + * "", + * "hsc-ltc fsc-max vr-delta gndsen-ina p12vsen-ina p12vfan= -mps" + * ] + * }, + * "product": { + * "mfg": "Quanta", + * "pname": "CI-Catalina", + * "pn": "10000000001", + * "ver": "MP", + * "serial": "10000000000000", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t pdb_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x12, 0x00, 0x00, 0xec, 0x01, 0x11, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xd6, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x20, 0x50, 0x44, 0x42, 0x20, 0x4d, + 0x50, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, 0x29, 0x8b, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x89, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x01, 0xc0, 0x87, 0x51, 0xd6, 0x44, 0x10, + 0x54, 0x5d, 0x19, 0xc0, 0xc0, 0xfb, 0x68, 0x73, 0x63, 0x2d, 0x6c, 0x74, + 0x63, 0x20, 0x66, 0x73, 0x63, 0x2d, 0x6d, 0x61, 0x78, 0x20, 0x76, 0x72, + 0x2d, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x20, 0x67, 0x6e, 0x64, 0x73, 0x65, + 0x6e, 0x2d, 0x69, 0x6e, 0x61, 0x20, 0x70, 0x31, 0x32, 0x76, 0x73, 0x65, + 0x6e, 0x2d, 0x69, 0x6e, 0x61, 0x20, 0x70, 0x31, 0x32, 0x76, 0x66, 0x61, + 0x6e, 0x2d, 0x6d, 0x70, 0x73, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, + 0x01, 0x07, 0x19, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xcb, 0x43, + 0x49, 0x2d, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x89, 0x11, + 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x14, 0x01, 0x82, 0x2d, 0x0c, 0x8b, + 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x83, + 0x71, 0xd9, 0xd6, 0xc0, 0xc1, 0x00, 0x00, 0x37 +}; +static const size_t pdb_eeprom_len =3D sizeof(pdb_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -166,7 +214,8 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) =20 /* i2c1mux0ch5 */ /* eeprom@54 */ - at24c_eeprom_init(pca954x_i2c_get_bus(i2c_mux, 5), 0x54, 8 * KiB); + at24c_eeprom_init_rom(pca954x_i2c_get_bus(i2c_mux, 5), 0x54, 8 * KiB, + pdb_eeprom, pdb_eeprom_len); /* tpm75@4f */ i2c_slave_create_simple(pca954x_i2c_get_bus(i2c_mux, 5), TYPE_TMP75, 0= x4f); =20 --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998728; cv=none; d=zohomail.com; s=zohoarc; b=nXgcUnGHVJ3uT+C1U/6qCHD6Iqsj/vyODbntNjyHtqpVW8GdX3xxVlt3QooCFP0l3zShUjFVLp3I2yCtMf3KcvkmM5vQD8R395l2/r2ysyCDUenJkGRwc49Sg9ey/8TK7IX7IqRNYdzCuDYvBt5aioNg9M3bVLbycrzYGm+dyMQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998728; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LuoadUt5hmbMt01Gp3muN+fmuqo83j4AFDH5AKgwSG0=; b=iQjl23fWRt/+aRVi4QsEiC9h8udTK/glyn1ksmnX0S6AcxR+P6JTr4VlVZeJW65rtQWbMoqKZvmpirTOE7nlIAOf0LYAxAeD54Wya/eJf4X/niEFuKhMaOIShPKg3KkCEAV3LXJvc04PdMG3/Ghn0SunUrvmNc7x0Iio68ED8fk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998727789241.96617685068827; Wed, 17 Dec 2025 11:12:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVwvz-0005eX-Pe; Wed, 17 Dec 2025 14:11:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvx-0005cr-LD; Wed, 17 Dec 2025 14:11:37 -0500 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvv-000156-UQ; Wed, 17 Dec 2025 14:11:37 -0500 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id A41E5140001E; Wed, 17 Dec 2025 14:11:34 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 17 Dec 2025 14:11:34 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:34 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998694; x=1766085094; bh=LuoadUt5hmbMt01Gp3muN+fmuqo83j4AFDH5AKgwSG0=; b= gHK87Fq81H+UCjigmFrp52sdwesZ2uvF/1aWgWllHGS6kmPrO1Wjz/Ii6NHjb5CQ JUwN3qSyRsiOndIZlJBAHOOQ80bw5jqypPx/xUoVMkP58dqZolWcuUuhf5ZrSUML ry1yRp/tOUMJ2iDX3vjZVY4/OqhV3BLCaLv9ko1bPOrZdQ624RYVv7kIAMydHxyk NAqUcBVLas/IjR8wIrHL+F6x5pE2n8WFzWtxUEdfWCpDP4ywilH+SiGP2Le8A89E ShDsDMgFN9C3qQDfoe/Wg++C+5QJQ3ygG1fdwDWSg1wbIoVsaDV0cIJMnjLT487D /UOVJ6qAqEAdnmZ/Gn6Whg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998694; x= 1766085094; bh=LuoadUt5hmbMt01Gp3muN+fmuqo83j4AFDH5AKgwSG0=; b=T KdnnreFMqofJCAuuV34Ecic8GljXDstjYczP+vENIsCzjr8QI3B/GgfF8rPhzNv9 oHMPy5e1nUoPxL7E+Gwb08u88afVbq4fe9CRED7R1zOfvSbqifgFy9AV8waZLP8B 03c7tNslgYLfsPUTn9Gt7UtyAnTjrQoUUS3Pw7fm3AngtMCYNHAX21jtXZrmi5/t qHiQd7z3yVJ9bDArH5IUu+xBQJwc2Y1R5SXON9QHEP7ERk0gvvK32X8mj5YGvEp4 TPYeu35iPqixlhmSKezHQ6T1VrdMIMMMa+aRuR8aH1zTMwEmlkRoGIO6HBI2bKL4 M9ugxLs+kFK2Do2+rhVMQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:31 -0500 Subject: [PATCH 04/11] hw/arm/aspeed: catalina: add OSFP FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-4-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2886; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=Znm5bQkxFZtTaIT824ye9Fr2PKuM0CvmA4wFRpX/qXs=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBgLQnkIXT3BedN6jOhvCxA9uTVeMrrEVg0H /3z/KQRcDGJAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GVf4D/9C2VYCtjE/FHjJngrxAhyCUeLHF7PArosC6JJQ7w/lwt27O+0iKZRniD6BuHHc0NDw7Yo +H4GSmbZYizINkiWq/LY0vmIUNnmf/7VbrHuVJxMIgXGox6eyG5jTqWA7WtJ0KJ1rHQmOlpNb1B cVQLtHxo3bTwEQaWugq3a2R9MmzNvRAnNqnidbhG7m+HYAar0pEy//YovmfPAKlgIENbgQIFRQO b3Sc2Eiunsgz4v6F6igGCz2KjI/wdjQsvVpnsT3C3+SZEHgKaZGMMm6Qo20A/4Rv2dVe4rnelQU mPvShP0wpIbppGFnF0EeaUXObse6TgkLJbILWE4aXNPv1oWUkCCGihFatIKPw4v9bOS3lSrVQ05 HfweahdPPLJTq+AJFe3ccWG1ynZ8EmtQCgR3vD3OePOUMwGYlCTHLW7r1kxrR0Y/wKSOUDMf6Rx 3j6y3AhFP3Gqxg2UKBNCMiq9QEl8wJHdsJmxt+ne+zATkf63ftEMb4oocAPDqWBhUFx4lKyNlcs mI05XFCYAZzzr9OOvzqU0aZCtuQFBO9kBov7XyU9ZGqruQ+lcUnsa5xPv54NZzpBZYa5Opzk2Hd j3UNoylzVYnEAf96fZE3CO8B6U63kPLTN515kQqeNPthDSWAmph47bSDrU3KmT7GbBuD4OP5oPJ KCsjVtogfw4lY2Q== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.152; envelope-from=patrick@stwcx.xyz; helo=fhigh-a1-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998731154154100 Use ipmitool/frugen tool to generate an OSFP image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 41 ++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 2ba2c5c088..c8e62afdfe 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -151,6 +151,44 @@ static const uint8_t pdb_eeprom[] =3D { }; static const size_t pdb_eeprom_len =3D sizeof(pdb_eeprom); =20 +/* + * OSFP Carrier Board FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Quanta", + * "pname": "Catalina OSFP MP (QEMU)", + * "pn": "00000000000", + * "serial": "00000000000000", + * "date": "01/12/2025 00:00", + * "custom": ["19-100316"] + * }, + * "product": { + * "mfg": "Quanta", + * "pname": "CI-Catalina", + * "pn": "10000000001", + * "ver": "MP", + * "serial": "10000000000000", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t osfp_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xf4, 0x01, 0x09, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xd7, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x20, 0x4f, 0x53, 0x46, 0x50, 0x20, + 0x4d, 0x50, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, 0x29, 0x8b, 0x10, 0x04, + 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x89, 0x10, 0x04, + 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x01, 0xc0, 0x87, 0x51, 0xd6, 0x44, + 0x10, 0x34, 0x45, 0x16, 0xc1, 0x00, 0x00, 0x6e, 0x01, 0x07, 0x19, 0xc6, + 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xcb, 0x43, 0x49, 0x2d, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x89, 0x11, 0x04, 0x41, 0x10, 0x04, + 0x41, 0x10, 0x14, 0x01, 0x82, 0x2d, 0x0c, 0x8b, 0x11, 0x04, 0x41, 0x10, + 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x83, 0x71, 0xd9, 0xd6, 0xc0, + 0xc1, 0x00, 0x00, 0x37 +}; +static const size_t osfp_eeprom_len =3D sizeof(osfp_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -227,7 +265,8 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) i2c_slave_create_simple(pca954x_i2c_get_bus(i2c_mux, 6), TYPE_PCA9552, 0x25); /* eeprom@51 */ - at24c_eeprom_init(pca954x_i2c_get_bus(i2c_mux, 6), 0x51, 8 * KiB); + at24c_eeprom_init_rom(pca954x_i2c_get_bus(i2c_mux, 6), 0x51, 8 * KiB, + osfp_eeprom, osfp_eeprom_len); =20 /* i2c1mux0ch7 */ /* eeprom@53 */ --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998775; cv=none; d=zohomail.com; s=zohoarc; b=lOFoaZSntiH+o/4mdOKDSs9cPDMkjvl92nYdDICVrA20+IaHXiWpCCIuyk+fjDOJ2txyDRwBhcdMNBpK+bHx/f8iBw3PFvQZIASo86SVaWNa/1eTWshdRjvwvTCASLmJxZLsH5TedhrhzaFJPMpJWIolJh/riKP63yjw9YTPEEw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998775; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=KqliF4vsrhu903Y/EsQG/b4e4zF0WCv03EcsczIl1ec=; b=mp2EpT5feq6dLVyqRN2zf+EWJLiJqUVVu8xcDPtU92k62PDn39+Rbg8TykLBIF3d2PhdakdumT049LzvAbgqNJ01DsiAbafQFHch6fOqkNvg1VyeMGjyNnS2BJW5lbTngBRwI4WljMwSa6nAUtyvsxCT48ZMgRoKOGEC5mju9MU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998775532757.2891915271438; Wed, 17 Dec 2025 11:12:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww0-0005ey-7H; Wed, 17 Dec 2025 14:11:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvy-0005dU-6Q; Wed, 17 Dec 2025 14:11:38 -0500 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvw-00015R-7v; Wed, 17 Dec 2025 14:11:37 -0500 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 72126EC0123; Wed, 17 Dec 2025 14:11:35 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Wed, 17 Dec 2025 14:11:35 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:35 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998695; x=1766085095; bh=KqliF4vsrhu903Y/EsQG/b4e4zF0WCv03EcsczIl1ec=; b= Yg9B2/9wsMLZJtKfYXJJeA13xmoZTegnyMDzrc04WSbqHpkDD5iC4YFjvNDK75t2 tz7XCybBq3dvR1cnWOi2UR8+Cz5nRV198mvbTEpLmUsJmZjR9zapsxCx8w6tEj6U emaYKgUIHpWmNYNo2j4gGcvBjnPj6hwCjA7fOQashQvkQmlNgMwGAW7ITQUI8nJ7 T6xPw5k+NgfV3Z0rMjlVmnqwq184NK10K12eHY+avLp6zKUjeeLqYNYzk3UDe3Rs W3r5YHXBxjDCGYCJxd+2ljN4qCYPVAcbhVrcyO590Db7FOC+zoU8L0ySTojocklO OeU4KbzYERoeUh9vKoXxJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998695; x= 1766085095; bh=KqliF4vsrhu903Y/EsQG/b4e4zF0WCv03EcsczIl1ec=; b=b w3xZkErPxWLtbcun5moC+CkXrOxXijHngZOgMP3RFt7PGAB0obVXaG/1hGcU9+IP yQVDc11iDRxfJRlguO1JLS5z6wTYaxA+Q6f9X0YmqQIC3weTYpMdTPBVEO1nALlG TVhCdR6jaXqcJIjTBl/pKMi3SS651oZRa3ZklJ6QePzzuIU1h6djtnePtzDGsXui Vet7XOVBLk2GH8QJpNB85Zah3tORczUmAkaYFPnuldrc6OoCzl1rblc8aOyj8Piy 93+oEaoXVSpVNGNvY/6ptZKF7zqVa0kyWoQwAGZXTOmQFiF/pbXRR93lpfBM2N8u KEdWc1+hdvw76qYv2L1sA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:32 -0500 Subject: [PATCH 05/11] hw/arm/aspeed: catalina: add FIO FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-5-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2865; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=1wlHnPoiE9ObnvdYvOKgyzKQBWj+TRZx2Hh3koka4ZQ=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBgSsg1U/0v2Fg2bGGDKqfjY83kpTmNg8h39 DDjzVvl3eCJAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GT7XD/45gUiRPCHMFY+naDQozW0q3Nml5fHatwwwEqQxmyYSTm5KxgZiLU9azcmFx/FRIPxI46b OO99sYnTEvYMJQhGWNBzjudDU+/UxGNWtlMnoyttBxpyabdue9v2IrapLjqDxZlBiSDdRMBn8eE 8PU93hmEz/nG/leJvMgjL8tfB+/VLWzn1oZi42rmo8xguceCK3GuHaLCqvB8uWBsuGQP6R67NOL Ca1kXRvePT0kwnWzUtftZXrrIZvr+Xoz3jGLFxwTDArHXW2yHQ/oEdeLeNi8JojgaVOhuCXGbbm euEIMcQKBm9HejH08bA6lPU3GE2Oj3DsOyWlW9nn03D+7io+rZrblmMittac6W/atRfzeNknoH3 Wf6Y1WLN4vXikx4Tgq0dycKMA1Y/mvASOSpzqqkIBAFNdk19IGOue3XUeBb8BJR7Ncb6/6TZ7ax VVo/KcfyPY948oT8wLIltp+u7nh2IdOZ2irL4bq+uohoP7sw0PSC/LO3LQwMK/dpERH0ZJOzraT MXZP8PpiuMTKRA37oOprK0YVCxcoQ8UX28Y8SSE3fxPeNqe24qZ08P9JEmSFORLHdZOHcBsTfVl 6zVSzXKTrW5IYnRf90FIr3VL4AUrK+q8hotA7CPmj7n3oYWhihlscM6ISCIn3PSLbDGnSMl02lf fuY4J0eDpQg14UQ== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.151; envelope-from=patrick@stwcx.xyz; helo=fout-a8-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998778081158500 Use ipmitool/frugen tool to generate an FIO image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 41 ++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index c8e62afdfe..17db9035bd 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -189,6 +189,44 @@ static const uint8_t osfp_eeprom[] =3D { }; static const size_t osfp_eeprom_len =3D sizeof(osfp_eeprom); =20 +/* + * "Front IO" FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Quanta", + * "pname": "Catalina FIO MP (QEMU)", + * "pn": "00000000000", + * "serial": "00000000000000", + * "date": "01/12/2025 00:00", + * "custom": ["19-100290"] + * }, + * "product": { + * "mfg": "Quanta", + * "pname": "CI-Catalina", + * "pn": "10000000001", + * "ver": "MP", + * "serial": "10000000000000", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t fio_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xf4, 0x01, 0x09, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xd6, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x20, 0x46, 0x49, 0x4f, 0x20, 0x4d, + 0x50, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, 0x29, 0x8b, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x89, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x01, 0xc0, 0x87, 0x51, 0xd6, 0x44, 0x10, + 0x24, 0x65, 0x10, 0xc1, 0x00, 0x00, 0x00, 0xbf, 0x01, 0x07, 0x19, 0xc6, + 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xcb, 0x43, 0x49, 0x2d, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x89, 0x11, 0x04, 0x41, 0x10, 0x04, + 0x41, 0x10, 0x14, 0x01, 0x82, 0x2d, 0x0c, 0x8b, 0x11, 0x04, 0x41, 0x10, + 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x83, 0x71, 0xd9, 0xd6, 0xc0, + 0xc1, 0x00, 0x00, 0x37 +}; +static const size_t fio_eeprom_len =3D sizeof(fio_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -270,7 +308,8 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) =20 /* i2c1mux0ch7 */ /* eeprom@53 */ - at24c_eeprom_init(pca954x_i2c_get_bus(i2c_mux, 7), 0x53, 8 * KiB); + at24c_eeprom_init_rom(pca954x_i2c_get_bus(i2c_mux, 7), 0x53, 8 * KiB, + fio_eeprom, fio_eeprom_len); /* temperature-sensor@4b - tmp75 */ i2c_slave_create_simple(pca954x_i2c_get_bus(i2c_mux, 7), TYPE_TMP75, 0= x4b); =20 --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998775; cv=none; d=zohomail.com; s=zohoarc; b=RqSk9y9N181S2/jXdyp4IWXwuPgnNLq27p0Q6MdH9ZCfF6Hh64TdOJ4iNbcLjnvF3mEQCd7ryDkVJiFOja1XLq2XlySSie7TK0t/3l8kbDATxPxL/Jn7aK0CmV+BWEsQPLAvYKNIfxI2+DdTEqTvCh+Hp+pwFmf2bniutuEkNmI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998775; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ebQk04CyPh/8mC3YTxA9itW1+9QJBQFW7D28xrLm5Qc=; b=is2+zHyscYuaiEQEoIACyqsjsYxwBqXgDZ4MgMQKWm6tgdjGkyshVqeop2ptx0CfAkrZEScz8c2e8d8+LfOSN5FjdNKxVGiAxhIoVNTVn8K2Qw1OGBTRXjQd64VuoIwtHN02hGJ7Eagm8FGSX2EG23nNjIBXHfMn552zbSzRZqU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998775164315.47451454981115; Wed, 17 Dec 2025 11:12:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww1-0005g8-Jw; Wed, 17 Dec 2025 14:11:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvy-0005dw-RZ; Wed, 17 Dec 2025 14:11:38 -0500 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvx-00015k-92; Wed, 17 Dec 2025 14:11:38 -0500 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 6F0CC140009E; Wed, 17 Dec 2025 14:11:36 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Wed, 17 Dec 2025 14:11:36 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:35 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998696; x=1766085096; bh=ebQk04CyPh/8mC3YTxA9itW1+9QJBQFW7D28xrLm5Qc=; b= XQFVrOgcCc+HtX+V8NGxj2eX6rFVBDXxDADFkWgZ+hRiCULm0u79vWDRYZ8UX4OB UBczdebNWXuxxlB6ghsshG+wa1n9hitXPIa+dscVK8KIKfo/LLrAhuXL7r6ZwZno X0wPaBSRT/V/bh5B0jx1vLvKPeWdDb8O6dgBIEmccL2g4KMqqTXBud4O3EZfoinj 4FJn0FPb81WgJqBX9aK1D5dOKAM52eu5oSRMxx8MoScyX6NjWjuMzSt+KPG9TWZx IFOiwMYLpB7KI65xVvD4xyDAJqRevH/kCOuhumc3lXx6lDutLG3w/no2nCO8Ptdb RjS+UAb21LvmgPM+jXQzow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998696; x= 1766085096; bh=ebQk04CyPh/8mC3YTxA9itW1+9QJBQFW7D28xrLm5Qc=; b=T CkwO4ZMjILrNH1wq6RUvQMp5zaAgQG/9v5paCEjQqVrjidQiz6rLdvXuoMYmIXT1 nJZbNyWN/xbK5IC5ZnXkz6DBQo2wlC2ihqVNCwIYhr4gq6WRkjjbV8f+ys7jhZHd HIK+AjWjJAZpA1x9i42HKLwLg0VDfHXpsLfbE0mA+CaXAR2i3o3TwXT1eQwb20Qx v7pzReawldGxBuSAUvGdUP9bRg5y4r0Qkxup56BZtHBz9bQFZroiKXbavNyH5jZa 2CBrZO8qpEbtMRVm1NpmCemELOYgwUMVssFp7V536pBkLQ9yTwn+kP2tFoY4pU40 Sg9yxVjpv+jJDeN92A8KA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:33 -0500 Subject: [PATCH 06/11] hw/arm/aspeed: catalina: add HDD FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-6-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2964; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=VGv2cXOMR+fpR4qDjJxOyivbclt3BXVWQFnOwLWmPl4=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBgHkBC/J86k60OWDDDph2yfS16063jDeQ3T 1weqIgRrj2JAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GYQKD/9ncLM4sCIOjfmixDZBFAQnOgViQxOTLxHz/qXQ+e+HH1ZllJyUw1PWcTYK201OAI0hDcl TWl+AFLnHuvYfGJedmW3FUYC5S8DHg+vYn2/Jclbcp421QXo3VYiBWLPNFXT4rN9OPr8pMKU/7y bj7YmpbdTFXjRQK5zgyN7d81oG3fV7/UBucJjRfX+0QLnVCJyS4/vtrCJWXRinyWVlVxrt0h6Dz NHJ8LhjD+Si/ZfG/7bnfL+WB8zvM6JD7ung/dENorDiwFq5E/ccRv7Vm0X7yxY3f7J4CTUVjptQ 8JYp8cXOfYk6LbAtxItlEWDPLzr74WweE6ptN4pHFFK3qSBrIv1g3BHjT26jnwuD2PEjKmS1l+0 TtkcN1WuNuqYCX4Je8FRkuHWcXtKBWh+P2qHWkhaGsUMf0Avh+eTzREEog204xR3yvsNekAXGyK /1WCECz/GX5CHXMxveCURyD7oD5epDMqpGiM0Z6T20eiNHLW5p8IgL+hEsMg4LXxOozFpVP7d8M TZGFVCHgcxR74LTd4Sbt6MtFIB9BYFfhbD59z9UTv0AgHxbPvCrN0SK7ITia8b1dLxVOENiWcYj diLgSPYWO9dFt+Kpl1t8CRZVg/4jWiyW00hk6xKkkYGb5gC2AHj7+1LiGeGl9RHF/8B88lskrDZ xpPmNWpFBy84GAw== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.152; envelope-from=patrick@stwcx.xyz; helo=fhigh-a1-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998777398154100 Use ipmitool/frugen tool to generate a HDD image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 41 ++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 17db9035bd..4cfde870af 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -227,6 +227,44 @@ static const uint8_t fio_eeprom[] =3D { }; static const size_t fio_eeprom_len =3D sizeof(fio_eeprom); =20 +/* + * HDD Carrier Board FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Quanta", + * "pname": "Catalina HDD MP (QEMU)", + * "pn": "00000000000", + * "serial": "00000000000000", + * "date": "01/12/2025 00:00", + * "custom": ["19-100319", "", "", "adc-ina"] + * }, + * "product": { + * "mfg": "Quanta", + * "pname": "CI-Catalina", + * "pn": "10000000001", + * "ver": "MP", + * "serial": "10000000000000", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t hdd_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0b, 0x00, 0x00, 0xf3, 0x01, 0x0a, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x61, 0xd6, 0x43, 0x61, + 0x74, 0x61, 0x6c, 0x69, 0x6e, 0x61, 0x20, 0x48, 0x44, 0x44, 0x20, 0x4d, + 0x50, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, 0x29, 0x8b, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x89, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x01, 0xc0, 0x87, 0x51, 0xd6, 0x44, 0x10, + 0x34, 0x45, 0x19, 0xc0, 0xc0, 0xc7, 0x61, 0x64, 0x63, 0x2d, 0x69, 0x6e, + 0x61, 0xc1, 0x00, 0xff, 0x01, 0x07, 0x19, 0xc6, 0x51, 0x75, 0x61, 0x6e, + 0x74, 0x61, 0xcb, 0x43, 0x49, 0x2d, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x69, + 0x6e, 0x61, 0x89, 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x14, 0x01, + 0x82, 0x2d, 0x0c, 0x8b, 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, + 0x41, 0x10, 0x04, 0x83, 0x71, 0xd9, 0xd6, 0xc0, 0xc1, 0x00, 0x00, 0x37 +}; +static const size_t hdd_eeprom_len =3D sizeof(hdd_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -330,7 +368,8 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) i2c_mux =3D i2c_slave_create_simple(i2c[5], TYPE_PCA9548, 0x70); /* i2c5mux0ch6 */ /* eeprom@52 */ - at24c_eeprom_init(pca954x_i2c_get_bus(i2c_mux, 6), 0x52, 8 * KiB); + at24c_eeprom_init_rom(pca954x_i2c_get_bus(i2c_mux, 6), 0x52, 8 * KiB, + hdd_eeprom, hdd_eeprom_len); /* i2c5mux0ch7 */ /* ina230@40 - no model */ /* ina230@41 - no model */ --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998810; cv=none; d=zohomail.com; s=zohoarc; b=e5Xa900a6BxNtnVsYvBcUAJbkxtzEPorLMDwUqwc8ezAJo9QP+yN/1ylCJXFnembS0Xi8Vm/kjLvvJY0Sf0Xh9qsgEIy3QvSvD1L1MjYz3R4fciTeHqHJULl5LXrLl/e4ljGTYrwcX94kzHV2cZcpmodjm2vQwObefnQUWupNCw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998810; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=qfeYsXVWAamQv+Ll4jDPpTtSNBLztoYOt1G2d/WxGMw=; b=SpQXSznOwxRUHgCnJO5Yx9jQS8V+jawfDwdiZFsUMWWsTdnHHHh0pZv3RhwqEi/LM83ecflUlJ3UwsaDuQhnPFflwBbR3oU12UUFOk+VdoAHlnqw3rn7oNPDZuPHWy/gYZYp+qoMaRxTTHPXL0LqD30QdgQFTGB7Y7RkU1dpdiY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998810476439.4576327353727; Wed, 17 Dec 2025 11:13:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww2-0005gg-Lu; Wed, 17 Dec 2025 14:11:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvz-0005ex-Tv; Wed, 17 Dec 2025 14:11:39 -0500 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvy-00016H-8p; Wed, 17 Dec 2025 14:11:39 -0500 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 63CCA140014F; Wed, 17 Dec 2025 14:11:37 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Wed, 17 Dec 2025 14:11:37 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:36 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998697; x=1766085097; bh=qfeYsXVWAamQv+Ll4jDPpTtSNBLztoYOt1G2d/WxGMw=; b= ESm4D5MflflwbPYfpx039023JlPMGl0mcfzK8q04182ZONcUjhOLsB9uGqZmwOfa VK5QROVFOVkYjWLSJK4n+jYwXwAmJPURnsbAPKlX9ClvXMx69GXs5LpnrfjRa858 4AvVQ0CEr+e1U2avSZxpt7//mp1umQmH5abLNhNS18B7aWyk67HpQ6t1xwrj6VHd wOuQYY/zbZbk8+v2BmwXvPSUQYcDEKIRkFDwOzWu18BCrL4VFW5Pb9t1QALggkVI W5XFB22cUwOaQ03GPU94/DfO+//j3HJQgGjVQ6erTO45RIXiUBE9R759VL7Uz5fu S30tEZIRP2JnOiElr6IHqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998697; x= 1766085097; bh=qfeYsXVWAamQv+Ll4jDPpTtSNBLztoYOt1G2d/WxGMw=; b=A LWKsjBqtV0etHttVzo3KFtufdWi+qElNvi3E88Hubi/AQYT8glKDUAo8XMdXkXo6 S+K6P5CSFEaSFM0bkQULAfItJAnivYrm85ctiMLLEJlZy+n/tP1J8dKwIu/lligD Q/MzFd3pdknpBnh9/qu0uRehBxt2650PXnKyOxwbJTtzR/Ocm6dRGHEUshkoVfZv XdaqAcQdeaCMUPUoG0ZulNi+C0IrYYbYD0XzJyjlwKzWd1mYbz4Wgujdkdz0tghR UNGnbXD081Vj5bZWcNr7kteGAGGwWsu/gXFU92xoeC3k/Q9qvsqcoLw8FRWCwQAD ToVqysCxlAwVRP8J4efDQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:34 -0500 Subject: [PATCH 07/11] hw/arm/aspeed: catalina: add GB200 FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-7-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3130; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=JSq4Zf5ecxblPDZJopak/nNSkZ7TP5kw4S/wVk7Xn+I=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBg1Cxzk5WdrFOAW4SAbefiXgygHvdAYdhXr o8hGGexiA2JAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GdFlD/45Thcd2ccfOvRpeq8AVnjEvCdGDz/JwtZhDgVq2Mf51qkjY6ZDV9u19J0u6pJsj+VTmYz AbxfMXpz/EgdvGR40d2ltqWq6ECIGn6AJrk7g2eLI2EO0AzzLtB+WmLh3jDETFEGejjmfQ1VXHx VkJtngO2rUj347cFAtLd5xDG5IXCztXwJ9OYKD8N7PkaP7gtJYhLCOX4UA/qnGMdvRoSXfAE4Lw XaMNwYJqjwMTR4ErYkarVpbL970naW/nBF+rIig5HOshSkMY3PLE3N3czwcTL+uHQiS089DlrWl /F/Jg1OU/6PhVjyxW31Hdc3/BWbCwZJZnr6uy8c23Cr1mTTnC8L9VNokamFvp38Wu3SoqBTnapK nthVw7aMx85/PjXHWVdqD18p+Mdj6rgjtBzqjmp30ScsjTeotYjoowMbYORT8f+CR/FsZWJvizD 0iJkOGRKEh0vyU7DodX3B6yBUnuS/1j9JaE7Nl32whEVsCCjE1bfSe6RTua1XKvU7nDQ4PmUntM Kc00zhNbrV7SrYlZUD11tAiE9DiQorFs8XaihxUXB4ZUO/WW9GJBJ/9o9dCweALIjq1nCYqBc0S MgHYjugE18akhtQhTwfNZ5tkaQOVhTRLdgdlJOYWjdsDg0Naufh1Ac8E5vYQOvNPovfnxNOXCQe fJ+yu1CfHsuR3FA== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.152; envelope-from=patrick@stwcx.xyz; helo=fhigh-a1-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998812229158500 Use ipmitool/frugen tool to generate a GB200 image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 45 ++++++++++++++++++++++++++++++++++++= ++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 4cfde870af..4dd72c615d 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -265,6 +265,45 @@ static const uint8_t hdd_eeprom[] =3D { }; static const size_t hdd_eeprom_len =3D sizeof(hdd_eeprom); =20 +/* + * GB200 CPU/GPU Board FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "NVIDIA", + * "pname": "PG548 (QEMU)", + * "pn": "000-00000-0000-000", + * "serial": "0000000000000", + * "date": "01/12/2025 00:00", + * "custom": ["Version: A", "Rework:"] + * }, + * "product": { + * "mfg": "NVIDIA", + * "pname": "GB200 1CPU:1GPU Board PC", + * "pn": "100-00000-0000-001", + * "ver": "E01", + * "serial": "1000000000001", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t gb200_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xf4, 0x01, 0x09, 0x19, 0x8c, + 0x19, 0xf0, 0x85, 0xae, 0x9d, 0x92, 0x69, 0x08, 0x89, 0xf0, 0x59, 0x51, + 0x18, 0x80, 0xc4, 0x65, 0x5b, 0x27, 0x8a, 0x10, 0x04, 0x41, 0x10, 0x04, + 0x41, 0x10, 0x04, 0x41, 0x10, 0x8e, 0x10, 0x04, 0x35, 0x10, 0x04, 0x41, + 0x50, 0x03, 0x41, 0x10, 0xd4, 0x40, 0x10, 0x04, 0xc0, 0xca, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x41, 0xc7, 0x52, 0x65, 0x77, + 0x6f, 0x72, 0x6b, 0x3a, 0xc1, 0x00, 0x00, 0x37, 0x01, 0x09, 0x19, 0x85, + 0xae, 0x9d, 0x92, 0x69, 0x08, 0xd8, 0x47, 0x42, 0x32, 0x30, 0x30, 0x20, + 0x31, 0x43, 0x50, 0x55, 0x3a, 0x31, 0x47, 0x50, 0x55, 0x20, 0x42, 0x6f, + 0x61, 0x72, 0x64, 0x20, 0x50, 0x43, 0x8e, 0x11, 0x04, 0x35, 0x10, 0x04, + 0x41, 0x50, 0x03, 0x41, 0x10, 0xd4, 0x40, 0x50, 0x04, 0x83, 0x25, 0x14, + 0x01, 0x8a, 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x11, + 0x83, 0x71, 0xd9, 0xd6, 0xc0, 0xc1, 0x00, 0x17 +}; +static const size_t gb200_eeprom_len =3D sizeof(gb200_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -403,11 +442,13 @@ static void catalina_bmc_i2c_init(AspeedMachineState = *bmc) =20 /* &i2c12 */ /* eeprom@50 */ - at24c_eeprom_init(i2c[12], 0x50, 8 * KiB); + at24c_eeprom_init_rom(i2c[12], 0x50, 8 * KiB, + gb200_eeprom, gb200_eeprom_len); =20 /* &i2c13 */ /* eeprom@50 */ - at24c_eeprom_init(i2c[13], 0x50, 8 * KiB); + at24c_eeprom_init_rom(i2c[13], 0x50, 8 * KiB, + gb200_eeprom, gb200_eeprom_len); /* eeprom@54 */ at24c_eeprom_init(i2c[13], 0x54, 256); /* eeprom@55 */ --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998764; cv=none; d=zohomail.com; s=zohoarc; b=WGE1dEdbEv49WX2k+CxNrMOya4Zvu6S8mvGK7UB0dRhH9oxzWlcMFKibYy/mEAWyrAexrG38HvuQYiMm75PBnBaDOneAiC99EyyPR6y5LInANncNtxSE8C9iyr3UaauOUAd9N6aoBfqSWN9EwhtiwYm7zVqf6bNz8Ny37kXonbU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998764; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=e3tdTU5FgZzFrFyCe8/22sGzfbLFpKr2Ary/1eiPI3g=; b=ejUOtNNPLL4VgzVocDQfyICmxICC4HCAphbOXBalEx5/H7ev5Dusz25yUcY0fDwfOIOT9SSURsGTol+KFk86i/eIWHnh12qMSDVAi9NV8FnsoD3hZnec6JZJQ0HPO5g0RXh+iVb1GKvbw6tptx3DIU5JMbL6dS0rsXh2H+2uXa0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998764472258.9562668959461; Wed, 17 Dec 2025 11:12:44 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww4-0005iL-M0; Wed, 17 Dec 2025 14:11:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVww1-0005fq-2H; Wed, 17 Dec 2025 14:11:41 -0500 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVwvz-00016a-5S; Wed, 17 Dec 2025 14:11:40 -0500 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 4289FEC016D; Wed, 17 Dec 2025 14:11:38 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 17 Dec 2025 14:11:38 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998698; x=1766085098; bh=e3tdTU5FgZzFrFyCe8/22sGzfbLFpKr2Ary/1eiPI3g=; b= hlXDYetzk/FXTDHwV8/7dpSZUkp7S7Ixzh6YaVh922XlIre16Z52B3ccADUsGOeC wgxoOeSrcrQYFsifku1rnvzdMlqrlAoQMHgcVKAPgKQROJ59saXGRnfxLDSiajnT ByCVZQJ5C4HnU1+NeQmJL7QW33Yu71AeLebGyi1zvNFNtLPz0rVc9qFfiQuXZorz rGI1GEIqz7+W5vRurul7aaBcFlf5xReZvrplSgrWLRTWYtNBrhEfpiZb3d3kLqMp REYRkZ4b7URgr239MQD6ujnEzHIVqEkwZ5XBGwH77/fEHvUoVDjPlmUecSOvpZQ9 4qPehObggeJJAdVsH3hj3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998698; x= 1766085098; bh=e3tdTU5FgZzFrFyCe8/22sGzfbLFpKr2Ary/1eiPI3g=; b=L 2TwPYtb2E1ytbo8H3Akr6N+luFipztkgVN/4QVDrVNTwNu714mUBcDRP994yeuYZ ujRV1tDJtv/VJ++xIfP/8dY3Yw5tE1cvhTAS8qjS2WA0SNSRWbT8N9esf+DTzinW +PTPWCpkZK/Yc85pMsxslUrbFvpPnDFMSxLSyXgYfcboyqbL2aXiipLytkxDUzFO ExWP3KEsxlPSwZK03HPA71kYXDTJLusQHW8lEUS55JlKU4pVv3aY2/kWvAXyXcsg KpKsCcjDVtZkKAiZ5++YQeD/ed7+U+IB8PvVf1fqWY58e8cAZFNqpF7uieKvF3tY gSnQHA4QsBcXHOUm88sKw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedunecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:35 -0500 Subject: [PATCH 08/11] hw/arm/aspeed: catalina: add GB200-IO FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-8-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3520; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=YEYbZFVnyrAhmT/IuKuOMQN6c9X+TkUpscRK8pFOgIQ=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBgbY1yG2MQ4rM3BakqeQFFpB1CYAPVLmZW8 8LTONm9moyJAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GYXtD/9BztB5h8j++KXt3mg5quP0TgmrndTnvrgZ3wEDxa5+RCmPYucVmS2vcmapPnnptqFKEY9 cNl63VdO4q4m5/T17+bnz7ip/l8avBk/ldSjQ58Tu4txpQm+pcrWOSr7/cRbAaADzJLzzzbtJV8 trRX5maZIVoTQcOm9lVt4nnsgh88eX42XZPtKvj+yrymGawlKfGLemJlSD46fT8MtqNIyxEKibr zFiUCtW3NOcffcyHXdVPN4zXEr7CjHjzH5OWhxhBSi0cRBVr7MEoi3UdmzA7JisPvl3zE9INhUl UFk+3ZUl/DGQ28EUr5ujVs2Xqnk2MqtA13DOOyuBHVGQhQhV3hyRcfjtchvcgFc4Pbf8d0KF4+W Awo8Trd7FwxWUfQ0Tk/8Z0Fb6r/57ohS1peOLfJiEg2UmHWuoFEKG6afioiX8ozdTG98wSY1EDA HhwrEEZhpV6UIkUmBSws4/XTwDd8HhE1Rkm1IA6qnqpWS1clAbRQ7zvDhy1bJPS4Z0tCnGMH/2n VhT8V4ty2rXoMf2ud0xdXNlUDPFNH7Xm0c+RKMZznfNCH+cLCYmRDfblRihBaogsXEheYQgwYot u2c7SvQxqAPk4CICSSdWpdTzK12Jb9EqE7L5Cp/6+DUaNl1lGHmBfvHjWJ//Yd/l9TtLTiCOgG1 ZOnj2Nep/ExhrqA== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.151; envelope-from=patrick@stwcx.xyz; helo=fout-a8-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998766393158500 Use ipmitool/frugen tool to generate a GB200-IO image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 43 ++++++++++++++++++++++++++++++++++++= ++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 4dd72c615d..37f0e1b65e 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -304,6 +304,43 @@ static const uint8_t gb200_eeprom[] =3D { }; static const size_t gb200_eeprom_len =3D sizeof(gb200_eeprom); =20 +/* + * GB200 IO Board FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Nvidia", + * "pname": "2x ConnectX-7 Mezz (QEMU)", + * "pn": "000-00000-0000-000", + * "serial": "000000000000", + * "date": "01/12/2025 00:00" + * }, + * "product": { + * "mfg": "Nvidia", + * "pname": "2x ConnectX-7 Mezz", + * "pn": "100-00000-0000-001", + * "ver": "A1", + * "serial": "100000000001", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t gb200io_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xf4, 0x01, 0x09, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x4e, 0x76, 0x69, 0x64, 0x69, 0x61, 0xd9, 0x32, 0x78, + 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x58, 0x2d, 0x37, 0x20, + 0x4d, 0x65, 0x7a, 0x7a, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, 0x29, 0x89, + 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x8e, 0x10, 0x04, + 0x35, 0x10, 0x04, 0x41, 0x50, 0x03, 0x41, 0x10, 0xd4, 0x40, 0x10, 0x04, + 0xc0, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x01, 0x08, 0x19, 0xc6, + 0x4e, 0x76, 0x69, 0x64, 0x69, 0x61, 0xd2, 0x32, 0x78, 0x20, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x58, 0x2d, 0x37, 0x20, 0x4d, 0x65, 0x7a, + 0x7a, 0x8e, 0x11, 0x04, 0x35, 0x10, 0x04, 0x41, 0x50, 0x03, 0x41, 0x10, + 0xd4, 0x40, 0x50, 0x04, 0x82, 0x61, 0x04, 0x89, 0x11, 0x04, 0x41, 0x10, + 0x04, 0x41, 0x10, 0x04, 0x45, 0x83, 0x71, 0xd9, 0xd6, 0xc0, 0xc1, 0x04 +}; +static const size_t gb200io_eeprom_len =3D sizeof(gb200io_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -329,7 +366,8 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) i2c_slave_create_simple(pca954x_i2c_get_bus(i2c_mux, 1), TYPE_PCA9552, 0x20); /* eeprom@50 */ - at24c_eeprom_init(pca954x_i2c_get_bus(i2c_mux, 1), 0x50, 8 * KiB); + at24c_eeprom_init_rom(pca954x_i2c_get_bus(i2c_mux, 1), 0x50, 8 * KiB, + gb200io_eeprom, gb200io_eeprom_len); =20 /* i2c-mux@73 (PCA9546) on i2c0 */ i2c_slave_create_simple(i2c[0], TYPE_PCA9546, 0x73); @@ -345,7 +383,8 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) i2c_slave_create_simple(pca954x_i2c_get_bus(i2c_mux, 1), TYPE_PCA9552, 0x21); /* eeprom@50 */ - at24c_eeprom_init(pca954x_i2c_get_bus(i2c_mux, 1), 0x50, 8 * KiB); + at24c_eeprom_init_rom(pca954x_i2c_get_bus(i2c_mux, 1), 0x50, 8 * KiB, + gb200io_eeprom, gb200io_eeprom_len); =20 /* i2c-mux@77 (PCA9546) on i2c0 */ i2c_slave_create_simple(i2c[0], TYPE_PCA9546, 0x77); --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998766; cv=none; d=zohomail.com; s=zohoarc; b=EcCbwAtm85efprfWwQjJgdiYdpTPeL6qdzX6225f3Ko4J8phuj3EuFkB4/jpIwUg6KSRVAMuxlxgd31DzW7XEr16psGrDkzbgh4qbrSIZ4Q/lFsE8D/bXkdAt9jHCsPTZTjJL/9wqN8uBPJ4yDu/p6ItNQoDu5xg1hWb3UZlEi4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998766; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=1yxv9VgjYUFC3WhMhsCWJn77lXJ2rnty7VmsWWQT5+U=; b=OomxgdRrqo8DyUbY5HrkY1mRZLelT7URZF5g1do0taDUi01VTQkj5PolzuB4DvmpPTbxTv3iBb4Dw51o/0uch1trhBebe6lQvj7eutmGyo3CKzt0PSWKVtO/sFqWY25r3ojv2X68UERM88fcaLChD2Sr8aY0zJouYlXKBkEjx0Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998766332922.5868688773865; Wed, 17 Dec 2025 11:12:46 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww7-0005ld-3U; Wed, 17 Dec 2025 14:11:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVww1-0005gC-I4; Wed, 17 Dec 2025 14:11:41 -0500 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVww0-00016x-0E; Wed, 17 Dec 2025 14:11:41 -0500 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 259B91400171; Wed, 17 Dec 2025 14:11:39 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Wed, 17 Dec 2025 14:11:39 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998699; x=1766085099; bh=1yxv9VgjYUFC3WhMhsCWJn77lXJ2rnty7VmsWWQT5+U=; b= ek7NUxIXgGuqqW0zRELO1xDYmxlu7hwiFxVoxQE1LZBVVQwvjvJf+yKxyDN1kgXj Drp8fLNqhH8TbxN8N2amv7E3UhZm3Pxm7ZdmraVlY2+ULQN/AfnhYnvzrGI93ybg xnyh8SlpEKMaGh+Eoe9wgNMUIpYthrQLLGlll/oJTi+WojzvTMVdibTD554zkQWU xykfvRT6LyC94KaDahxIzzF3+G7A84B2No4eZ4y/EwiugJoVFk29ByalUiPmf4dh CJj1oz7GJ5TSlYrwT70hJmDK70VT0x3GrmIm/UMDJvAXidXiiw7TqMW+4F0WH2Q1 BZO639RuvdTeWCs6MFQYzg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998699; x= 1766085099; bh=1yxv9VgjYUFC3WhMhsCWJn77lXJ2rnty7VmsWWQT5+U=; b=T 0T6eEJxbP34MC+v00bjXTxcNl1tA7idMRrEM+ZQgafhRzAlRuQixYsL3nf3Cuj96 0JvjWyGqmjSsORjoVWo12n5IoMezrG58Jcp9QDu5xC2ljCnfAoZk1j+/Mo2YyE7t tE7TZ+Om+ugKm5B9uUJISQY6wtnkJCUGWeTi9lSwabdOfMZvsGg6kpA1TyJ5SNqf n7mE9MLTmXukQV/64wDyDt1qn752Vavmga6K/YNd+8/NXAnY2useWSNX9ta2caJQ JLVBwsZlZ9TwZ/TVzsQwAze5G9K5PhHHeEALHyjI2YjpNBPbU+qqLYKxtI+GxQJe dL4QJRgCxiYx/tModCHAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedunecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:36 -0500 Subject: [PATCH 09/11] hw/arm/aspeed: catalina: add HMC FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-9-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2970; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=3qON4J0qifGjcPDpqFfp57Z6rI2eYsG2QGpKgDuLtQE=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBgE8QnMCJblomUppvgqnpd/H4tecQ2/u21z ArsZp6PfqqJAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GWsDEACiBuMsxFAcklCKwrUb0m2rdgBt+5Czc90F7JReGzoPWGNZmqmBuXOKzoVR8AB1Ev9yCL5 rAAYgxFaZBHe542ndrXdZNxzxbcnxrRKtob2l1gzueSxCtr2LY0Uqvca3gIDHFhfyptYOYenv5i Xd1E0fxr1eAmSXc+eU7t5dO5txzC+ZGuAnEMO04kdXiOkInT/1Se5Zo4QgCv7sPsI+X0rWUMmA/ G677XmfCeuH9G75Y/baXVJOgGt5ZVM/6j65KWuuAf9bRfWkvekucDpO4wfB2CaXwjtyoRUNDkTJ jxMUzBq8IciTRH6aqAj5NJy8/RNsudQhmIyrlHQFEKTg0PjiByj432gEZup4EVSEufiRdMCbjL+ H9+D0OLHQhn7Zmh4wc/imod6nQeiBdBpytStW2f72ix2pr1OCyEM9y+WlPq81/+SjK+HsufzfYx /tEX3JuMUYn1R75P5afk8mxCxUUgGQN7ZWxShgTFQIrV5AY1m3t+cVfjvWLDkhN1fKqxU9onk0k M2VlRJZhC+MgOH+ER7VdtXLyR1HEHvkMnMFiR118nUAJdfpEA8+EwrZ/kvCt95Fm5yhQgobP8nT RvqZMykyLytfUr3c0IQ7/OIkZD6Wrz8nBsgK9JB7LKLgw9XUg0p5Ll64346d2Iqk6C18sQyr76M rzMw3eunjsG3gTQ== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.152; envelope-from=patrick@stwcx.xyz; helo=fhigh-a1-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998769214154100 Use ipmitool/frugen tool to generate a HMC image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 42 ++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 37f0e1b65e..2c9b4b6fff 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -341,6 +341,46 @@ static const uint8_t gb200io_eeprom[] =3D { }; static const size_t gb200io_eeprom_len =3D sizeof(gb200io_eeprom); =20 +/* + * HMC ("HGX Management Controller") FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "NVIDIA", + * "pname": "P4764-A02 (QEMU)", + * "pn": "000-00000-0000-000", + * "serial": "0000000000000", + * "date": "01/12/2025 00:00", + * "custom": ["Version: G", "Rework: R0"] + * }, + * "product": { + * "mfg": "NVIDIA", + * "pname": "HMC for GB200 NVL72", + * "pn": "100-00000-0000-001", + * "ver": "A1", + * "serial": "1000000000001", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t hmc_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0b, 0x00, 0x00, 0xf3, 0x01, 0x0a, 0x19, 0x8c, + 0x19, 0xf0, 0x85, 0xae, 0x9d, 0x92, 0x69, 0x08, 0x8c, 0x30, 0x75, 0x59, + 0x54, 0x13, 0x42, 0x12, 0x80, 0xc4, 0x65, 0x5b, 0x27, 0x8a, 0x10, 0x04, + 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x8e, 0x10, 0x04, 0x35, + 0x10, 0x04, 0x41, 0x50, 0x03, 0x41, 0x10, 0xd4, 0x40, 0x10, 0x04, 0xc0, + 0xca, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x47, 0xca, + 0x52, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x3a, 0x20, 0x52, 0x30, 0xc1, 0x00, + 0x00, 0x00, 0x00, 0x81, 0x01, 0x09, 0x19, 0x85, 0xae, 0x9d, 0x92, 0x69, + 0x08, 0xd3, 0x48, 0x4d, 0x43, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x47, 0x42, + 0x32, 0x30, 0x30, 0x20, 0x4e, 0x56, 0x4c, 0x37, 0x32, 0x8e, 0x11, 0x04, + 0x35, 0x10, 0x04, 0x41, 0x50, 0x03, 0x41, 0x10, 0xd4, 0x40, 0x50, 0x04, + 0x82, 0x61, 0x04, 0x8a, 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, + 0x41, 0x11, 0x83, 0x71, 0xd9, 0xd6, 0xc0, 0xc1, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x65 +}; +static const size_t hmc_eeprom_len =3D sizeof(hmc_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -493,7 +533,7 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) /* eeprom@55 */ at24c_eeprom_init(i2c[13], 0x55, 256); /* eeprom@57 */ - at24c_eeprom_init(i2c[13], 0x57, 256); + at24c_eeprom_init_rom(i2c[13], 0x57, 256, hmc_eeprom, hmc_eeprom_len); =20 /* &i2c14 */ /* io_expander9 - pca9555@10 */ --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998805; cv=none; d=zohomail.com; s=zohoarc; b=DOSTfLngW3FhwUd8nH+w2IUXLrR6WWMmj+O32ADkGbT2Z3A5n32Gen/TM9j61Df6ZLerHqdh90qOi4lbE5tMmQE9rlXdDvCfZEkP3JY5MCOJzXrDKmJPG64m3ZX0w8xgIwWxzVrQot9Zi2uESuJ0qKhY6ZOJsN3xsq+nguSvm/4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998805; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=trdvBtKEUmPko8wZZZRCAPQSdqmLgmNhs+xnFYm/J7A=; b=fHKkAPzTQ18SQVIjYDhTIpuv2Mu7KVCL7hSVTQdUW8zF70HxJJ8fOv4nYVsONw7n11ZJGOItfgtn7RBnJJw9UhUtIUC6uPD6TaQislm22iffR5ZOFCEzWcDNypmdzj3he5ZqIJB1IeoonL1vF8vx7wDJKUopefQfYoRlReI76ik= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998805608240.04940124942357; Wed, 17 Dec 2025 11:13:25 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww7-0005lm-Uj; Wed, 17 Dec 2025 14:11:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVww2-0005gh-IJ; Wed, 17 Dec 2025 14:11:42 -0500 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVww0-00017E-VI; Wed, 17 Dec 2025 14:11:42 -0500 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 0DCAF1400153; Wed, 17 Dec 2025 14:11:40 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 17 Dec 2025 14:11:40 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998700; x=1766085100; bh=trdvBtKEUmPko8wZZZRCAPQSdqmLgmNhs+xnFYm/J7A=; b= p6x6aS1vj9Rks5K9YhVeeNY8BlCo9pe0ub47lnylV0ESQxno3RTy1qHdWdWxNMpL DojaDosvg/GDe6uxAO4odmWxpSH54lErrnwGHJOiTw7fhl20/MWIZY7lAdZpWsbR IrftXsRzmA5IWXM6cbEHWLZ3vC2AqnkAN4R1jMupFYpE70vwByGgZGi8+kfOI5Zs Z9TAoYkj7iw1Igj5soJF/7OcP5pOT4HJPvKxyDXi8aKYhAZqyHehQsEj6shWWzl5 5qoof24KnVexdzKgtdwmQUBrjj384OXfmrqqGohqe8VJUVQIhU+ppaChQyLjLLQL 0/lkULVhKGo0bEpZPQQTjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998700; x= 1766085100; bh=trdvBtKEUmPko8wZZZRCAPQSdqmLgmNhs+xnFYm/J7A=; b=i DGK+MSUoU6SV+/QP9TiiLVQpGPLZy+3S8lnuqhNDUmfUa+zZoymFa4GDiFAGG8hH kIiIZJnUoPYZSx2ph3FWfL2dPwR3BlW9k9XWaQs7Ykbg0piNqYZADFaQ8m8pBxx0 lolAdtWfXdwTlhk+YTQR3zq2I/qcOHkRNZa2VKs9zNXTIpH2EAGZUsLyMDPPRw0g XVRazf0i062MIY6ERXEFsaVRrGA7bC/VVElM7QHodHuiuLZOzzSYd8IpKwKWrKNQ V//z3X9VT2rX1L8zGMRoQqHL3YQkhMbX39WCaGyYbCoFNPq18W9+XH6suE9EKH4s Y9ka5QJG5xeZq/uHPJ/Sg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:37 -0500 Subject: [PATCH 10/11] hw/arm/aspeed: catalina: add NIC FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-10-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3292; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=AqK7FC2aq6QrbLuNqpsdQ9FZzJn2q1br67zuerRR6nU=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBgeHMkfYMSr6BTFoN7LnM9f/kteb5pZya0U NrPmsgoil2JAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GT23D/911R58tATUBEdSNMy0X7ZFgE+F7NAy0G9WU2Em+CLTrIxFa8usDHswsniitcSzcKrP+pq LlCdcpX6MPCn+qhuYC1gAxwwit35qAtBsv6mCGgOaxyXUvbCwEXl5eyWtjG+LzAKTfb7yugAJt9 t3U3G8k8q3CmcZJ7XnCUiWJ8w1SGHMUwaeVCPg9k2TFKLDSv/EUH5XjddmzV9CB35HjtN8qPAmA LqPVrq4fl/Z9L28V1gan+XIOiTVqtZVBoVlhdskNFsoOJPtu1PBJA8LJziaZ4FUDotIOY1UANsc LGA92448ll4EwIfC0oNdxu9D+pn28YmJGAaLl2rPAFHrGvnf37ce5LonFxbGO1V4w2RXQ7352kO 4crTra9ZFTC4W/YzBvOqA/14exlgZVRtxH0GrHbdxD0/uFDL50gJo4uPa6dFYKVSpdBG2YlqGTL aO7BzIO/VVtJBLSUQ3zuxeX4dJYEaHSXVj3y42kd3tEHtCI8UMh4WLsqIlZBsRVwxD3CFJ3YK6J WlXMZfF8YPWgWvEcqpwpo+bBsng8fsCg9X7GhzkwR02u7vNqGGZzz/SegkZMRh4u94FUiqbeT0e CM8OdAc/40hTc+yZwBenXl+3oUC/V+SS+1bXNWtOKA6DKJRUyfNkgLWkYTBLE7RQxwjvxmuL+/J LiPNBlcE7+1ykcA== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.152; envelope-from=patrick@stwcx.xyz; helo=fhigh-a1-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998806522158500 Use ipmitool/frugen tool to generate a CX-7 NIC image based on a sanitized set of data from a real device EEPROM. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 42 ++++++++++++++++++++++++++++++++++++= ++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 2c9b4b6fff..5044441f38 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -381,6 +381,44 @@ static const uint8_t hmc_eeprom[] =3D { }; static const size_t hmc_eeprom_len =3D sizeof(hmc_eeprom); =20 +/* + * CX-7 NIC FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Nvidia", + * "pname": "Nvidia ConnectX-7 OCP3.0 (QEMU)", + * "pn": "CX70000000-000_00", + * "serial": "000000000000", + * "date": "01/12/2025 00:00" + * }, + * "product": { + * "mfg": "Nvidia", + * "pname": "Nvidia ConnectX-7 OCP3.0", + * "pn": "CX71000000-000_01", + * "ver": "A7", + * "serial": "100000000001", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t nic_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xf4, 0x01, 0x09, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x4e, 0x76, 0x69, 0x64, 0x69, 0x61, 0xdf, 0x4e, 0x76, + 0x69, 0x64, 0x69, 0x61, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x58, 0x2d, 0x37, 0x20, 0x4f, 0x43, 0x50, 0x33, 0x2e, 0x30, 0x20, 0x28, + 0x51, 0x45, 0x4d, 0x55, 0x29, 0x89, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, + 0x10, 0x04, 0x41, 0x8d, 0x23, 0x7e, 0x41, 0x10, 0x04, 0x41, 0x10, 0xd4, + 0x40, 0x10, 0xf4, 0x43, 0x10, 0xc0, 0xc1, 0xc3, 0x01, 0x09, 0x19, 0xc6, + 0x4e, 0x76, 0x69, 0x64, 0x69, 0x61, 0xd8, 0x4e, 0x76, 0x69, 0x64, 0x69, + 0x61, 0x20, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x58, 0x2d, 0x37, + 0x20, 0x4f, 0x43, 0x50, 0x33, 0x2e, 0x30, 0x8d, 0x23, 0x7e, 0x45, 0x10, + 0x04, 0x41, 0x10, 0xd4, 0x40, 0x10, 0xf4, 0x43, 0x11, 0x82, 0xe1, 0x05, + 0x89, 0x11, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x45, 0x83, 0x71, + 0xd9, 0xd6, 0xc0, 0xc1, 0x00, 0x00, 0x00, 0xf3 +}; +static const size_t nic_eeprom_len =3D sizeof(nic_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -514,7 +552,7 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) /* temperature-sensor@1f - tpm421 */ i2c_slave_create_simple(i2c[10], TYPE_TMP421, 0x1f); /* eeprom@50 */ - at24c_eeprom_init(i2c[10], 0x50, 8 * KiB); + at24c_eeprom_init_rom(i2c[10], 0x50, 8 * KiB, nic_eeprom, nic_eeprom_l= en); =20 /* &i2c11 */ /* ssif-bmc@10 - no model */ @@ -553,7 +591,7 @@ static void catalina_bmc_i2c_init(AspeedMachineState *b= mc) /* temperature-sensor@1f - tmp421 */ i2c_slave_create_simple(i2c[15], TYPE_TMP421, 0x1f); /* eeprom@52 */ - at24c_eeprom_init(i2c[15], 0x52, 8 * KiB); + at24c_eeprom_init_rom(i2c[15], 0x52, 8 * KiB, nic_eeprom, nic_eeprom_l= en); } =20 static void aspeed_machine_catalina_class_init(ObjectClass *oc, --=20 2.51.2 From nobody Mon Feb 9 22:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1765998826; cv=none; d=zohomail.com; s=zohoarc; b=X0TFY4RGeVz/YATq9ZPC/oL8/2RqN4KH08BodtsBYmfR1Q5ekEG6/IPdKtO14UnNOl7W9GhybZMMPq92Z1aFxN8wYEdy31SMWqgDapj2JAxJE3AvxvQZi5pHNTQij263ZelIR4y/YZSIAO+AMK1/DY4q6OvLdF2yxLYSRew6U3U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765998826; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gKj1H52jdX4JqTyoIYt0DUYRT70Xq/RB6Gg3pGSwHsI=; b=Lr6m4pUoZLIvzQzZP28LrT3kyavNAjGPT2yCFRb8ErkxNPO5pBizXn0qzgcknCfcJSJxq/KEesEhR3T+QKb5CfWViQNaoT/JhRu2CjRuEqyJnKmEOGwJ5gUtjl3E+wRYIt8gBKIBZce7oOQwyjLEx+xe5duWdgYvPna7i+Y5zos= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1765998826117958.2824316862875; Wed, 17 Dec 2025 11:13:46 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVww5-0005jX-I9; Wed, 17 Dec 2025 14:11:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVww3-0005hJ-Ff; Wed, 17 Dec 2025 14:11:43 -0500 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVww1-00017S-Np; Wed, 17 Dec 2025 14:11:43 -0500 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id D00E3EC0148; Wed, 17 Dec 2025 14:11:40 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 17 Dec 2025 14:11:40 -0500 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Dec 2025 14:11:40 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1765998700; x=1766085100; bh=gKj1H52jdX4JqTyoIYt0DUYRT70Xq/RB6Gg3pGSwHsI=; b= iDtLO1uubR9dXuLDOYdwwwGNiqR+4CUhKSKp9WbVNeTxSAGhrDaEfjS/wkIGF836 eP2xtlaSZ7ECO6oxxQoVfAMjfYWF4wpiqB3VQ9r9uboa5ioS90EaHPXDVOChRbD6 l80HeymAGJF59nm1cz0sR9EidbAMxn2r8BsLRWJ0QWzgn1V4Tbmj/0rt3/vklcV1 UlumeOxSgZCrNYGZqTuzYHHRkTKJmxNDQTbOQ/SDTTnbs0chFFe/dr+ULhgBidO0 mocTneBobRGReVmTe5lQl6CFIGHEjk0AyFk66oUuSE+2P4b50K8QyicQutA8XTUz mP6ilV4wVhcq+VQZ3fuhGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1765998700; x= 1766085100; bh=gKj1H52jdX4JqTyoIYt0DUYRT70Xq/RB6Gg3pGSwHsI=; b=S UtVEfT327TigzX6VNsKPfY5ZUU6MLx4mFPDxry7JQp+hZmndVgiCKVqG316BOS8G I3Mycw7YDhq0E1GhDLsShkS5nvv1Fl40zh2/UbeigP6P24M5HRkcSHxbYPyTTY6i uKsavvCTUYSb8ZQwtGMRQezJxn6edpGEE+O6GXQtVKmEGZBDLDnhxo4Pm3Dw+wsI /CccLv3b+D+wZd6Aa14PllH3S40mpHNBYC5m62Bw6lLZhbAIMileDzD0ZSMe1FGi PY1VAcJtHXuAFtg9BAXl5tHQAhAGIWk2SXQ+tonaStk4UIIM60Qw3g+ErdSdkkAf Sn4bmFARHAlpExkwH1e2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdej necuhfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsth iftgigrdighiiiqeenucggtffrrghtthgvrhhnpeehjeejhfektedtuedtgfegjeekvdej gfehveelhedtfffhudevjeeikeehgfeltdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftgigrdighiiipdhnsggp rhgtphhtthhopedutddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphgrthhrih gtkhesshhtfigtgidrgiihiidprhgtphhtthhopehpvghtvghrrdhmrgihuggvlhhlsehl ihhnrghrohdrohhrghdprhgtphhtthhopehsthgvvhgvnhgplhgvvgesrghsphgvvgguth gvtghhrdgtohhmpdhrtghpthhtohepqhgvmhhuqdgrrhhmsehnohhnghhnuhdrohhrghdp rhgtphhtthhopehjrghmihhnpghlihhnsegrshhpvggvughtvggthhdrtghomhdprhgtph htthhopegrnhgurhgvfiestghouggvtghonhhsthhruhgtthdrtghomhdrrghupdhrtghp thhtoheplhgvvghtrhhohiesghhmrghilhdrtghomhdprhgtphhtthhopehqvghmuhdqug gvvhgvlhesnhhonhhgnhhurdhorhhgpdhrtghpthhtohepjhhovghlsehjmhhsrdhiugdr rghu X-ME-Proxy: Feedback-ID: i68a1478a:Fastmail From: Patrick Williams Date: Wed, 17 Dec 2025 14:11:38 -0500 Subject: [PATCH 11/11] hw/arm/aspeed: catalina: add Cable Cartridge FRU EEPROM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-catalina-eeproms-v1-11-dc7b276efd57@stwcx.xyz> References: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> In-Reply-To: <20251217-catalina-eeproms-v1-0-dc7b276efd57@stwcx.xyz> To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Peter Maydell , Steven Lee , Troy Lee , Jamin Lin , Andrew Jeffery , Joel Stanley , qemu-arm@nongnu.org, Patrick Williams X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3469; i=patrick@stwcx.xyz; h=from:subject:message-id; bh=UAIHiNVWOoGfAlUZ/SDuOB3pVwIMyRegj1WLMWCJoQw=; b=owEBbQKS/ZANAwAIAasDR8wtAMEZAcsmYgBpQwBg57zDXncJHIO4HkF2wmtnKsBJtVOX4NHtK z8MzuoZmCKJAjMEAAEIAB0WIQQEYP2KLgsT1w1uokGrA0fMLQDBGQUCaUMAYAAKCRCrA0fMLQDB GcI0D/96Ld8yBdDY7kmFwS9WZv0UNNCpcOsvXqqUq3PalNCtrE+ZGYNX1bLmw2O28EtGrncCwYo F7mtGLhO3MqS1Yy0ssbRRLl7TCVKpZCBRpI4XrtHRQ17GGtz2zf8pTQzEHavzmpvtY5aowmpRQ6 fg09QNxw8owA3GsGpj0Mfvs7Znwvb1elzbzNXaHx++msJuPISethlSEVzSKIECG+jBDCWBVv+sy HpLFLlyTYvOc1TBgZ5BBTlF9qwmCo0venrIuwSyCB/tsL16CJ2ghJqNq4Dga61E72xMF38S7Z50 Gow84VzIRJkq+DGvLRJ/rjer0E6WShLHj5M1p9ptUvDzdvzm23tL1wkdGO1FId9ok6voaZ+pQoX WN7a3mak/F4fAFsS760ecF+gp6DmhWiIxFJmycPfLEE7QdtfMPQNxFZu6xvyyUKadllz9Gte2nY T4h+aGTGAAhVxuhH6T6X9YU/QmfVS1rOJe1Wu0GMdKZb9NCFdgmHDTcTlsiTYNupihX+MTAqXfM uvEIVLI6NSmO83EqhU7+r72xmuKn/2VtQmG/8597TZzZBMWn0ropGDzXZuwurL65G8h172yAII0 vSHQcRRywZERGWFIjF4g/S1L29VTP2RlwqBc00Yt/TF2KYPYaDpzuapsUfwizDZD4I6LM/9CJw+ oRDCxvyxNTbnP+Q== X-Developer-Key: i=patrick@stwcx.xyz; a=openpgp; fpr=0460FD8A2E0B13D70D6EA241AB0347CC2D00C119 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=103.168.172.151; envelope-from=patrick@stwcx.xyz; helo=fout-a8-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @stwcx.xyz) X-ZM-MESSAGEID: 1765998827920154100 Use ipmitool/frugen tool to generate a Cable Cart image based on a sanitized set of data from a real device EEPROM. The EEPROM bus/address did not match device tree for one of the EEPROMs so move it from bus 13 / 55 to bus 12 / 54. Signed-off-by: Patrick Williams Reviewed-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast2600_catalina.c | 46 ++++++++++++++++++++++++++++++++++++= +--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/hw/arm/aspeed_ast2600_catalina.c b/hw/arm/aspeed_ast2600_catal= ina.c index 5044441f38..4edb30bb16 100644 --- a/hw/arm/aspeed_ast2600_catalina.c +++ b/hw/arm/aspeed_ast2600_catalina.c @@ -419,6 +419,44 @@ static const uint8_t nic_eeprom[] =3D { }; static const size_t nic_eeprom_len =3D sizeof(nic_eeprom); =20 +/* + * Cable Cartridge FRU data. Generated with frugen. + * + * { + * "board": { + * "mfg": "Nvidia", + * "pname": "18x1RU CBL Cartridge (QEMU)", + * "pn": "000-0000-000", + * "serial": "0000000000000", + * "date": "01/12/2025 00:00" + * }, + * "product": { + * "mfg": "Nvidia", + * "pname": "18x1RU CBL Cartridge", + * "pn": "100-00000-0000-001", + * "ver": "E.4", + * "serial": "1000000000001", + * "atag": "QEMU" + * } + * } + */ +static const uint8_t cable_eeprom[] =3D { + 0x01, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xf4, 0x01, 0x09, 0x19, 0x8c, + 0x19, 0xf0, 0xc6, 0x4e, 0x76, 0x69, 0x64, 0x69, 0x61, 0xdb, 0x31, 0x38, + 0x78, 0x31, 0x52, 0x55, 0x20, 0x43, 0x42, 0x4c, 0x20, 0x43, 0x61, 0x72, + 0x74, 0x72, 0x69, 0x64, 0x67, 0x65, 0x20, 0x28, 0x51, 0x45, 0x4d, 0x55, + 0x29, 0x8a, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, + 0x89, 0x10, 0x04, 0x35, 0x10, 0x04, 0x41, 0x0d, 0x04, 0x41, 0xc0, 0xc1, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb1, 0x01, 0x09, 0x19, 0xc6, + 0x4e, 0x76, 0x69, 0x64, 0x69, 0x61, 0xd4, 0x31, 0x38, 0x78, 0x31, 0x52, + 0x55, 0x20, 0x43, 0x42, 0x4c, 0x20, 0x43, 0x61, 0x72, 0x74, 0x72, 0x69, + 0x64, 0x67, 0x65, 0x8e, 0x11, 0x04, 0x35, 0x10, 0x04, 0x41, 0x50, 0x03, + 0x41, 0x10, 0xd4, 0x40, 0x50, 0x04, 0x83, 0xa5, 0x43, 0x01, 0x8a, 0x11, + 0x04, 0x41, 0x10, 0x04, 0x41, 0x10, 0x04, 0x41, 0x11, 0x83, 0x71, 0xd9, + 0xd6, 0xc0, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x25 +}; +static const size_t cable_eeprom_len =3D sizeof(cable_eeprom); + static void catalina_bmc_i2c_init(AspeedMachineState *bmc) { /* Reference from v6.16-rc2 aspeed-bmc-facebook-catalina.dts */ @@ -561,15 +599,17 @@ static void catalina_bmc_i2c_init(AspeedMachineState = *bmc) /* eeprom@50 */ at24c_eeprom_init_rom(i2c[12], 0x50, 8 * KiB, gb200_eeprom, gb200_eeprom_len); + /* eeprom@54 */ + at24c_eeprom_init_rom(i2c[12], 0x54, 256, + cable_eeprom, cable_eeprom_len); =20 /* &i2c13 */ /* eeprom@50 */ at24c_eeprom_init_rom(i2c[13], 0x50, 8 * KiB, gb200_eeprom, gb200_eeprom_len); /* eeprom@54 */ - at24c_eeprom_init(i2c[13], 0x54, 256); - /* eeprom@55 */ - at24c_eeprom_init(i2c[13], 0x55, 256); + at24c_eeprom_init_rom(i2c[13], 0x54, 256, + cable_eeprom, cable_eeprom_len); /* eeprom@57 */ at24c_eeprom_init_rom(i2c[13], 0x57, 256, hmc_eeprom, hmc_eeprom_len); =20 --=20 2.51.2