From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 682A62EEE84 for ; Sun, 23 Aug 2026 21:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787519406; cv=none; b=Q23U/3uR8KRoTdEmGLv70Nk4wGA5Z5jKnX6zLstMwXSkPPaZVrCp6/iBJPdLey1oz34A/UG/0O1GXJvZJbhfL18cQr/GyBRrbJxT/mf2kjhMreeSDTf3EQean1DiMeHO+G1A5+NPcoFYmFyRtSzJ2UgemFyvm2mSPUT8Af4oyRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787519406; c=relaxed/simple; bh=kO0FSX5/fHdv0JJUyo0yDv0Xnj8195il0gNEArFbqz4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GRWeI1MC4tiLn+MrwC7Q+dYNM5mMwNvFyxClyBWHdyf1E2vTGGNYuj8guXqvWUeQm4zmzZB8RyNgRuq5qewP9hOiaiuJUHFUr037IKcgJEEVUHNiAJi10YHaXxFS/v+NkHBvba1xcm3SwZC5iDBiye5/St1tNZT61egQ3MTY+HA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BXFWObAC; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BXFWObAC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E99D1F000E9; Sun, 23 Aug 2026 21:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787519405; bh=xUdccPBljE4DlLyGL2442vCWwI0ECKzq5VdH7deCBu0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=BXFWObACSwHiCcUFjEWD9m8ok+t0fK2M7kJIiG2ZZPY3JxeC1xTnEmCQLl7r1ODpG s+ppmvkctWnlZ71xs7aBfDE2uiOXNEiSjkGgPGTRonfEVqj1gscsjhd5aI59KKqfZU EAYHzzVEdkObRx1bYWMisdz3Ak2OmAMrlgUTDRc0o0oXfSluHH/xVvw0YiMNiu8PFv M5T4G57HsFUlMD7F1DTJyFysdj8sZyX9zgxb+0nbSLeWZvnP4vwc+0tWoamh3+NuJv 5d7EgAfhONywu9+x2Ym8O8aieOYUIh/EPVVSJDAIJzIVEL9rYQXM5ZMZHRMjYZlS9D ToUbAPNvj5vpQ== Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfauth.phl.internal (Postfix) with ESMTP id B91CFF40066; Sun, 23 Aug 2026 17:10:03 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Sun, 23 Aug 2026 17:10:03 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGjuLUQmj+AdrZSXDo1iXGXZ+91o5Ouv36nV3jcVusM8Ium+hQoD/Fo7IE4f1jWS0 6VTifBxmqoxUIGSCvXWpBN/aVuq0a3laEK6laeyf1MG9gWm7b6tOUgiWjxQeoGJ/UZwfEp 2e6fUh2Lo/doD78tZ+pO8GtSMArJM8lnsLTmP/b+6WIahBikBunHxjKEbLZ7gtwdfL+fby 9AZcL5bn/J+FLZtMoDvjClBfpuNojSKegAvKzR7V+56C3QOKFhq9ChvCODoIsre2LYSlVM rkubjvQyumUvmhTxODlMAI7bniO8fsKVHn1NlzYeKwSNoucqpF77UUTvvzkVY6kDPRMhYY uPgazR7VFx9QhAL+0Ca3idPScl6gnHWt4B1/jAWHCAWsPU4x+pAPKLG9hkvK6VbMavEJTc 4EmgV4VVGljgpszIL0RV7p2WIxg20fovBx2h+iJkH0aCLnkKFqkq3lkkpbfUts7Tvlh//s lyJUKiuYlq4u3CJMIk+/WhVf5fXQzc+YRSjbCKvB7ykzfYrTH20Ud3Ssu4bV7bFjHM6v2A lr2mJvW1Q0Iesl5ZmIY46DxAVp67ElAngcaFNSHZbWfbQEIF5bK8M92o208f7jegQnnvOB O4ZRTyKiCwJVgnlyBz2nTDC+qgxWnmo1zSsYoynDQIlYIvrTKTIFJHPur9oQ X-ME-Proxy: Feedback-ID: i8dbe485b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 23 Aug 2026 17:10:02 -0400 (EDT) Date: Sun, 23 Aug 2026 14:10:01 -0700 From: Boqun Feng To: Kuan-Wei Chiu Cc: tglx@kernel.org, peterz@infradead.org, lyude@redhat.com, radu@rendec.net, jserv@ccns.ncku.edu.tw, marscheng@google.com, eleanor15x@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] irq: Make refcount_interrupt kunit test selectable Message-ID: References: <20260823171721.3059733-1-visitorckw@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260823171721.3059733-1-visitorckw@gmail.com> On Sun, Aug 23, 2026 at 05:17:21PM +0000, Kuan-Wei Chiu wrote: > Currently, refcount_interrupt_test is built unconditionally when > CONFIG_KUNIT is enabled, causing it to run unexpectedly during boot. > > Fix this by introducing CONFIG_REFCOUNT_INTERRUPT_KUNIT_TEST so the > test can be configured independently, following standard kunit > practices. > Sorry about this.. > Fixes: 07a88e2bcd5b ("irq: Add KUnit test for refcounted interrupt enable/disable") > Signed-off-by: Kuan-Wei Chiu Reviewed-by: Boqun Feng Regards, Boqun > --- > kernel/irq/Kconfig | 12 ++++++++++++ > kernel/irq/Makefile | 2 +- > 2 files changed, 13 insertions(+), 1 deletion(-) > > diff --git a/kernel/irq/Kconfig b/kernel/irq/Kconfig > index 05cba4e16dad..6923f37eaab4 100644 > --- a/kernel/irq/Kconfig > +++ b/kernel/irq/Kconfig > @@ -150,6 +150,18 @@ config IRQ_KUNIT_TEST > > If unsure, say N. > > +config REFCOUNT_INTERRUPT_KUNIT_TEST > + tristate "Test refcounted interrupt enable/disable" if !KUNIT_ALL_TESTS > + depends on KUNIT > + default KUNIT_ALL_TESTS > + help > + This builds the kunit tests for the refcounted interrupt > + infrastructure. It verifies the correctness of single, nested, > + and multiple interrupt enable/disable state changes and ensures > + that the underlying reference counting mechanisms work as expected. > + > + If unsure, say N. > + > endmenu > > config GENERIC_IRQ_MULTI_HANDLER > diff --git a/kernel/irq/Makefile b/kernel/irq/Makefile > index 44c4d6fc502a..0e5df962a149 100644 > --- a/kernel/irq/Makefile > +++ b/kernel/irq/Makefile > @@ -16,4 +16,4 @@ obj-$(CONFIG_SMP) += affinity.o > obj-$(CONFIG_GENERIC_IRQ_DEBUGFS) += debugfs.o > obj-$(CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR) += matrix.o > obj-$(CONFIG_IRQ_KUNIT_TEST) += irq_test.o > -obj-$(CONFIG_KUNIT) += refcount_interrupt_test.o > +obj-$(CONFIG_REFCOUNT_INTERRUPT_KUNIT_TEST) += refcount_interrupt_test.o > -- > 2.55.0.766.g2966f0265a-goog >