From nobody Mon Sep 28 15:34:40 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 F228C2EBDE9; Thu, 20 Aug 2026 06:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787207430; cv=none; b=Yv5dZ4fu4jfuo4J0EteqNra8RmtJHiBqjPkZwJ36W0sMSgbtq8Olhuom6W8b0U7vmBIij4Iy35HlOIEQNep0TuvzRqUPYQTA5WDv+cVYobqLtGsmiZpGCfbGs6pMKyz10MEzIgwK4nzFUtVcV+Jd2RIwsii4bR9ODsf/z64Ss7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787207430; c=relaxed/simple; bh=0jgYCK3CnasCprjhLphYxtyvfUnGzYvu0WpuoNaiMJQ=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=BrqxqB/UjnWG++FRsH+8b7rEmz+jCZWV7sBW8A2kYTLxWjZdRQbQnCvoQ8iWcATFa56DErPwJUlHspgidzHgzTuShPICvJSEFSCCGn/KiwuwYA6zzNyOgI8XdJjj8f1gBhYfC4AryjvXKJ7tQcP5wfg24PQTLv4n0htx9XlsRCA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=opTM9OaU; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YeAVN0l0; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="opTM9OaU"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YeAVN0l0" Date: Thu, 20 Aug 2026 06:30:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1787207425; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dz7HFY2YvYrXRE3Kg5Hpp4vQcL7FGu44zcbsxGM4f9Y=; b=opTM9OaUPAMIZXUWX2MuPdRg4HDtqTt2D1Lv3AufgdIq/fZaLvRwf0+dTXu8zlPNcae5JA Gpo5QtlWXK1lRQGm4pBGkZqBnrgZ5nZqnM9FHQjdegBpi0JCWezhy6dNPIabSPo/gE6uMM q1pr+ufSe/HYo8F6Bnq0bJTiggnCT0EM39djfzrLTNOvgCIJ5Zh82WnlbSOfD7nNANPuJ0 4T9MSZtg7ZLJroxlfmGN27daRbPcdwsboFFGI9Cw7PN9wnqbI6GC/RbPOGZAl2jvMP/AdV pdliGTbajKkYOzg554qx9IeA6+WnmroA2Fvwvr/cce0fujXZ+T0X4YJsRuE1zw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1787207425; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dz7HFY2YvYrXRE3Kg5Hpp4vQcL7FGu44zcbsxGM4f9Y=; b=YeAVN0l0ioZyayNqdOES1p+E9ylmuW9h2LzUGSjVOuICZolYhXkojC16WIEPNNUAr2mSLF 8q0VszGdakAd7OAQ== From: "tip-bot2 for Michael Pesa" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqchip/ast2700-intc: Disable all interrupt merge banks on probe Cc: Michael Pesa , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20260722050243.298355-1-michael.pesa@icloud.com> References: <20260722050243.298355-1-michael.pesa@icloud.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178720742407.1542179.797565074819020452.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 34b7e953d19a39515f8fc6c0820ebf243ea6b026 Gitweb: https://git.kernel.org/tip/34b7e953d19a39515f8fc6c0820ebf243= ea6b026 Author: Michael Pesa AuthorDate: Tue, 21 Jul 2026 22:02:43 -07:00 Committer: Thomas Gleixner CommitterDate: Thu, 20 Aug 2026 08:29:33 +02:00 irqchip/ast2700-intc: Disable all interrupt merge banks on probe The INTC0 interrupt-merge (INTM) space has 50 sources at 10 per bank, i.e. INTC0_INTM_NUM / INTM_IRQS_PER_BANK =3D 5 banks. This is reflected everywhe= re the banks are indexed: the aspeed_intc0_intm_routes[] table has 5 valid entries, and the mask/unmask/eoi paths compute the bank as (hwirq - INTM_BASE) / INTM_IRQS_PER_BANK, spanning banks 0-4. However, INTC0_INTM_BANK_NUM is hardcoded to 3, so aspeed_intc0_disable_intm() only clears IER for banks 0-2 at probe. Banks 3 and 4 are left in whatever state the firmware configured them , which can leave interrupts enabled before a handler is installed. Derive the bank count from the source count so the probe-time disable covers every bank. Fixes: 07825e41519a ("irqchip/ast2700-intc: Add AST2700-A2 support") Signed-off-by: Michael Pesa Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260722050243.298355-1-michael.pesa@icloud.= com --- drivers/irqchip/irq-ast2700-intc0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-ast2700-intc0.c b/drivers/irqchip/irq-ast2= 700-intc0.c index c85b98a..1e375e9 100644 --- a/drivers/irqchip/irq-ast2700-intc0.c +++ b/drivers/irqchip/irq-ast2700-intc0.c @@ -48,9 +48,9 @@ #define INTC0_INTMX_IER 0x1b00 #define INTC0_INTMX_ISR 0x1b04 #define INTC0_INTMX_BANK_SIZE 0x10 -#define INTC0_INTM_BANK_NUM 3 #define INTC0_IRQS_PER_BANK 32 #define INTM_IRQS_PER_BANK 10 +#define INTC0_INTM_BANK_NUM (INTC0_INTM_NUM / INTM_IRQS_PER_BANK) #define INTC0_SEL_BASE 0x200 #define INTC0_SEL_BANK_SIZE 0x4 #define INTC0_SEL_ROUTE_SIZE 0x100