Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp941681rdb; Fri, 9 Feb 2024 06:01:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVmcYXs3FM/GWVpNhbCEWur+HsloctMjjC+RiY1c6PLsv4/IficfZbepK5N8B5qjAvw6n0LRaEJk/kerPihGErR2UbX5HW5+QGstQPm9A== X-Google-Smtp-Source: AGHT+IFO6bayxJOQfJcLATXzANajwgNi93ucAspktb8qs/CkRzP+lVDEbNTqDkgYW2kMjBph5pvK X-Received: by 2002:a05:6a20:9f4f:b0:199:7d51:a942 with SMTP id ml15-20020a056a209f4f00b001997d51a942mr1972237pzb.50.1707487287027; Fri, 09 Feb 2024 06:01:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707487287; cv=pass; d=google.com; s=arc-20160816; b=eHCiG2oZQFOleOgA6AF8YPD9/QZYNbdK2FZ3yubOP9F9WBmAdHIzMW2TdmOI7stW3z 80WpA221mp069xr0FbMa2DI5iEF7FVF1M35QgP3GGhLSW3X0wj71IaBUGBNcfoQuhoBE mXapWeYiAxJterEbs25pyzHWDhMx7ljoNJt75JNgnVwZjKArRhEnxx3ZjMa9jWpbVHXg 91gdNd0h9e3voeN5vCFFbYhve6dWjYyMDUSv+cCC33uGe1uIHaX2F9W+3bKXmqddwPcL GRwQC0PQ9goYxiXHwV/EPfWrBvZsTfJvAwFtCpjsgMZ1olKMG96k/tRejSrRTHK6+xVO IfNQ== 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=W2q19ZvaO/rnKwVhahTRQ+hLTu5wAYr/qiEEKeFhvOA=; fh=OZK02Eb5HYjTFCWbgA6mk+Q7QIpR6cWaIyswuluZU/Y=; b=T7r3A2dCSpMTI0ePiRP2D0/HDsjVYUHmqyGFYY3rob5vrC7e/R6sTbkdO0sEmwpjYJ Gz+rw/dd+thKCJ/P9Bq6gCn9BuAAQLtFhO6j/8Di4iqx07OLEwEvH6bBdSkEjpCkc22w P8oSJ1anq4CAIeG4kO+Sd/xgQIEZYtfZqZN2GppTLTeBi9KoabrGP8I2i3DtSEgz08/7 gW+ompWBN2ITh65USWV6mDm8jqhpVO5vjtBrXKTohluNTaGUOMzlJiDWhmOqqgctwKjD 2V7I7wV8o+oPk72wwIctduOpzsp8KH20KQFkX8HN+c0wCxAeNkY/zuY/7XBBP3t2oTzp pHcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aJ3Xa+Of; 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-59401-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCXXXpQujdWqncprFPrfrZYTcgZnMEKo/OmfBoh7N4ILtWy3Tozp4p3Eg9jlFUMCz5APX9iSh4Sl1o4CMrSWkNao4pe/9hcUDqNiiz73wQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 199-20020a6301d0000000b005dbe3f36d4fsi1697454pgb.391.2024.02.09.06.01.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 06:01:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59401-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aJ3Xa+Of; 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-59401-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59401-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 8E24D282D60 for ; Fri, 9 Feb 2024 14:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F5864F88C; Fri, 9 Feb 2024 14:01:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="aJ3Xa+Of" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 DFCC41D542; Fri, 9 Feb 2024 14:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707487272; cv=none; b=oC+uRSqmGlUKnxGjtQo0RzMSG8PLdMOyrfWF8ws7Xlynd6j5tjWvUE/6p+wykPIpsCHYROPI+8lWtsq1kmc1jsHhARU3zXKZlC79m0ABakOsmP7az10lvTXDU54m9GJcxIpbXCSv2rx+GbzP4NdGAvquGEIkt97a6Y0/fWqtrDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707487272; c=relaxed/simple; bh=W6OyLX+wie5nDK2KRNnSvfsTeJ3CL7ilU7idXbQFvI8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=o1JyD7Ww5T6nC29UmNczyskTnrwnpUUDX4j3JHaCa1s+AKxomWtnFq3uwVc9E42E3NQJGkDtu544MlRgWmaiW+8yp15o+JTfwcJrJBegpHMNXEnDSKCNbzOMJ4MkCP+m52W5K1He3/3xorU5sANuDLHsamjspAv24OF72dX4ssw= 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=aJ3Xa+Of; arc=none smtp.client-ip=192.198.163.8 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=1707487271; x=1739023271; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=W6OyLX+wie5nDK2KRNnSvfsTeJ3CL7ilU7idXbQFvI8=; b=aJ3Xa+Ofti3xriikpSIavkGOSpXr7S+WhS5PFfxVgqQN27HEaiiJO+iI 3LwjpU/VGM6+crUfV6Pzvep5FB7YjJCgUfNzZED+wvJ3f6lflkmDX6aLK z0kliTpjzBT0UME10Acgg0mbR230NZEDu0SfqFLnAJk8cBEDu/dekSuoK nf0H299zqClVEbygB0w1j4fNfke2bjVMEfLvc+69+qwKw48A5K9zrU9yC X4MrlcWF3gP6UP6XMzEoxhDllgTuyVjaKMNB7b1emd/7LoPXQg018Xu0R 7+o0GfdPyCQPTHmOLN3AX18g4GBJbNQHF96yqrOcdKa5gkdNMRsPtw5EY g==; X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="18940112" X-IronPort-AV: E=Sophos;i="6.05,257,1701158400"; d="scan'208";a="18940112" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 06:01:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,257,1701158400"; d="scan'208";a="1946381" Received: from ldziemin-mobl1.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.2.218]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 06:01:08 -0800 From: Maciej Wieczor-Retman To: reinette.chatre@intel.com, shuah@kernel.org, fenghua.yu@intel.com Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, ilpo.jarvinen@linux.intel.com Subject: [PATCH v5 0/5] selftests/resctrl: Add non-contiguous CBMs in Intel CAT selftest Date: Fri, 9 Feb 2024 15:00:54 +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 v5: - Add a few reviewed-by tags. - Make some minor text changes in patch messages and comments. - Redo resctrl_mon_feature_exists() to be more generic and fix some of my errors in refactoring feature checking. 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/ [v3] https://lore.kernel.org/all/cover.1706180726.git.maciej.wieczor-retman@intel.com/ [v4] https://lore.kernel.org/all/cover.1707130307.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 a helper 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, 194 insertions(+), 22 deletions(-) -- 2.43.0