From patchwork Tue Dec 11 01:03:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keith Busch X-Patchwork-Id: 10722923 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EB17991E for ; Tue, 11 Dec 2018 01:06:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAC5C2A0E6 for ; Tue, 11 Dec 2018 01:06:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC4FC2A4ED; Tue, 11 Dec 2018 01:06:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 615FC2A0E6 for ; Tue, 11 Dec 2018 01:06:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 366638E0073; Mon, 10 Dec 2018 20:05:55 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2EEF48E006F; Mon, 10 Dec 2018 20:05:55 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1B7CE8E0073; Mon, 10 Dec 2018 20:05:55 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by kanga.kvack.org (Postfix) with ESMTP id C8AC88E006F for ; Mon, 10 Dec 2018 20:05:54 -0500 (EST) Received: by mail-pg1-f200.google.com with SMTP id u17so8625860pgn.17 for ; Mon, 10 Dec 2018 17:05:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=DvFPo1Kb4slIvROJNbtenBM95EUGGgf3Huij5cWQ9jo=; b=cSJgd8WuLOs1DDLTHHX5BbIXeygABJGXWv7qMYZgLRLrK4QlG5D1+qCVcz7pb4m5Wp qTY3xInaNCpMjCdcdlyo7ZYzkHcmPiiEuLziipRqGEhua3BDO8ZAE52qFJWlY2qjs5ch EjWD7jIi3ZzSTEeX4nw6aJAAYjE3bRjsv5T/I+Qzz4R1SiIPzM2i+HAtZQh45wbpOFMK ca+ABB7Eg1MnlxdA56IjWC1xyaZPR1vRW1iWcd1xtaQNe/fu9gPnwZSabgPieqyPhpYB nUHfIED28Pd2aMjcmYGeCz5NkgeCG7wZvRPq/OEXQkdVGwrlXfZuDv2MQtLwNjwc9CiJ 9Olg== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of keith.busch@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=keith.busch@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: AA+aEWZpIpeZlqh7w0PD9SLeZ8V1NMh39QJL0NIXnVOBv4Yj++DS2VvQ MMxxWY9+KmqOiq635IaOSVPnb3yP6nfUeBVdzkOAmOFnnfgeECiBjPhSxIboIOd1+rw/exUHnJx NDXVfL6pEDNjQnmn7XiEKZCM9xEyKo+jEX94qyG/1DjMqOqd6CZwSftj9VApRUnZN/A== X-Received: by 2002:a17:902:780a:: with SMTP id p10mr14533688pll.54.1544490354489; Mon, 10 Dec 2018 17:05:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/VXMZc/10wYadphr7yBMkqRNVBj5lGKjrTXHKDUevy650W5dBDOeh7lfZlGPGUQt2XeaqQv X-Received: by 2002:a17:902:780a:: with SMTP id p10mr14533662pll.54.1544490353848; Mon, 10 Dec 2018 17:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544490353; cv=none; d=google.com; s=arc-20160816; b=V8OHNPoJKndVT0sYHyRktvt5hRPD016UZ7dtDv32fBNKry1/8Oybi7t+tsPn32JRRU 6Kwr4HR/CCRMexgSyIOvdfSmwqCmqMaDx57zY6b5iK79p0kcZhuZxY3N/ZXvaZYRm0DK ebQ3P6CERbkIHP0lqhrQ01ekNnHFicKKym0eFRbaWITvXaiIeiQeuOWLSi50foMc1k2t VFXfPPVzNx493vqlmKr63C/IDYFIISs6FJfUafWQCHggO+v8UomOvlQEtiivB4TXF8Vl xIERAzSDAmo9sxEgrc+H2T3QN0UTA/4e1CcuiH1NCkG7sgJMN2vxNxsvJNUeAfgAbLcK KGLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=DvFPo1Kb4slIvROJNbtenBM95EUGGgf3Huij5cWQ9jo=; b=xRJFomVnNodRBnCiy080JKfYqrH9Bb96ZOlDhU88WUy1zhOhByNlTDbUT1iyGnjOzk f7TlkJu8JijfqKN8y3hH1NU4r2qwjBiivYmTnx8AmiqyxUT9t3GlGQ+d6FtjQNhxIwZp y1XV5uUHflAzWSuJmGY22w5DSrli+IR3Hmvnz94aS3Spdvb//Z6fGVQ+F0wjSvMNpz7z nRMzolue48YeNI2Ia9wsAXPPTsfp1qprJzVZZxCRMF9DCeG8+Z1SQ7WMaKtelVi7chUG WmFKfJT/Jv9RpCDfXnhQw5XyeG9n30beXatpFNalkpP8omsvxy2Tyqe1IHnsozimC/IK b8lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of keith.busch@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=keith.busch@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga05.intel.com (mga05.intel.com. [192.55.52.43]) by mx.google.com with ESMTPS id i1si11402278pfj.276.2018.12.10.17.05.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 17:05:53 -0800 (PST) Received-SPF: pass (google.com: domain of keith.busch@intel.com designates 192.55.52.43 as permitted sender) client-ip=192.55.52.43; Authentication-Results: mx.google.com; spf=pass (google.com: domain of keith.busch@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=keith.busch@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2018 17:05:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,340,1539673200"; d="scan'208";a="117705213" Received: from unknown (HELO localhost.lm.intel.com) ([10.232.112.69]) by orsmga001.jf.intel.com with ESMTP; 10 Dec 2018 17:05:52 -0800 From: Keith Busch To: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org Cc: Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams , Keith Busch Subject: [PATCHv2 10/12] Documentation/ABI: Add node cache attributes Date: Mon, 10 Dec 2018 18:03:08 -0700 Message-Id: <20181211010310.8551-11-keith.busch@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20181211010310.8551-1-keith.busch@intel.com> References: <20181211010310.8551-1-keith.busch@intel.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Add the attributes for the system memory side caches. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation/ABI/stable/sysfs-devices-node index 6cdb0643f9fd..63a757b8a29e 100644 --- a/Documentation/ABI/stable/sysfs-devices-node +++ b/Documentation/ABI/stable/sysfs-devices-node @@ -151,3 +151,37 @@ Contact: Keith Busch Description: Write latency in nanosecondss available to memory initiators found in primary_cpu_nodemask. + +What: /sys/devices/system/node/nodeX/side_cache/indexY/associativity +Date: December 2018 +Contact: Keith Busch +Description: + The caches associativity: 0 for direct mapped, non-zero if + indexed. + +What: /sys/devices/system/node/nodeX/side_cache/indexY/level +Date: December 2018 +Contact: Keith Busch +Description: + This cache's level in the memory hierarchy. Matches 'Y' in the + directory name. + +What: /sys/devices/system/node/nodeX/side_cache/indexY/line_size +Date: December 2018 +Contact: Keith Busch +Description: + The number of bytes accessed from the next cache level on a + cache miss. + +What: /sys/devices/system/node/nodeX/side_cache/indexY/size +Date: December 2018 +Contact: Keith Busch +Description: + The size of this memory side cache in bytes. + +What: /sys/devices/system/node/nodeX/side_cache/indexY/write_policy +Date: December 2018 +Contact: Keith Busch +Description: + The cache write policy: 0 for write-back, 1 for write-through, + 2 for other or unknown.