From nobody Mon Nov 23 04:26:29 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; dmarc=pass(p=quarantine dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1793792400; cv=none; d=zohomail.com; s=zohoarc; b=goJrIBlLN9/PVT+MuwVyZGkSV/lEERCz2yHM3mO3QHTudKxqjh7y3IjvtUSk2+8hW0FgiILozT+eQIzGRq8jjeN2l18wWz6OroDUai+iLPk81BBOcH7QEAplX5sHdrbt8gbHIDELljLXYBO65ShH0VjtkMrc8Tokkn1wI1Je7Pg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793792400; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=BHQajK5OJDrjW15Yu7Lh3UraBXxSpGrePeizG+gkqIE=; b=W3YgoHLe4UNna3nUwPC9+pK6mVgbeB3TAwl86UuNCBgZnpEJ4qusroZaU7Mir2b+FQzYELVIrnLsgtbPQCbzPW5ObMCkLIt9Gfj7aygErxHi1sLGbrFFWwSMEQXa8tIqpWru8xiRGBhlpFzc3maxTI6AllxsagVT3SULXnBBw+U= 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; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793792400383730.4359976586666; Wed, 4 Nov 2026 03:40:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xOZLO-0004pl-Ft; Wed, 04 Nov 2026 06:39:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xOZLG-0004iL-7H for qemu-devel@nongnu.org; Wed, 04 Nov 2026 06:39:47 -0500 Received: from sea.source.kernel.org ([172.234.252.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xOZLE-0005IO-CR for qemu-devel@nongnu.org; Wed, 04 Nov 2026 06:39:45 -0500 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 1D02743CAC; Wed, 4 Nov 2026 11:39:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06BDF1F0093A; Wed, 4 Nov 2026 11:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793792383; bh=BHQajK5OJDrjW15Yu7Lh3UraBXxSpGrePeizG+gkqIE=; h=From:To:Cc:Subject:Date; b=aD4PFTl9ogrI0QT0VFkfpI+m1oRWJmCQy8xQJ9OB82bFEtp9JkvyGHA9TtTxWNSlh x1Rth0GLxvNWi1AdTZFZdp53fFhOr4K1u7GGGAM7j/bM6LVXYZr/V0Cq808FRa6Xvp q2GF8+fcxscrfVrH/JKdUNuHll3rXUPmxsEdGIMcG0VyYmBn5oXiTZx4QXeK7VNzos AJbJ/OLbaGqlSq1I0ASwlfB1NEh2C2L5Vp9+XU2KbRRZRjZ8d3VV0tMdHicHBxdzdh caVNUyCZ/r1zrIm5oy78dC9NLeoQDG8CWhczLXlNncm+yDFYvTIqL5C0SrDSieV3EG Wl6JDNpsx/05A== From: Imre Kaloz To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland , Artyom Tarasenko Subject: [PATCH] hw/sparc/sun4m: Add an FCode PROM naming the SS-20 DBRI node Date: Wed, 4 Nov 2026 12:38:26 +0100 Message-ID: <20261104113826.12838-1-kaloz@kernel.org> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=lists1p.gnu.org; Received-SPF: pass client-ip=172.234.252.31; envelope-from=kaloz@kernel.org; helo=sea.source.kernel.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development 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 @kernel.org) X-ZM-MESSAGEID: 1793792400919158500 Content-Type: text/plain; charset="utf-8" Sun's OBP probes the DBRI slot on the SS-20 and builds a node without a name from the all-zero PROM, which guests then trip over. Provide a minimal FCode image naming the node SUNW,DBRI with its register range. Signed-off-by: Imre Kaloz --- hw/sparc/sun4m.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c index 550acdff6d..649087dc12 100644 --- a/hw/sparc/sun4m.c +++ b/hw/sparc/sun4m.c @@ -557,6 +557,31 @@ static void cg3_init(hwaddr addr, qemu_irq irq, int vr= am_size, int width, =20 static const uint8_t idreg_data[] =3D { 0xfe, 0x81, 0x01, 0x03 }; =20 +/* + * toke: fcode-version2 " SUNW,DBRI" device-name my-address h# 10000 + + * my-space encode-phys h# 100 encode-int encode+ " reg" property fcode-end + */ +static const uint8_t dbri_fcode[] =3D { + 0xf1, 0x08, 0x04, 0x9c, 0x00, 0x00, 0x00, 0x32, + 0x12, 0x09, 0x53, 0x55, 0x4e, 0x57, 0x2c, 0x44, + 0x42, 0x52, 0x49, 0x02, 0x01, 0x01, 0x02, 0x10, + 0x00, 0x01, 0x00, 0x00, 0x1e, 0x01, 0x03, 0x01, + 0x13, 0x10, 0x00, 0x00, 0x01, 0x00, 0x01, 0x11, + 0x01, 0x12, 0x12, 0x03, 0x72, 0x65, 0x67, 0x01, + 0x10, 0x00 +}; + +static void dbri_prom_init(hwaddr addr) +{ + MemoryRegion *rom =3D g_new(MemoryRegion, 1); + + memory_region_init_rom(rom, NULL, "sun-DBRI.prom", 0x40, &error_fatal); + memory_region_add_subregion(get_system_memory(), addr, rom); + address_space_write_rom(&address_space_memory, addr, + MEMTXATTRS_UNSPECIFIED, + dbri_fcode, sizeof(dbri_fcode)); +} + static void idreg_init(hwaddr addr) { DeviceState *dev; @@ -1025,8 +1050,7 @@ static void sun4m_hw_init(MachineState *machine) if (hwdef->dbri_base) { /* ISDN chip with attached CS4215 audio codec */ /* prom space */ - create_unimplemented_device("sun-DBRI.prom", - hwdef->dbri_base + 0x1000, 0x30); + dbri_prom_init(hwdef->dbri_base + 0x1000); /* reg space */ create_unimplemented_device("sun-DBRI", hwdef->dbri_base + 0x10000, 0x100); base-commit: 33eb51c859834f2024090bf843c69814267b6c26 --=20 2.47.3