From: "Cédric Le Goater" <clg@kaod.org>
To: Alexey Kardashevskiy <aik@ozlabs.ru>,
Alex Williamson <alex.williamson@redhat.com>,
Timothy Pearson <tpearson@raptorengineering.com>
Cc: Frederic Barrat <fbarrat@linux.ibm.com>,
"list@suse.de:PowerPC" <qemu-ppc@nongnu.org>,
qemu-devel@nongnu.org, Nicholas Piggin <npiggin@gmail.com>,
David Gibson <david@gibson.dropbear.id.au>
Subject: Re: XIVE VFIO kernel resample failure in INTx mode under heavy load
Date: Thu, 21 Apr 2022 08:35:50 +0200 [thread overview]
Message-ID: <3e188eb4-40dd-952c-9764-4cc8cb255f01@kaod.org> (raw)
In-Reply-To: <5308af13-a943-efeb-d819-e39cfc2f2907@ozlabs.ru>
On 4/21/22 05:07, Alexey Kardashevskiy wrote:
>
>
> On 14/04/2022 22:41, Cédric Le Goater wrote:
>>
>>>> After re-reading what I just wrote, I am leaning towards disabling use of KVM_CAP_IRQFD_RESAMPLE as it seems last worked on POWER8 and never since :)
>>>>
>>>> Did I miss something in the picture (hey Cedric)?
>>>
>>> How about disabling it like this?
>>>
>>> =====
>>> diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
>>> index 5bfd4aa9e5aa..c999f7b1ab1b 100644
>>> --- a/hw/ppc/spapr_pci.c
>>> +++ b/hw/ppc/spapr_pci.c
>>> @@ -732,7 +732,7 @@ static PCIINTxRoute spapr_route_intx_pin_to_irq(void *opaque, int pin)
>>> SpaprPhbState *sphb = SPAPR_PCI_HOST_BRIDGE(opaque);
>>> PCIINTxRoute route;
>>>
>>> - route.mode = PCI_INTX_ENABLED;
>>> + route.mode = PCI_INTX_DISABLED;
>>>
>>> =====
>>
>> I like it.
>
>
> The only thing is that this resampling works on POWER8/XICS and
> removing it there is not great. So far sPAPR PHB was unaware of
> underlying interrupt controller, or was not it?
It is. The dynamic change of the underlying irqchip in QEMU and
in KVM required that for CAS. Of course, plenty is done in the
back of the devices when this happens, see spapr_irq.
There are some quirks related to LPM with VIO devices in Linux.
This is the only case I know about.
Thanks,
C.
next prev parent reply other threads:[~2022-04-21 6:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-11 18:35 XIVE VFIO kernel resample failure in INTx mode under heavy load Timothy Pearson
2022-03-11 18:53 ` Timothy Pearson
2022-03-14 22:09 ` Alex Williamson
2022-03-16 16:29 ` Cédric Le Goater
2022-03-16 19:16 ` Cédric Le Goater
2022-04-13 4:56 ` Alexey Kardashevskiy
2022-04-13 6:26 ` Alexey Kardashevskiy
2022-04-14 12:41 ` Cédric Le Goater
2022-04-21 3:07 ` Alexey Kardashevskiy
2022-04-21 6:35 ` Cédric Le Goater [this message]
2024-04-15 16:33 ` Timothy Pearson
2025-09-09 21:05 ` Timothy Pearson
2022-04-14 12:31 ` Cédric Le Goater
2022-04-19 1:55 ` Alexey Kardashevskiy
2022-04-19 7:35 ` Cédric Le Goater
2022-03-22 8:31 ` Alexey Kardashevskiy
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=3e188eb4-40dd-952c-9764-4cc8cb255f01@kaod.org \
--to=clg@kaod.org \
--cc=aik@ozlabs.ru \
--cc=alex.williamson@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=fbarrat@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=tpearson@raptorengineering.com \
/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).