Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3244922lqo; Wed, 15 May 2024 04:18:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdRZjm/efkNPYHla4KuKv+negchraWMg/vPZ0MoK2ENGUEhA34PDSmmN+uU4SppEjopKJmdxX5KcopnqXMhGGBXG1XBX/saKSIR7vS+A== X-Google-Smtp-Source: AGHT+IHbWsyAg9xiaCAo8fyvTzh4oHTVdhU639U2mAkidKSKycymFwoDEsZiw5RMkY0UG7t+QhBk X-Received: by 2002:a19:2d07:0:b0:522:e58:86b3 with SMTP id 2adb3069b0e04-5220fc6d53emr9576374e87.36.1715771912977; Wed, 15 May 2024 04:18:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715771912; cv=pass; d=google.com; s=arc-20160816; b=oQ+68QOoxi08qiM+kQma2KVGsL2wVXFWk4ly/32cP+x7wyQB6rvjXPyw/169CUzT6l 0k6rRWKPcT/aF4KU9HH4qWgEuv4SUmdPnuSJE6sqj4Jl20nHDSZdDfkOhwe3ezR9Moot u1BJCFcnodT57HFDTNMEnfgBSVo+1dsJkOGTVKzeqoGNWzkS8yQq2OVuoOpMPR58Bv6c X78KIxoyxU0veeyD7BgJM5ulVWJGO+XYFP44AHHsHPiTiBvbssqo2K7ZpkGE8Cv07keF h8rto8IMghqm4DcvSKdfKAhNgQqB2gDL3gHF2AqNObvKtMerGg4rUKW9OrianhelJY8H +1Bg== 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=D83N3x6BgErIBTTt3Dm+jS6xSow9NvuYqPvmQb0j3hU=; fh=d5siQA5oqOOueYZJVtwGsPyRZatq5fmZfpfbxXuLE/E=; b=Ms6XAE52rYzf0QjoUZ0CHdxLt7niek8IK/M2KFtzsErqOCcGhB6fTYy3B3PPxRMBdZ 4D2wkRurUko+LDFJ+ZkXTExiRGAsxIy4EUmKrz3epexO/YXATNJB2nwIkLMCES+YYZbb CLHvlrc9EDbA6bM1+om0CaL0C0BX/EaNMYirWEfbn6jh9PHJHYxMy32fNtpEi5juPgzf Ft3KVIOWUrgBKAas14Jyb+Ha4B0gDMI/DHHHOAh9IIFgDu4KTZiglZzXFgLqJ1aJZMav D/icdGIEJfz1K1ZgKkXDyCcEMus0pO+GVgaVX242LHYwmsddZ9xh0PjKdXJ4q7fVbTm0 CvZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VKbFsqTn; 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-179792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3412e8si7637348a12.475.2024.05.15.04.18.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 04:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VKbFsqTn; 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-179792-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179792-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B27961F23DD7 for ; Wed, 15 May 2024 11:18:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 249716E619; Wed, 15 May 2024 11:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VKbFsqTn" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 98C7163511; Wed, 15 May 2024 11:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715771905; cv=none; b=MH3sbQHju0wV5pluh7sh1Or55ekVQ40y4oHFJwLq8XaYL0imloMjZ9GGy15yMEsKQx59feNfHPlYb5pC6hEPnq6cXHKy04WLHRVHJpiCV5AHgldfXiLEs+a9+EgSGZRkHdKzPGFhqoWNGhQtMXEUNlzse44RXaAAu/fXRRaLx9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715771905; c=relaxed/simple; bh=VJ6A8qhCWtdctbJft4NMBOXHwXvW0/27z0AwmEqovG8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uhBIyCD7ztK7oWn4uS+CsSh4wyQWOZGq6W0Y2Cg17xl0fnqRrqAGbJaOdssBgBWCUVgPbK7Sh3ni8d3R+E14ewnabk7kfMv4Fzi3bk+v50FKpz9ZyKI1CCRePY6G8D9I2o0AtWZe7dkvOzVKoHqE/Pk8LrpcpVbmk4UrPcD718E= 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=VKbFsqTn; arc=none smtp.client-ip=198.175.65.10 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=1715771904; x=1747307904; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=VJ6A8qhCWtdctbJft4NMBOXHwXvW0/27z0AwmEqovG8=; b=VKbFsqTnQIdk8XSDJ3K+Y8XpU1rOWhge8opctKIn5cbVZu1DgwfhcWJE Dl3c3HjinGkprbdGA94kJTpLe58Oo96NxzDdb6HLwrdIG8Oakh9AUd7gA +AS6DUq51SUX/0DoMyKTXDpFRtzoTy2ES271DfmK3pGRswQVGJnojXhyZ 05DpyhWc9+qhQeJuJqbdTnLDivDx4XgzjrMpZMZWODlRHOf9w2L8C0Qo+ Ai5Vu1s2+Ljl9S4MROIWthV+yuB6VYVKeao2KhLMAgB3EZ/SJjnEH/1fr AgG0ANL3DKO1CgcRhrApiSRnsiF0BvdE3+a4MY2cC9lM0oVq/QmTJ3vdF Q==; X-CSE-ConnectionGUID: atrZUZD+SruKkrpRLXj8eg== X-CSE-MsgGUID: qhH6Zca4SjWiArQAlQI4Zw== X-IronPort-AV: E=McAfee;i="6600,9927,11073"; a="29305066" X-IronPort-AV: E=Sophos;i="6.08,161,1712646000"; d="scan'208";a="29305066" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 04:18:23 -0700 X-CSE-ConnectionGUID: 7tqDk9C+THe11S106FEQCw== X-CSE-MsgGUID: FrM0xDsMSkWDBpqh96tvPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,161,1712646000"; d="scan'208";a="35900916" Received: from unknown (HELO wieczorr-mobl1.intel.com) ([10.245.245.148]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 04:18:20 -0700 From: Maciej Wieczor-Retman To: fenghua.yu@intel.com, shuah@kernel.org, reinette.chatre@intel.com Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, ilpo.jarvinen@linux.intel.com, tony.luck@intel.com Subject: [PATCH v2 0/2] selftests/resctrl: SNC kernel support discovery Date: Wed, 15 May 2024 13:17:39 +0200 Message-ID: X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changes v2: - Removed patches 2 and 3 since now this part will be supported by the kernel. Sub-Numa Clustering (SNC) allows splitting CPU cores, caches and memory into multiple NUMA nodes. When enabled, NUMA-aware applications can achieve better performance on bigger server platforms. SNC support in the kernel is currently in review [1]. With SNC enabled and kernel support in place all the tests will function normally. There might be a problem when SNC is enabled but the system is still using an older kernel version without SNC support. Currently the only message displayed in that situation is a guess that SNC might be enabled and is causing issues. That message also is displayed whenever the test fails on an Intel platform. Add a mechanism to discover kernel support for SNC which will add more meaning and certainty to the error message. Series was tested on Ice Lake server platforms with SNC disabled, SNC-2 and SNC-4. The tests were also ran with and without kernel support for SNC. Series applies cleanly on kselftest/next. [1] https://lore.kernel.org/all/20240503203325.21512-1-tony.luck@intel.com/ Previous versions of this series: [v1] https://lore.kernel.org/all/cover.1709721159.git.maciej.wieczor-retman@intel.com/ Maciej Wieczor-Retman (2): selftests/resctrl: Adjust effective L3 cache size with SNC enabled selftests/resctrl: Adjust SNC support messages tools/testing/selftests/resctrl/cat_test.c | 2 +- tools/testing/selftests/resctrl/cmt_test.c | 6 +- tools/testing/selftests/resctrl/mba_test.c | 2 + tools/testing/selftests/resctrl/mbm_test.c | 4 +- tools/testing/selftests/resctrl/resctrl.h | 8 +- tools/testing/selftests/resctrl/resctrlfs.c | 131 +++++++++++++++++++- 6 files changed, 144 insertions(+), 9 deletions(-) -- 2.45.0