On 18/09/2025 19:50, BALATON Zoltan wrote:
> The PCI configuration direct access region occupies 8 MiB at offset
> 0x800000 in PCI IO space so model that accordingly.
>
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> hw/pci-host/raven.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c
> index 23020fd09f..bb0be40eb4 100644
> --- a/hw/pci-host/raven.c
> +++ b/hw/pci-host/raven.c
> @@ -235,8 +235,8 @@ static void raven_pcihost_realizefn(DeviceState *d, Error **errp)
>
> mr = g_new0(MemoryRegion, 1);
> memory_region_init_io(mr, OBJECT(h), &raven_mmcfg_ops, h->bus,
> - "pci-mmcfg", 0x00400000);
> - memory_region_add_subregion(address_space_mem, 0x80800000, mr);
> + "pci-mmcfg", 8 * MiB);
> + memory_region_add_subregion(&s->pci_io, 0x800000, mr);
>
> memory_region_init_io(&s->pci_intack, OBJECT(s), &raven_intack_ops, s,
> "pci-intack", 1);
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
ATB,
Mark.