From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.175.24.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796469554; b=yBCvXZGZnibJKiYvCv+wrGHs+baK9G1jzq65Mroj0vyWv9OxGOm+mqLPz6PhVh4B6AwS 5VWpoPiePkSIHazIZLCFqegUhacqcO6S8ro298N4gpBxSysSY/jDJ1qMB4+ExIswCCbB2 kfSz+Td6qui8+wiOxIhIS2Cf3MTDvlurmmGTGeGsEqAw6tUEIBZVO6wDMVjct0LK5s+2P v1j+QJuH+0/AUayALWHYLXxmQ/qjutqwmYXvrdSNAu2VjZO8H1O28rh9KzQjVqOYfuK0L 0GTL2YaFITf6erwFmGnjIteNddMPPQCEFr0IefbMOkDtjRzgfHtvr6OVh8YxGZdP9qQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796469554; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=/lvuxl7wcef7rG0D/5raWuDFgcNmX4q26EraTNTJ11c=; b=s7OmfWjIbaSTRnxMAXddGiwV6TdLPMiJz2ylG/SsGYI1P6zm53FAPQfK8zZRWVnprD8Z NVwir5KGcwpvW9Kbj0KbGQVkjp/ED7L67z+eIipEkcwZZVGblr0N799+xb/EDS4F3NyEw eNwbwglYZN4hXCgeK/tmq/fJRYRqI6JCzUMIu6GUxKILWa+ZbznBOPDq3c/XKW4niVUKM 7Ywm1VdJTqvzWEWwUhNyRRMBzdSNqkVyHwmFwKC1+7stNx9FXcGShWI3QaiZLQWTiw+iy XMgQ95gPf1+3/xkOx9UpcZn7KvGtHO7nHv8DpNZewv8x4zEy8RNSENOKRyoHMhze0Ug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.remote-ip=193.175.24.41 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C196B606A330; Sat, 5 Dec 2026 11:19:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C196B606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: by elvis.franken.de (Postfix, from userid 10) id 9993110042C; Sat, 5 Dec 2026 12:19:11 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id D80F4C081A; Sat, 5 Dec 2026 11:56:33 +0100 (CET) Date: Sat, 5 Dec 2026 11:56:33 +0100 From: Thomas Bogendoerfer To: Florian Fainelli Cc: linux-mips@vger.kernel.org, macro@orcam.me.uk, Thomas Gleixner , open list Subject: Re: [PATCH v2] MIPS: SiByte: Update effective IRQ affinity Message-ID: References: <20261109182627.3517986-1-f.fainelli@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261109182627.3517986-1-f.fainelli@gmail.com> On Mon, Nov 09, 2026 at 10:26:22AM -0800, Florian Fainelli wrote: > Booting an SB1250 kernel with CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK > enabled reports: > > genirq: irq_chip SB1250-IMR did not update eff. affinity mask of irq 2 > > The interrupt mapper selects the first online CPU in the requested mask, > but sb1250_set_affinity() does not update the effective affinity mask. > Returning IRQ_SET_MASK_OK makes the IRQ core copy the requested mask to > irq_common_data.affinity, but leaves the separate effective affinity mask > empty, triggering irq_validate_effective_affinity(). > > Update the effective affinity with the single logical CPU selected as > the hardware target. Apply the same update to the analogous BCM1480 > callback, and use IRQ_SET_MASK_OK explicitly in both callbacks. > > The IRQ core already rejects masks without an online CPU for normal > affinity changes, so no additional mask validation is needed here. > > Fixes: 421d1563c662 ("mips: Validate online cpus in irq_set_affinity() callbacks") > Signed-off-by: Florian Fainelli > --- > Changes in v2: > > - update commit message > - cover bcm1480, remove the check on nr_cpu_ids while you removed the nr_cpu_ids check compared to your v1 version, you are missing + irq_data_update_effective_affinity(d, cpumask_of(i)); As I have not reverted the applied v1, I need either a v3 with the part the added line above or something which gets mips-next fixed correctly. I'm fine with both. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]