Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp513202rwb; Thu, 22 Sep 2022 02:50:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7IvAiKSdasz28INVBmxFb6wDM21Ql/dX0+Uj0EdX97BCwQWwc6eNFI7YZsgXN0N388PlXs X-Received: by 2002:aa7:d3cd:0:b0:452:5457:6375 with SMTP id o13-20020aa7d3cd000000b0045254576375mr2401043edr.111.1663840252725; Thu, 22 Sep 2022 02:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663840252; cv=none; d=google.com; s=arc-20160816; b=Jb9F0SUW+gdul0nAyhUqbXVy9CKxhQN1RwxciemV+w96T6Rk1ObGYw/eS8G0D+izWs 8vIEEY0MKkgqj8Fa5F4VEHzKZPUtwOfFTG7iVnYkJm9zP/DF8cNxsoz5SPUxtlSYq6H2 BjUlFwZZr8yHrBdasGbChosGpmtimitIt7Fg6rikBdB00j6MNYoWsRavsgeGCL6dnnrV iVRkveHbUiOL0lBvQcZ9xLr5uo91G4qxCRdPlBU+zvqsHI8uelLGansXPj+A8Rnllj3P QoGM4nQnyuwQaie8IqmJ6YRVm8xzVySstmAA9mGkQBItSeiBDsMnKY+UlUp3Ke3m1P3E 0HPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=9PtD4WmWj8lEL10xqAI3Bobj1c0uuViQnvamHrLGawg=; b=OFAfE+Xr+wceXwdjc/4sF4rSZwiP7dTDZ3RlVuGvhDovPz0Kkh2ab3jUGqXmJtUxBi +Z8M4JeCmn0GWWpN0XZYMTV/OiFxk3w3+jWhZAv+5Twq8Ma1+/50DrC5nVU0rdibtIcX l0iUnS5zZ/3rVVhmQ9z63mRcA3BmfHL2cgT3LANS+21ZS9lSusV5jypHhVDXKg1Jl+jU yKuGbYd/53y08TFHJ9803Guw4Z0MysW+6VqvCet5u1IwepizbCAm01+t0cTpqdGyYhZF zD94rmMao4XTUlJV82qrnQGp/aYCqIUoQTkbuxu2iXbKjVvAcBfHRhMKPFSCs6NH/jPU VUtA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a17090608c700b0078234266a71si2330787eje.79.2022.09.22.02.50.23; Thu, 22 Sep 2022 02:50:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229578AbiIVJkn (ORCPT + 99 others); Thu, 22 Sep 2022 05:40:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiIVJkl (ORCPT ); Thu, 22 Sep 2022 05:40:41 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A69393ECF6 for ; Thu, 22 Sep 2022 02:40:40 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E2A3E1595; Thu, 22 Sep 2022 02:40:46 -0700 (PDT) Received: from [10.1.197.78] (eglon.cambridge.arm.com [10.1.197.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DD7933F73B; Thu, 22 Sep 2022 02:40:37 -0700 (PDT) Message-ID: Date: Thu, 22 Sep 2022 10:40:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v6 00/21] x86/resctrl: Make resctrl_arch_rmid_read() return values in bytes Content-Language: en-GB To: "tan.shaopeng@fujitsu.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Cc: Fenghua Yu , Reinette Chatre , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , "shameerali.kolothum.thodi@huawei.com" , D Scott Phillips OS , "lcherian@marvell.com" , "bobo.shaobowang@huawei.com" , Jamie Iles , Cristian Marussi , Xin Hao , "xingxin.hx@openanolis.org" , "baolin.wang@linux.alibaba.com" References: <20220902154829.30399-1-james.morse@arm.com> From: James Morse In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE 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 Hello! On 13/09/2022 02:00, tan.shaopeng@fujitsu.com wrote: >> Changes in this version? >> * Changed supports_mba_mbps() to use is_mbm_local_enabled() >> >> --- >> The aim of this series is to insert a split between the parts of the monitor code >> that the architecture must implement, and those that are part of the resctrl >> filesystem. The eventual aim is to move all filesystem parts out to live in >> /fs/resctrl, so that resctrl can be wired up for MPAM. >> >> What's MPAM? See the cover letter of a previous series. [1] >> >> The series adds domain online/offline callbacks to allow the filesystem to >> manage some of its structures itself, then moves all the 'mba_sc' behaviour to >> be part of the filesystem. >> This means another architecture doesn't need to provide an mbps_val array. >> As its all software, the resctrl filesystem should be able to do this without any >> help from the architecture code. >> >> Finally __rmid_read() is refactored to be the API call that the architecture >> provides to read a counter value. All the hardware specific overflow detection, >> scaling and value correction should occur behind this helper. > I tested this patch series(patch v6) on Intel(R) Xeon(R) Gold 6254 CPU with resctrl selftest. > It is no problem. > > Reviewed-by: Shaopeng Tan > Tested-by: Shaopeng Tan Thanks for testing it again! James