From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, shentey@gmail.com
Subject: Re: [PATCH v2 3/8] hw/mips/Kconfig: Remove ISA dependencies from MIPSsim board
Date: Fri, 9 Feb 2024 13:43:13 +0100 [thread overview]
Message-ID: <3a305e01-8ab6-47b3-b498-54253bc6cd61@linaro.org> (raw)
In-Reply-To: <CABgObfb+EdNzqqDiAtzf5B9YPhe+p1cf94KKzCd2fgLCKFAbmQ@mail.gmail.com>
On 8/2/24 09:11, Paolo Bonzini wrote:
> On Wed, Feb 7, 2024 at 7:58 PM Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>>> @@ -6,8 +6,7 @@ config MALTA
>>>
>>> config MIPSSIM
>>> bool
>>> - select ISA_BUS
>>> - select SERIAL_ISA
>>> + select SERIAL
>>
>> Hmm there is an ISA bus which can be exposed with:
>>
>> -- >8 --
>> diff --git a/hw/mips/mipssim.c b/hw/mips/mipssim.c
>> index 16af31648e..a1a4688861 100644
>> --- a/hw/mips/mipssim.c
>> +++ b/hw/mips/mipssim.c
>> @@ -209,8 +209,9 @@ mips_mipssim_init(MachineState *machine)
>> /* Register 64 KB of ISA IO space at 0x1fd00000. */
>> memory_region_init_alias(isa, NULL, "isa_mmio",
>> get_system_io(), 0, 0x00010000);
>> memory_region_add_subregion(get_system_memory(), 0x1fd00000, isa);
>> + isa_bus_new(NULL, get_system_memory(), get_system_io(), &error_abort);
>
> Quoting you from
> https://lists.gnu.org/archive/html/qemu-devel/2020-09/msg08752.html,
> "there is an ISA MMIO space mapped at 0x1fd00000, however this is not
> a real ISA bus (no ISA IRQ)".
>
> If mipssim cannot support "-device isa-serial" as a replacement for
> "-serial", there's no reason for it to expose the bus. In the end,
> -device support is the main thing that an ISA bus provides over
> sysbus, and if it cannot work due to the missing interrupts, I think
> this patch is correct.
>
> I can add a comment:
>
> diff --git a/hw/mips/mipssim.c b/hw/mips/mipssim.c
> index 01e323904d9..47b37b454e7 100644
> --- a/hw/mips/mipssim.c
> +++ b/hw/mips/mipssim.c
> @@ -204,7 +204,11 @@ mips_mipssim_init(MachineState *machine)
> cpu_mips_irq_init_cpu(cpu);
> cpu_mips_clock_init(cpu);
>
> - /* Register 64 KB of ISA IO space at 0x1fd00000. */
> + /*
> + * Register 64 KB of ISA IO space at 0x1fd00000. But without interrupts
> + * (except for the hardcoded serial port interrupt) -device cannot work,
> + * so do not expose the ISA bus to the user.
> + */
Yes, thanks!
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> memory_region_init_alias(isa, NULL, "isa_mmio",
> get_system_io(), 0, 0x00010000);
> memory_region_add_subregion(get_system_memory(), 0x1fd00000, isa);
>
> Paolo
>
>> /*
>> * A single 16450 sits at offset 0x3f8. It is attached to
>> * MIPS CPU INT2, which is interrupt 4.
>> ---
>>
>
next prev parent reply other threads:[~2024-02-09 12:43 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-07 11:14 [PATCH v2 0/8] mips: do not list individual devices from configs/ Paolo Bonzini
2024-02-07 11:14 ` [PATCH v2 1/8] usb: inline device creation functions Paolo Bonzini
2024-02-07 11:14 ` [PATCH v2 2/8] isa: clean up Kconfig selections for ISA_SUPERIO Paolo Bonzini
2024-02-07 11:14 ` [PATCH v2 3/8] hw/mips/Kconfig: Remove ISA dependencies from MIPSsim board Paolo Bonzini
2024-02-07 18:58 ` Philippe Mathieu-Daudé
2024-02-08 8:11 ` Paolo Bonzini
2024-02-09 12:43 ` Philippe Mathieu-Daudé [this message]
2024-02-07 11:14 ` [PATCH v2 4/8] isa: fix ISA_SUPERIO dependencies Paolo Bonzini
2024-02-07 13:09 ` BALATON Zoltan
2024-02-07 19:01 ` Philippe Mathieu-Daudé
2024-02-08 16:18 ` Bernhard Beschow
2024-02-07 11:14 ` [PATCH v2 5/8] isa: specify instance_size in isa_superio_type_info Paolo Bonzini
2024-02-07 19:03 ` Philippe Mathieu-Daudé
2024-02-08 16:10 ` Bernhard Beschow
2024-02-07 11:14 ` [PATCH v2 6/8] isa: extract FDC37M81X to a separate file Paolo Bonzini
2024-02-07 13:13 ` BALATON Zoltan
2024-02-08 16:14 ` Bernhard Beschow
2024-02-07 11:14 ` [PATCH v2 7/8] mips: allow compiling out CONFIG_MIPS_ITU Paolo Bonzini
2024-02-07 13:15 ` BALATON Zoltan
2024-02-07 13:56 ` Paolo Bonzini
2024-02-07 19:12 ` Philippe Mathieu-Daudé
2024-02-08 8:26 ` Paolo Bonzini
2024-02-09 7:22 ` Philippe Mathieu-Daudé
2024-02-09 9:15 ` Philippe Mathieu-Daudé
2024-02-07 11:14 ` [PATCH v2 8/8] mips: do not list individual devices from configs/ Paolo Bonzini
2024-02-07 13:18 ` BALATON Zoltan
2024-02-07 13:55 ` Paolo Bonzini
2024-02-08 16:16 ` Bernhard Beschow
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=3a305e01-8ab6-47b3-b498-54253bc6cd61@linaro.org \
--to=philmd@linaro.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=shentey@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).