[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: [PULL 20/21] Revert "hw/sh4/r2d: Realize IDE controller before acce
From: |
Thomas Huth |
Subject: |
Fwd: [PULL 20/21] Revert "hw/sh4/r2d: Realize IDE controller before accessing it" |
Date: |
Tue, 22 Oct 2024 19:41:57 +0200 |
User-agent: |
Mozilla Thunderbird |
Please include this fix in the stable branches for 9.0 and 9.1 as well!
Thanks,
Thomas
-------- Forwarded Message --------
Subject: [PULL 20/21] Revert "hw/sh4/r2d: Realize IDE controller before
accessing it"
Date: Mon, 21 Oct 2024 13:34:57 +0200
From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org
CC: Peter Maydell <peter.maydell@linaro.org>, Guenter Roeck
<linux@roeck-us.net>, Philippe Mathieu-Daudé <philmd@linaro.org>
This reverts commit 3c5f86a22686ef475a8259c0d8ee714f61c770c9.
Changing the order here caused a regression with the "tuxrun"
kernels (from https://storage.tuxboot.com/20230331/) - ATA commands
fail with a "ata1: lost interrupt (Status 0x58)" message.
Apparently we need to wire the interrupt here first before
realizing the device, so revert the change to the original
behavior.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20241011131937.377223-17-thuth@redhat.com>
---
hw/sh4/r2d.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c
index e5ac6751bd..7eecd79fcc 100644
--- a/hw/sh4/r2d.c
+++ b/hw/sh4/r2d.c
@@ -286,9 +286,9 @@ static void r2d_init(MachineState *machine)
dinfo = drive_get(IF_IDE, 0, 0);
dev = qdev_new("mmio-ide");
busdev = SYS_BUS_DEVICE(dev);
+ sysbus_connect_irq(busdev, 0, irq[CF_IDE]);
qdev_prop_set_uint32(dev, "shift", 1);
sysbus_realize_and_unref(busdev, &error_fatal);
- sysbus_connect_irq(busdev, 0, irq[CF_IDE]);
sysbus_mmio_map(busdev, 0, 0x14001000);
sysbus_mmio_map(busdev, 1, 0x1400080c);
mmio_ide_init_drives(dev, dinfo, NULL);
--
2.47.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fwd: [PULL 20/21] Revert "hw/sh4/r2d: Realize IDE controller before accessing it",
Thomas Huth <=