Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp722672rwr; Thu, 27 Apr 2023 07:23:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Aqor4TdMHJ6kXxAzbxMcJfsoGCQynxeb6qndZ4CdpVk2iucsf0Gz3cJChS78X3ljrQXUe X-Received: by 2002:a05:6a21:32a2:b0:f3:d92:a209 with SMTP id yt34-20020a056a2132a200b000f30d92a209mr2162466pzb.0.1682605409168; Thu, 27 Apr 2023 07:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682605409; cv=none; d=google.com; s=arc-20160816; b=WQ5nBnvY9LVBhpvLgqMYpgrAjvmYZsOz4vvIyefTGxUjZQ7FKLFnPc56u8qmYbQetg hLkiUr8xGe3i1xmXIFKhHRNPvyqm8l9+wfKsgiL1AgCBZBBLBU1wMb9/XmIo4DBpLfst rk8+ymYvbnSKwFQQSSm1cSPoEuHan5Smc/ZTb6gSWfhskv3lP2zaQEGwgAYyQfnOyLWX d4UUys/S+M+nYirpYeNq+0TdeafT2VEX59nd2IAT8co3wHvdiNoRwvcRXGjA76fCfLti q5to3UvxUoxISL/dEqVWpSGcUueuUFuL10CcxKq1P04etFp48BKYHzeWfCVZGL4hyZ44 88xg== 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=AoKT2jo6yKx2qPBnJg0FTFlsgkVocP7H3Yh/D3NU1So=; b=kTQ893mW0EOh/3KJlQy2C6qT2IA7hH18LqpBIxk5GSoReRBvRCbx1g5JkPcQF/XVTb Oi7yjh3aUMGrtamiC1py3yPTJsvpda3/hWzh/YdC0pzQjR98YZmbnXNBZSo9zxP/mVPc NZT5tfkp1MamPL2Mf/+yn+eRMteema2YG1mF1n5zh/gngsGjz5JMQRkZmcmUJZl4qJI4 l4XUWuGCHCpJscu7qumwS97bXO3OKv4rLNgsVU8Ynr8u+l8BsBP0H4qFjyEQrRPi7LMG PasavhNLs/Lllb0aCQ5EOtFvc8yo8h7MyvGYkJYjNTkOFipo25cDx+quhWq7I/cvYO1G 6/QQ== 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 u26-20020a63141a000000b005197bd3c17csi18718965pgl.544.2023.04.27.07.23.15; Thu, 27 Apr 2023 07:23:29 -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 S243992AbjD0OUU (ORCPT + 99 others); Thu, 27 Apr 2023 10:20:20 -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 X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 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