From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381099; b=PAZnSOGBLDoZXfFBY3+QBQPc3rLnheHenrOYcSgMBHlZdb61Rt8eQYjOYKBuxnr7p8Bo pc614PgY27Bi54PxrSRIGgcfmkvhi0x5OcZEuxSBQcAy6GEnBJ6xu2HnanX6SOwMdxfHj MCSuykor7OU4dkeEZkXQ24bO3XxXycal57/ay3+lAkoE33MDHz1fuTLxKc2Np2lyOZd/6 DQXp+AtYAXauZO6sPBtNQy16wFPz2wdquJrtpYQz/5D28oRBb+oV+gb6H8kTV6lW0goIV TwBTg1bCQL3giHTXVntVhK9KVfDUy6NINwRYUKBN44fYQHIM+bg6AfGyx6JwLUlVIJQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381099; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=+OfUAd6Zte9HffZbealBePrd5tZOQaSBJh7qZtJCC/k=; b=2mfx6ILF73DXFx1EL8uOn9uEa+gtEd/AQabLETWpb9IjeTmbbU1c08ehO/r2z+Nmjjm8 8x/mO4s48LLPj1aryWuEvSany46IUiXVuyy4kjTmUVyUCUHzJDu5fycTCtmgwNMdvHwen 0QlerWKFaORtRzakjArClN4FglSEwdLoK49EE8ypDJPmmmsc1LPnj4nQKB9FhXnG9IXYP XHfhLW6ClAf9fb2Bmlxc0XfKWaLh/CPPdF42ix7B3gQo+wHG374VvH55qQ/pNyosKLlLw lVHp/zQMazf5r1muOGrrJKRDqpF7upkbLyZt/HMiPZM3PqePFkQlSBubh2J5nO5suUA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="QLHsUw6/"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B439606A322; Fri, 4 Dec 2026 10:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=QLHsUw6/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id D78AA1F000C2; Fri, 4 Dec 2026 10:44:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381099; bh=+OfUAd6Zte9HffZbealBePrd5tZOQaSBJh7qZtJCC/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QLHsUw6/FG5XYmMBDhQauaiCtV7ufJ097CIt30v02PqJXVwXnbBjRqmh3cBdOlZzF AoBBvNAnQJOlNTvin2VfZmTqQJ3LWpJYicQyfMpvCx0UDeaBFsa9Q0ajymifuders/ D6WWVzxwelJ79oINQVnlebO4mY8Lg/MnH3CxN1Js= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Ritesh Harjani (IBM)" , Shrikanth Hegde , "Mukesh Kumar Chaurasiya (IBM)" , Madhavan Srinivasan Subject: [PATCH 7.3 557/742] PPC32: Fix hard_irq_disable to follow tracing and lockdep state Date: Fri, 4 Dec 2026 19:07:01 +0900 Message-ID: <20261204100649.946886803@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shrikanth Hegde commit 2672bdcc7857073722c4772831a24b14832ee88a upstream. On PPC32, the code for hard_irq_disable has diverged and it doesn't do lockdep/tracing anymore, leading to use of both local_irq_disable and hard_irq_disable on PPC32 to overcome those. That is un-necessary, instead simply calling local_irq_disable is enough. It disables EE bit and does lockdep tracking. Subsequent patch uses this API in KVM code to avoid the warnings. Wider use of it is possible, but it will be taken subsequently. Cc: stable@vger.kernel.org # v7.2+ Suggested-by: Ritesh Harjani (IBM) Reviewed-by: Ritesh Harjani (IBM) Signed-off-by: Shrikanth Hegde Reviewed-by: Mukesh Kumar Chaurasiya (IBM) Signed-off-by: Madhavan Srinivasan Link: https://patch.msgid.link/20261118051419.783878-2-sshegde@linux.ibm.com Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/hw_irq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/include/asm/hw_irq.h +++ b/arch/powerpc/include/asm/hw_irq.h @@ -464,7 +464,7 @@ static inline bool arch_irqs_disabled(vo return arch_irqs_disabled_flags(arch_local_save_flags()); } -#define hard_irq_disable() arch_local_irq_disable() +#define hard_irq_disable() local_irq_disable() static inline bool regs_irqs_disabled(struct pt_regs *regs) {