From: "Michael S. Tsirkin" <mst@redhat.com>
To: Marcel Apfelbaum <marcel.a@redhat.com>
Cc: qemu-devel@nongnu.org, aliguori@amazon.com
Subject: Re: [Qemu-devel] [PATCH for-2.0] acpi: Fixed incorrect ACPI generation for pci bridges
Date: Thu, 27 Mar 2014 17:45:30 +0200 [thread overview]
Message-ID: <20140327154530.GB1713@redhat.com> (raw)
In-Reply-To: <1395934536-11888-1-git-send-email-marcel.a@redhat.com>
On Thu, Mar 27, 2014 at 05:35:36PM +0200, Marcel Apfelbaum wrote:
> Commit 8dcf525abc5dff785251a881f9764dd961065c0d appended
> description for all occupied non hotpluggable PCI slots.
> However the bridge devices are already added to SSDT,
> adding them again will create an incorrect SSDT table.
>
> Fixed by skipping the pci bridge devices, marking them as 'system'.
>
> Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Applied.
I tweaked the commit log and comment a bit.
> ---
> hw/i386/acpi-build.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
> index 7ecfd70..60abb57 100644
> --- a/hw/i386/acpi-build.c
> +++ b/hw/i386/acpi-build.c
> @@ -841,7 +841,8 @@ static void build_pci_bus_end(PCIBus *bus, void *bus_state)
> pc = PCI_DEVICE_GET_CLASS(pdev);
> dc = DEVICE_GET_CLASS(pdev);
>
> - if (pc->class_id == PCI_CLASS_BRIDGE_ISA) {
> + if (pc->class_id == PCI_CLASS_BRIDGE_ISA ||
> + pc->is_bridge) { /* DSDT or SSDT above */
> set_bit(slot, slot_device_system);
> }
>
> --
> 1.8.3.1
prev parent reply other threads:[~2014-03-27 15:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 15:35 [Qemu-devel] [PATCH for-2.0] acpi: Fixed incorrect ACPI generation for pci bridges Marcel Apfelbaum
2014-03-27 15:45 ` Michael S. Tsirkin [this message]
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=20140327154530.GB1713@redhat.com \
--to=mst@redhat.com \
--cc=aliguori@amazon.com \
--cc=marcel.a@redhat.com \
--cc=qemu-devel@nongnu.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).