Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp506716rdh; Thu, 23 Nov 2023 09:44:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2MsHT/qB/AwS9FiESzj7hbliabYoUd7DKvxHk4GzaRn2JO+NNOIZApfYDcApdKzTTu/pY X-Received: by 2002:a17:90a:1944:b0:280:235:19d with SMTP id 4-20020a17090a194400b002800235019dmr182661pjh.36.1700761497472; Thu, 23 Nov 2023 09:44:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700761497; cv=none; d=google.com; s=arc-20160816; b=Av09mfUyXYHro8p9HruM2I8GE3S61Cpl17JcG35/h03zFcopa9OkwZTdXeM39ney1h 0uovQGKviW8MBn5Fv44ue5Ljvo+X+QQuwRO06wGOpwaV6lNtfaDms/0yCQX4YPjSuHhZ m/NthqGsC6LvD1YjqFH4pGzzf/YPXCQUDGugDAbyR3IoSghwTY4ucUKtnrLRKcMlhU00 Z3YLvh/fk0nYy+IvmYeTpO+05CUoj8ONQm2Ft0R0l7t+GQpNEg5KlJkNPvSfj7Efz9Vh 4Qs0t7pl6MizHYErTthhYdcf7g4RZ3SoLjCbMLabrXE7GG19B0azpB+rqV3Hv4OR2VJ0 JiQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JKUF9IcADAMJQiVs2ROSM7VATeZNKbIi5ZRlD7UBNYM=; fh=qThSIRufdAcTXHIWmo+/3LGhqx2rE7BOIGxpM+Tyyp8=; b=sEk4Och8U17d0BfvE9SkR62oRmGcrhkhy7ktNq6hFZpYrS/wF/1cLyQmsSPRNbNose T68UKrtpkVoIWNQ7a7SmEMssqDROqncZL+PMOwbvS9L62nk5VR6RGsbRtCru1jl28F5A FXS6/eki6Bd2gghjBPMZWrXK78ZAy/cy4vS9Y2QvDj7eN3jX6vq9/rdAEVIfibZvUzPv lAsg5j2GpIHa181rwtfPIc/EaK4DSPA1yaSa2+bTYAnpbYS8gzLlFDucqj4L4M41lWwb 43JqSSLPIs+RVwq7YTAQDnQjPddx1JclmVEUq1WRokkD425FfIdTY6sd5lRmTFB0iOai j4qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ay11-20020a1709028b8b00b001cf8df48094si1362244plb.629.2023.11.23.09.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:44:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0DFCF82D1870; Thu, 23 Nov 2023 09:44:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345835AbjKWRok (ORCPT + 99 others); Thu, 23 Nov 2023 12:44:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345751AbjKWRoJ (ORCPT ); Thu, 23 Nov 2023 12:44:09 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3110F10CE; Thu, 23 Nov 2023 09:44:15 -0800 (PST) Received: from lhrpeml500006.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Sblk363Ddz6K5qw; Fri, 24 Nov 2023 01:39:55 +0800 (CST) Received: from SecurePC30232.china.huawei.com (10.122.247.234) by lhrpeml500006.china.huawei.com (7.191.161.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 23 Nov 2023 17:44:12 +0000 From: To: , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v3 10/11] memory: scrub: sysfs: Add Documentation for set of common scrub attributes Date: Fri, 24 Nov 2023 01:43:53 +0800 Message-ID: <20231123174355.1176-11-shiju.jose@huawei.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20231123174355.1176-1-shiju.jose@huawei.com> References: <20231123174355.1176-1-shiju.jose@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.122.247.234] X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500006.china.huawei.com (7.191.161.198) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 09:44:56 -0800 (PST) From: Shiju Jose Add sysfs documentation for the set of common scrub attributes those are exposed in /sys/class/scrub/ by the scrub configure driver and support user to configuring attributes of a scrub device. Signed-off-by: Shiju Jose --- .../ABI/testing/sysfs-class-scrub-configure | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-scrub-configure diff --git a/Documentation/ABI/testing/sysfs-class-scrub-configure b/Documentation/ABI/testing/sysfs-class-scrub-configure new file mode 100644 index 000000000000..5e965b3ad088 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-scrub-configure @@ -0,0 +1,82 @@ +What: /sys/class/scrub/ +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + The scrub/ class subdirectory belongs to the + scrubber subsystem. + +What: /sys/class/scrub/scrubX/ +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + The /sys/class/scrub/scrub{0,1,2,3,...} directories + correspond to each scrub device. + +What: /sys/class/scrub/scrubX/name +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + (RO) name of the memory scrub device + +What: /sys/class/scrub/scrubX/regionY/ +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + The /sys/class/scrub/scrubX/region{0,1,2,3,...} + directories correspond to each scrub region under a scrub device. + Scrub region is a physical address range for which scrub may be + separately controlled. Regions may overlap in which case the + scrubbing rate of the overlapped memory will be at least that + expected due to each overlapping region. + +What: /sys/class/scrub/scrubX/regionY/addr_base +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + (RW) The base of the address range of the memory region + to be scrubbed. + On reading, returns the base of the memory region for + the actual address range(The platform calculates + the nearest patrol scrub boundary address from where + it can start scrub). + +What: /sys/class/scrub/scrubX/regionY/addr_size +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + (RW) The size of the address range to be scrubbed. + On reading, returns the size of the memory region for + the actual address range. + +What: /sys/class/scrub/scrubX/regionY/enable +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + (WO) Start/Stop scrub the memory region. + 1 - enable the memory scrub. + 0 - disable the memory scrub.. + +What: /sys/class/scrub/scrubX/regionY/speed_available +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + (RO) Supported range for the scrub speed(scrub rate) + by the scrubber for a memory region. + The unit of the scrub rate vary depends on the scrub. + +What: /sys/class/scrub/scrubX/regionY/speed +Date: November 2023 +KernelVersion: 6.8 +Contact: linux-kernel@vger.kernel.org +Description: + (RW) The scrub speed(scrub rate) on the memory region specified + and it must be with in the supported range by the scrub. + The unit of the scrub rate vary depends on the scrub. -- 2.34.1