From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) (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 3E3B7372049 for ; Tue, 7 Jul 2026 16:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.18.0.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783442110; cv=none; b=C6Dpis3FEoWYctpfN3IrrzLOFK7q78N1vk8NIaFWnHGUp7+NFPU6YLNIn9GyZsSLh8fgWepm0Nx9VXqrO+B6d84mfH9BT+FUVWYstobkvaSKe9IOb3rDQyuFSQe9FlQRtqEiQ5Fi9oB7j6MbzOZtyKhfGGNIo3sxRS8ZuEm746k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783442110; c=relaxed/simple; bh=8rpfelbLg0uf/20VdLOYAqzydwI3tljCRMENjgsr80k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=tS/lGBemrvjgZ+NjbY6Y+04cfKF/xnNMuNzp6j8xlKRnpElt1r6OxbKIsEmSl9mdoIK4myskDdWtIYAjreWIPNoycpWaRS/h6dcnEYCFvsEXB/Kc2uvpnNs/IMXHbp/xaJhibjduSJNgfDr8d1KtgsQXymxtEpAEtzT7EFKK0yY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=nefkom.net; arc=none smtp.client-ip=212.18.0.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nefkom.net Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by mail-out.m-online.net (Postfix) with ESMTP id 4gvmzY6Tmdz1r6RW; Tue, 7 Jul 2026 18:35:05 +0200 (CEST) Received: from frontend04.mail.m-online.net (unknown [192.168.6.183]) by mail-out.m-online.net (Postfix) with ESMTP id 4gvmzG5557z1r6R0; Tue, 7 Jul 2026 18:34:50 +0200 (CEST) Received: from localhost (dynscan4.mnet-online.de [192.168.6.88]) by mail.m-online.net (Postfix) with ESMTP id 4gvmzG1DbMz1qqlR; Tue, 7 Jul 2026 18:34:50 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.6.182]) by localhost (dynscan4.mail.m-online.net [192.168.6.88]) (amavis, port 10024) with ESMTP id kJKRVuiU1jub; Tue, 7 Jul 2026 18:34:46 +0200 (CEST) X-Auth-Info: Y+4plMtLHRkNw3dtBnoz0w3GIcHXk+/2CL/apTnD9OFXK3ANubt/TudTefKyxyOF Received: from igel.home (aftr-62-216-202-200.dynamic.mnet-online.de [62.216.202.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 7 Jul 2026 18:34:46 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id B873B2C0AF2; Tue, 07 Jul 2026 18:34:45 +0200 (CEST) From: Andreas Schwab To: Mukesh Kumar Chaurasiya 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> Date: Tue, 07 Jul 2026 18:34:45 +0200 Message-ID: <875x2qu5ay.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."