From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7483C77B73 for ; Thu, 27 Apr 2023 14:20:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243964AbjD0OUX (ORCPT ); Thu, 27 Apr 2023 10:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243966AbjD0OUC (ORCPT ); Thu, 27 Apr 2023 10:20:02 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8698F49D5 for ; Thu, 27 Apr 2023 07:20:01 -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 40F11C14; Thu, 27 Apr 2023 07:20:45 -0700 (PDT) Received: from [10.1.196.177] (eglon.cambridge.arm.com [10.1.196.177]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE1453F64C; Thu, 27 Apr 2023 07:19:50 -0700 (PDT) Message-ID: Date: Thu, 27 Apr 2023 15:19:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v3 15/19] x86/resctrl: Add helpers for system wide mon/alloc capable 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 , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, xingxin.hx@openanolis.org, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com References: <20230320172620.18254-1-james.morse@arm.com> <20230320172620.18254-16-james.morse@arm.com> <80e2962e-0aa6-c939-8f69-8f0cda988cbe@intel.com> From: James Morse In-Reply-To: <80e2962e-0aa6-c939-8f69-8f0cda988cbe@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/04/2023 00:29, Reinette Chatre wrote: > Hi James, > > On 3/20/2023 10:26 AM, James Morse wrote: >> resctrl reads rdt_alloc_capable or rdt_mon_capable to determine >> whether any of the resources support the corresponding features. >> resctrl also uses the static-keys that affect the architecture's >> context-switch code to determine the same thing. > > hmmm ... they are not the same though since the static-keys > in addition means that resctrl is mounted. and all the paths where this matters were updated in patch 12 to have an explicit resctrl_mounted check. Thanks, James