All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: qemu-devel@nongnu.org
Cc: qemu-stable@nongnu.org, "BALATON Zoltan" <balaton@eik.bme.hu>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Michael Tokarev" <mjt@tls.msk.ru>
Subject: [Stable-8.2.3 114/116] hw/pci-host/ppc440_pcix: Do not expose a bridge device on PCI bus
Date: Thu, 18 Apr 2024 20:49:44 +0300	[thread overview]
Message-ID: <20240418174955.947730-27-mjt@tls.msk.ru> (raw)
In-Reply-To: <qemu-stable-8.2.3-20240418204921@cover.tls.msk.ru>

From: BALATON Zoltan <balaton@eik.bme.hu>

Real 460EX SoC apparently does not expose a bridge device and having
it appear on PCI bus confuses an AmigaOS file system driver that uses
this to detect which machine it is running on.

Cc: qemu-stable@nongnu.org
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240411192443.B4D644E6026@zero.eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 6e4aceba2079e3df42edc89d44f4ee02343bb09e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

diff --git a/hw/ppc/ppc440_pcix.c b/hw/ppc/ppc440_pcix.c
index df4ee374d0..0468b22080 100644
--- a/hw/ppc/ppc440_pcix.c
+++ b/hw/ppc/ppc440_pcix.c
@@ -53,7 +53,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(PPC440PCIXState, PPC440_PCIX_HOST)
 struct PPC440PCIXState {
     PCIHostState parent_obj;
 
-    PCIDevice *dev;
+    uint8_t config[PCI_CONFIG_SPACE_SIZE];
     struct PLBOutMap pom[PPC440_PCIX_NR_POMS];
     struct PLBInMap pim[PPC440_PCIX_NR_PIMS];
     uint32_t sts;
@@ -172,7 +172,7 @@ static void ppc440_pcix_reg_write4(void *opaque, hwaddr addr,
     trace_ppc440_pcix_reg_write(addr, val, size);
     switch (addr) {
     case PCI_VENDOR_ID ... PCI_MAX_LAT:
-        stl_le_p(s->dev->config + addr, val);
+        stl_le_p(s->config + addr, val);
         break;
 
     case PCIX0_POM0LAL:
@@ -303,7 +303,7 @@ static uint64_t ppc440_pcix_reg_read4(void *opaque, hwaddr addr,
 
     switch (addr) {
     case PCI_VENDOR_ID ... PCI_MAX_LAT:
-        val = ldl_le_p(s->dev->config + addr);
+        val = ldl_le_p(s->config + addr);
         break;
 
     case PCIX0_POM0LAL:
@@ -499,10 +499,7 @@ static void ppc440_pcix_realize(DeviceState *dev, Error **errp)
     memory_region_init(&s->iomem, OBJECT(dev), "pci-io", 64 * KiB);
     h->bus = pci_register_root_bus(dev, NULL, ppc440_pcix_set_irq,
                          ppc440_pcix_map_irq, &s->irq, &s->busmem, &s->iomem,
-                         PCI_DEVFN(0, 0), 1, TYPE_PCI_BUS);
-
-    s->dev = pci_create_simple(h->bus, PCI_DEVFN(0, 0),
-                               TYPE_PPC4xx_HOST_BRIDGE);
+                         PCI_DEVFN(1, 0), 1, TYPE_PCI_BUS);
 
     memory_region_init(&s->bm, OBJECT(s), "bm-ppc440-pcix", UINT64_MAX);
     memory_region_add_subregion(&s->bm, 0x0, &s->busmem);
-- 
2.39.2



  parent reply	other threads:[~2024-04-18 17:55 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18 17:49 [Stable-8.2.3 v2 000/116] Patch Round-up for stable 8.2.3, freeze on 2024-04-20 Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 088/116] tcg/optimize: Do not attempt to constant fold neg_vec Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 089/116] linux-user: Fix waitid return of siginfo_t and rusage Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 090/116] target/sh4: mac.w: memory accesses are 16-bit words Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 091/116] target/sh4: Merge mach and macl into a union Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 092/116] target/sh4: Fix mac.l with saturation enabled Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 093/116] target/sh4: Fix mac.w " Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 094/116] target/sh4: add missing CHECK_NOT_DELAY_SLOT Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 095/116] target/m68k: Map FPU exceptions to FPSR register Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 096/116] hw/virtio: Introduce virtio_bh_new_guarded() helper Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 097/116] hw/display/virtio-gpu: Protect from DMA re-entrancy bugs Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 098/116] hw/char/virtio-serial-bus: " Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 099/116] hw/virtio/virtio-crypto: " Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 100/116] qemu-options: Fix CXL Fixed Memory Window interleave-granularity typo Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 101/116] hw/block/nand: Factor nand_load_iolen() method out Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 102/116] hw/block/nand: Have blk_load() take unsigned offset and return boolean Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 103/116] hw/block/nand: Fix out-of-bound access in NAND block buffer Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 104/116] hw/misc/applesmc: Fix memory leak in reset() handler Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 105/116] backends/cryptodev: Do not abort for invalid session ID Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 106/116] hw/net/lan9118: Replace magic '2048' value by MIL_TXFIFO_SIZE definition Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 107/116] hw/net/lan9118: Fix overflow in MIL TX FIFO Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 108/116] hw/sd/sdhci: Do not update TRNMOD when Command Inhibit (DAT) is set Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 109/116] hw/net/net_tx_pkt: Fix overrun in update_sctp_checksum() Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 110/116] hw/audio/virtio-snd: Remove unused assignment Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 111/116] linux-user/x86_64: Handle the vsyscall page in open_self_maps_{2, 4} Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 112/116] virtio-pci: fix use of a released vector Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 113/116] hw/isa/vt82c686: Keep track of PIRQ/PINT pins separately Michael Tokarev
2024-04-18 17:49 ` Michael Tokarev [this message]
2024-04-18 17:49 ` [Stable-8.2.3 115/116] ppc/spapr: Introduce SPAPR_IRQ_NR_IPIS to refer IRQ range for CPU IPIs Michael Tokarev
2024-04-18 17:49 ` [Stable-8.2.3 116/116] ppc/spapr: Initialize max_cpus limit to SPAPR_IRQ_NR_IPIS Michael Tokarev

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=20240418174955.947730-27-mjt@tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=balaton@eik.bme.hu \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.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.