All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helge Deller <deller@kernel.org>
To: qemu-devel@nongnu.org
Cc: deller@gmx.de, Richard Henderson <richard.henderson@linaro.org>
Subject: [PATCH 02/11] hw/hppa: Disable Artist graphics card on 64-bit machines
Date: Mon, 30 Mar 2026 23:18:49 +0200	[thread overview]
Message-ID: <20260330211859.19317-3-deller@kernel.org> (raw)
In-Reply-To: <20260330211859.19317-1-deller@kernel.org>

From: Helge Deller <deller@gmx.de>

The original Artist graphics used the GSC bus, was often installed in old
32-bit machines (e.g. 715) and can not be used on 64-bit machines.
This is why this patch makes the artist driver dependend on the Lasi chip,
which was never used in a 64-bit machine.

Note that there exists a variant of Artist for the PCI-bus (Visualize-EG PCI).
It has quite some differences in the registers, and would require that we write
a PCI ROM for it, so that Linux and HP-UX would be able to use it.

Instead, for now, users can simply use a standard VGA or ATI PCI graphics card
on Linux.  This can be enabled on the command line with "-device ati-vga" or
"-device VGA".  If the "-nographic" option is omitted, a PCI OCHI controller
with USB keyboard and USB mouse will be added automatically.

This fixes graphics support on 64-bit hppa machines and allows us to boot up a
64-bit Linux installation with VGA graphics.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 hw/hppa/machine.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index 3663bac53b..58e76bee2e 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -384,7 +384,8 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus,
     SysBusDevice *s;
 
     /* Graphics setup. */
-    if (machine->enable_graphics && vga_interface_type != VGA_NONE) {
+    if (lasi_dev && machine->enable_graphics &&
+        vga_interface_type != VGA_NONE) {
         dev = qdev_new("artist");
         s = SYS_BUS_DEVICE(dev);
         bool disabled = object_property_get_bool(OBJECT(dev), "disable", NULL);
-- 
2.53.0



  parent reply	other threads:[~2026-03-30 21:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-30 21:18 [PATCH 00/11] HPPA Patches for qemu-v11 Helge Deller
2026-03-30 21:18 ` [PATCH 01/11] hw/pci-host/astro: Update copyright and documentation link Helge Deller
2026-03-31  9:35   ` Philippe Mathieu-Daudé
2026-03-30 21:18 ` Helge Deller [this message]
2026-03-30 21:42   ` [PATCH 02/11] hw/hppa: Disable Artist graphics card on 64-bit machines Philippe Mathieu-Daudé
2026-03-31  8:58     ` Helge Deller
2026-03-31  9:34       ` Philippe Mathieu-Daudé
2026-03-30 21:18 ` [PATCH 03/11] hw/pci-host/astro: Make astro address arrays accessible for other users Helge Deller
2026-03-30 21:18 ` [PATCH 04/11] hw/pci-host/astro: Fix initial addresses in IOC Helge Deller
2026-03-30 21:18 ` [PATCH 05/11] hw/pci-host/astro: Implement LMMIO registers Helge Deller
2026-03-30 21:18 ` [PATCH 06/11] hw/pci-host/astro: Fix LMMIO DIRECT mappings Helge Deller
2026-03-30 21:18 ` [PATCH 07/11] hw/pci-host/astro: Add GMMIO mapping Helge Deller
2026-03-30 21:56   ` Philippe Mathieu-Daudé
2026-03-30 22:29     ` Helge Deller
2026-03-31  9:14       ` Philippe Mathieu-Daudé
2026-03-30 21:18 ` [PATCH 08/11] hw/pci-host/astro: Add comment about Astro version numbers Helge Deller
2026-03-30 21:54   ` Philippe Mathieu-Daudé
2026-03-31 16:57     ` Helge Deller
2026-03-30 21:18 ` [PATCH 09/11] target/hppa: Fix TOC handler for 64-bit CPUs Helge Deller
2026-03-30 21:52   ` Philippe Mathieu-Daudé
2026-03-30 21:18 ` [PATCH 10/11] hw/hppa: Implement memory ranges Helge Deller
2026-03-31 13:09 ` [PATCH 00/11] HPPA Patches for qemu-v11 Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260330211859.19317-3-deller@kernel.org \
    --to=deller@kernel.org \
    --cc=deller@gmx.de \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.