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=1796382650; b=lF3NjPHOuD+9V9BAPEDsK8/mf5DYAt7OS+YsA9RsoX8pz9Ayr+sP/Jp3HkUJQQz8siL6 cUzk/hcBZKgeBosz+dKCDc89oTkV3vt6pRLTaRPgaXQJUaJF18crQMK4u64+6oDdMNruA Z1bwaRBg4Nc8r5wfunl7Jg94/RyXxh0Dp4jWpojXCCpKkTaqrdYY1IY2hzZ9752GBDyBH H3qqBFX+dr2CE6DNkFQNr2HvXBiyoBiX7Io3rxWvoosCBdIXX57hKRXggdhaA88UbWSka 8dQ1ivOAOCnDmk6mLvAWwe6nkCyeN3OyXYZyDpYvHfdSD/KIsQdxbC5eTmTUU8Blrfw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382650; 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=lcRmMF2Sfi/wOLm8cWaQED2KO9eeYL3leR3pMagyw9Y=; b=ZhfIDCK5pUNSsk20rzdfNSm474GzkFpM5Bumat1Vsie3KHX16EAEBk+ubPPVEhfKtUvi Z0hyxgwZtXXhvFBQiBQO3kN8CgTExQ5kUpMLyg4etdn92+GRWzBD//oNZ5bCPWGHqigaM l/TGcahSIL9i2rpSxsemsl90d9wdbfhXdG9741sPM6108od7apaMxZGcpKjKLIzrrmwO+ QaGRFOFnBOHcdZY/X3d8+WumtTVcl3AQIgJcMiJjCF2HhdWzlT7+ns/LDczU5kunXknN2 jT0amCTVdc2qKHEd8yWIXkx9MYBoutX7JWZAFIv7KvHV6K63HbqmUi+tivDRvscMhTA== 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="ZicUZe/y"; 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 9350A606A32D; Fri, 4 Dec 2026 11:10:50 +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=ZicUZe/y Received: by smtp.kernel.org (Postfix) with ESMTPSA id 067241F000C2; Fri, 4 Dec 2026 11:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796382650; bh=lcRmMF2Sfi/wOLm8cWaQED2KO9eeYL3leR3pMagyw9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZicUZe/y1dZIQqF2Y8g/Im8LIFdmFvVUw5nvo4nfZtO5XRFr6RsNqb3OaQRmzDqvs t+DBLM4ZmA4hz8ulx5MviTgTUq89LtBsM4I2NWQxAf7bwEm+B238hIn2KLN/0ph5Ap A+w1I4nV8diSuUPZNKttmItxavR3wtM7kz4BIS0E= 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.18 494/703] PPC32: Fix hard_irq_disable to follow tracing and lockdep state Date: Fri, 4 Dec 2026 19:06:33 +0900 Message-ID: <20261204100640.945795625@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@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.18-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) {