From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0998C3C3BEE for ; Wed, 15 Jul 2026 11:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784114914; cv=none; b=T9kZIYBnc8yQVOmaSOUZuzB/Z11Yxwl4e8/IG9K2ydrtEKBXnuvaZcQxlCuIUVWzfTSVZpeEocUqNZ+yC8ymbcgu8TuhCYI8xCbufN5MM3hjy1k7QzW+kTCAkcXOq5vj2L/dCJhmVcFsFGbw0W7RVQnc3C3/BivY9l60n7llX6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784114914; c=relaxed/simple; bh=JMv9fETZKjZk7v7pBwvy5YuUg1s4Y+c1ektCVCgjPYs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=gVzlllIp9KGNe9z28Ns9JwTnOYi8fEVfn8mCTXQxxFFzdmwVk5tkakYabPPim1d/gdPo+HLGrdo7mtM74Bsm723uFg8inIZFBtfBmyRSBquhV5Sjr7x4P9B+giQFLll5CqfVHx6nBS3NCki3JHdO7eq9F06E0XgwV+uuCA8euVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=RE+RJRZT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=NxdzLWFm; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RE+RJRZT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="NxdzLWFm" From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784114910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=01If23sRWVX5qrUA4FIRgNgbBaWGDr8CtRCDXCzfa0k=; b=RE+RJRZTQDOn9Kbi2CJq8wR08/rXnJROmk+vfTu87VvuTFlybLNgFrNhFb0kwLN4XuJHnX GM+/HYv0Cv15OCk1vSXbIHcLYLwUDkWOteZLlHLiHixHW+wSXYE3qSHy82mpzlaZoohrXX KojxKbGy3IS3tmUQ+sdV9g6cbCVZq+zITaY+xp6IHT5GjdApzmlnbNMp0eqTj2+7V31C+2 ACDXdmzDSb/q8Znk59fXEhqLYWEJdNVAjg0DqW2PKkBV1AbFJfomcdVpyOzB7xUFBf8M2S YmmzfMy/Iti6bnnVDhDKruywOO69rI7aIQO1qfitv72qCZ6l6vlepY+WSPinog== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784114910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=01If23sRWVX5qrUA4FIRgNgbBaWGDr8CtRCDXCzfa0k=; b=NxdzLWFmo33PnuT0OOCdY1Ugu3O6J6EOVV/Mm4OC8yM1YUDkYzJjhag7g4WV+C2UBu9Nzx bqlkzJlQwaTBs3Dg== To: Mukesh Kumar Chaurasiya , Andreas Schwab Cc: "Christophe Leroy (CS GROUP)" , maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, ryabinin.a.a@gmail.com, glider@google.com, andreyknvl@gmail.com, dvyukov@google.com, vincenzo.frascino@arm.com, oleg@redhat.com, kees@kernel.org, luto@amacapital.net, wad@chromium.org, mchauras@linux.ibm.com, sshegde@linux.ibm.com, thuth@redhat.com, ruanjinjie@huawei.com, akpm@linux-foundation.org, macro@orcam.me.uk, ldv@strace.io, charlie@rivosinc.com, deller@gmx.de, kevin.brodsky@arm.com, ritesh.list@gmail.com, yeoreum.yun@arm.com, agordeev@linux.ibm.com, segher@kernel.crashing.org, mark.rutland@arm.com, ryan.roberts@arm.com, pmladek@suse.com, feng.tang@linux.alibaba.com, peterz@infradead.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com Subject: Re: [PATCH v5 0/8] Generic IRQ entry/exit support for powerpc In-Reply-To: References: <20260427122742.210074-1-mkchauras@gmail.com> <87wlvazrdy.fsf@igel.home> <1693b268-ee26-4764-871a-5a067ae96080@kernel.org> <87wlv9tiyy.fsf@igel.home> <875x2qu5ay.fsf@igel.home> Date: Wed, 15 Jul 2026 13:34:29 +0206 Message-ID: <87mrvstrtu.fsf@jogness.linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Hi Mukesh, On 2026-07-07, Mukesh Kumar Chaurasiya wrote: > On Tue, Jul 07, 2026 at 06:34:45PM +0200, Andreas Schwab wrote: >> On Jul 07 2026, Mukesh Kumar Chaurasiya wrote: >> >> > diff --git a/arch/powerpc/include/asm/entry-common.h b/arch/powerpc/include/asm/entry-common.h >> > index fc636c42e89a..b6373bae4524 100644 >> > --- a/arch/powerpc/include/asm/entry-common.h >> > +++ b/arch/powerpc/include/asm/entry-common.h >> > @@ -286,14 +286,6 @@ static inline void arch_interrupt_async_enter_prepare(struct pt_regs *regs) >> > >> > static inline void arch_interrupt_async_exit_prepare(struct pt_regs *regs) >> > { >> > - /* >> > - * Adjust at exit so the main handler sees the true NIA. This must >> > - * come before irq_exit() because irq_exit can enable interrupts, and >> > - * if another interrupt is taken before nap_adjust_return has run >> > - * here, then that interrupt would return directly to idle nap return. >> > - */ >> > - nap_adjust_return(regs); >> > - >> > arch_interrupt_exit_prepare(regs); >> > } >> > >> > diff --git a/arch/powerpc/include/asm/interrupt.h b/arch/powerpc/include/asm/interrupt.h >> > index fb42a664ae54..1b45a49e9bed 100644 >> > --- a/arch/powerpc/include/asm/interrupt.h >> > +++ b/arch/powerpc/include/asm/interrupt.h >> > @@ -246,6 +246,7 @@ interrupt_handler void func(struct pt_regs *regs) \ >> > instrumentation_begin(); \ >> > irq_enter_rcu(); \ >> > ____##func (regs); \ >> > + nap_adjust_return(regs); \ >> > irq_exit_rcu(); \ >> > instrumentation_end(); \ >> > arch_interrupt_async_exit_prepare(regs); \ >> >> This allows the system to boot normally. >> > Thanks for testing this. I am assuming you tried this without > "powersave=off" command line option. I am here after bisecting the same problem. (I also use a G5.) I can also confirm that the above hack on top of v7.2-rc3 will boot (without specifying powersave=off). John Ogness