Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2355071rdb; Mon, 5 Feb 2024 04:13:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFo94bqfaP4IPuaCThW87mTqabpimGkqAGnhlNLWhxY/reO3te3C6eVL4YjdGC2LXyxzSN/ X-Received: by 2002:a05:6358:6f10:b0:178:dad2:f32b with SMTP id r16-20020a0563586f1000b00178dad2f32bmr7275699rwn.4.1707135220505; Mon, 05 Feb 2024 04:13:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707135220; cv=pass; d=google.com; s=arc-20160816; b=R/JQNgZwkf56eR64D1FP+RUd6I5u0wDdKDCVr2XtMuPkDNYjlv1+fki1CVkr8jSH2x +mD5Ql6HTEwWLL1wjgNS82Nc4kYZflCYAAiew+rajRjE4GsNPgk87EZP2LkQ5vssBCnk i+KHfcnqFdBZ8Si6G2TsBVKT9FEqay+NwCzJlfpffdDjSky4ai8DDQhif215jtFFq0s8 vYOT23RkHDOKiyrN/MyOsLtNuE3f6WI7htoQr3b81kCe9w1df9O31FBkSNAAdsk5bOu5 OCngNKYZqbvEIIvrwFiliG9n4iQxGr3h9ZWk4jnIHJeCHO1U9NWAoL/nk95B2JLyV7An wHMA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=mY8aOJy+i54sBdXsbaAmV+b8nYj97qNSli8Z5Y47gLw=; fh=GG63z5q2+OIeoMaIKc6sIwMd1ka+cIE4IaIxVkgX6r4=; b=Rmc7JZo4R+c14XW4WXi5u2jeJflYxp2lx++QZwMIh0XxJOagCDdPWEx1uvHASDma2K A2MNkwC08vVk5DakH3/jjtU0GUDwTWgXkuOQwGbAcpeabzjKFjMmROS8pXkggawa5NhB +tiDHi378Y/TZVyvrbtefDYoHSYB2WkiS1loYnVEO5dOIdoNfTUen/Q2tEY5DFiB0DiJ MA3RN8PERe9jT8pdX9/6WaB3vVVME2hgtGzmz2UoZv1yefAlPTH/iBm6QD2YvWPafONx OG41/Ge01eTHWm9r5AFo/0QTXM+PmYVXWjWf6hAXhgKZHraNRpj1sPnOCXwMoy+iXY5u RFbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MJ2WLv+O; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCVYEZrXD3qrwPdszwuSW2PuyVP/p2BIg6FQ6kr5lInFrYXcZETBXu1pGCWhqUsFMZvhd896nR/GSCPaPVKAG3DRf2AcmZNkuNgzc63Pqw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e19-20020a635453000000b005dbf27229f0si6025849pgm.303.2024.02.05.04.13.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 04:13:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MJ2WLv+O; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 256FA281AD5 for ; Mon, 5 Feb 2024 12:13:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 741561B270; Mon, 5 Feb 2024 12:07:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MJ2WLv+O" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 CADD31AAD8; Mon, 5 Feb 2024 12:07:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707134871; cv=none; b=MkHOetKErh8eceXlJwZF5Ryp12PtoNCHYHJb2EAhlJAdTnxw3xoTKCDD9XPoAzluJDWq7h/1NASZk1qQReYZmG/xPFbMLGZ2pzHGnUE7R7KC7M+hq4jeH2plswuOSMBmfQf3R5k5XdBLSR2dAr80QtIjgnU43U/7xGyGDnb1gVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707134871; c=relaxed/simple; bh=8TcYVXgJSergAPvQdFpI+iJxhTSkJUg1QeMWHvPrR+I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=a8uiIfKMTS52RKDUjRTQYgTNRZWPr/ryK0YtKsM0BjAAh97ePWOVZdapYqbcTegpVvBwZaOqUvJ2GL9GtQvRwRnLLO6Fyqm/vUQl6WBAKsOIsKprUGx+Z9Bqg/dTskZZ3/POKDWsqwNzznrccM+jEMno3Yw22micHuCCZT1L+fQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MJ2WLv+O; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707134869; x=1738670869; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8TcYVXgJSergAPvQdFpI+iJxhTSkJUg1QeMWHvPrR+I=; b=MJ2WLv+OTdyiKOxFAMJYstiCXRmPZkUCqPV/Ire4VBfAvNlvB/WXKCDw AnX3dCzPoNKm2xieeaedvDAAzwwhwK+Mva2rF4pG21JPd1dks8mXZoT3f rVK4gZ5JOwDqkVKDOYgTKaML9nKahX0sLM+dAEWLcWVAbrkHLFP0Gys4t oupd27EGMs635ELKn0q8mqgb2iFEsJ1NrwXP3qHkE0xMTNgvA3k77mwU1 cS1eqXkd798q27jCRRr/z8umHZ9/uk94WDVdWs4NMFLTeDuR+fUZAr9jl NcNsjlyTjCUbtW0+gucrHIsp/6ZSIAfUo8KH7V1/KtahJ5pQDRgh1SmyW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="25954393" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="25954393" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 04:07:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="908403" Received: from snestero-mobl.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.21.196]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 04:07:46 -0800 From: Maciej Wieczor-Retman To: fenghua.yu@intel.com, reinette.chatre@intel.com, shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, ilpo.jarvinen@linux.intel.com Subject: [PATCH v4 0/5] selftests/resctrl: Add non-contiguous CBMs in Intel CAT selftest Date: Mon, 5 Feb 2024 13:07:32 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 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 Content-Transfer-Encoding: 8bit Non-contiguous CBM support for Intel CAT has been merged into the kernel with Commit 0e3cd31f6e90 ("x86/resctrl: Enable non-contiguous CBMs in Intel CAT") but there is no selftest that would validate if this feature works correctly. The selftest needs to verify if writing non-contiguous CBMs to the schemata file behaves as expected in comparison to the information about non-contiguous CBMs support. The patch series is based on a rework of resctrl selftests that's currently in review [1]. The patch also implements a similar functionality presented in the bash script included in the cover letter of the original non-contiguous CBMs in Intel CAT series [3]. Changelog v4: - Changes to error failure return values in non-contiguous test. - Some minor text refactoring without functional changes. Changelog v3: - Rebase onto v4 of Ilpo's series [1]. - Split old patch 3/4 into two parts. One doing refactoring and one adding a new function. - Some changes to all the patches after Reinette's review. Changelog v2: - Rebase onto v4 of Ilpo's series [2]. - Add two patches that prepare helpers for the new test. - Move Ilpo's patch that adds test grouping to this series. - Apply Ilpo's suggestion to the patch that adds a new test. [1] https://lore.kernel.org/all/20231215150515.36983-1-ilpo.jarvinen@linux.intel.com/ [2] https://lore.kernel.org/all/20231211121826.14392-1-ilpo.jarvinen@linux.intel.com/ [3] https://lore.kernel.org/all/cover.1696934091.git.maciej.wieczor-retman@intel.com/ Older versions of this series: [v1] https://lore.kernel.org/all/20231109112847.432687-1-maciej.wieczor-retman@intel.com/ [v2] https://lore.kernel.org/all/cover.1702392177.git.maciej.wieczor-retman@intel.com/ Ilpo Järvinen (1): selftests/resctrl: Add test groups and name L3 CAT test L3_CAT Maciej Wieczor-Retman (4): selftests/resctrl: Add helpers for the non-contiguous test selftests/resctrl: Split validate_resctrl_feature_request() selftests/resctrl: Add resource_info_file_exists() selftests/resctrl: Add non-contiguous CBMs CAT test tools/testing/selftests/resctrl/cat_test.c | 84 ++++++++++++++++- tools/testing/selftests/resctrl/cmt_test.c | 2 +- tools/testing/selftests/resctrl/mba_test.c | 2 +- tools/testing/selftests/resctrl/mbm_test.c | 6 +- tools/testing/selftests/resctrl/resctrl.h | 10 +- .../testing/selftests/resctrl/resctrl_tests.c | 18 +++- tools/testing/selftests/resctrl/resctrlfs.c | 94 ++++++++++++++++--- 7 files changed, 192 insertions(+), 24 deletions(-) -- 2.43.0