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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A94D2C433F5 for ; Thu, 4 Nov 2021 05:24:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 78F796112E for ; Thu, 4 Nov 2021 05:24:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 78F796112E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=fujitsu.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0pQ3cIpqJV2eS+0aJYPTCRJGcqBlhsbkUwACa+UoifI=; b=bGcheALiHOwmrC cNUuc4GVP1p+e430RU72YjfpGCn34Fh6iIZ1Wkzw2eKXzxhqh1y/HlQeRGXdPqGw8JQ8rQ78p4VpB fv7qm2Mw2ZPT+sthb6J4S6ajM8jJsOywmFIi6ow3mMFGCpiZLARaYd1wgjOblLSb1UpSv9a2JtTWK WNCm0bZndfcF30jJ1sdk+5FDNOddWJz/+KZ3Ie66tY7QhjXutACdYkczgZ2JZ7QkPo1sNCoDVU9e3 sEM9LMZMFOjLy4PYKLzalr92emPeT/VMVd/N3tQX5i2ITsUOIbW8Db8TUGLKhH9sOUlyleoBmpojn 1Hz4RNTARQllI4IBFCAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miVDa-007uTJ-6X; Thu, 04 Nov 2021 05:23:18 +0000 Received: from esa10.hc1455-7.c3s2.iphmx.com ([139.138.36.225]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miVCh-007uEl-Bs for linux-arm-kernel@lists.infradead.org; Thu, 04 Nov 2021 05:22:25 +0000 IronPort-SDR: ld0ov+oWW6qurSxNiifOBRR5WMMKSmdA+arM+bO4Asr2jWW3UU8HzKtVC9CUYa3bzjQgEJe7gN 7LVm582XMoYHQ6itYOVvkKEJ8FHpUXaHhwxYqr7CBj1PEvuxTV7XW0tVKLI7CQDWSNuxfTdjA6 zJyu4pw3LqIMSQPzcbxs+ok8xQNrIdT3kRdIxC89R+1VFrTPJaP4NgTaf/wyq6Aodx0fo3vWpC DQmXHWZqMlhcrDgrVIjVawSchQ+tFOqh47HiHRqKG2mtmW1KYuNFSCTqMXFeY7TcoZfX62IEb5 7EugtSfc2VweWOAPnjpUGLxF X-IronPort-AV: E=McAfee;i="6200,9189,10157"; a="39169072" X-IronPort-AV: E=Sophos;i="5.87,207,1631545200"; d="scan'208";a="39169072" Received: from unknown (HELO yto-r4.gw.nic.fujitsu.com) ([218.44.52.220]) by esa10.hc1455-7.c3s2.iphmx.com with ESMTP; 04 Nov 2021 14:22:18 +0900 Received: from yto-m1.gw.nic.fujitsu.com (yto-nat-yto-m1.gw.nic.fujitsu.com [192.168.83.64]) by yto-r4.gw.nic.fujitsu.com (Postfix) with ESMTP id 6152BE0404 for ; Thu, 4 Nov 2021 14:22:18 +0900 (JST) Received: from yto-om3.fujitsu.com (yto-om3.o.css.fujitsu.com [10.128.89.164]) by yto-m1.gw.nic.fujitsu.com (Postfix) with ESMTP id 86E34C9CE0 for ; Thu, 4 Nov 2021 14:22:17 +0900 (JST) Received: from localhost.localdomain (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by yto-om3.fujitsu.com (Postfix) with ESMTP id 4E1B0400C07D4; Thu, 4 Nov 2021 14:22:17 +0900 (JST) From: Kohei Tarumizu To: catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: tarumizu.kohei@fujitsu.com Subject: [RFC PATCH v2 5/5] docs: ABI: Add sysfs documentation interface of hardware prefetch driver Date: Thu, 4 Nov 2021 14:21:22 +0900 Message-Id: <20211104052122.553868-6-tarumizu.kohei@fujitsu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211104052122.553868-1-tarumizu.kohei@fujitsu.com> References: <20211104052122.553868-1-tarumizu.kohei@fujitsu.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211103_222223_749088_B4B29DD4 X-CRM114-Status: GOOD ( 14.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This descrives the sysfs interface implemented on the hardware prefetch driver. Signed-off-by: Kohei Tarumizu --- .../ABI/testing/sysfs-devices-system-cpu | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu index b46ef1476..caeefd320 100644 --- a/Documentation/ABI/testing/sysfs-devices-system-cpu +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu @@ -666,3 +666,61 @@ Description: Preferred MTE tag checking mode ================ ============================================== See also: Documentation/arm64/memory-tagging-extension.rst + +What: /sys/devices/system/cpu/cpu*/hwpf/l*/enable + /sys/devices/system/cpu/cpu*/hwpf/l*/available_dist + /sys/devices/system/cpu/cpu*/hwpf/l*/dist + /sys/devices/system/cpu/cpu*/hwpf/l*/reliable +Date: October 2021 +Contact: Kohei Tarumizu + Linux kernel mailing list +Description: Parameters for the hardware prefetch driver + + This sysfs interface provides Hardware Prefetch (HWPF) tunable + attribute files by using implementation defined registers. + These attribute files are corresponding to the cache level of + the parent directory. + + enable: + Read/write interface to change hardware prefetch + enablement. + Read returns hardware prefetch enablement status: + 0: hardware prefetch is enabled + 1: hardware prefetch is disabled + + Write '0' to enable Hardware Prefetch. + Write '1' to disable Hardware Prefetch. + + available_dist: + Read only interface to get a list of values that can be + written to dist. + + dist: + Read/write interface to specify the hardware prefetch + distance. + Read return the current hardware prefetch distance value + in bytes or the string "auto". + + Write either a value in byte read from available_dist, + or the string "auto" to this attribuite. If you write + a value less than these, the value is rounded up. + + The value 0 and the string "auto" are the same and have + a special meaning. This means that instead of setting + dist to a user-specified value, it operates using + hardware-specific values. + + strong: + Read/write interface to change hardware prefetch + strongness. + Strong prefetch operation is surely executed, if there + is no corresponding data in cache. + Weak prefetch operation allows the hardware not to + execute operation depending on hardware state. + + Read returns hardware prefetch strongness status: + 0: hardware prefetch is generated strong + 1: hardware prefetch is generated weak + + Write '0' to hardware prefetch generate strong. + Write '1' to hardware prefetch generate weak. -- 2.27.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B713EC433FE for ; Thu, 4 Nov 2021 05:29:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8965F61244 for ; Thu, 4 Nov 2021 05:29:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230511AbhKDFcK (ORCPT ); Thu, 4 Nov 2021 01:32:10 -0400 Received: from esa11.hc1455-7.c3s2.iphmx.com ([207.54.90.137]:57703 "EHLO esa11.hc1455-7.c3s2.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230467AbhKDFcG (ORCPT ); Thu, 4 Nov 2021 01:32:06 -0400 IronPort-SDR: N1+vjAna10DS4k3CJp5K7aBypkEqLgk8AkCie25y6MB/acWTUKX5L0p8sMNCsY68f0aFKuV7A0 zfgf5WYNbJ4s/ihhNOXjaCNlGPHK4iNKsXz/sZBadBZZ5GgV7ltXG6pSakmEf6bhkwKI8qZbdY 229gjcOrqfLs7jW1gFyMgutrjVVsZ0WrgqY7u5A9sQngjHRLZ4njw3Q9hpCZa8+Q9nNahLOldK IKxxa96mjc++zSttqS/Db31SJFR1sgRWCHpTPsgeX0jbEirYEHagUSEf9IAAVup8TDdCvDyWzi u2RN5s3FLhoCIwNdgovSChVt X-IronPort-AV: E=McAfee;i="6200,9189,10157"; a="30959910" X-IronPort-AV: E=Sophos;i="5.87,207,1631545200"; d="scan'208";a="30959910" Received: from unknown (HELO yto-r1.gw.nic.fujitsu.com) ([218.44.52.217]) by esa11.hc1455-7.c3s2.iphmx.com with ESMTP; 04 Nov 2021 14:22:19 +0900 Received: from yto-m2.gw.nic.fujitsu.com (yto-nat-yto-m2.gw.nic.fujitsu.com [192.168.83.65]) by yto-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id A3C3E13E0B7 for ; Thu, 4 Nov 2021 14:22:18 +0900 (JST) Received: from yto-om3.fujitsu.com (yto-om3.o.css.fujitsu.com [10.128.89.164]) by yto-m2.gw.nic.fujitsu.com (Postfix) with ESMTP id 8723343E0D6 for ; Thu, 4 Nov 2021 14:22:17 +0900 (JST) Received: from localhost.localdomain (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by yto-om3.fujitsu.com (Postfix) with ESMTP id 4E1B0400C07D4; Thu, 4 Nov 2021 14:22:17 +0900 (JST) From: Kohei Tarumizu To: catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: tarumizu.kohei@fujitsu.com Subject: [RFC PATCH v2 5/5] docs: ABI: Add sysfs documentation interface of hardware prefetch driver Date: Thu, 4 Nov 2021 14:21:22 +0900 Message-Id: <20211104052122.553868-6-tarumizu.kohei@fujitsu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211104052122.553868-1-tarumizu.kohei@fujitsu.com> References: <20211104052122.553868-1-tarumizu.kohei@fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This descrives the sysfs interface implemented on the hardware prefetch driver. Signed-off-by: Kohei Tarumizu --- .../ABI/testing/sysfs-devices-system-cpu | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu index b46ef1476..caeefd320 100644 --- a/Documentation/ABI/testing/sysfs-devices-system-cpu +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu @@ -666,3 +666,61 @@ Description: Preferred MTE tag checking mode ================ ============================================== See also: Documentation/arm64/memory-tagging-extension.rst + +What: /sys/devices/system/cpu/cpu*/hwpf/l*/enable + /sys/devices/system/cpu/cpu*/hwpf/l*/available_dist + /sys/devices/system/cpu/cpu*/hwpf/l*/dist + /sys/devices/system/cpu/cpu*/hwpf/l*/reliable +Date: October 2021 +Contact: Kohei Tarumizu + Linux kernel mailing list +Description: Parameters for the hardware prefetch driver + + This sysfs interface provides Hardware Prefetch (HWPF) tunable + attribute files by using implementation defined registers. + These attribute files are corresponding to the cache level of + the parent directory. + + enable: + Read/write interface to change hardware prefetch + enablement. + Read returns hardware prefetch enablement status: + 0: hardware prefetch is enabled + 1: hardware prefetch is disabled + + Write '0' to enable Hardware Prefetch. + Write '1' to disable Hardware Prefetch. + + available_dist: + Read only interface to get a list of values that can be + written to dist. + + dist: + Read/write interface to specify the hardware prefetch + distance. + Read return the current hardware prefetch distance value + in bytes or the string "auto". + + Write either a value in byte read from available_dist, + or the string "auto" to this attribuite. If you write + a value less than these, the value is rounded up. + + The value 0 and the string "auto" are the same and have + a special meaning. This means that instead of setting + dist to a user-specified value, it operates using + hardware-specific values. + + strong: + Read/write interface to change hardware prefetch + strongness. + Strong prefetch operation is surely executed, if there + is no corresponding data in cache. + Weak prefetch operation allows the hardware not to + execute operation depending on hardware state. + + Read returns hardware prefetch strongness status: + 0: hardware prefetch is generated strong + 1: hardware prefetch is generated weak + + Write '0' to hardware prefetch generate strong. + Write '1' to hardware prefetch generate weak. -- 2.27.0