From nobody Sat Oct 4 09:39:45 2025 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E2912750E6 for ; Mon, 18 Aug 2025 19:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755545298; cv=none; b=dkG+lIuduOYCrVysxi5TNe5uVQPEemPa8AtB1UFhcb0cDFiDwqzGl0IOHUi2s5qClm8SRpPiOgoFDJQqVkmzx3dIn1Lu63Iqxv1Nm7RZ1YBGGUsHavf/WYeqfvlIBufA6RWsh8rkyS+GGlbsgZst/1O7R70SUxSu0Utk+jiIxzs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755545298; c=relaxed/simple; bh=eWMIZgp5iHXfiCRbCgK+sZ3dVZXFE8CcfbA+F5NJMds=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gfz+TzG0UC1sjzqDmB+Gb7+8MyAgxiMpbQPAAVhY38W+b/LgcG1b9OyAY99lroekuligA7YSzELA2vE0F50rag4dYn0Ag3p4b9lzlVaQBeVecNlEdKVc/Q8IdFWapnXmwK8rnWX0UG/gfQsajeVJn4MBi5eOhTIQZ7GOiewxkJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=L0lZYV9z; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="L0lZYV9z" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-76e7af160f1so415113b3a.1 for ; Mon, 18 Aug 2025 12:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1755545296; x=1756150096; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aqyW9AMQrLhoPKJmxnqNq0eziaV39pB/4sS3+0Stwwk=; b=L0lZYV9z35MaxUC/L65RtgjOuVXOvLTNF8kUtI2guiMwqugvreTsJRKN4EkQXc3m03 y/9y3lvye2R01wxJS/WWkbFrYlsoEoWvlGRUlCEKEEKrzt61j4T3nPIMtEgjBvrNyG8b xNte1dajFtQa/SXAn9uZ1sBZ1F6T26E1S+9W0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755545296; x=1756150096; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aqyW9AMQrLhoPKJmxnqNq0eziaV39pB/4sS3+0Stwwk=; b=PNaQFerkq9fnI04g9h3yLlejO2yb4W79Jt49sTrVupGNOk3qA+uJsP2GtMjUQ4ZK6e VADfScXzs1VzkoCE82jS1hk6iDozaNg5MZpg6PgAeoW1PrvyuJyqLDoxPj4Xfw+AZyBO 0YL7H7Eeq0RvLlk1xHd+R9+obcNjgX9lFO9caMujTY8eTnlBv57opO5H91/a05MU9l78 iMrDlCDsTmRkj8kI6m+QLOS9ENzncFfNZJsZFFXxH0tDLbeHVdXcK4ebDhRX7IZylC5d nq/Y4xolaWZr0SAk9S2XsNcuU5kr/K7wCFlyttxPWC/dnJ/xUdlP4uboCYyfAO178Czq MSEg== X-Forwarded-Encrypted: i=1; AJvYcCXvSutHzk8BieJfWJFMc37DVwK79sYEvVniAXpRPvt0QtSJDQkbbsUUrGcpoquVMcWXiGSAP+OcyKkviik=@vger.kernel.org X-Gm-Message-State: AOJu0Yxm6Vm3P3sYefgiKgTwdA1bihlya1h8EgDE3u/GEoEf1h/p62By sM7aCWmR4Bf4ZveApx3Oi9DOan5zRUO0Aji6nUMTTt89kN4AHLRSQlIzY/qxezHBtQ== X-Gm-Gg: ASbGnctCOGgWrqtqA4pJnEFgYZAhEn6dA87tatlw6MQuUQ3YWs58HW1dBSlFt33XJpX ytHOubbMJIPhjgbrCvs/MgaOMCoMVUbY5vDU4Lp7QkRR8rXQGW2XGobcHL5dqQodaV4/jqZWB0J KvnTIKqq6DBE4wQNu7MTF1jm0Y/fIKfvB+QQolMWUEpgW+ERK4PPEiKJ0+9NgvPaI4uKWV8djSo UW03Ij4+vdjRSqQ96ltIkYKMo0QgaQL/sp95WzKCOdN24ElWXB75+OWQ233i8V38B3vOFfPLCFz DsfRc+60fLTIoFfUsd8Y/Gbww+XX+uf8wBEGtdzx4v6Y3VPvquv3ctdF/WsI+MIK2oYZyJCVgKU eTwm73OEQh6g+ewubV9xmOCE1hbugnaKjl2bRK+XYec6PcDvE/SLSf3NJ+yFrHL+dLcHGzHI= X-Google-Smtp-Source: AGHT+IGUiDIahxTrO0TYLvTSrJjpE4pGbPAwnmno/R5lKQScD3kDdYlgMAqEtTktqb0OtuaWUfumMw== X-Received: by 2002:a05:6a00:80f:b0:76b:e109:a1f4 with SMTP id d2e1a72fcca58-76e7ed284acmr471305b3a.12.1755545296604; Mon, 18 Aug 2025 12:28:16 -0700 (PDT) Received: from localhost ([2a00:79e0:2e14:7:87a3:e3ff:ace1:d763]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-76e7d524c88sm354460b3a.76.2025.08.18.12.28.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Aug 2025 12:28:15 -0700 (PDT) From: Brian Norris To: Thomas Gleixner Cc: David Gow , Guenter Roeck , linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, Brian Norris Subject: [PATCH 4/6] genirq/test: Skip managed-affinity tests with !SPARSE_IRQ Date: Mon, 18 Aug 2025 12:27:41 -0700 Message-ID: <20250818192800.621408-5-briannorris@chromium.org> X-Mailer: git-send-email 2.51.0.rc1.167.g924127e9c0-goog In-Reply-To: <20250818192800.621408-1-briannorris@chromium.org> References: <20250818192800.621408-1-briannorris@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Managed-affinity is only supported with CONFIG_SPARSE_IRQ=3Dy, so irq_shutdown_depth_test() would fail with !irqd_affinity_is_managed(). Skip such tests if they're run without support. Many architectures 'select SPARSE_IRQ', so this is easy to miss. Fixes: 66067c3c8a1e ("genirq: Add kunit tests for depth counts") Reported-by: Guenter Roeck Signed-off-by: Brian Norris --- kernel/irq/irq_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/irq/irq_test.c b/kernel/irq/irq_test.c index 56baeb5041d6..ba85e4eb5211 100644 --- a/kernel/irq/irq_test.c +++ b/kernel/irq/irq_test.c @@ -46,6 +46,9 @@ static int irq_test_setup_fake_irq(struct kunit *test, st= ruct irq_affinity_desc struct irq_desc *desc; int virq; =20 + if (affd && !IS_ENABLED(CONFIG_SPARSE_IRQ)) + kunit_skip(test, "requires CONFIG_SPARSE_IRQ for managed affinity"); + virq =3D irq_domain_alloc_descs(-1, 1, 0, NUMA_NO_NODE, affd); KUNIT_ASSERT_GE(test, virq, 0); =20 --=20 2.51.0.rc1.167.g924127e9c0-goog