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=1796389376; b=oRehQ98euwIGv2x6/lGKJ3qvewsN2+cu/GOmuAyUNPD29PP/7HXxKZlVVajYAjX8UHTi dWNn5PmEbGj6/nGV/w4Sckw0MagCYBMXDNxr6JFuL7TEVI5GRxWvV6z5Vxr0ryGqOgaQP awAq5NyZqsJ3ZgrIAKhHx2EtMiU72IMDWJ2KrLAeBZs2SNdEFYPUqX62zWytYgy1TX+pm BvvQjXFWbWhi143xMUSKHnZHzdG01w8vxJR6oW2WkALW4897Ghn2OC7Bb/+O7vQY6V5ST X2Xx2iRE0FcsjB1YOsWjvmJ6Xm5TLDGWJ3MjSP+u7YFQ+0xsRnBSViEbOaBldhdJQTg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389376; 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=IiO8eT1B91UwtBP9ltp7eJxKy3Pe0vGT6qjtkyTNzv8=; b=zvd+/nCqdNaXLjs8q9QLFabp5XwUKvVyPeS8n56aWKOJCpG4QIXgfyk1iUt0QIvj2kXC ZjJIN87dDL3DCvbNRW0uWinKkxj8IVc2No33iFMo6D+3REQKKCpRpMdkxOgtvSOc6UqRd 3dy/VsQj6VYGDGwu5jWzkiwuYIXtgB1XhzPdy/4f49FccR0pu0HRyPU41HGqCEk/A15PO 2B5/k2kw5yf9MGpooWgzvxJDaxKSeB/tYVqjdzTPfQwyl+eCCMgeqcKJBK8hZRmuSQEaI 4MgRQbNqTUsAL85N+bwqRuq323fHu4oXIL7vpZB0B7bK+KrUQK/BHuYCW6hvfBSwgMQ== 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=c6vwkK9Y; 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 8DB3B606A322; Fri, 4 Dec 2026 13:02:56 +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=c6vwkK9Y Received: by smtp.kernel.org (Postfix) with ESMTPSA id 050741F00933; Fri, 4 Dec 2026 13:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796389376; bh=IiO8eT1B91UwtBP9ltp7eJxKy3Pe0vGT6qjtkyTNzv8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=c6vwkK9Y0Rz/CEN5e9gPVyw1jLPlRc7Npsw7CbGH/wtmZjtWmOwUjxC/OeVfhJEag 6f9VS3354jIi7gLm3Y5Stpgvg2aCh983kT3JPUBtpUikS63fZQ+xoliHWt7pS4wot/ 3qKo5EAw/gpK9O0jg6QAVMEQfy043bpgStrxKThc= 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 6.1 0968/1059] PPC32: Fix hard_irq_disable to follow tracing and lockdep state Date: Fri, 4 Dec 2026 19:08:19 +0900 Message-ID: <20261204100709.091596695@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@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 6.1-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 arch_irq_disabled_regs(struct pt_regs *regs) {