Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4690112rdb; Tue, 12 Dec 2023 06:53:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUBNdXrmYLyGjENt12+YWAIfWtv7U4FeMGsS0YHc1XiRtOVWju2eWn63SKksg76N6Fp+dT X-Received: by 2002:a17:902:db86:b0:1d2:eb39:afa5 with SMTP id m6-20020a170902db8600b001d2eb39afa5mr7890919pld.9.1702392790857; Tue, 12 Dec 2023 06:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702392790; cv=none; d=google.com; s=arc-20160816; b=CPjzOKhXAEwUKtBH8i+y5KKY8gfB4VzxujauHXp0o6grhpE33uHE/U4lEfcH92tdHV rTMMo2CZLI1Vci1sFLXhZN6QN4y5S7OXpgrlUzoLdJu0A7GfVehM9vsZPxZVo0xnyBmH xPTmCscRpEghG9RTfkXiRj8Fs2IB9copjBUqsWCZLgjx6AgJDt2QWqDtEA5ePUUKKUTP 3yJhEFbQSgyIa4HYyi+No3bkJmKgMlerfJzTUWVt4QATxqWb8kbV4UZYGtdAssJjOqzg cnPZdjKC/dycrobnlaiM+AO8K8REhQttXlaFxY9PiB2eTQibOwWaMKmFUp+i+Kpr+ZrQ Z45w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lvo2MzmKmxZ5MxbNkm7gsXp3wpkC5dSAP2b55EueqzQ=; fh=StvK+yIqAD8+XqjLENGlcWDhkLqp9B7xY2VDTjyFjRA=; b=RGa4iMqIu4rRe4mmM/bbyXBDl37WMTDLhIrbS7UhSbhDr10SegGCH5lWBJ9CaqrBg7 qHqKHxmFppNPBDvSYtzwq2R1XfgjWSl9LGG5673O3SfRMW3SL175tVKm5a1bhtRRm4x5 86zWnUDTgWBdQi5TrJIa8vZ+ulyh4M3YoGBjNeBRgKOj9ufQbkMd5cpiUad+8OqcTi51 PSG867qjnaKF6GqsSApIUq3Z9EkQMg4iBeJgRp4Zu3057q+j9atspHCNIPjvwygNR02W 1r6z6lgEiI9PFtGlSZcaV8xn/25pIqaBLWDRf9xLlYhb83JBaBNgSnQVoC+Q79Hiw2l1 Y42Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gvh04hDH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t18-20020a170902e85200b001d0b5954eb1si7899515plg.143.2023.12.12.06.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 06:53:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gvh04hDH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5CEAD804C23D; Tue, 12 Dec 2023 06:53:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376957AbjLLOwl (ORCPT + 99 others); Tue, 12 Dec 2023 09:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376948AbjLLOwj (ORCPT ); Tue, 12 Dec 2023 09:52:39 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B500DB; Tue, 12 Dec 2023 06:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702392765; x=1733928765; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5Aif7QrnAd9W5yo96FxEp06RSdRH+JWuuWAFgtJdcIo=; b=Gvh04hDH6cRekSkJ5kn8JaVIxcb7AihEZD//Ny3eSTZQEiKDmte4McSP clqE/lSC55rBsJPT3sbQ5PUrsUxBkB6c8mUbQmMpIQReITXCkVashB24S woA5mRYLBYl68vCnft2GdLO/yRp+Ed6UZA5TiRqEXYlHnUcx57Oc3ONnC Z8w98x1JK4Pi/Qs8AjYkip+2yWM1zDforfx/TjsitgTarAlkKHGnIc9Uy qztyXqDZKvaI0O7aj7vZQS1BJ0OUbMrml3Egv3k2Qh0BXfW/oTY0Nrjxl HkZCRUf/TtIpUpwc4t9pwIkI9UBLgFcNkgl49TO82NcTklFlyNffHBuL7 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="393686596" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="393686596" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 06:52:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="839467440" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="839467440" Received: from mdabrows-mobl1.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.5.65]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 06:52:42 -0800 From: Maciej Wieczor-Retman To: shuah@kernel.org, fenghua.yu@intel.com, reinette.chatre@intel.com Cc: ilpo.jarvinen@linux.intel.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 0/4] selftests/resctrl: Add non-contiguous CBMs in Intel CAT selftest Date: Tue, 12 Dec 2023 15:52:08 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 06:53:08 -0800 (PST) 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 similiar functionality presented in the bash script included in the cover letter of the original non-contiguous CBMs in Intel CAT series [2]. Changelog v2: - Rebase onto v3 of [1] series. - 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/20231211121826.14392-1-ilpo.jarvinen@linux.intel.com/ [2] https://lore.kernel.org/all/cover.1696934091.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 (3): selftests/resctrl: Add helpers for the non-contiguous test selftests/resctrl: Split validate_resctrl_feature_request() selftests/resctrl: Add non-contiguous CBMs CAT test tools/testing/selftests/resctrl/cat_test.c | 80 ++++++++++++++++- tools/testing/selftests/resctrl/cmt_test.c | 4 +- tools/testing/selftests/resctrl/mba_test.c | 5 +- tools/testing/selftests/resctrl/mbm_test.c | 6 +- tools/testing/selftests/resctrl/resctrl.h | 12 ++- .../testing/selftests/resctrl/resctrl_tests.c | 18 ++-- tools/testing/selftests/resctrl/resctrlfs.c | 86 ++++++++++++++++--- 7 files changed, 185 insertions(+), 26 deletions(-) -- 2.43.0