From nobody Fri Mar 14 13:03:34 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=1738707530; cv=none; d=zohomail.com; s=zohoarc; b=CdWycSQpGgJqr5M2NZogjrh1msYVBeMNXd3Q738b0147dkSAM7gXpPkZF32fygFoB5hkdcez8YgW0d/XjDcTnwr2k1h3jb5yiSx0QbauvCf2AZOIEiwgnYRgtHQL/7HHqDO9xWONvDgVg7puHjVD8SsKwYVUD7QZxcrzF24Y7WE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1738707530; 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=36uFADY7hDDDNVkyh37njIjheL8P4YE70JAXXmXClEc=; b=IpWZZ/rUGAnMOKYZjnjoIOD07QjZiJhgze3pZK8Fe+buCqratqWG8Y5iyEccohAIb40bQODfDnQZJwRWDdym+tJE/cOd74l6SmQe3wTO/T8OiR5QJosePGcLxq0TusmBRrACFYpIrBr9hzV7ieXCYBdgBRMPe2ZKK/6UW4YKK00= 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 1738707530746833.2953645023262; Tue, 4 Feb 2025 14:18:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tfREh-0005Uk-97; Tue, 04 Feb 2025 17:17: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 1tfREe-0005Tp-VZ for qemu-devel@nongnu.org; Tue, 04 Feb 2025 17:17:37 -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 1tfREc-0005Qf-Iu for qemu-devel@nongnu.org; Tue, 04 Feb 2025 17:17:36 -0500 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 9BEEA5C57C2; Tue, 4 Feb 2025 22:16:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46CD9C4CEDF; Tue, 4 Feb 2025 22:17:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738707453; bh=QWn+5N4g5u8cXEzZBEZLJId0H4Oo0w+wMEM3Jyb6RQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eJxrmlX417usp2VPgRfslj090g7SHNoTmssRdW4gjuyiW5yJcg+COliQTrn8MjfMu QO2DmgDaITHULnv1Jr96ZXph3go9Q1S6TRt1P3fAvWhSJniN2V+n4qxMekjz9lf35U HN09l6Hk3BjT0cRIq4VUdZVtUu6rVErjws2WHep+DLGRKi2KH20W+w/N92RxgAlHog map36CKW0asTMwZr2u9OI5cGwXeGS27yclZwXpe2C+bsTlg+kMnwDGRgyXP4P05DBB hKUfnopG82nN5txN/zovIpTq8EpKpikwOY0hXiOBrPyFucmcmBkqyAFOEsHRkS4q0x nX+ltee0hFHtQ== From: deller@kernel.org To: Richard Henderson , qemu-devel@nongnu.org Cc: Helge Deller Subject: [PATCH 3/6] artist: Allow disabling artist on command line Date: Tue, 4 Feb 2025 23:17:23 +0100 Message-ID: <20250204221726.151287-4-deller@kernel.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250204221726.151287-1-deller@kernel.org> References: <20250204221726.151287-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_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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: 1738707547138019000 Content-Type: text/plain; charset="utf-8" From: Helge Deller Allow users to disable the artist graphic card on the command line with the option "-global artist.disable=3Dtrue". This change allows to use other graphic cards when using Linux, e.g. by adding "-device ati-vga". Signed-off-by: Helge Deller --- hw/display/artist.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/display/artist.c b/hw/display/artist.c index 8b719b11ed..f24c1d83dd 100644 --- a/hw/display/artist.c +++ b/hw/display/artist.c @@ -48,6 +48,7 @@ struct ARTISTState { =20 struct vram_buffer vram_buffer[16]; =20 + bool disable; uint16_t width; uint16_t height; uint16_t depth; @@ -1211,8 +1212,8 @@ static uint64_t artist_reg_read(void *opaque, hwaddr = addr, unsigned size) break; =20 case 0x380004: - /* 0x02000000 Buserror */ - val =3D 0x6dc20006; + /* magic number detected by SeaBIOS-hppa */ + val =3D s->disable ? 0 : 0x6dc20006; break; =20 default: @@ -1432,7 +1433,7 @@ static int vmstate_artist_post_load(void *opaque, int= version_id) =20 static const VMStateDescription vmstate_artist =3D { .name =3D "artist", - .version_id =3D 2, + .version_id =3D 3, .minimum_version_id =3D 2, .post_load =3D vmstate_artist_post_load, .fields =3D (const VMStateField[]) { @@ -1470,6 +1471,7 @@ static const VMStateDescription vmstate_artist =3D { VMSTATE_UINT32(font_write1, ARTISTState), VMSTATE_UINT32(font_write2, ARTISTState), VMSTATE_UINT32(font_write_pos_y, ARTISTState), + VMSTATE_BOOL(disable, ARTISTState), VMSTATE_END_OF_LIST() } }; @@ -1478,6 +1480,7 @@ static const Property artist_properties[] =3D { DEFINE_PROP_UINT16("width", ARTISTState, width, 1280), DEFINE_PROP_UINT16("height", ARTISTState, height, 1024), DEFINE_PROP_UINT16("depth", ARTISTState, depth, 8), + DEFINE_PROP_BOOL("disable", ARTISTState, disable, false), }; =20 static void artist_reset(DeviceState *qdev) --=20 2.47.0