From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: deller@kernel.org, qemu-devel@nongnu.org,
Richard Henderson <richard.henderson@linaro.org>
Cc: Fam Zheng <fam@euphon.net>,
Soumyajyotii Ssarkar <soumyajyotisarkar23@gmail.com>,
Helge Deller <deller@gmx.de>, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v2 11/11] hw/hppa: Add 715 machine type including NCR710 SCSI
Date: Sat, 25 Oct 2025 18:25:40 +0200 [thread overview]
Message-ID: <a54e8e84-9b69-4144-a02f-1825b9918352@linaro.org> (raw)
In-Reply-To: <20251025161901.32710-12-deller@kernel.org>
On 25/10/25 18:19, deller@kernel.org wrote:
> From: Helge Deller <deller@gmx.de>
>
> Add a new emulation for a 715/64 machine.
> This machines has no PCI bus, and has the majority of the devices (SCSI,
> network, serial ports, ...) provided by a LASI multi-function I/O chip.
>
> v2: based on feedback from Richard
> - Fix indenting and use assert() to check ncr710 device availability
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> ---
> hw/hppa/machine.c | 95 ++++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 93 insertions(+), 2 deletions(-)
>
> diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
> index 81ed050b5e..7b130a0db0 100644
> --- a/hw/hppa/machine.c
> +++ b/hw/hppa/machine.c
> @@ -30,6 +30,8 @@
> #include "hw/pci-host/astro.h"
> #include "hw/pci-host/dino.h"
> #include "hw/misc/lasi.h"
> +#include "hw/scsi/ncr53c710.h"
> +#include "hw/scsi/lasi_ncr710.h"
> #include "hppa_hardware.h"
> #include "qemu/units.h"
> #include "qapi/error.h"
> @@ -363,8 +365,17 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus,
>
> /* SCSI disk setup. */
> if (drive_get_max_bus(IF_SCSI) >= 0) {
> - dev = DEVICE(pci_create_simple(pci_bus, -1, "lsi53c895a"));
> - lsi53c8xx_handle_legacy_cmdline(dev);
> + if (pci_bus) {
> + dev = DEVICE(pci_create_simple(pci_bus, -1, "lsi53c895a"));
> + lsi53c8xx_handle_legacy_cmdline(dev);
> + } else {
> + dev = lasi_ncr710_init(addr_space,
> + translate(NULL, LASI_HPA_715 + 0x6000),
> + qdev_get_gpio_in(lasi_dev,
> + LASI_IRQ_SCSI_HPA));
> + assert(dev);
> + lasi_ncr710_handle_legacy_cmdline(dev);
> + }
> }
Can we move this code in the callers to keep the rest really common?
next prev parent reply other threads:[~2025-10-25 16:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-25 16:18 [PATCH v2 00/11] HP-PARISC 715 machine with NCR710 SCSI chip deller
2025-10-25 16:18 ` [PATCH v2 02/11] lasi_ncr710: Add LASI wrapper for NCR 53c710 " deller
2025-10-25 16:18 ` [PATCH v2 03/11] ncr710: Add driver for the " deller
2025-10-25 16:59 ` BALATON Zoltan
2025-10-25 17:07 ` Helge Deller
2025-10-25 16:18 ` [PATCH v2 04/11] lasi: Forward LASI SCSI ports to NCR 53c710 driver deller
2025-10-25 16:18 ` [PATCH v2 05/11] hw/scsi: Add config option for new ncr710 driver deller
2025-10-25 16:18 ` [PATCH v2 06/11] hw/hppa: Fix firmware end address for LASI chip deller
2025-10-25 16:18 ` [PATCH v2 07/11] hw/hppa: Fix interrupt of LASI parallel port deller
2025-10-25 16:21 ` Philippe Mathieu-Daudé
2025-10-25 16:18 ` [PATCH v2 08/11] hw/hppa: Add NCR 710 SCSI driver to LASI chip Kconfig entry deller
2025-10-25 16:18 ` [PATCH v2 09/11] hw/hppa: PCI devices depend on availability of PCI bus deller
2025-10-25 16:23 ` Philippe Mathieu-Daudé
2025-10-25 16:57 ` Richard Henderson
2025-10-25 16:19 ` [PATCH v2 10/11] hw/hppa: Require SeaBIOS version 19 for 715 machine deller
2025-10-25 16:19 ` [PATCH v2 11/11] hw/hppa: Add 715 machine type including NCR710 SCSI deller
2025-10-25 16:25 ` Philippe Mathieu-Daudé [this message]
2025-10-25 16:32 ` Helge Deller
2025-10-25 16:48 ` [PATCH v3 " Helge Deller
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=a54e8e84-9b69-4144-a02f-1825b9918352@linaro.org \
--to=philmd@linaro.org \
--cc=deller@gmx.de \
--cc=deller@kernel.org \
--cc=fam@euphon.net \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=soumyajyotisarkar23@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).