From: Peter Xu <peterx@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Aleksandar Rikalo" <aleksandar.rikalo@syrmia.com>,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
qemu-devel@nongnu.org, "Laurent Vivier" <laurent@vivier.eu>,
"Alexander Bulekov" <alxndr@bu.edu>,
"Hervé Poussineau" <hpoussin@reactos.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Edgar E . Iglesias" <edgar.iglesias@gmail.com>,
"Aurelien Jarno" <aurelien@aurel32.net>
Subject: Re: [PATCH 1/2] hw/mips/jazz: Use generic I/O bus via get_system_io()
Date: Wed, 10 Mar 2021 14:49:24 -0500 [thread overview]
Message-ID: <20210310194924.GF6530@xz-x1> (raw)
In-Reply-To: <20210310191255.1229848-1-f4bug@amsat.org>
On Wed, Mar 10, 2021 at 08:12:54PM +0100, Philippe Mathieu-Daudé wrote:
> No need to create a local ISA I/O MemoryRegion, use get_system_io().
>
> This partly reverts commit 5c63bcf7501527b844f61624957bdba254d75bfc.
I think it's not a clean revert of that, see below.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> hw/mips/jazz.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/hw/mips/jazz.c b/hw/mips/jazz.c
> index 1a0888a0fd5..9ac9361b7eb 100644
> --- a/hw/mips/jazz.c
> +++ b/hw/mips/jazz.c
> @@ -158,7 +158,6 @@ static void mips_jazz_init(MachineState *machine,
> rc4030_dma *dmas;
> IOMMUMemoryRegion *rc4030_dma_mr;
> MemoryRegion *isa_mem = g_new(MemoryRegion, 1);
> - MemoryRegion *isa_io = g_new(MemoryRegion, 1);
> MemoryRegion *rtc = g_new(MemoryRegion, 1);
> MemoryRegion *i8042 = g_new(MemoryRegion, 1);
> MemoryRegion *dma_dummy = g_new(MemoryRegion, 1);
> @@ -259,11 +258,10 @@ static void mips_jazz_init(MachineState *machine,
> memory_region_add_subregion(address_space, 0x8000d000, dma_dummy);
>
> /* ISA bus: IO space at 0x90000000, mem space at 0x91000000 */
> - memory_region_init(isa_io, NULL, "isa-io", 0x00010000);
> memory_region_init(isa_mem, NULL, "isa-mem", 0x01000000);
> - memory_region_add_subregion(address_space, 0x90000000, isa_io);
> + memory_region_add_subregion(address_space, 0x90000000, get_system_io());
The old code has an alias created just for adding subregion into address_space:
- /* ISA IO space at 0x90000000 */
- memory_region_init_alias(isa, NULL, "isa_mmio",
- get_system_io(), 0, 0x01000000);
- memory_region_add_subregion(address_space, 0x90000000, isa);
- isa_mem_base = 0x11000000;
While you didn't revert that part. Maybe that's the issue?
--
Peter Xu
next prev parent reply other threads:[~2021-03-10 19:50 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-05 23:54 [PATCH 0/3] memory: Display AddressSpace zero-based in 'info mtree' Philippe Mathieu-Daudé
2021-03-05 23:54 ` [PATCH 1/3] memory: Better name 'offset' argument in mtree_print_mr() Philippe Mathieu-Daudé
2021-03-05 23:54 ` [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr() Philippe Mathieu-Daudé
2021-03-08 23:40 ` Peter Xu
2021-03-09 9:39 ` Philippe Mathieu-Daudé
2021-03-09 21:54 ` Philippe Mathieu-Daudé
2021-03-10 17:06 ` Peter Xu
2021-03-10 19:09 ` Philippe Mathieu-Daudé
2021-03-10 19:12 ` [PATCH 1/2] hw/mips/jazz: Use generic I/O bus via get_system_io() Philippe Mathieu-Daudé
2021-03-10 19:12 ` [PATCH 2/2] NOTFORMERGE memory: Ensure AddressSpace physical base address is zero Philippe Mathieu-Daudé
2021-03-10 19:49 ` Peter Xu [this message]
2021-03-10 20:11 ` [PATCH 1/2] hw/mips/jazz: Use generic I/O bus via get_system_io() Philippe Mathieu-Daudé
2021-03-10 20:29 ` Peter Xu
2021-03-11 12:18 ` Philippe Mathieu-Daudé
2021-03-11 16:21 ` Philippe Mathieu-Daudé
2021-03-11 17:27 ` Peter Xu
2021-03-11 17:59 ` Philippe Mathieu-Daudé
2021-03-12 9:08 ` Cédric Le Goater
2021-03-11 17:27 ` Peter Xu
2021-03-11 17:41 ` Philippe Mathieu-Daudé
2021-03-11 0:48 ` Jiaxun Yang
2021-03-10 19:31 ` [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr() Peter Xu
2021-03-10 22:00 ` Mark Cave-Ayland
2021-03-05 23:54 ` [PATCH 3/3] memory: Make memory_region_to_absolute_addr() take a const MemoryRegion Philippe Mathieu-Daudé
2021-03-11 12:19 ` 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=20210310194924.GF6530@xz-x1 \
--to=peterx@redhat.com \
--cc=aleksandar.rikalo@syrmia.com \
--cc=alxndr@bu.edu \
--cc=aurelien@aurel32.net \
--cc=edgar.iglesias@gmail.com \
--cc=f4bug@amsat.org \
--cc=hpoussin@reactos.org \
--cc=laurent@vivier.eu \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@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 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).