Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp712833lqt; Thu, 6 Jun 2024 16:59:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUADgDWFdcXWCC9alIOKsxrEPjQSPYngIdvpW8Rn+Hj6LKOgRGl0gaNUbeIer7wzsb+Y8CM4CKB9yFWKoIuGMhJi/+bTfuGLVIgk+QTiw== X-Google-Smtp-Source: AGHT+IFBhYNvfx8xSDMkjmQnw5Om24tN+uoT7eph23esnLTBYur8y2iNu9MvSWMXNIvCzhbZJYtR X-Received: by 2002:a05:6a20:1582:b0:1b2:b3e4:cbd0 with SMTP id adf61e73a8af0-1b2f9a5ed57mr1087849637.31.1717718348563; Thu, 06 Jun 2024 16:59:08 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd760665si18696905ad.41.2024.06.06.16.59.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 16:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205174-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TAjRbokS; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-205174-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205174-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 932EEB2222D for ; Thu, 6 Jun 2024 23:59:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD5EC13F450; Thu, 6 Jun 2024 23:58:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TAjRbokS" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 2F49C8821; Thu, 6 Jun 2024 23:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.11 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717718334; cv=fail; b=Y1dx5aYl1wzbDyxwzuZ4kE0Qli4y2ti8cCbMmHaWBtjrAUen6pPmdgBuIhDBArlsiZxq4X6csTPfrvorfQG791ZXgN0ktnPUQaUcNDR6EgFBzhNyUwpvMgiUnPzHh6g8pYqW7oYokihKtg2l6iApw3vY06Ej0bOGY5sbewdVB9I= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717718334; c=relaxed/simple; bh=5/sTRA2N3gTXEOQhfXPcMfp2yd7P9iI/rasMcUmF9z0=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=ZXRefA+eZvDtChubfAQOnshftR5tm5NTZk1arYPxEIPo1ILiqHBDB5SVz+q03Jpmok6EppfMSdV0tM6t5w+9kVQ7wl9bS+ghlkJ8+6e6iPDluvXMgV1NTSL0utGrTmvWCd0k0OilXQQi9xSTe4IPgAyGJtUwvWLtw4ae1Jxxic0= ARC-Authentication-Results:i=2; 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=TAjRbokS; arc=fail smtp.client-ip=192.198.163.11 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=1717718332; x=1749254332; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=5/sTRA2N3gTXEOQhfXPcMfp2yd7P9iI/rasMcUmF9z0=; b=TAjRbokSgTzql9fiRQQuNxpq3qzxgKfTBu7KOoy0JgX/v7pxgblskrWs q6O0FQNW1xmW9q3kINzt8gkZAukXaojd52qnu5h5NlnDHjGbKHPslY3b+ ghc8cDykS8M8M+l27qtQMaNTh/rMVttVerNO+buYQz8BvNf3ZF7zZKKQc +jspdI82tBQO6jqcJWGdfjdd2sufTF5BTPhxuTYG+qzNJpaRQMyaiexOL TfkjWqPG1mII4zrintTNzScUqDo7aKojqd6NvytWRwdR7tAjkPgqFshIc Ox6vZK/8xZ6pQPS2f2vY0LwDZ2aE6+wVR0qwZzICq2Siozf8fnTLvBGTH w==; X-CSE-ConnectionGUID: 9XGkF7ZJQnKVvj7uUCEtrg== X-CSE-MsgGUID: 1OUTs8eZRYOQPkDUCgbUHw== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="25050782" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="25050782" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 16:58:50 -0700 X-CSE-ConnectionGUID: ILGIJdVnRMWBJ7GdHzwLBg== X-CSE-MsgGUID: 0lscCQSlTjOVkC1nIblNDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="75618266" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Jun 2024 16:58:50 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 6 Jun 2024 16:58:49 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 6 Jun 2024 16:58:49 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 6 Jun 2024 16:58:49 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 6 Jun 2024 16:58:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BYZjdcQs79+ivjsQMC9J3aX2h8O42ULsWKLO+j2n/4/lSkY91IzrJWVME+PcWE4WcVx1ENRNcr/Fg0e6lqw62cQVsWTkwwKLRYnsxDlgit5zd3jEiRPylQS956UT8NPDZH10vrR+3DtrJga5VER/W2uj0FScUW+3vSnRUK8qcBAkZ0WDOctvEpql7ynfs7TUHCu3UCX94SPjRb0PDkD/vLpBC8yQ107C/2vTVxzgYaMN7CJ80e9ROmue+XSGgzGhvbDxeW1pL24uR8FRmJgIAzbSzwTxyp+hqRxqt/naH0Ss3YaY8/Zcv1XENUkzTWCcIICSxxpKqaKPLHBdPjboQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+L/z5A40oSA0TgRPvaiDAE76tIOlsBiYUaA6u1Nw4HE=; b=WpZh2Q+bKr7GQScl+hrrYqUd11ticinVP+mhZ1p0ZI0BVjxFfk1BjVCZZM7RbLdE8vZ8QTFDOOhzVyyRWE0DpiyQeHd7vtGN+V6WmOn+sflOHATkDCWhot8WdMU8bLfgYMuwTlkdjDrajeY8CkHwR2cRT2AqGpQG2NreycXWlnu14g2ZgRQWBzATUch20lQqMwvk1QMZU8Sz4Mv50r5VdxzoWghwosFoRfLK3ri3UDTYw6M6ORhqHkv6hLIhIpimeysC/qdpwdqAbZe1dg5MJW1iMMGeKsQWreko+u+pgfrdAk4I5lQ+M28l5PbCAjdeNQ3Wq3UZF22yeer9b0zoVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by IA1PR11MB8098.namprd11.prod.outlook.com (2603:10b6:208:44b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.33; Thu, 6 Jun 2024 23:58:36 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::61a:aa57:1d81:a9cf%3]) with mapi id 15.20.7633.017; Thu, 6 Jun 2024 23:58:36 +0000 Message-ID: <8553ddc2-ee0f-447d-8fe4-5a7dd84375f2@intel.com> Date: Thu, 6 Jun 2024 16:58:34 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests/resctrl: Fix noncont_cat_run_test for AMD To: , , CC: , , , , , References: <3a6c9dd9dc6bda6e2582db049bfe853cd836139f.1717622080.git.babu.moger@amd.com> <9a7213d2-a782-4342-93f2-acf191c745fd@intel.com> <3bd755d7-e5c7-3dc3-9875-4884c857e325@amd.com> From: Reinette Chatre Content-Language: en-US In-Reply-To: <3bd755d7-e5c7-3dc3-9875-4884c857e325@amd.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR04CA0271.namprd04.prod.outlook.com (2603:10b6:303:89::6) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|IA1PR11MB8098:EE_ X-MS-Office365-Filtering-Correlation-Id: b12ccc43-ec4d-493b-2b7b-08dc86849455 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?VXJVQ2htSVUzMzJHZEVoNU53Yi9WWGZCOW9BS0FlaTdKMWpVbWQvN1FWZEpW?= =?utf-8?B?bmcwcXltK0pUd1BDcmpTOWx6K1FDZlYzMXhqajE1WVBCRVVxSTZSTFBVMTBY?= =?utf-8?B?bHJsVGkzYnRPWk1wdkU4SDJ4RUZuZzFENWp4QldHclQraFE3TExNMmhJYXdr?= =?utf-8?B?WlFYcnk0N0JicDExWEVlVE9ZaEUzUkxmU2pEajhVWDFab2U4WmdyVVg0MFB2?=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J3?= =?utf-8?B?Zk1jZWVDU3NNaWhMcndZQWNtQkVsMjMvUENxOWR3UDFoZkszdUt1UU80R2to?= =?utf-8?B?R1c3cXdJZ1lETHpqbTZJUkt5b0gwU3VTWnhrcytDNjA3OEgwVG5yK3dPZGVQ?= =?utf-8?B?aFB4UFU3WjFwNDE5OU5nTzU3NVpHMno1S1lrWGVkdDJlYmtwaTJrN2NtY3Bs?= =?utf-8?B?MGdqMWN4TTdYcWVHYzd4UUVrRk5wTllSVmhKeWxIbitkTy93Y1NVaHRMalJl?= =?utf-8?B?MFEzV1k0N3BnWkJEU2FjTFd1eWNrUThwSU1vR1FWWGJvTTMyQS92ODlEcTlR?= =?utf-8?B?cGdsb1hhZ0EzTlJRdUlpalJMbGdENncvNGhTb0Z5YTFNdDJWUjVxakhmM1dN?= =?utf-8?B?a01WSnRZUFdGUTM2bmxlTHVtaDRqY3F0dmFTb3hCOEZlcGNoSkZLbGJvZkg0?= =?utf-8?B?dEdLdDE5UWlxWVZrSG5SWkNESjNvSkpadkNRY04rUFRvV1hiQmM2VlpDRmRr?= =?utf-8?B?Wk13VTFPbEVwVUZGc2JiRk4wK3VZNFAxcTdDZDdSMkJWQTdGRFJhbnZvakIy?= =?utf-8?B?OWFWZWd2MHlLNThSK3FOcE9WVy9oV3R1YXFxbWZjM2NQR1VRZXJDaGdUVlZi?= =?utf-8?Q?vOxg1pPUvvH3ViGhY8hCy6L3nny+irYZyvxff1Z?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c2dyVmxwRFd4UDNtM1hJRHltN3NuS1B3ZXluTmxHSC9pQ3pJTmpzbDhHYjhG?= =?utf-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1NXUzZ1owSmRvVGcrdkFNNSth?= =?utf-8?B?N1VUcnVBdkNJTXp4N3E0RXJEcVo3OEVKbTQyeWZyekp6cHU2VUU0Q1BOaGlw?= =?utf-8?B?RWRUcDd0R3pTUjZmU0dZYmJjZXUwRDRjakhhaW9Yc2FLUzQyNGJiUURIdm9p?= =?utf-8?B?Sy9pZEVyTnVObVArWHB3cVBuUlpva0ltak1JdklmSm1qTTFiNnIyTmxFMUVn?= =?utf-8?B?bGlBMmxNUm0yRmx5R243eXp4STBNWHVSU25BZHJnU2VFUDNzUEZscU9DVGpN?= =?utf-8?B?bm5YOERmMUNWSXM5dnZ1bkpndmhsYXBiM2tmNGE1amVwOUVJRWZ3a2dkZlVV?= =?utf-8?B?UUE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: b12ccc43-ec4d-493b-2b7b-08dc86849455 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 23:58:36.3241 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: umj8PD7ETOln4OPF/PMQ27fpJgAuTyjVHIJBtmI9pK8ej5W7XsxbtVrMO27ZyYcOqB2CPFR9U3i+aAPgqcMQUAWeGYguiikjRtTZ0fv43fw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB8098 X-OriginatorOrg: intel.com Hi Babu, On 6/6/24 4:09 PM, Moger, Babu wrote: > Hi Reinette, > > > On 6/6/2024 3:33 PM, Reinette Chatre wrote: >> Hi Babu, >> >> On 6/5/24 2:36 PM, Babu Moger wrote: >>> The selftest noncont_cat_run_test fails on AMD with the warnings. Reason >>> is, AMD supports non contiguous CBM masks but does not report it via CPUID. >>> >>> Update noncont_cat_run_test to check for the vendor when verifying CPUID. >>> >>> Fixes: ae638551ab64 ("selftests/resctrl: Add non-contiguous CBMs CAT test") >>> Signed-off-by: Babu Moger >>> --- >>> This was part of the series >>> https://lore.kernel.org/lkml/cover.1708637563.git.babu.moger@amd.com/ >>> Sending this as a separate fix per review comments. >>> --- >>>   tools/testing/selftests/resctrl/cat_test.c | 2 +- >>>   1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/tools/testing/selftests/resctrl/cat_test.c b/tools/testing/selftests/resctrl/cat_test.c >>> index d4dffc934bc3..b2988888786e 100644 >>> --- a/tools/testing/selftests/resctrl/cat_test.c >>> +++ b/tools/testing/selftests/resctrl/cat_test.c >>> @@ -308,7 +308,7 @@ static int noncont_cat_run_test(const struct resctrl_test *test, >>>       else >>>           return -EINVAL; >>> -    if (sparse_masks != ((ecx >> 3) & 1)) { >>> +    if ((get_vendor() == ARCH_INTEL) && sparse_masks != ((ecx >> 3) & 1)) { >>>           ksft_print_msg("CPUID output doesn't match 'sparse_masks' file content!\n"); >>>           return 1; >>>       } >> >> Since AMD does not report this support via CPUID it does not seem >> appropriate to use CPUID at all on AMD when doing the hardware check. >> I think the above check makes it difficult to understand what is different >> on AMD. >> >> What if instead there is a new function, for example, >> "static bool arch_supports_noncont_cat(const struct resctrl_test *test)" >> that returns true if the hardware supports non-contiguous CBM? > > Sure. > >> >> The vendor check can be in there to make it obvious what is going on: >> >>      /* AMD always supports non-contiguous CBM. */ >>      if (get_vendor() == AMD) >>          return true; >> >>      /* CPUID check for Intel here. */ >> >> The "sparse_masks" from kernel can then be checked against >> hardware support with an appropriate (no mention of CPUID) >> error message if this fails. >> > > Something like this? > > > diff --git a/tools/testing/selftests/resctrl/cat_test.c b/tools/testing/selftests/resctrl/cat_test.c > index d4dffc934bc3..b75d220f29f6 100644 > --- a/tools/testing/selftests/resctrl/cat_test.c > +++ b/tools/testing/selftests/resctrl/cat_test.c > @@ -288,11 +288,30 @@ static int cat_run_test(const struct resctrl_test *test, const struct user_param >         return ret; >  } > > +static bool arch_supports_noncont_cat(const struct resctrl_test *test) > +{ > +       unsigned int eax, ebx, ecx, edx; > + > +       /* AMD always supports non-contiguous CBM. */ > +       if (get_vendor() == ARCH_AMD) { > +               return true; > +       } else { The else can be dropped since it follows a return. The rest of the code can be prefixed with a matching comment like: /* Intel support for non-contiguous CBM needs to be discovered. */ (please feel free to improve) > +               if (!strcmp(test->resource, "L3")) > +                       __cpuid_count(0x10, 1, eax, ebx, ecx, edx); > +               else if (!strcmp(test->resource, "L2")) > +                       __cpuid_count(0x10, 2, eax, ebx, ecx, edx); > +               else > +                       return false; > + > +               return ((ecx >> 3) & 1); > +       } > +} > + >  static int noncont_cat_run_test(const struct resctrl_test *test, >                                 const struct user_params *uparams) >  { >         unsigned long full_cache_mask, cont_mask, noncont_mask; > -       unsigned int eax, ebx, ecx, edx, sparse_masks; > +       unsigned int sparse_masks; >         int bit_center, ret; >         char schemata[64]; > > @@ -301,15 +320,8 @@ static int noncont_cat_run_test(const struct resctrl_test *test, >         if (ret) >                 return ret; > > -       if (!strcmp(test->resource, "L3")) > -               __cpuid_count(0x10, 1, eax, ebx, ecx, edx); > -       else if (!strcmp(test->resource, "L2")) > -               __cpuid_count(0x10, 2, eax, ebx, ecx, edx); > -       else > -               return -EINVAL; > - > -       if (sparse_masks != ((ecx >> 3) & 1)) { > -               ksft_print_msg("CPUID output doesn't match 'sparse_masks' file content!\n"); > +       if (!(arch_supports_noncont_cat(test) && sparse_masks)) { > +               ksft_print_msg("Hardware does not support non-contiguous CBM!\n"); Please fix the test as well as the message. It is not an error if hardware does not support non-contiguous CBM. It is an error if the hardware and kernel disagrees whether non-contiguous CBM is supported. Reinette