From: Richard Henderson <richard.henderson@linaro.org>
To: Helge Deller <deller@gmx.de>, qemu-devel@nongnu.org
Cc: Richard Henderson <rth@twiddle.net>
Subject: Re: [PATCH v3 4/8] hw/hppa: Change fw_cfg port address
Date: Wed, 2 Sep 2020 13:42:44 -0700 [thread overview]
Message-ID: <b81e49f2-3207-4350-96a3-9fc5d4fc12b1@linaro.org> (raw)
In-Reply-To: <20200902193456.29844-5-deller@gmx.de>
On 9/2/20 12:34 PM, Helge Deller wrote:
> Devices on hppa occupy at least 4k starting at the HPA, so MEMORY_HPA+4k is
> blocked (by Linux) for the memory module. I noticed this when testing the new
> Linux kernel patch to let the fw_cfg entries show up in Linux under /proc.
> The Linux kernel driver could not allocate the region for fw_cfg.
> This new base address seems to not conflict.
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> ---
> hw/hppa/hppa_hardware.h | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/hw/hppa/hppa_hardware.h b/hw/hppa/hppa_hardware.h
> index cdb7fa6240..b2fbbc2eec 100644
> --- a/hw/hppa/hppa_hardware.h
> +++ b/hw/hppa/hppa_hardware.h
> @@ -38,8 +38,7 @@
> #define PORT_PCI_CMD (PCI_HPA + DINO_PCI_ADDR)
> #define PORT_PCI_DATA (PCI_HPA + DINO_CONFIG_DATA)
>
> -/* QEMU fw_cfg interface port */
> -#define QEMU_FW_CFG_IO_BASE (MEMORY_HPA + 0x80)
> +#define QEMU_FW_CFG_IO_BASE 0xfffa0000
>
> #define PORT_SERIAL1 (DINO_UART_HPA + 0x800)
> #define PORT_SERIAL2 (LASI_UART_HPA + 0x800)
I guess this is ok. Moving this up a few lines, with the other HPA, and
sorting, would make this more obvious.
I see that, because HPPA_MAX_CPUS = 8, that CPU_HPA covers 0xfffb000 -
0xfffb7fff. Thus there is also 7 slots available between the end of CPU_HPA
and MEMORY_HPA. Picking 0xfffbe000 might be better than blocking a possible
64k slot.
But either way,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2020-09-02 20:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-02 19:34 [PATCH v3 0/8] hppa: power button support, artist graphics fixes, firmware fixes, Helge Deller
2020-09-02 19:34 ` [PATCH v3 1/8] seabios-hppa: Update SeaBIOS to hppa-qemu-5.2-2 tag Helge Deller
2020-09-02 19:34 ` [PATCH v3 2/8] hw/hppa: Make number of TLB and BTLB entries configurable Helge Deller
2020-09-02 19:34 ` [PATCH v3 3/8] hw/hppa: Store boot device in fw_cfg section Helge Deller
2020-09-02 19:34 ` [PATCH v3 4/8] hw/hppa: Change fw_cfg port address Helge Deller
2020-09-02 20:42 ` Richard Henderson [this message]
2020-09-02 19:34 ` [PATCH v3 5/8] hw/hppa: Tell SeaBIOS port address of fw_cfg Helge Deller
2020-09-02 20:43 ` Richard Henderson
2020-09-02 19:34 ` [PATCH v3 6/8] hw/hppa: Add power button emulation Helge Deller
2020-09-02 20:44 ` Richard Henderson
2020-09-02 19:34 ` [PATCH v3 7/8] hw/display/artist: Fix artist screen resolution Helge Deller
2020-09-02 20:45 ` Richard Henderson
2020-09-02 19:34 ` [PATCH v3 8/8] target/hppa: Fix boot with old Linux installation CDs 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=b81e49f2-3207-4350-96a3-9fc5d4fc12b1@linaro.org \
--to=richard.henderson@linaro.org \
--cc=deller@gmx.de \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).