From nobody Sat Apr 5 01:13:00 2025 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=1738962389; cv=none; d=zohomail.com; s=zohoarc; b=CmHq4o1gkoc2UOzs+LCWiy6MPV6FijgGF6vM5q2mymiBYsg7fWFMkEzB8CGcSGTG1XpAPPhswzN3fjtUVhvCeIFt0zN6k8oV13LhAuiZYvXR8Ha5zjgzPB/0GFFvhMub3UABvXUZTv5Gl7hDEIOGX7/jHXNHLGBMWKqcY9COL4A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1738962389; h=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=YmZKZTBv4ORRQgxPpmMjjarRGc66BhM3mDzkYWTbI6A=; b=jZCtUzhJsqDPgBTq9U7G5K7yvR2zGIsMbebRftW/OieJnAwGRnaIPz7Fcjf/Jiu4Nin6lTzQXnw0oDR0WI1HjxSFb2kM65xztyvbePvLRnzs1YMqO6Tlib2oF8so2aETzzDkSSeDh/I/Z7LUwX0cPwpQnIEfm+fO4ARH4a5mUg4= 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 lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1738962389736642.0589051212331; Fri, 7 Feb 2025 13:06:29 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tgVXw-0005Qn-Uk; Fri, 07 Feb 2025 16:05:56 -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 1tgVXs-0005PP-P7 for qemu-devel@nongnu.org; Fri, 07 Feb 2025 16:05:52 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tgVXr-0001sw-Cw for qemu-devel@nongnu.org; Fri, 07 Feb 2025 16:05:52 -0500 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3F0755C71B8; Fri, 7 Feb 2025 21:05:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DFC2C4AF0B; Fri, 7 Feb 2025 21:05:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738962349; bh=x2atwE4gHU0GpGAhwAVJlP3HgxN8fVPhNglWL/AB3UM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B7v22tFtRCj/AcMfWNCmtjI3E29Jmu4c7/CQg/t/iq4Ed3sGPpB3lDzu5ov6Z1A89 FTuzWuhKgfsqjp9P9gudTcOKl1QKTDkRyj5tTJ3HCRFOgdzOfhu+atm7YHs/nfDU8T zESoGiF09xT93ZvYJ9pfX5BfVmv9rkbAbrQYL0r8Oj+9j504KwNd1Fcs+DPrwGlYfN sTAKCfNB3Dy+zK+Nu0QkcoehFeQUOaAo5OjrEkGHJjhQ6ePr0g/Z1p0iJiUlnP2TSW qqWY/M82YTHYDeHogQmMJ0kF0Va2UGM+7wFLKA1SPxAfUMK6CD34giLjVctxSkr2lF sn5lHkLSfYMLg== From: deller@kernel.org To: qemu-devel@nongnu.org, Stefan Hajnoczi Cc: Richard Henderson , Helge Deller Subject: [PULL 4/6] hw/hppa: Avoid creation of artist if disabled on command line Date: Fri, 7 Feb 2025 22:05:38 +0100 Message-ID: <20250207210540.24594-5-deller@kernel.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250207210540.24594-1-deller@kernel.org> References: <20250207210540.24594-1-deller@kernel.org> 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=lists.gnu.org; Received-SPF: pass client-ip=139.178.84.217; envelope-from=deller@kernel.org; helo=dfw.source.kernel.org X-Spam_score_int: -70 X-Spam_score: -7.1 X-Spam_bar: ------- X-Spam_report: (-7.1 / 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_HI=-5, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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: 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: 1738962391036019000 Content-Type: text/plain; charset="utf-8" From: Helge Deller Do not create the artist graphic card if the user disabled it with "-global artist.disable=3Dtrue" on the command line. Signed-off-by: Helge Deller --- hw/hppa/machine.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 9c98b4c229..c5f247633e 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -366,12 +366,15 @@ static void machine_HP_common_init_tail(MachineState = *machine, PCIBus *pci_bus, =20 /* Graphics setup. */ if (machine->enable_graphics && vga_interface_type !=3D VGA_NONE) { - vga_interface_created =3D true; dev =3D qdev_new("artist"); s =3D SYS_BUS_DEVICE(dev); - sysbus_realize_and_unref(s, &error_fatal); - sysbus_mmio_map(s, 0, translate(NULL, LASI_GFX_HPA)); - sysbus_mmio_map(s, 1, translate(NULL, ARTIST_FB_ADDR)); + bool disabled =3D object_property_get_bool(OBJECT(dev), "disable",= NULL); + if (!disabled) { + sysbus_realize_and_unref(s, &error_fatal); + vga_interface_created =3D true; + sysbus_mmio_map(s, 0, translate(NULL, LASI_GFX_HPA)); + sysbus_mmio_map(s, 1, translate(NULL, ARTIST_FB_ADDR)); + } } =20 /* Network setup. */ --=20 2.47.0