From patchwork Wed Jan 16 17:58:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keith Busch X-Patchwork-Id: 10766613 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 334ED1390 for ; Wed, 16 Jan 2019 18:00:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 205C42F0EC for ; Wed, 16 Jan 2019 18:00:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10EA32F0F2; Wed, 16 Jan 2019 18:00:05 +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 A1D6B2F0EC for ; Wed, 16 Jan 2019 18:00:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 260938E000A; Wed, 16 Jan 2019 12:59:44 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1C72F8E000C; Wed, 16 Jan 2019 12:59:44 -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 F04C68E000A; Wed, 16 Jan 2019 12:59:43 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by kanga.kvack.org (Postfix) with ESMTP id 9B27B8E000C for ; Wed, 16 Jan 2019 12:59:43 -0500 (EST) Received: by mail-pg1-f199.google.com with SMTP id r13so4331123pgb.7 for ; Wed, 16 Jan 2019 09:59:43 -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=rEvbGuuvxl/pTVCry03oC5Sm6yLKUT+sf3b9tNseCB4=; b=N9OfcC60XPS2VSY3uButjv/f8cWCicMA3ymHdQBqTRLpDfgAs6GxtLsxj8jAKm15I1 S0soO+PE6EWXOTOxT7G7UMknH2vr+572WvW5G9U/0bUySzxlR5z5j37XaVqcdVJ53kcG PBqkoS1zrdrdsQCSxr9kFzLPSvHLkvKfkhMKdvKOfOYXBGiJ16M5TBuL17fl8YE+j+Sq siJ6ULbl2tImTg3vdy69x78NuvPqgGhAn071t1KCKuXix2P6tt4/bYFZktBpz5/oUzF+ tYd7xlrlunHx2m90/wW+duJNzwYTuopS2B2UskGTWDUo5UBSj2CpEQY+/8O9EcHh96gM g8kw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of keith.busch@intel.com designates 192.55.52.88 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: AJcUukfNEJo1HtcveCE/rob5cIJGcTkPnlIywi0XZcJWsZ6pOLXQM2bZ CL+6XkT3geCFz4KfcfZiw4MTZoAK/SBTJ5eky0odnAfmZrCsDyqXEHIk1zoWtGdSs52vDLXWl3Y g/bEgtuQouNgtCpMIaM41gBZnqm80BqP/C63ky5Oxko154KFw/FjTviBHMISZZagCaw== X-Received: by 2002:a17:902:e10a:: with SMTP id cc10mr11207628plb.165.1547661583302; Wed, 16 Jan 2019 09:59:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN6755AP5g0iyb1dHe21ZqvG96x5Qo9LPkppIAnS+UGvYFXm2Z0b6dpZwkMcFG59xsvnL3qt X-Received: by 2002:a17:902:e10a:: with SMTP id cc10mr11207574plb.165.1547661582477; Wed, 16 Jan 2019 09:59:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547661582; cv=none; d=google.com; s=arc-20160816; b=MZheoplEQyu/6UaA95AQyqXl6x6Mo22E9q5agpV1IZR7IjcUvDqZO1P78mD6Us04dt IlcaTINvPHm7KLlNXwD7eJOC9iopMhPBHKIUpobvvVle/COI10Glk9+hDXeZ2+0w9lMe mlkpCD1zOB3VXMi2mpxFYxi/XMIilmjBuUC7BJeEcY6594WHl8aL0Ks1Zbajvm7rvQJ9 qjfKbI+i0GUxqbxj60M1WOjoOfbW6qjV1yXGffDxicp4rYR9e85lL2wnkmTqGKVMZ/m5 xhARwrdjHW2h4Xv+W0QFKtY6A/MB//WP6EJNyoKZ52PbGY/I1h0yWcnmeanJuKgJaKVY VXSw== 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=rEvbGuuvxl/pTVCry03oC5Sm6yLKUT+sf3b9tNseCB4=; b=lS8I+U4xBoEwfgxmt25TRpqLNxz5K+2gMAhJEZCpZdvpJ1yoXn02d2x8JOZ1RWh/yv SUxQ88e3ZJKi3eJW3GAtU/9RoHyiD7/yx0drowYzv62QXxzDvZOdOLXbWn5w7y91uRtW lz8VX+VDubmzRA8PVS3f8LSv1qm0C/ZqRQ4ZM4dSZRooC5tZEbq6M1e/FSPelUzoKx3o +hwx1eIZ/vMJvfNK+xMsY87SxfjbX5Y33OrkS4d6dcUim/afwg86ryXAbHsb7v3mzQ1F tO93d1TUN9gdad3rIGzV3tDPyKgtbicj18buxH90DKLk1wOdXVY2dceDr6I717FG+xAh gbxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of keith.busch@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=keith.busch@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga01.intel.com (mga01.intel.com. [192.55.52.88]) by mx.google.com with ESMTPS id d18si6701527pgm.212.2019.01.16.09.59.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 09:59:42 -0800 (PST) Received-SPF: pass (google.com: domain of keith.busch@intel.com designates 192.55.52.88 as permitted sender) client-ip=192.55.52.88; Authentication-Results: mx.google.com; spf=pass (google.com: domain of keith.busch@intel.com designates 192.55.52.88 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 fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jan 2019 09:59:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,487,1539673200"; d="scan'208";a="117227804" Received: from unknown (HELO localhost.lm.intel.com) ([10.232.112.69]) by fmsmga008.fm.intel.com with ESMTP; 16 Jan 2019 09:59:41 -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: [PATCHv4 11/13] Documentation/ABI: Add node cache attributes Date: Wed, 16 Jan 2019 10:58:02 -0700 Message-Id: <20190116175804.30196-12-keith.busch@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20190116175804.30196-1-keith.busch@intel.com> References: <20190116175804.30196-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 2217557f29d3..613d51fb52a3 100644 --- a/Documentation/ABI/stable/sysfs-devices-node +++ b/Documentation/ABI/stable/sysfs-devices-node @@ -142,3 +142,37 @@ Contact: Keith Busch Description: This node's write latency in nanoseconds available to memory initiators in nodes found in this class's initiators_nodelist. + +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.