ich9: initialise RCBA register through LPC interface
PATCH 1/1 ich9: initialise RCBA register through LPC interface
This patch initialises root complex register block BAR in order to support TCO watchdog emulation features on QEMU.
--- src/fw/dev-q35.h | 3 +++ src/fw/pciinit.c | 4 ++++ 2 files changed, 7 insertions(+)
src/fw/dev-q35.h +3 -0
@@ -27,6 +27,9 @@#define ICH9_LPC_GEN_PMCON_1_SMI_LOCK (1 << 4)#define ICH9_LPC_PORT_ELCR1 0x4d0#define ICH9_LPC_PORT_ELCR2 0x4d1 +#define ICH9_LPC_RCBA 0xf0 +#define ICH9_LPC_RCBA_ADDR 0xfed1c000 +#define ICH9_LPC_RCBA_EN 0x1#define PCI_DEVICE_ID_INTEL_ICH9_SMBUS 0x2930#define ICH9_SMB_SMB_BASE 0x20#define ICH9_SMB_HOSTC 0x40
src/fw/pciinit.c +4 -0
@@ -183,6 +183,10 @@ static void mch_isa_bridge_setup(struct pci_device *dev, void *arg)/* acpi enable, SCI: IRQ9 000b = irq9*/ pci_config_writeb (bdf,ICH9_LPC_ACPI_CTRL ,ICH9_LPC_ACPI_CTRL_ACPI_EN ); +/* set root complex register block BAR */ +pci_config_writel (bdf,ICH9_LPC_RCBA , +ICH9_LPC_RCBA_ADDR |ICH9_LPC_RCBA_EN ); + acpi_pm1a_cnt = acpi_pm_base +0x04 ;pmtimer_setup (acpi_pm_base +0x08 ); }
Signature · 1 line
2.1.0
Quoted 29 lines · Paulo Alcantara
This patch initialises root complex register block BAR in order to support TCO watchdog emulation features on QEMU.
Signed-off-by Paulo Alcantara <[email protected]>--- src/fw/dev-q35.h | 3 +++ src/fw/pciinit.c | 4 ++++ 2 files changed, 7 insertions(+)src/fw/dev-q35.h +3
-0@@ -27,6 +27,9 @@#define ICH9_LPC_GEN_PMCON_1_SMI_LOCK (1 << 4)#define ICH9_LPC_PORT_ELCR1 0x4d0#define ICH9_LPC_PORT_ELCR2 0x4d1 +#define ICH9_LPC_RCBA 0xf0 +#define ICH9_LPC_RCBA_ADDR 0xfed1c000 +#define ICH9_LPC_RCBA_EN 0x1#define PCI_DEVICE_ID_INTEL_ICH9_SMBUS 0x2930#define ICH9_SMB_SMB_BASE 0x20#define ICH9_SMB_HOSTC 0x40src/fw/pciinit.c +0
-0
src/fw/pciinit.c static void mch_isa_bridge_setup(struct pci_device *dev, void *arg) · line 192
Quoted 10 lines
src/fw/pciinit.c +4
-0@@ -183,6 +183,10 @@ static void mch_isa_bridge_setup(struct pci_device *dev, void *arg)/* acpi enable, SCI: IRQ9 000b = irq9*/ pci_config_writeb (bdf,ICH9_LPC_ACPI_CTRL ,ICH9_LPC_ACPI_CTRL_ACPI_EN ); +/* set root complex register block BAR */ +pci_config_writel (bdf,ICH9_LPC_RCBA , +ICH9_LPC_RCBA_ADDR |ICH9_LPC_RCBA_EN ); + acpi_pm1a_cnt = acpi_pm_base +0x04 ;pmtimer_setup (acpi_pm_base +0x08 ); }
Quoted 34 lines · Paolo Bonzini
Quoted 31 lines · Paulo Alcantara
This patch initialises root complex register block BAR in order to support TCO watchdog emulation features on QEMU.
Signed-off-by Paulo Alcantara <[email protected]>--- src/fw/dev-q35.h | 3 +++ src/fw/pciinit.c | 4 ++++ 2 files changed, 7 insertions(+)src/fw/dev-q35.h +3
-0@@ -27,6 +27,9 @@#define ICH9_LPC_GEN_PMCON_1_SMI_LOCK (1 << 4)#define ICH9_LPC_PORT_ELCR1 0x4d0#define ICH9_LPC_PORT_ELCR2 0x4d1 +#define ICH9_LPC_RCBA 0xf0 +#define ICH9_LPC_RCBA_ADDR 0xfed1c000 +#define ICH9_LPC_RCBA_EN 0x1#define PCI_DEVICE_ID_INTEL_ICH9_SMBUS 0x2930#define ICH9_SMB_SMB_BASE 0x20#define ICH9_SMB_HOSTC 0x40src/fw/pciinit.c +0
-0@@ -183,6 +183,10 @@ static void mch_isa_bridge_setup(struct pci_device *dev, void *arg)/* acpi enable, SCI: IRQ9 000b = irq9*/ pci_config_writeb (bdf,ICH9_LPC_ACPI_CTRL ,ICH9_LPC_ACPI_CTRL_ACPI_EN );
Quoted 12 lines
src/fw/pciinit.c static void mch_isa_bridge_setup(struct pci_device *dev, void *arg) · line 192
Quoted 8 lines
src/fw/pciinit.c +4
-0+/* set root complex register block BAR */ +pci_config_writel (bdf,ICH9_LPC_RCBA , +ICH9_LPC_RCBA_ADDR |ICH9_LPC_RCBA_EN ); + acpi_pm1a_cnt = acpi_pm_base +0x04 ;pmtimer_setup (acpi_pm_base +0x08 ); }Reviewed-by Paolo Bonzini <[email protected]>
Ping? If TCO support is added to QEMU 2.4, we need this patch too.
Paolo
Quoted 46 lines · Paolo Bonzini
Quoted 32 lines · Paolo Bonzini
Quoted 31 lines · Paulo Alcantara
This patch initialises root complex register block BAR in order to support TCO watchdog emulation features on QEMU.
Signed-off-by Paulo Alcantara <[email protected]>--- src/fw/dev-q35.h | 3 +++ src/fw/pciinit.c | 4 ++++ 2 files changed, 7 insertions(+)src/fw/dev-q35.h +3
-0@@ -27,6 +27,9 @@#define ICH9_LPC_GEN_PMCON_1_SMI_LOCK (1 << 4)#define ICH9_LPC_PORT_ELCR1 0x4d0#define ICH9_LPC_PORT_ELCR2 0x4d1 +#define ICH9_LPC_RCBA 0xf0 +#define ICH9_LPC_RCBA_ADDR 0xfed1c000 +#define ICH9_LPC_RCBA_EN 0x1#define PCI_DEVICE_ID_INTEL_ICH9_SMBUS 0x2930#define ICH9_SMB_SMB_BASE 0x20#define ICH9_SMB_HOSTC 0x40src/fw/pciinit.c +0
-0@@ -183,6 +183,10 @@ static void mch_isa_bridge_setup(struct pci_device *dev, void *arg)/* acpi enable, SCI: IRQ9 000b = irq9*/ pci_config_writeb (bdf,ICH9_LPC_ACPI_CTRL ,ICH9_LPC_ACPI_CTRL_ACPI_EN );Quoted 12 lines
src/fw/pciinit.c static void mch_isa_bridge_setup(struct pci_device *dev, void *arg) · line 192
Quoted 8 lines
src/fw/pciinit.c +4
-0+/* set root complex register block BAR */ +pci_config_writel (bdf,ICH9_LPC_RCBA , +ICH9_LPC_RCBA_ADDR |ICH9_LPC_RCBA_EN ); + acpi_pm1a_cnt = acpi_pm_base +0x04 ;pmtimer_setup (acpi_pm_base +0x08 ); }Reviewed-by Paolo Bonzini <[email protected]>
Quoted 1 line
Ping? If TCO support is added to QEMU 2.4, we need this patch too.
The patch looks fine to me. But, for patches that require both SeaBIOS and QEMU support I generally prefer to see the QEMU code committed before committing the SeaBIOS part.
Sorry for the delay in responding.
-Kevin
Hi,
Quoted 5 lines
Quoted 3 lines
Reviewed-by Paolo Bonzini <[email protected]>Ping? If TCO support is added to QEMU 2.4, we need this patch too.
Hmm, should that happen we need a 1.8.3 release I guess ...
Can you ping me in case tco makes it into 2.4?
thanks,
Gerd
Quoted 2 lines
Paolo
PATCH v2 1/1 ich9: initialise RCBA register through LPC interface
In reply to Paulo AlcantaraThis patch initialises root complex register block BAR in order to support TCO watchdog emulation features on QEMU.
---
v1 -> v2:
- reserve RCBA address via e820 map
--- src/fw/dev-q35.h | 3 +++ src/fw/pciinit.c | 5 +++++ 2 files changed, 8 insertions(+)
src/fw/dev-q35.h +3 -0
@@ -27,6 +27,9 @@#define ICH9_LPC_GEN_PMCON_1_SMI_LOCK (1 << 4)#define ICH9_LPC_PORT_ELCR1 0x4d0#define ICH9_LPC_PORT_ELCR2 0x4d1 +#define ICH9_LPC_RCBA 0xf0 +#define ICH9_LPC_RCBA_ADDR 0xfed1c000 +#define ICH9_LPC_RCBA_EN 0x1#define PCI_DEVICE_ID_INTEL_ICH9_SMBUS 0x2930#define ICH9_SMB_SMB_BASE 0x20#define ICH9_SMB_HOSTC 0x40
src/fw/pciinit.c +5 -0
@@ -183,6 +183,11 @@ static void mch_isa_bridge_setup(struct pci_device *dev, void *arg)/* acpi enable, SCI: IRQ9 000b = irq9*/ pci_config_writeb (bdf,ICH9_LPC_ACPI_CTRL ,ICH9_LPC_ACPI_CTRL_ACPI_EN ); +/* set root complex register block BAR */ +pci_config_writel (bdf,ICH9_LPC_RCBA , +ICH9_LPC_RCBA_ADDR |ICH9_LPC_RCBA_EN ); +add_e820 (ICH9_LPC_RCBA_ADDR ,16 *1024 ,E820_RESERVED ); + acpi_pm1a_cnt = acpi_pm_base +0x04 ;pmtimer_setup (acpi_pm_base +0x08 ); }
Signature · 1 line
2.1.0
Quoted 2 lines · Paulo Alcantara
This patch initialises root complex register block BAR in order to support TCO watchdog emulation features on QEMU.
qemu patches are merged, committed this one too now. Also cherry-picked into 1.8-stable.
So, time to roll 1.8.3? Anything else pending?
cheers,
Gerd
Quoted 6 lines · On Tue, 14 Jul 2015 15:55:24 +0200 Gerd Hoffmann <[email protected]> wrote:
Quoted 2 lines · Paulo Alcantara
This patch initialises root complex register block BAR in order to support TCO watchdog emulation features on QEMU.
qemu patches are merged, committed this one too now. Also cherry-picked into 1.8-stable.
Alright. Thanks!
Quoted 1 line
So, time to roll 1.8.3? Anything else pending?
Yep. No, that's all.
Paulo
Signature · 2 lines
Paulo Alcantara, C.E.S.A.R Speaking for myself only.