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=1796383918; b=jsdwQSH2FqdqiGdVvpti1GZ/3Ik0gVkB6aw6YYtxZFtu5pB8Qs/ywn7URZMH5Yecng9T OEFRXI8Y1bFOEAiOpETc/QUN+sJLEK3uJDsglHlLbTLbAWLokvzqHzpKB/UZe9NNXqyrL bofVsR3U5sx1iva4cZ4NkBh11DLrfafAMdzCbE4/A1LhnmbvAGhbbyQd6rEGjOWfLE4pH WFJa5jXeezkqOMjRFbGRhGwEW1SKnOVCWU/0tMtlUWRyzd8GD0lsQzOEP0elH/k/Ov40/ ekITx0ua3+W13AC6AvqoTyiMs84+PYwQTUSA+HcSjpk3+UG/ckfRd0wmASQFZoWqgHw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383918; 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=SsgkBmH/EclEY42wJLbJAPDuQEcs6Sj7iP0UBtCtUtY=; b=QrA7co9K+oxHl2dde8DawAjf+GW+IIYtApODqET5hHqTgY+L1HUj216VnsfYx2pNb5su pfKhOSciFTS7+OHtf3hj+1ROL8YyrN9g/7nh9Y7Y+fVjVtFSdOC/Q2JD2msREmpvQ6YBl fOQJEuPXs2DkwIOB9ozN8tThG9Fl0KPw2RQ6HDaab0w36zBoRecgAPptSPjpuh65QQTQ8 L5GeKaba0USjaZ2cRg5tI5uNWD7YPiuwhTZBcCQNAV/7Dsgf9HHGxvVTKSDVL1SbsqUWb IL/2IplleCDGcIoJcLywmMR12XRpIwWkRBqygmfOfaSvyCOAhUpL4RdFQF2FNGFaSow== 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=b83GvWXG; 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 CC140606BF12; Fri, 4 Dec 2026 11:31:58 +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=b83GvWXG Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EB401F00936; Fri, 4 Dec 2026 11:31:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383918; bh=SsgkBmH/EclEY42wJLbJAPDuQEcs6Sj7iP0UBtCtUtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=b83GvWXG4tcBRwTvRCNeAeBB9+6AZ6Ch37gNu3MqKeF01Ycp9Ga2WlzqeSLM3cirb OmWszKj1eihyRaTk7OX2Wa742rUAFypmswxAKBqI7NKa3qTO5y6Z05q4GDGFqH6fx/ V7hrd0NnPJk+Nl4nhlLheTUHQplR7gm262v+i53Y= 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.12 424/555] PPC32: Fix hard_irq_disable to follow tracing and lockdep state Date: Fri, 4 Dec 2026 19:07:47 +0900 Message-ID: <20261204100625.858219255@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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.12-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) {