Received: by 2002:a05:6504:1d0:b0:1de:de76:8684 with SMTP id e16csp884077ltn; Fri, 2 Sep 2022 09:22:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7kVsFSET1lTiX7W9i2xJ8C/ulhDe0B8D8suibOyHANc0HncLjs9pB6/Wi5WKhlaZiIbNfe X-Received: by 2002:a63:f962:0:b0:42b:4eaf:7c79 with SMTP id q34-20020a63f962000000b0042b4eaf7c79mr31222343pgk.463.1662135753459; Fri, 02 Sep 2022 09:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662135753; cv=none; d=google.com; s=arc-20160816; b=F+xb0VYsilfuKx5Q12g+hIQdLQZnODMpidT9zJjYHdWAmf7ZbWCHb/Ww3m/wyI4qj3 ZrrunBM4f9xTurNZFNp80Ho23DVjmKODxRcXtlJ4fgmFSOpwKG9ifIPRdczAx8Bn8jmp VFyH9wEPnuMrKkRmB5CNxXASdUleQEHD4bxVX4TU3Q+U7xk/IP4dCkhdXeN5GLMZjf1I 0c9vPvxVYSEKso+TLP/w1DUZnnrywTcTSroFsrEVQiPPm6M/dvcdkrnPpReo87x8wZHY E/PDztzlpjRxAd8Ee90fWqEy1XmEkQHZ5kDqeXLUEX1ot5sNyMNrniPomWB17ObY+akj g3OA== 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=6YJZbQvwmZs+ahhhx2J6qRMtdtscQs2xq128bZ8p2OU=; b=SxyJazK5EpMBVR8RqVaGFoZl9ImQcyO6Xt9Bac0qf/ZKgeFQpbQ6RV7if06QKBZqS/ F1L1uhLBW/seLlR4ZWcVfQeAb/ybUVNU0eluXlj1+gXwJFzKt+5oUPuOysbP/eEGrA8+ +wXBRzuYgcx09iNQQBxoc/hQtBimwfQ1PTqF8RpiYy6t48ZdJmRoPlOMHpInIXT96kMy +a9oRLw31xy390DzVoqU9TLqcs0rxQhCiviQa8GkiMcFNQpjrLpDevqRWWHVe5AoiuvH iAVkC0dqSOuWd2UghuZPsEP30OFT61A0C33uzSxccWzNTfRatQSaq8idEcf34vVR0rnL ZJ7g== 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 s11-20020a63524b000000b0042bfb21c6edsi2240425pgl.69.2022.09.02.09.22.15; Fri, 02 Sep 2022 09:22:33 -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 S237414AbiIBPyR (ORCPT + 99 others); Fri, 2 Sep 2022 11:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237505AbiIBPxr (ORCPT ); Fri, 2 Sep 2022 11:53:47 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21EE088DC2 for ; Fri, 2 Sep 2022 08:48:06 -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 68212D6E; Fri, 2 Sep 2022 08:48:12 -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 B2DC33F766; Fri, 2 Sep 2022 08:48:03 -0700 (PDT) Message-ID: <4ca8b7c8-0b67-d3a0-73c9-a2c4974cdcac@arm.com> Date: Fri, 2 Sep 2022 16:47:58 +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 v5 00/21] x86/resctrl: Make resctrl_arch_rmid_read() return values in bytes Content-Language: en-GB To: Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , 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, tan.shaopeng@fujitsu.com, Jamie Iles , Cristian Marussi , Xin Hao , xingxin.hx@openanolis.org, baolin.wang@linux.alibaba.com References: <20220622164629.20795-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=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 Hi Reinette, On 23/08/2022 18:20, Reinette Chatre wrote: > On 6/22/2022 9:46 AM, James Morse wrote: >> 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. >> > > Thank you for your patience as I was offline for a while. No problem, > This series looks good to me. I have one remaining comment that I provided > in reply to "[07/21] x86/resctrl: Abstract and use supports_mba_mbps()" where > it seems to me that an existing issue could easily be addressed in the new > function. Yup, that made sense to me. > I do not have tests for the software controller and only did basic sanity > checks. It would be great if the folks using this feature could test this > series. > > Thank you very much. From my side it looks good: > > Reviewed-by: Reinette Chatre Thanks! James