Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp479611lql; Mon, 11 Mar 2024 08:15:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW21W3n94LZEnu2mI8rcIXg+xSn+wyR8JuJJbpGqW/qxvqc4uM7PElVgqrRRVgeiSnhc9Z4opQg2s/ra4D9GEXtOCHlIrlzppy023DWuQ== X-Google-Smtp-Source: AGHT+IFH+YOBOVbW7Sb/pROHQsKcZOPmJkXPfdAzlkjNW4IYLRmyx+DyQWxL5av5aKJJ3zBf0/4+ X-Received: by 2002:a67:ff96:0:b0:473:38eb:2f09 with SMTP id v22-20020a67ff96000000b0047338eb2f09mr2034458vsq.2.1710170131828; Mon, 11 Mar 2024 08:15:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710170131; cv=pass; d=google.com; s=arc-20160816; b=Q5R6EClZZt/ZWf9JeXE3ivSo1GCKtQMfDS/Qhte5EAZb+EExpGkeLJOUj+DOCCOrRc NG2/tfq/VUJUKHq05lymyvs5JVERf6NCSSSylBttlFVX+O/KjbbwaP9EguMHtwsq/JoS hRAuVztxdYRYMpaBx+njotVB+li91vXNVQNyexlMZ22hi0HIUN6/ec6jVDphWj/8zsid PrICI/QEBJlndvDdENN9FCYRNjIhsEGGTgcuGFIqUGOtj6x68OFQg1Adlb2CZyPr/EYD D3esSLwktzvzTI8Doop3eo1BcQ4JxiN7ZoyY/ocrUfDA4eMzXUP5hrxETs+6eiGEDG/G vRNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FGCksHUX110jUGhh4t3u+7zUe2VbKVmGy0FI1wjKmws=; fh=IsjjhdC5LGfa9f6e82yPJGt9Os27DHJUVtOIyW+QmF4=; b=mG93GpOPIoG7iatRE7Lxjs8umZ7ZYisHcD71HnAYe+FtDP1kBZza/M6Q024LCbPS4H wOIaLWC2Lx/K44SRIPQkjvLIa9ne8H+DN4ZfThtp6cL/DOs0tROcJDhYLsC5tDMDwQDs CF5lD5QH5DlrPriv5WcKRLl36X1Cgc9TMTCMUvV/qsesGsMf3hy1HNuo1SJosMY8Fwtn 8fISNQ1JiWPTfKy8A4uur5dSjO3qUHsPXY6V1s9ExqKfxrM8BLHXqHkgLn8L8cN23quJ WwrcWsM7n8NQlJqKoG1wobyw+4ixVD2QyF+NyRNpBx3oBWbCpdG5Npn+XSlMgcWym+6J vsGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dhroRI4V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y13-20020a67ebcd000000b0046d56af8b24si504305vso.715.2024.03.11.08.15.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 08:15:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dhroRI4V; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8942B1C210A7 for ; Mon, 11 Mar 2024 15:15:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEAE55103E; Mon, 11 Mar 2024 15:12:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dhroRI4V" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0305950278; Mon, 11 Mar 2024 15:12:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710169962; cv=none; b=jm2BYojyFNoXuiQQkPRlw0fIsS5gd4ZQMy7S2saH47zTU/SWCTieEnINIgoRIvY+7yGVjWir/YV/i50t4+EyR+qXnyrBMOXeVacj1JQ//q7Fc7eWQujPSY2ATVSn+CBV0cdvYQIbLZCrCE3/iU5AVqI6+P41z22hETh/SKNOk78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710169962; c=relaxed/simple; bh=C3JXHkC8QSlxMQacEgZP+jIDKkUrjVb3FnkXfTRxrtw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IPclI3POtZFSdKfX0S6fDTd7TMpwtshbrSxSMAJzfUJMKQu1L93WQnzhndps7U6Yk+aiO9P2Rh+QXF9fl0Wr4l2yMzJogrXi/qKjS7BxPnCIYAWWp51si/Dx0U6o18Fd/n+WMgxR+vd+/cXsu0CsQWjHeASrL3ZOPXyAyF6A948= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dhroRI4V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F60BC43399; Mon, 11 Mar 2024 15:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710169961; bh=C3JXHkC8QSlxMQacEgZP+jIDKkUrjVb3FnkXfTRxrtw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dhroRI4VS1yakJm+bffgxqWggabmjKXx/94v/wAjg8WqIxYA+xXio2tRzNa7HJ+4m cu2IPiOD4tAxgv8jJoO4M7WWvyb9m+0EYvyWXbMGm17PqVAs8sYi1S9bntWlnkXMpN W2Q2Bky/Thm8Sj60GjDpW72WpXUOr869dGQACpMVgCWF5Wek3oFn8PIZEvrxtlzOIG vGxFYV7KzfST9bspkEtzfynpmvTlcQBGwB71WLO92yKPRY1ioue5QxIUnJc5eeWJyn ltjKyRmF3Y0U1gf3qgQaCXTi0Dk6eDhxvoSVtGD491cJ01sADKuNbslDy66bcKHBFB 2Jw6mM8HKpxFg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher , Sasha Levin , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.7 11/23] drm/ttm/tests: depend on UML || COMPILE_TEST Date: Mon, 11 Mar 2024 11:11:51 -0400 Message-ID: <20240311151217.317068-11-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240311151217.317068-1-sashal@kernel.org> References: <20240311151217.317068-1-sashal@kernel.org> 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=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.7.9 Content-Transfer-Encoding: 8bit From: Christian König [ Upstream commit 9d3f8a723c7950e56e0b95ab84b572caee29e065 ] At least the device test requires that no other driver using TTM is loaded. So make those unit tests depend on UML || COMPILE_TEST to prevent people from trying them on bare metal. Signed-off-by: Christian König Acked-by: Alex Deucher Link: https://lore.kernel.org/all/20240219230116.77b8ad68@yea/ Signed-off-by: Sasha Levin --- drivers/gpu/drm/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 3eee8636f847a..9b079f3a1b811 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -198,7 +198,7 @@ config DRM_TTM config DRM_TTM_KUNIT_TEST tristate "KUnit tests for TTM" if !KUNIT_ALL_TESTS default n - depends on DRM && KUNIT && MMU + depends on DRM && KUNIT && MMU && (UML || COMPILE_TEST) select DRM_TTM select DRM_EXPORT_FOR_TESTS if m select DRM_KUNIT_TEST_HELPERS @@ -206,7 +206,8 @@ config DRM_TTM_KUNIT_TEST help Enables unit tests for TTM, a GPU memory manager subsystem used to manage memory buffers. This option is mostly useful for kernel - developers. + developers. It depends on (UML || COMPILE_TEST) since no other driver + which uses TTM can be loaded while running the tests. If in doubt, say "N". -- 2.43.0