[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86ed8ghypg.wl-maz@kernel.org>
Date: Sat, 29 Jun 2024 10:42:35 +0100
From: Marc Zyngier <maz@...nel.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Catalin Marinas <catalin.marinas@....com>,
LKML <linux-kernel@...r.kernel.org>,
linux-arm-kernel@...ts.infradead.org,
linux-pci@...r.kernel.org,
anna-maria@...utronix.de,
shawnguo@...nel.org,
s.hauer@...gutronix.de,
festevam@...il.com,
bhelgaas@...gle.com,
rdunlap@...radead.org,
vidyas@...dia.com,
ilpo.jarvinen@...ux.intel.com,
apatel@...tanamicro.com,
kevin.tian@...el.com,
nipun.gupta@....com,
den@...inux.co.jp,
andrew@...n.ch,
gregory.clement@...tlin.com,
sebastian.hesselbarth@...il.com,
gregkh@...uxfoundation.org,
rafael@...nel.org,
alex.williamson@...hat.com,
will@...nel.org,
lorenzo.pieralisi@....com,
jgg@...lanox.com,
ammarfaizi2@...weeb.org,
robin.murphy@....com,
lpieralisi@...nel.org,
nm@...com,
kristo@...nel.org,
vkoul@...nel.org,
okaya@...nel.org,
agross@...nel.org,
andersson@...nel.org,
mark.rutland@....com,
shameerali.kolothum.thodi@...wei.com,
yuzenghui@...wei.com,
shivamurthy.shastri@...utronix.de
Subject: Re: [patch V4 05/21] irqchip/gic-v3-its: Provide MSI parent for PCI/MSI[-X]
On Sat, 29 Jun 2024 09:37:59 +0100,
Thomas Gleixner <tglx@...utronix.de> wrote:
>
> On Fri, Jun 28 2024 at 23:24, Catalin Marinas wrote:
> > I just noticed guests (under KVM) failing to boot on my TX2 with your
> > latest branch. I bisected to this patch as the first bad commit.
> >
> > I'm away this weekend, so won't have time to dive deeper. It looks like
> > the CPU is stuck in do_idle() (no timer interrupts?). Also sysrq did not
> > seem able to get the stack trace on the other CPUs. It fails both with a
> > single or multiple CPUs in the same way place (shortly before mounting
> > the rootfs and starting user space).
>
> From the RH log it's clear that PCI interrupts are not delivered.
>
> > I'll drop your branch from the arm64 for-kernelci for now and have a
> > look again on Monday.
>
> I stare too. Unfortunately I don't have access to such hardware :(
On the face of it, the LPIs are never unmasked (grepping in
/sys/kernel/debug/kvm/*/vgic-state):
Distributor
===========
vgic_model: GICv3
nr_spis: 32
nr_lpis: 7
enabled: 1
P=pending_latch, L=line_level, A=active
E=enabled, H=hw, C=config (level=1, edge=0)
G=group
VCPU 0 TYP ID TGT_ID PLAEHCG HWID TARGET SRC PRI VCPU_ID
----------------------------------------------------------------
[...]
LPI 8192 0 1000001 0 0 0 160 -1
LPI 8193 1 0000001 0 0 0 160 -1
LPI 8194 2 0000001 0 0 0 160 -1
LPI 8256 3 0000001 0 0 0 160 -1
LPI 8257 4 0000001 0 0 0 160 -1
LPI 8320 5 0000001 0 0 0 160 -1
LPI 8321 6 1000001 0 0 0 160 -1
8192 and 8321 are pending, but never enabled.
This is further confirmed by placing traces in the guest. Now trying
to find my way through the new maze of callbacks, because something is
clearly missing there.
M.
--
Without deviation from the norm, progress is not possible.
Powered by blists - more mailing lists