Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5757398rwr; Mon, 24 Apr 2023 08:33:25 -0700 (PDT) X-Google-Smtp-Source: AKy350a1Vhll+N0G7Z/0AwzkxIZ3OQJngvyhuOxI2cCQTPH9j8x9HjDkQ4UphfSEkvRa5H96Ok7X X-Received: by 2002:a17:902:f551:b0:1a9:2c70:e1eb with SMTP id h17-20020a170902f55100b001a92c70e1ebmr17836968plf.36.1682350404516; Mon, 24 Apr 2023 08:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682350404; cv=none; d=google.com; s=arc-20160816; b=C5M/WVyF1GzW4ogRbC188Gw26HzoTIhTRX5iujR2wAShrO9YBkJoQOrzgjE4ktPu2K wchgpRXl7yMIcEd+YfuumnKA33xQJqOFbmkUTf/twZlrmM3cmQW6ZfjwpS+9vw9lMLLn 920DtUYXUMiERoZNa4qhAC3a4Reu+ozxRl7ji8eCTrbiwYuvKJ/XFdV/JUL8N18mydnO KgBvG9Dt3uwo2a0xqDk2fcvqw97/wniSGq1zA9iBYzKjqTBBGvDOatbOE/TH7YNFm+/D jvoeFh10DDlNkwC0gW2eVhjKkqAxktupOcOgJzsvLPjjQWRaBLE4zC7+hU+u8MHQXwFh IMxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=LG2/eAkWsdk0Z8S+nl8QPcg7/cZR21DzWcBEN2/CzX0=; b=VSFoAsGL72gaBj1b2OAOOEHTyrWEQAWF02oJAgfK34D2EZ4NvJ+NuDTuZW/TJ8ywqB yNTrGXu0YysoiYa9S+BTAhHd7lVsnWYnTGfjnZMw8temE/2mUZUDgt3jDTAu2b6zc6b0 dmHjykrp6HxFSQ5UcQTBn+jyWAzpSqJTgNfwWSbXtsLOLOkR6B+iAfJjJHeIdex61ffK sapyn98DZ0YSyXQma0b+FpeFe2UAs9ITTul0gb57rOLPeUcMBbbI3jj0zkj3fOXkCXHN Rf+wvpFbTe4VLuAFTGOs7qI6tyrkvS8bOG5DZgLVgMBz2Q5CCkoEOfM7D3V0QPWTjF7F otNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KOUq260L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a170902e5cd00b001a923bc3af0si11962615plf.544.2023.04.24.08.33.12; Mon, 24 Apr 2023 08:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KOUq260L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231784AbjDXPbv (ORCPT + 99 others); Mon, 24 Apr 2023 11:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbjDXPbt (ORCPT ); Mon, 24 Apr 2023 11:31:49 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46BAE93D8; Mon, 24 Apr 2023 08:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682350289; x=1713886289; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=ESvsUH8k5QGLZXs7AyLey2PqvroGXsERodoGrdKQ7tk=; b=KOUq260LPTZvZO9LwCwbjxnBuect7eizhmODPy7Hyxp578b7Hxx34Scd Xb6Wcqx49b0rl4zhaX9qTuj/fNf0E1LioPY9ttbYUEAPNGl3VgmN9F6aD V1oDipPqU/oz1M2lJMvokyHmDjDzI1W42deWYjBC+uwM8YdqcnFODu9TY tgWTOuQaJgd+SJxPEqBrDvTVHMHB2uJ+Ypax1WxRvIcbEyvxhUSEVxcR6 UH5zHyrP+hG3QkBEuzkTn0hC5vY8vXYWkdaBJLT78Uqp4AxoTM1xDYApG ie2nI9cg6RRCs75EPAfvMxaMUzpPAZ7pjj+w6xA+u7GKwHyyhexGiTkmZ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="335373013" X-IronPort-AV: E=Sophos;i="5.99,223,1677571200"; d="scan'208";a="335373013" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 08:31:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="757744517" X-IronPort-AV: E=Sophos;i="5.99,223,1677571200"; d="scan'208";a="757744517" Received: from wlwpo-8.amr.corp.intel.com ([10.251.215.143]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 08:31:26 -0700 Date: Mon, 24 Apr 2023 18:31:24 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Reinette Chatre cc: linux-kselftest@vger.kernel.org, Fenghua Yu , Shuah Khan , LKML , Shaopeng Tan Subject: Re: [PATCH v2 06/24] selftests/resctrl: Express span in bytes In-Reply-To: <500854b8-f070-37fb-40c9-47715744f451@intel.com> Message-ID: <983b41f-861-71c3-e62d-e79b393319c5@linux.intel.com> References: <20230418114506.46788-1-ilpo.jarvinen@linux.intel.com> <20230418114506.46788-7-ilpo.jarvinen@linux.intel.com> <500854b8-f070-37fb-40c9-47715744f451@intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-274303526-1682350288=:2038" X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-274303526-1682350288=:2038 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Fri, 21 Apr 2023, Reinette Chatre wrote: > On 4/18/2023 4:44 AM, Ilpo Järvinen wrote: > > Make MBA and MBM tests to use megabytes to represent span. CMT test > > uses bytes. > > > > Convert MBA and MBM tests to use bytes like CMT test to remove the > > inconsistency between the tests. This also allows removing test > > dependent buffer sizing from run_benchmark(). > > It is not clear to me how this patch achieves this goal since after > it show_mba_info() still displays results in MB. This was more for internal consistency as there was the test type dependent span calculation in run_benchmark(). I can fix the changelog to reflect that, however, what you think would be the best approach in show_bw_info(), should I leave the print to use MB (converting the internal representation back from bytes to MB there)? -- i. --8323329-274303526-1682350288=:2038--