qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Paulo Alcantara <pcacjr@gmail.com>, seabios@seabios.org
Cc: Paulo Alcantara <pcacjr@zytor.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] ich9: initialise RCBA register through LPC interface
Date: Wed, 27 May 2015 11:32:59 +0200	[thread overview]
Message-ID: <55658F4B.5000204@redhat.com> (raw)
In-Reply-To: <1432686530-14777-1-git-send-email-pcacjr@zytor.com>



On 27/05/2015 02:28, Paulo Alcantara wrote:
> This patch initialises root complex register block BAR in order to
> support TCO watchdog emulation features on QEMU.
> 
> Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
> ---
>  src/fw/dev-q35.h | 3 +++
>  src/fw/pciinit.c | 4 ++++
>  2 files changed, 7 insertions(+)
> 
> diff --git a/src/fw/dev-q35.h b/src/fw/dev-q35.h
> index c6f8bd9..201825d 100644
> --- a/src/fw/dev-q35.h
> +++ b/src/fw/dev-q35.h
> @@ -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
> diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c
> index ac39d23..defccf3 100644
> --- a/src/fw/pciinit.c
> +++ b/src/fw/pciinit.c
> @@ -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);
>  }
> 

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

  reply	other threads:[~2015-05-27  9:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-27  0:28 [Qemu-devel] [PATCH] ich9: initialise RCBA register through LPC interface Paulo Alcantara
2015-05-27  9:32 ` Paolo Bonzini [this message]
2015-06-22 13:06   ` Paolo Bonzini
2015-06-22 14:43     ` [Qemu-devel] [SeaBIOS] " Kevin O'Connor
2015-06-22 15:26     ` [Qemu-devel] " Gerd Hoffmann
2015-07-10  0:04 ` [Qemu-devel] [PATCH v2] " Paulo Alcantara
2015-07-14 13:55   ` Gerd Hoffmann
2015-07-14 20:45     ` Paulo Alcantara

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=55658F4B.5000204@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=pcacjr@gmail.com \
    --cc=pcacjr@zytor.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    /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).