From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E4CE017B515; Fri, 27 Sep 2024 12:27:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440048; cv=none; b=QrdXCzzP4a5NM1P1f8Qrne8vjVcYChooMVujHe65yDFzWmrw+2MlRKLyNHNLLLwtpwcUMCI4akuMKTpk/pe0kHZoLZWKu1OEL74W6z17ulDk6Nv574Yrx1W910cVjE+MMKR7Cr/piQS2asa1nrvBDmE3KIE8JKMvtdGUJQLtYnE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440048; c=relaxed/simple; bh=ETtNj2dNofSHjM/On2PytW5YCpPwX8V4GAbcQbBj6FQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=riYOI10KovHGN/xaZgwqm5Mon4vthC14EqK9bHErDLvRycCm15h+oKUaTbApm/+GIuU+lPL9Pup5cKV3qQSmKYIihYzhftfHc2QbgFSHxArKd539MjLGm+Z7O4uR7qpJwS4PxIW00fxABneKM9QHNmNuUFB28fCqn/M0jwY9rMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OCw4LBbm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OCw4LBbm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 746CAC4CEC4; Fri, 27 Sep 2024 12:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440047; bh=ETtNj2dNofSHjM/On2PytW5YCpPwX8V4GAbcQbBj6FQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OCw4LBbmq9PajvACdhnT7sysZBrp+mr+0ks6WRIxWdXhVTB/wqFoxfLcqvXsC6agP k7hLNUCL8Q8C8pzNY1KvVWYqeFlMHpZ6DcrpZwhKQTM7nY8HpwWWmGQwo9V3KjPOQD kioUG+1/XH2qytplIWwn1Ahth7InjGFCKySfJx7E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Gleixner , Huacai Chen , Tianyang Zhang , Sasha Levin Subject: [PATCH 6.10 14/58] LoongArch: Define ARCH_IRQ_INIT_FLAGS as IRQ_NOPROBE Date: Fri, 27 Sep 2024 14:23:16 +0200 Message-ID: <20240927121719.393481803@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20240927121718.789211866@linuxfoundation.org> References: <20240927121718.789211866@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Huacai Chen [ Upstream commit 274ea3563e5ab9f468c15bfb9d2492803a66d9be ] Currently we call irq_set_noprobe() in a loop for all IRQs, but indeed it only works for IRQs below NR_IRQS_LEGACY because at init_IRQ() only legacy interrupts have been allocated. Instead, we can define ARCH_IRQ_INIT_FLAGS as IRQ_NOPROBE in asm/hwirq.h and the core will automatically set the flag for all interrupts. Reviewed-by: Thomas Gleixner Signed-off-by: Huacai Chen Signed-off-by: Tianyang Zhang Signed-off-by: Sasha Levin --- arch/loongarch/include/asm/hw_irq.h | 2 ++ arch/loongarch/kernel/irq.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/loongarch/include/asm/hw_irq.h b/arch/loongarch/include/asm/hw_irq.h index af4f4e8fbd858..8156ffb674159 100644 --- a/arch/loongarch/include/asm/hw_irq.h +++ b/arch/loongarch/include/asm/hw_irq.h @@ -9,6 +9,8 @@ extern atomic_t irq_err_count; +#define ARCH_IRQ_INIT_FLAGS IRQ_NOPROBE + /* * interrupt-retrigger: NOP for now. This may not be appropriate for all * machines, we'll see ... diff --git a/arch/loongarch/kernel/irq.c b/arch/loongarch/kernel/irq.c index f4991c03514f4..adac8fcbb2aca 100644 --- a/arch/loongarch/kernel/irq.c +++ b/arch/loongarch/kernel/irq.c @@ -102,9 +102,6 @@ void __init init_IRQ(void) mp_ops.init_ipi(); #endif - for (i = 0; i < NR_IRQS; i++) - irq_set_noprobe(i); - for_each_possible_cpu(i) { page = alloc_pages_node(cpu_to_node(i), GFP_KERNEL, order); -- 2.43.0