Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp820026ybh; Wed, 11 Mar 2020 11:28:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt1xy83uVkLQMlKqQMtGWYBJ/g3se2XLTR7N55N1EfZN9VfILk/1GbkbKds++wN7/R0jKsa X-Received: by 2002:aca:4a86:: with SMTP id x128mr9483oia.29.1583951327492; Wed, 11 Mar 2020 11:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583951327; cv=none; d=google.com; s=arc-20160816; b=dnd7tcwQpU7xTpjyEls2YSHsjuoJWTMJrzuE+Sy6wnrU+klp/Opm0DpxwgX5pe9wEA 9cKL35CjEvCBIUuqTjqC0NFpPksC6FYjAfTMjAQUhWjqGQIQTKwmPj2R19GUqP628MIl pq6zN5oZ+sS/pdgMO8obRLbvt0yrze0/kCeZcXpkni1LvPaa5J+1ksIvSE2uuIRPjfHS iuvYpLURPE2IKO3dUCxdCPvQfHH7W2+hLB5mWb1kkwMTacdg/Wl6/FfWVceT4jsl6odW 7ZYJ9X1CI7VYvGdYHcAKhBrBCdpRleoH++N8f+zkARovGK7ELYNdkFhOtXsFkBOH4m5Y n93Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=4p7u677Rb6xzXxxFyvQBI59+SgkoaXBnQI/Zl6kusxE=; b=v3DHmweykyo3o6wA9yWV9S/2OjlOIfZFv2VDdJUtKIi2ibg+KMpMKY8M96Y+XpJzlb 2+Xiu1FlBoKA30ok4nnqA3wEFhJiUY0XXgffUBDfKk5tiHCZ7b4r1UfkUjg6Pu5XOi+4 NBeH0+JcFiCbTLhudVe062lxMaih0WGkhGoSOyQqeDMqUDiYyfE81r1yNiEVL5kGlTtR KoYkJt2SdRaQWg4l/LHp17tVdN9LaEWZzjdsoWLGnuFfw14G96fenic/dK5RoL22I/Fz 5lR3dfPFyGbgQ1HbeejmedqGNQLK34ptA7V4LGHF8myAvWGCDvsk6U/9KaXQH8kwU8au MU/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si455209oof.17.2020.03.11.11.28.35; Wed, 11 Mar 2020 11:28:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730827AbgCKS1p (ORCPT + 99 others); Wed, 11 Mar 2020 14:27:45 -0400 Received: from mga07.intel.com ([134.134.136.100]:25702 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730468AbgCKS1p (ORCPT ); Wed, 11 Mar 2020 14:27:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Mar 2020 11:27:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,541,1574150400"; d="scan'208";a="236370876" Received: from sai-dev-mach.sc.intel.com ([143.183.140.153]) by fmsmga008.fm.intel.com with ESMTP; 11 Mar 2020 11:27:44 -0700 Message-ID: <664cf142449b0a1ef7f09d04111f96ff84738e28.camel@intel.com> Subject: Re: [PATCH V1 01/13] selftests/resctrl: Fix feature detection From: Sai Praneeth Prakhya To: Reinette Chatre , "shuah@kernel.org" , "linux-kselftest@vger.kernel.org" Cc: "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "Luck, Tony" , "babu.moger@amd.com" , "james.morse@arm.com" , "Shankar, Ravi V" , "Yu, Fenghua" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Date: Wed, 11 Mar 2020 11:22:57 -0700 In-Reply-To: References: <7e3e4b91f5786a489e68eecda21e1d8049b60181.1583657204.git.sai.praneeth.prakhya@intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Reinette, On Wed, 2020-03-11 at 11:06 -0700, Reinette Chatre wrote: > Hi Sai, > > On 3/9/2020 3:51 PM, Prakhya, Sai Praneeth wrote: > > > -----Original Message----- > > > From: Reinette Chatre > > > Sent: Monday, March 9, 2020 3:34 PM > > > > [SNIP] > > > > > > That's a good point and makes sense to me. I think we could fix it in > > > > two ways 1. grep for strings in dmesg but that will still leave > > > > ambiguity in deciding b/w mbm and cqm because kernel prints "resctrl: > > > > L3 > > > monitoring detected" for both the features 2. Check in "info" directory > > > > a. For cat_l3, we could search for info/L3 > > > > b. For mba, we could search for info/MB > > > > c. For cqm and mbm, we could search for specified string in > > > > info/L3_MON/mon_features > > > > > > > > I think option 2 might be better because it can handle all cases, > > > > please let me > > > know what you think. > > > > > > I agree. For the reasons you mention and also that (1) may not be > > > possible if the > > > loglevel prevents those lines from being printed. > > > > Makes sense. I will work on the fix. > > One more note about this ... from what I can tell the test for a feature > currently fails if the platform does not support the feature. Would it > be possible to just skip the test in this case instead? That's because the output of the test should be just "ok" or "not ok". I can change it to something like "# Skip because platform doesn't support the feature", but not really sure if it complies with TAP 13 protocol. Regards, Sai