Received: by 10.223.185.116 with SMTP id b49csp6516950wrg; Wed, 28 Feb 2018 10:43:30 -0800 (PST) X-Google-Smtp-Source: AH8x225GJoWKKVEgsY9so5X5ysf+LtZvLeIhphfaWg+FUGPRdeZhLJ5CMa9iJ6V4aeo6as1P/zKJ X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr18570803plk.447.1519843410646; Wed, 28 Feb 2018 10:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519843410; cv=none; d=google.com; s=arc-20160816; b=UlgzVE/6BVo1HIN6dRLgblh3qx/vDqPv6nfsE0F7VJNjaSGomFfevNmAJWhv4Wm195 GBVD6hxspwSQJKtCIhd9s4S0C2b6eDrrrXhEugutMXa8e5t0Ygs2we5bHyy1TFWtEh9c o8d8zl8UiI4qFCjkE/e8vJ5YsleETF9TlLmzBojiq2hqz01c13f8MiLe6GoFEyK/32pS p8giK0g2XLVar4QluPVIiG+9xrQtMHTI/cSC8kLhaSEyekqQ4WoBNe+PT27Z7AuFDpjJ 3EGJp1nkLjVQrz5nGGzvRljD2tuumWo9z257titKQ2Cmt0HqIkxCyboxxRWxbVTQjtpz GkeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=+y7LCKeHT7jwDU2CGwlEXezo/HnOhOAOSKGZrlMI7Z4=; b=BxZ3w8twdggfrYpJ+nLMvAqKfINrzMfVF0YB6fZBcbYcMxRpT9q9GpXZB1n9p6sRjw fBKjfb6cE2F/pgSfEHaAY7nr1iyaL0RM/vG5W9Jej0tKRuYSJgMBQEuch1n82xXzFSD8 RMij/9kDq9SJd7Ft+rx3Nn9Oa5szu3ftgPRR0Gk8WDmPrmqlcvbUpHq0775HWwUQ8cS4 NDo7DkVFMN+phrO7+K7W7p8ERKE9sfl2f9naNCqkwTGVbxJdOkaPuon9t8aOLpcv/5AA NUpF1kHTu7MTf57pRuNRp2cRNeC+ADHA5WfyNUooTxwayBnqnK5Msj8unpM1/yqJfpnx L18A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si1322717pgn.46.2018.02.28.10.43.15; Wed, 28 Feb 2018 10:43:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932876AbeB1Smf (ORCPT + 99 others); Wed, 28 Feb 2018 13:42:35 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:49327 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932373AbeB1Sme (ORCPT ); Wed, 28 Feb 2018 13:42:34 -0500 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1er6cr-0003oa-U3; Wed, 28 Feb 2018 19:38:50 +0100 Date: Wed, 28 Feb 2018 19:42:26 +0100 (CET) From: Thomas Gleixner To: Reinette Chatre cc: fenghua.yu@intel.com, tony.luck@intel.com, gavin.hindman@intel.com, vikas.shivappa@linux.intel.com, dave.hansen@intel.com, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core In-Reply-To: <057523c7-5192-9a29-ca04-a8b299ef9685@intel.com> Message-ID: References: <85c96e41-5a54-d3dd-bda4-d8ef9c28b1d8@intel.com> <057523c7-5192-9a29-ca04-a8b299ef9685@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Feb 2018, Reinette Chatre wrote: > On 2/28/2018 9:59 AM, Thomas Gleixner wrote: > I hesitated doing something like this because during the review of this > series there was resistance to using sysfs files for multiple values. I > will proceed with your suggestion noting that it is tied with schemata file. It's not sysfs, it's resctrl fs. So we have already multiple lines and values, e.g. in the schemata file. > I do not think we need these special labels for CDP though. From what I > understand when CDP is enabled there will be two new resources in the > info directory. For example, > > info/L3DATA/ > info/L3CODE/ > > Each would have its own file(s) noting which bits are in use. > > At this time I am also not enabling pseudo-locking when CDP is enabled > so the locked label is not needed. The locked label is needed for the !CDP case so you can see where the locked regions are in a bitmap > There is already the file "shareable_bits" in the info directory > associated with each resource. At the moment it only reflects the bits > that could be used by other entities on the system. Considering its name > and us now introducing the idea of "shareable" I was thinking of adding > all "shareable" bits (hardware and software) of this resource to this > file. This still leaves the new "inuse_bits" (or perhaps "unused_bits") > info file that will communicate the "exclusive" and "locked" bits in > addition so what is in "shareable_bits". Between these two files users > should have information needed to choose regions for their tasks. These > would all use bitmap displays. Yeah, that needs some thought, but I happily let you sort out the details. Thanks, tglx