From nobody Tue Feb 10 17:14:13 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 --- 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