From nobody Mon Jun 8 09:50:06 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 53C3B1B6D1A; Wed, 3 Jun 2026 20:32:29 +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=1780518750; cv=none; b=UmB/Gx2PY7X6IXf06gBBHCnE/9krtiadmiTPqULxYN8beSO3bt0cgGtjTiF3cjuiyFNPrZwHctLao644t6BKsDCEbIFki/8WCX4tishwfh7PAdqBdyCP6zaUP8oeV72Q8lc8GMdDzgesIKioCD/KPfaLwgA9I1052Z+lSJivuvo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780518750; c=relaxed/simple; bh=Abqjj/oy19mXekOl/pWSlDBmE4Jn/1tUiPgEqv8c8zY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Y/R2N8zHYxBJnvG5iPLpQmCNPvxDmS+tYs0w32fjLIx2xKMNDv3pkuh7VYK5WH4KVaCvC0Nslpm97m2/j6sbQIAQNRwFZfoNpfLTWYCODEYT/i47GU+8gj62fOnqZHNM9V7pIagZxC5gkmMCfC/TMgELm7ol8Se2yhWmVB/Nb1M= 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=BfyF2zD1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=tkmZkFcJ; 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="BfyF2zD1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="tkmZkFcJ" Date: Wed, 03 Jun 2026 20:32:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780518747; 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=O+nddJUIuF2nw73bStkWEpbEIgA6lvMhHk1nje2779Q=; b=BfyF2zD1pz+b9XGiqJ4n9M2BInP8i+Tn3DHN3Iynl+maIycYUdgj0KKYHp4poKQDCgkSLx vRydUmxGxwQdH3v5QuN5b8XTXB2S9J10lMlZ+uWWgEa+keqXAhjokbtnOGlHiOgji/QXzl v3a4NuwCre+1+iwp7JI/nJ7HeZbc77z14SYjZm7XHeeGoly5o8BG8URgecOzqi8/Lbv15R 3+T7XRJrhyFhyRGkjdq3X59ehDXDicECgbWqQinRLAPlDNGWLUvh1QJKbEuf2V8P+mee0e aOmmqPUL5AulSKfqURXKH5rsnhdN2GAFGpqmwx+4mLdEIvv22GCr12fXmhKR0Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780518747; 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=O+nddJUIuF2nw73bStkWEpbEIgA6lvMhHk1nje2779Q=; b=tkmZkFcJ0zpKK/DsKqtI7T8aNZ+mo0MpA+my5QUMzDd9/22bMHfcwe6hVoztDU5x0GXfUo A4/LLRsjzk4Ki9BQ== From: "tip-bot2 for Tianyang Zhang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/loongarch-avec: Return IRQ_SET_MASK_OK_DONE when keep affinity Cc: Tianyang Zhang , Thomas Gleixner , Huacai Chen , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260513012839.2856463-4-zhangtianyang@loongson.cn> References: <20260513012839.2856463-4-zhangtianyang@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178051874631.710.11693991041038662088.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: d9ba741cd168649a768e9f95fe9db3d3596a6ae6 Gitweb: https://git.kernel.org/tip/d9ba741cd168649a768e9f95fe9db3d35= 96a6ae6 Author: Tianyang Zhang AuthorDate: Wed, 13 May 2026 09:28:34 +08:00 Committer: Thomas Gleixner CommitterDate: Wed, 03 Jun 2026 22:28:11 +02:00 irqchip/loongarch-avec: Return IRQ_SET_MASK_OK_DONE when keep affinity Interrupt redirection support requires a new redirect domain, which will appear as a child domain of avecintc domain. For each interrupt source, avecintc domain only provides the CPU/interrupt vectors, while redirect domain provides other operations to synchronize the interrupt affinity information among multiple cores. When modifying the affinity of an interrupt associated with the redirect domain, if the avecintc domain detects that the actual interrupt affinity hasn't been changed, then the redirect domain doesn't need to perform any operations. To achieve the above purpose, in avecintc_set_affinity() when the current affinity remains valid, then return value is set to IRQ_SET_MASK_OK_DONE. This doesn't introduce any compatibility issues, even if the new return value causing msi_domain_set_affinity() to no longer perform the call to irq_chip_write_msi_msg(): 1) When both avecintc and redirect exist in the system, the msg_address and msg_data no longer change after the allocation phase, so it does not actually require updating the MSI message info. 2) When only avecintc exists in the system, the irq_domain_activate_irq() interface will be responsible for the initial configuration of the MSI message info, which is unconditional. After that, if unnecessary, there is no modification to the MSI message info. Signed-off-by: Tianyang Zhang Signed-off-by: Thomas Gleixner Acked-by: Huacai Chen Link: https://patch.msgid.link/20260513012839.2856463-4-zhangtianyang@loong= son.cn --- drivers/irqchip/irq-loongarch-avec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-loongarch-avec.c b/drivers/irqchip/irq-loo= ngarch-avec.c index 2817339..4896ff7 100644 --- a/drivers/irqchip/irq-loongarch-avec.c +++ b/drivers/irqchip/irq-loongarch-avec.c @@ -101,7 +101,7 @@ static int avecintc_set_affinity(struct irq_data *data,= const struct cpumask *de return -EBUSY; =20 if (cpu_online(adata->cpu) && cpumask_test_cpu(adata->cpu, dest)) - return 0; + return IRQ_SET_MASK_OK_DONE; =20 cpumask_and(&intersect_mask, dest, cpu_online_mask); =20