[PATCH v7] powerpc/irq: Inline call_do_irq() and call_do_softirq()

Nick Desaulniers ndesaulniers at google.com
Sat May 1 07:33:52 AEST 2021

On Tue, Apr 27, 2021 at 1:42 PM Nick Desaulniers
<ndesaulniers at google.com> wrote:
> On Mon, Apr 26, 2021 at 11:39 PM Christophe Leroy
> <christophe.leroy at csgroup.eu> wrote:
> >
> > As you can see, CLANG doesn't save/restore 'lr' allthought 'lr' is explicitely listed in the
> > registers clobbered by the inline assembly:
> Ah, thanks for debugging this. Will follow up in
> https://bugs.llvm.org/show_bug.cgi?id=50147.

Looks like there's a fix posted for LLVM in: https://reviews.llvm.org/D101657

Though trying to test it in QEMU, I'm hitting some assertion failure
booting a kernel (even without that patch to LLVM):
qemu-system-ppc: ../../hw/pci/pci.c:253: pci_bus_change_irq_level:
Assertion `irq_num >= 0' failed.
That's with
QEMU emulator version 5.2.0 (Debian 1:5.2+dfsg-9)

I didn't see anything in https://bugs.launchpad.net/qemu/ about it,
but figured I'd share in case that assertion failure looked familiar
to anyone.
~Nick Desaulniers

More information about the Linuxppc-dev mailing list