Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1239873lqb; Thu, 30 May 2024 04:56:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuRCL9WGNcbd//8MyfZwJxLjhkaUytv0sFkC+woqCRTzAt9GF7CzTdHal9Xd+gMeHs0va0oxO2LzP0qOjIXa+OI0zivhmd2NQENss90g== X-Google-Smtp-Source: AGHT+IFAOxyNVNBgZfyy1Z/hIo8JKVqsh3AYrdEeOi9iQcQ+P91J1tR99EWH5BeGc9VUnWXV9Fis X-Received: by 2002:a50:f69a:0:b0:57a:1e0a:379f with SMTP id 4fb4d7f45d1cf-57a1e0a381bmr889218a12.16.1717070194239; Thu, 30 May 2024 04:56:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717070194; cv=pass; d=google.com; s=arc-20160816; b=STmLEeAce3nxa4hQyPWLbwxFPx2qrM0PIceX1DQm/gAQSWcqL/kvQZ0K/A20OEHGxX U1dsMW8yJZiGhf8CdCO+1/pFFNLuiNWf2lvNqiFqmrLNo+u1Bck7fORCLBQBJp5Tf7yq GLJ0a7JnDOH2GgLWfIWebbmlSwhZBb0S95TPSBovNpqLxRFgQ6X6kRTqgA6qwB6SJhLI J+OMPL9A31Cd/C7VYhTwY2XzAcKcyoKZZd0WVz2/U5Kq7Ow0TU6xn1M/8CgYNfarH7w8 431ZRzMsNWXBqjSEwYp18K/4++IHBMyZ98W3CiB1iiDr970GozXXMYkmUF2xMNj2NY/R EcLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:message-id:in-reply-to:subject:cc:to:date :from:dkim-signature; bh=hrTGE/uh08MZ+QJx3ECyrge+kHkrOl/dDrNEQQ0d2yQ=; fh=P1senaH0elpikFTV880QoDSyh1eiNG1AyyzHlIxEX20=; b=qVbA850vE2MdChI6YL9/ce/ejq8uehmcPcMV7YYDekKGx8IopyNlkWAEvdEld0y1Ai ePtr+QJS97tGtZXHo1fedwc8Mpum7h8G1Dzio38mfKbaD0G8NxbW3UDSZ5qOGMKefWH7 XNg16lp6Y09rGpszNxt1//Z8MCmO+uaXjBl4uEAYMSASQhMTQkhOcUFQ4q6w9hiWslrX i/8eoNbznGC9ACllb+LIGLsCqcYu52eULfOmSo8AUE3HFIR++0Uaqex+46VdBYpwR6xe TT2tiJnT93ujQXaEnRdBDB+G9P+Dy7olq0nqylq7QxTiZAlvEBDcVIDoNC2gq3RtNgTZ avlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IT2yQxNG; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-195329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195329-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-579be3beb4dsi5649146a12.223.2024.05.30.04.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195329-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=IT2yQxNG; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-195329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195329-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 CE5181F23C84 for ; Thu, 30 May 2024 11:56:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB3C417E452; Thu, 30 May 2024 11:56:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IT2yQxNG" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 4DBD317276E; Thu, 30 May 2024 11:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717070185; cv=none; b=r95p+ag+paQdhe5SgCsV1ZWqoSHlXT0QAGn5lg/UvVBkFpygQfbQFlpltwoh0f+yIDOf3Z/q0QEq90CLzqF6XeAYb6sF8QlUIBlqq7Cu6pyl6PzxadymlEDFkIICBLtIHmZdRydZBVuI5XLflEl4b448EkkMkoPuGtY948MU8Qk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717070185; c=relaxed/simple; bh=Kf5urJElw/MAhUVK6/I8Nf7RBE+hhlvwpip9R7CJZmE=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=fA9YRBF2xWhKVVgpTRXjCuHMMnNZRXiIQVojVot51irdkQk0182hpXw5Dtu3zyZ+m4FGZ4W9fJTep5jn5I+vcMLEkS+UMOhMjheR0pBzonkUusOkIQezUx8HhsmCSCOt6OZJRzhwjZUW+FDZk+TjiSB8nzkm8RpM1PmOkbphtpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=IT2yQxNG; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717070184; x=1748606184; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=Kf5urJElw/MAhUVK6/I8Nf7RBE+hhlvwpip9R7CJZmE=; b=IT2yQxNGZWx7Gvo0VyBfCIqCPb/nIFFDiHFlOa2t2tuYZNImqMBrDoVc ci63FwJd0Xat2PbpMhBC9UCMKoGa6Qs7BmbFlUhI6ATcDEDQyGPe/R4hS N7zudVI4R7qoCZqAeNYL5VXawL4A7fhL86RNkQw55DS3QtpPgbKvQehXt epUF0wXzbTyqe82hTnN7lBOhKHRIxZnQcwUi7eJb21ARc7n5xgDvXOdUt e43fGUo4yozK9I84mwWSwZDyAr4JcPuuCrTJq6GF+erKF/7hWvGxNNkw5 0ZZcb/2ry/lLzZROfPuuILGSgtJmFK+yOrDltpB+UyGzqnjYcaHE3hf3o Q==; X-CSE-ConnectionGUID: J7oc/xn/Thyu0cyerwuWSQ== X-CSE-MsgGUID: TZcXRTluTOSxcCHLFI9OwA== X-IronPort-AV: E=McAfee;i="6600,9927,11087"; a="13730237" X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="13730237" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 04:56:23 -0700 X-CSE-ConnectionGUID: r51jObzNTHqgQUsRGGP9+g== X-CSE-MsgGUID: SuG7wB0TQZGU8VkEhESf8w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="40325621" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.150]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 04:56:20 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Thu, 30 May 2024 14:56:16 +0300 (EEST) To: Reinette Chatre cc: linux-kselftest@vger.kernel.org, Shuah Khan , Babu Moger , =?ISO-8859-15?Q?Maciej_Wiecz=F3r-Retman?= , LKML , Fenghua Yu , Shuah Khan Subject: Re: [PATCH v4 14/16] selftests/resctrl: Remove mongrp from MBA test In-Reply-To: Message-ID: References: <20240520123020.18938-1-ilpo.jarvinen@linux.intel.com> <20240520123020.18938-15-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323328-1244305515-1717062694=:1113" Content-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1244305515-1717062694=:1113 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: On Wed, 29 May 2024, Reinette Chatre wrote: > On 5/20/24 5:30 AM, Ilpo J=E4rvinen wrote: > > Nothing during MBA test uses mongrp even if it has been defined ever > > since the introduction of the MBA test in the commit 01fee6b4d1f9 > > ("selftests/resctrl: Add MBA test"). > >=20 > > Remove the mongrp from MBA test. > >=20 > > Signed-off-by: Ilpo J=E4rvinen > > --- > > tools/testing/selftests/resctrl/mba_test.c | 1 - > > 1 file changed, 1 deletion(-) > >=20 > > diff --git a/tools/testing/selftests/resctrl/mba_test.c > > b/tools/testing/selftests/resctrl/mba_test.c > > index 9c9a4f22e529..5e0b1e794295 100644 > > --- a/tools/testing/selftests/resctrl/mba_test.c > > +++ b/tools/testing/selftests/resctrl/mba_test.c > > @@ -166,7 +166,6 @@ static int mba_run_test(const struct resctrl_test *= test, > > const struct user_param > > =09struct resctrl_val_param param =3D { > > =09=09.resctrl_val=09=3D MBA_STR, > > =09=09.ctrlgrp=09=3D "c1", > > -=09=09.mongrp=09=09=3D "m1", > > =09=09.filename=09=3D RESULT_FILE_NAME, > > =09=09.init=09=09=3D mba_init, > > =09=09.setup=09=09=3D mba_setup, >=20 > This may explain the unexpected checks that are removed in final patch? While possible, I just have gotten a feeling that not much thought has=20 been put on generality until now. Because of that, the solution had always= =20 been adding new ifs, no matter the place, instead of thinking how to=20 parametrize things properly instead. It has lead to fully overlapping=20 checks, dead code, and incomplete error handling which is hopefully now=20 slowly getting less and less. > Reviewed-by: Reinette Chatre --=20 i. --8323328-1244305515-1717062694=:1113--