From nobody Wed Nov 5 08:00:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=reactos.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1533847384738256.67050743221625; Thu, 9 Aug 2018 13:43:04 -0700 (PDT) Received: from localhost ([::1]:52727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnrlk-0001Iw-Ua for importer@patchew.org; Thu, 09 Aug 2018 16:42:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnrjj-0000KY-WA for qemu-devel@nongnu.org; Thu, 09 Aug 2018 16:40:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnrjV-0006Rp-3V for qemu-devel@nongnu.org; Thu, 09 Aug 2018 16:40:48 -0400 Received: from iserv.reactos.org ([2a01:4f8:221:4c5::3]:45459) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fnrjU-0006KF-MO; Thu, 09 Aug 2018 16:40:32 -0400 Received: from rob92-5-82-227-227-196.fbx.proxad.net ([82.227.227.196] helo=localhost.localdomain) by iserv.reactos.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1fnrjN-0001fm-Us; Thu, 09 Aug 2018 20:40:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=reactos.org ; s=25047; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+qJw1Y7/FmsWiMwTOkL+0Ut3TyNaLAh+8k8Wt1HnhMg=; b=T/jHTMd4OIyWhcuVXzGjH7wPLV DWKKiIYTwZyV0d9Cr4NYgtSnAl2wnp5BB+Ec7vj1Dgt9j+KFEVHhArk0Vwoah2XBJIWlbCaK2I8Bs gDHarabwzN+pw8sIlf157CZzuBtLTjQmnNO0YhbV/2PKPiFlHRRLkYBI0cI+pXHXe33M=; From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= To: qemu-devel@nongnu.org Date: Thu, 9 Aug 2018 22:40:09 +0200 Message-Id: <20180809204010.3579-2-hpoussin@reactos.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180809204010.3579-1-hpoussin@reactos.org> References: <20180809204010.3579-1-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:4f8:221:4c5::3 Subject: [Qemu-devel] [PATCH 1/2] hw/ppc: on 40p machine, change default firmware to OpenBIOS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Mark Cave-Ayland , Alexander Graf , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 OpenBIOS gained 40p support in 5b20e4cacecb62fb2bdc6867c11d44cddd77c4ff Use it, instead of relying on the presence of a proprietary firmware. Signed-off-by: Herv=C3=A9 Poussineau --- hw/ppc/prep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 3401570d98..1558855247 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -736,7 +736,7 @@ static void ibm_40p_init(MachineState *machine) /* PCI host */ dev =3D qdev_create(NULL, "raven-pcihost"); if (!bios_name) { - bios_name =3D BIOS_FILENAME; + bios_name =3D "openbios-ppc"; } qdev_prop_set_string(dev, "bios-name", bios_name); qdev_prop_set_uint32(dev, "elf-machine", PPC_ELF_MACHINE); --=20 2.11.0 From nobody Wed Nov 5 08:00:05 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=reactos.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1533847384264147.14520784527735; Thu, 9 Aug 2018 13:43:04 -0700 (PDT) Received: from localhost ([::1]:52728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnrln-0001Lq-Ak for importer@patchew.org; Thu, 09 Aug 2018 16:42:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnrjm-0000La-Vy for qemu-devel@nongnu.org; Thu, 09 Aug 2018 16:40:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnrjW-0006Tc-TD for qemu-devel@nongnu.org; Thu, 09 Aug 2018 16:40:50 -0400 Received: from iserv.reactos.org ([2a01:4f8:221:4c5::3]:45465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fnrjW-0006NM-GL; Thu, 09 Aug 2018 16:40:34 -0400 Received: from rob92-5-82-227-227-196.fbx.proxad.net ([82.227.227.196] helo=localhost.localdomain) by iserv.reactos.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1fnrjP-0001fm-RV; Thu, 09 Aug 2018 20:40:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=reactos.org ; s=25047; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=rBKQsEeoUMlII/kD9dW7OOoau0Ga8yNUHNq44UG4RaQ=; b=vpBsW5S1YeqmL/PjQICgcX0Uk+ d12W8LBswCSEOkB8TyoI8940A2K+48Ame/QtyLGbPKdVdKH1SrHJiEu8q3vAKs5fehdSN5SBbLyEP zxpBmGTVJJ7o5GIFO2PKI0OOU5oFe9Uxm6XVQDssaC5HbQsst41VqaPsD9x6kIEXduEo=; From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= To: qemu-devel@nongnu.org Date: Thu, 9 Aug 2018 22:40:10 +0200 Message-Id: <20180809204010.3579-3-hpoussin@reactos.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180809204010.3579-1-hpoussin@reactos.org> References: <20180809204010.3579-1-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:4f8:221:4c5::3 Subject: [Qemu-devel] [PATCH 2/2] hw/ppc: deprecate the machine type 'prep', replaced by '40p' X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Mark Cave-Ayland , Alexander Graf , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 - prep machine is a fictional machine, so has no specifications. Which devices can be changed/added/removed without impact? Are interrupts correctly mapped? - prep firmware (OHW) has support only for IDE drives (no SCSI). Booting from IDE has been broken approximatively 3 years ago, and nobody = complained. - OHW is limited on IDE boot to a specific set of OS loaders. These operating systems are of the 2004 time frame. - OHW can use -kernel. Linux kernel freezes a long time after PS/2 mouse detection, and then screen becomes garbage. This was already broken in QEMU v2.7, 2 years ago, and nobody complained. On the other side: - 40p is a real machine, so emulation can be checked against hardware specifications - OpenBIOS has support for SCSI block devices, including 40p LSI adapter - OpenBIOS can start mostly all Linux kernels (including recent ones) and recent operating system (like NetBSD 7.1.2) Signed-off-by: Herv=C3=A9 Poussineau --- hw/ppc/prep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 1558855247..fbcaebabc0 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -676,6 +676,7 @@ static void ppc_prep_init(MachineState *machine) =20 static void prep_machine_init(MachineClass *mc) { + mc->deprecation_reason =3D "use 40p machine type instead"; mc->desc =3D "PowerPC PREP platform"; mc->init =3D ppc_prep_init; mc->block_default_type =3D IF_IDE; --=20 2.11.0