From: Paolo Bonzini <pbonzini@redhat.com>
To: Li Qiang <liq3ea@gmail.com>
Cc: Li Qiang <liq3ea@163.com>, "mst@redhat.com" <mst@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Questions about acpi interrupt link device's ‘_PRS' field
Date: Thu, 11 Apr 2019 09:44:03 +0200 [thread overview]
Message-ID: <e5f15cd9-c34c-737d-4fa2-2aee7c5f0ad9@redhat.com> (raw)
In-Reply-To: <CAKXe6S+w4A6YubgQib5H2QXE=eLFLWFQE-mOHYBM5PTXKaYAOA@mail.gmail.com>
On 11/04/19 02:57, Li Qiang wrote:
>
>
> Paolo Bonzini <pbonzini@redhat.com <mailto:pbonzini@redhat.com>> 于2019
> 年4月10日周三 下午11:55写道:
>
> On 10/04/19 16:33, Li Qiang wrote:
> > Hi all,
> >
> >
> >
> > I see the link device ‘_PRS’ uses irq line 5, 10, 11 in
> > ‘build_link_dev’ function.
> >
> > But I never see the 5 lines uses in the guest, just uses 10 and 11.
> >
> > Why this happen? Maybe related with the guest?
>
> Because the MADT table tells the guest to only use lines 10 and 11. The
> BIOS configures the chipset that way.
>
>
> Hi Paolo,
>
> I read the MADT spec, and found that it may related with 'Entry Type 2 :
> Interrupt Source Override'.
> However, in build_madt function, I found following code when fill
> interrupt source overide.
>
> #define ACPI_BUILD_PCI_IRQS ((1<<5) | (1<<9) | (1<<10) | (1<<11))
> if (!(ACPI_BUILD_PCI_IRQS & (1 << i))) {
> /* No need for a INT source override structure. */
> continue;
> }
>
> Seems the madt doesn't play a role?
>
> Also in the seabios code, I see the pci interrupt linking device is
> routed hard-coded by pci_irqs.
> So this means the seabios doesn't use the madt/dsdt table to configure
> PCI interrupt routing?
Yeah, the MADT doesn't matter, I got confused. It's just the firmware's
definition of pci_irqs that affects the behavior you're seeing.
Paolo
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Li Qiang <liq3ea@gmail.com>
Cc: Li Qiang <liq3ea@163.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"mst@redhat.com" <mst@redhat.com>
Subject: Re: [Qemu-devel] Questions about acpi interrupt link device's ‘_PRS' field
Date: Thu, 11 Apr 2019 09:44:03 +0200 [thread overview]
Message-ID: <e5f15cd9-c34c-737d-4fa2-2aee7c5f0ad9@redhat.com> (raw)
Message-ID: <20190411074403.T7mlazXY5H-Io01Fn3h--x2xA3Adzox3jE6krLD-W9M@z> (raw)
In-Reply-To: <CAKXe6S+w4A6YubgQib5H2QXE=eLFLWFQE-mOHYBM5PTXKaYAOA@mail.gmail.com>
On 11/04/19 02:57, Li Qiang wrote:
>
>
> Paolo Bonzini <pbonzini@redhat.com <mailto:pbonzini@redhat.com>> 于2019
> 年4月10日周三 下午11:55写道:
>
> On 10/04/19 16:33, Li Qiang wrote:
> > Hi all,
> >
> >
> >
> > I see the link device ‘_PRS’ uses irq line 5, 10, 11 in
> > ‘build_link_dev’ function.
> >
> > But I never see the 5 lines uses in the guest, just uses 10 and 11.
> >
> > Why this happen? Maybe related with the guest?
>
> Because the MADT table tells the guest to only use lines 10 and 11. The
> BIOS configures the chipset that way.
>
>
> Hi Paolo,
>
> I read the MADT spec, and found that it may related with 'Entry Type 2 :
> Interrupt Source Override'.
> However, in build_madt function, I found following code when fill
> interrupt source overide.
>
> #define ACPI_BUILD_PCI_IRQS ((1<<5) | (1<<9) | (1<<10) | (1<<11))
> if (!(ACPI_BUILD_PCI_IRQS & (1 << i))) {
> /* No need for a INT source override structure. */
> continue;
> }
>
> Seems the madt doesn't play a role?
>
> Also in the seabios code, I see the pci interrupt linking device is
> routed hard-coded by pci_irqs.
> So this means the seabios doesn't use the madt/dsdt table to configure
> PCI interrupt routing?
Yeah, the MADT doesn't matter, I got confused. It's just the firmware's
definition of pci_irqs that affects the behavior you're seeing.
Paolo
next prev parent reply other threads:[~2019-04-11 7:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-10 14:33 [Qemu-devel] Questions about acpi interrupt link device's ‘_PRS' field Li Qiang
2019-04-10 14:33 ` Li Qiang
2019-04-10 15:55 ` Paolo Bonzini
2019-04-10 15:55 ` Paolo Bonzini
2019-04-11 0:57 ` Li Qiang
2019-04-11 0:57 ` Li Qiang
2019-04-11 7:44 ` Paolo Bonzini [this message]
2019-04-11 7:44 ` Paolo Bonzini
2019-04-11 7:52 ` Li Qiang
2019-04-11 7:52 ` Li Qiang
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=e5f15cd9-c34c-737d-4fa2-2aee7c5f0ad9@redhat.com \
--to=pbonzini@redhat.com \
--cc=liq3ea@163.com \
--cc=liq3ea@gmail.com \
--cc=mst@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.