[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/7] ppc/pegasos2: Fix reset state of USB functions
From: |
Daniel Henrique Barboza |
Subject: |
[PULL 1/7] ppc/pegasos2: Fix reset state of USB functions |
Date: |
Fri, 4 Aug 2023 12:29:49 -0300 |
From: BALATON Zoltan <balaton@eik.bme.hu>
The original non-free board firmware sets the command register of the
USB functions to 7 and some guests rely on this for working USB. Match
what the board firmware does when using VOF instead.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-ID:
<06a2b864431425f23d1f2b5abf0c027819ac11c6.1689725688.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
hw/ppc/pegasos2.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c
index 4447bbe8ec..4a2ab35f19 100644
--- a/hw/ppc/pegasos2.c
+++ b/hw/ppc/pegasos2.c
@@ -324,9 +324,13 @@ static void pegasos2_machine_reset(MachineState *machine,
ShutdownCause reason)
pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 2) << 8) |
PCI_INTERRUPT_LINE, 2, 0x409);
+ pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 2) << 8) |
+ PCI_COMMAND, 2, 0x7);
pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 3) << 8) |
PCI_INTERRUPT_LINE, 2, 0x409);
+ pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 3) << 8) |
+ PCI_COMMAND, 2, 0x7);
pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 4) << 8) |
PCI_INTERRUPT_LINE, 2, 0x9);
--
2.41.0
- [PULL 0/7] ppc queue, Daniel Henrique Barboza, 2023/08/04
- [PULL 1/7] ppc/pegasos2: Fix reset state of USB functions,
Daniel Henrique Barboza <=
- [PULL 2/7] ppc/pegasos2: Fix reg property of ROM BARs, Daniel Henrique Barboza, 2023/08/04
- [PULL 3/7] ppc/pegasos2: Fix naming of device tree nodes, Daniel Henrique Barboza, 2023/08/04
- [PULL 7/7] target/ppc: Fix VRMA page size for ISA v3.0, Daniel Henrique Barboza, 2023/08/04
- [PULL 4/7] ppc/pegasos2: Fix reg property of 64 bit BARs in device tree, Daniel Henrique Barboza, 2023/08/04
- [PULL 5/7] target/ppc: Implement ASDR register for ISA v3.0 for HPT, Daniel Henrique Barboza, 2023/08/04
- [PULL 6/7] target/ppc: Fix pending HDEC when entering PM state, Daniel Henrique Barboza, 2023/08/04
- Re: [PULL 0/7] ppc queue, Richard Henderson, 2023/08/04
- Re: [PULL 0/7] ppc queue, Michael Tokarev, 2023/08/05