OSDN Git Service

hw/hppa: Change fw_cfg port address
authorHelge Deller <deller@gmx.de>
Fri, 14 Aug 2020 19:09:40 +0000 (21:09 +0200)
committerHelge Deller <deller@gmx.de>
Wed, 2 Sep 2020 21:16:50 +0000 (23:16 +0200)
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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
hw/hppa/hppa_hardware.h

index cdb7fa6..b2fbbc2 100644 (file)
@@ -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)