From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad@kernel.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH] hw/piix4acpi: Make writes to ACPI_DBG_IO_ADDR actually work.
Date: Wed, 13 Nov 2013 14:34:44 -0500 [thread overview]
Message-ID: <20131113193444.GA5635@phenom.dumpdata.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1311131843000.4714@kaball.uk.xensource.com>
On Wed, Nov 13, 2013 at 06:43:16PM +0000, Stefano Stabellini wrote:
> On Wed, 13 Nov 2013, Konrad Rzeszutek Wilk wrote:
> > On Wed, Nov 13, 2013 at 06:03:44PM +0000, Stefano Stabellini wrote:
> > > On Tue, 12 Nov 2013, Konrad Rzeszutek Wilk wrote:
> > > > On Tue, Nov 12, 2013 at 03:42:18PM +0000, Ian Jackson wrote:
> > > > > Konrad Rzeszutek Wilk writes ("[PATCH] hw/piix4acpi: Make writes to ACPI_DBG_IO_ADDR actually work."):
> > > > > > The ACPI AML code has little snippets where it uses two
> > > > > > memory locations to stash debug information when doing PCI
> > > > > > hotplug, such as:
> > > > >
> > > > > Thanks.
> > > > >
> > > > > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> > > > > Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
> > > >
> > > > Yeey!
> > > > >
> > > > > to qemu-xen-traditional master.
> > > >
> > > > It also applies to the qemu-xen but I forgot to CC Stefano. Doing it
> > > > here.
> > >
> > > Unfortunately the code in upstream qemu is very different in this area,
> > > and it looks like ACPI_DBG_IO_ADDR is actually unused.
> >
> > Correct. Not for upstream qemu but for qemu-xen. You are the maintainer
> > of that tree too right?
>
> Right, the situation is the same in qemu-xen as in upstream QEMU.
I see that the qemu-xen has changed the name of the file, so its
acpi_piix4.c instead of piix4_acpi.c.
This seems to apply to my local xen-unstable tree:
diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c
index 059b64f..4ad9043 100644
--- a/hw/acpi_piix4.c
+++ b/hw/acpi_piix4.c
@@ -197,7 +197,7 @@ static void apm_ctrl_changed(uint32_t val, void *arg)
}
}
-static void acpi_dbg_writel(void *opaque, uint32_t addr, uint32_t val)
+static void acpi_dbg_writeb(void *opaque, uint32_t addr, uint32_t val)
{
PIIX4_DPRINTF("ACPI: DBG: 0x%08x\n", val);
}
@@ -453,7 +453,7 @@ static int piix4_pm_initfn(PCIDevice *dev)
/* APM */
apm_init(&s->apm, apm_ctrl_changed, s);
- register_ioport_write(ACPI_DBG_IO_ADDR, 4, 4, acpi_dbg_writel, s);
+ register_ioport_write(ACPI_DBG_IO_ADDR, 4, 1, acpi_dbg_writeb, s);
if (s->kvm_enabled) {
/* Mark SMM as already inited to prevent SMM from running. KVM does not
Would you like me to repost it with the right file and the same
commit description?
Thank you.
next prev parent reply other threads:[~2013-11-13 19:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-11 18:42 [PATCH] hw/piix4acpi: Make writes to ACPI_DBG_IO_ADDR actually work Konrad Rzeszutek Wilk
2013-11-11 19:24 ` Ross Philipson
2013-11-11 20:06 ` Konrad Rzeszutek Wilk
2013-11-12 15:42 ` Ian Jackson
2013-11-12 16:30 ` Konrad Rzeszutek Wilk
2013-11-13 18:03 ` Stefano Stabellini
2013-11-13 18:33 ` Konrad Rzeszutek Wilk
2013-11-13 18:43 ` Stefano Stabellini
2013-11-13 19:34 ` Konrad Rzeszutek Wilk [this message]
2013-11-13 19:41 ` Stefano Stabellini
2013-11-25 13:59 ` Ian Jackson
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=20131113193444.GA5635@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=konrad@kernel.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xenproject.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).