From mboxrd@z Thu Jan 1 00:00:00 1970 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 3296C426D0C; Mon, 29 Jun 2026 15:19:53 +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=1782746394; cv=none; b=uts47vOWf2c3FpEUE8XMuos5tSxjeJn9pGPbRLz03ZUj+DYhBTD5L8FLxvIlizsvSBIdTHAq+8zZKFoBrmt0PCsaDKLBiskF41aCJj8iTJx3Riz5woEomBdB6zYDd7JWyT300h3cTqCSfB09CV2JbvMPlw/WFMKUiJ/YvZOqNN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782746394; c=relaxed/simple; bh=yk+fq1vZTt1L7LhFQuPPps/FpB04XmElGOmTculRzj8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=nq52djRck48kYMrWewaSwG8D2iXaub6bbYZT5fUt73TDoAN+iH0erH/4IHiteaMau0lSjG08iM0KEtJB29iJpReOQ8PPMOvsU49dD6hpxSlg/c/IKPD/u+nzYmQSYNF93MBRfhW2bRb7Lzeau0fAJEkzCI2kcJMf6okHQXSmPvU= 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=a2l1sT7T; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=uDXtHGWn; 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="a2l1sT7T"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uDXtHGWn" Date: Mon, 29 Jun 2026 15:19:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1782746391; 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=9YY3p8NSRBh6H7aE3MqG+BBvAtSxtybP/iXnn7xwBTk=; b=a2l1sT7T9zJ1l80xN7bF0o8HZfqcLduGUR1ELBPVLmtSKnKKPqjifyBd3D0IprclUy/H99 x1OGvZqQyvdLf5dw09T965tri0VYORXGPJn78TIWUd3Xyk6HXmOgyEPi0zp7M+iyDtaylH iF2LapevpIJte43ilGFuMuX+HniifHf/SAaVUT5+OrgVl85Vh0kRQci+mklSVxmVuMpUyk LJivnjQHZ/ANTsywqXnhWStdhRf5mChy8qsLDe5anbbmg00QOan3rZmCF0HcF9nUfsYdOx /SFQuaDqFx5XTeJHfGbAO9fHeoYptsj7wRUNzc63OJA9jhkCwn1EeK1TCsXc7w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1782746391; 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=9YY3p8NSRBh6H7aE3MqG+BBvAtSxtybP/iXnn7xwBTk=; b=uDXtHGWnlIRvUuOn7m58wL6rg6gKK+UT0IfUynG8pCVzXQsFfB6jX19IUuEE7lLecT6s2b NPG1RGoZakCm16CQ== From: "tip-bot2 for Markus Stockhausen" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/irq-realtek-rtl: Add mask for interrupt handling Cc: Markus Stockhausen , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260605211646.2101652-5-markus.stockhausen@gmx.de> References: <20260605211646.2101652-5-markus.stockhausen@gmx.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178274639045.3843924.17878865811747713869.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/drivers branch of tip: Commit-ID: 2a3fa7f31f43580edcba5ee9f97473801aa3deec Gitweb: https://git.kernel.org/tip/2a3fa7f31f43580edcba5ee9f97473801aa= 3deec Author: Markus Stockhausen AuthorDate: Fri, 05 Jun 2026 23:16:43 +02:00 Committer: Thomas Gleixner CommitterDate: Mon, 29 Jun 2026 17:19:06 +02:00 irqchip/irq-realtek-rtl: Add mask for interrupt handling When using multiple domains for the Interrupt controller, each one must know which hardware interrupts it serves. Add a mask that is filled during setup and apply it during interrupt handling. Signed-off-by: Markus Stockhausen Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260605211646.2101652-5-markus.stockhausen@gm= x.de --- drivers/irqchip/irq-realtek-rtl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-realtek-rtl.c b/drivers/irqchip/irq-realtek-= rtl.c index 547f21d..9f792d4 100644 --- a/drivers/irqchip/irq-realtek-rtl.c +++ b/drivers/irqchip/irq-realtek-rtl.c @@ -27,6 +27,7 @@ =20 struct realtek_ictl_output { struct irq_domain *domain; + u32 mask; }; =20 static DEFINE_RAW_SPINLOCK(irq_lock); @@ -109,15 +110,17 @@ static struct irq_chip realtek_ictl_irq =3D { .irq_set_affinity =3D realtek_ictl_irq_affinity, }; =20 -static int intc_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t = hw) +static int intc_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t = hw_irq) { + struct realtek_ictl_output *output =3D d->host_data; unsigned int cpu; =20 irq_set_chip_and_handler(irq, &realtek_ictl_irq, handle_level_irq); =20 guard(raw_spinlock_irqsave)(&irq_lock); + output->mask |=3D BIT(hw_irq); for_each_present_cpu(cpu) - write_irr(cpu, hw, 1); + write_irr(cpu, hw_irq, 1); =20 return 0; } @@ -136,7 +139,7 @@ static void realtek_irq_dispatch(struct irq_desc *desc) unsigned int hw_irq; =20 chained_irq_enter(chip, desc); - pending =3D readl(REG(cpu, RTL_ICTL_GIMR)) & readl(REG(cpu, RTL_ICTL_GISR)); + pending =3D readl(REG(cpu, RTL_ICTL_GIMR)) & readl(REG(cpu, RTL_ICTL_GISR))= & output->mask; =20 if (unlikely(!pending)) { spurious_interrupt();