Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp547349rdb; Thu, 30 Nov 2023 11:24:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIhlFnNdAkXSFMOGfGJ3UEyLvMXOh05hKig4+mg3LRdzNDhQkD0hjW0eHaEG6IjEu6EfZg X-Received: by 2002:a05:6a00:e17:b0:6cb:8beb:15dc with SMTP id bq23-20020a056a000e1700b006cb8beb15dcmr21932571pfb.30.1701372287094; Thu, 30 Nov 2023 11:24:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701372287; cv=none; d=google.com; s=arc-20160816; b=S74mpXipNfqYxmzZ3zLjj0IyyI8Uwn7T4KnJvXiSR9psgpRWzxpWnzdpskxopFzeAW PQY7cNBbPu5pbynGmRIUx2ujKht39FA5JYuwfCOvxcJIoLY4UIOtVTI5aP2yqGSZojzf YCuc/6WNULUepolVxZwl5HrcZi3QnDZ/OwZjM8IDhiindEtN3/9BHuX6N7z2yInIJ2aH XeoTx+TXNrm6wfCw4lWCRBOlpvBwMJk0S5SqQnZuWbdAWmx4P1QGRi2C5yP19v3vf3rQ j6lx7Byzl3x9eMTUAsylTe1jPfiMtEt/Yh0hTPuio6iKz/b6hbhkOhgGP4+o+XToZoT0 VXFw== 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=FpiDt6Jw9VgY0wJpk860WulffcZDtKeAtUzeBcAq/X844OEK6cCPBRMdaMb/PSQ1dl Pam0RXzfe1uMamvYNVbJqkQin0gA2E2WnM/mZ8O3BqU/3jS3Eu5Y2Af5MiiyU/+x3bEp 6qjPg7fCUK1x2I8WZSCeSi4ugsN9qdBgmyBwT+uJzAn10EcxLSIu6SohYrJN2HGolJls FqX58+IHBdXfGjAsswepfRsf49AuCopGFUMSGb9IAkqn0gkmW0eYwVf+pbhKacHVWSLS lLKtwbuw4jrxj2IS5d7FX6pkEPIBLKazZ6r3/oUD9uyTbI5Jljs3RFBposo3dj9pp23u 2i/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id ei45-20020a056a0080ed00b006cda3296fd1si1684054pfb.374.2023.11.30.11.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:24:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id A2C9B82DB45D; Thu, 30 Nov 2023 11:24:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376466AbjK3TXw (ORCPT + 99 others); Thu, 30 Nov 2023 14:23:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376414AbjK3TXb (ORCPT ); Thu, 30 Nov 2023 14:23:31 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7166310FF; Thu, 30 Nov 2023 11:23:37 -0800 (PST) Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Sh5b43lgRz67lQZ; Fri, 1 Dec 2023 03:18:56 +0800 (CST) Received: from lhrpeml500006.china.huawei.com (unknown [7.191.161.198]) by mail.maildlp.com (Postfix) with ESMTPS id A29DB1402CD; Fri, 1 Dec 2023 03:23:35 +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, 30 Nov 2023 19:23:34 +0000 From: To: , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v4 10/11] memory: scrub: sysfs: Add Documentation for set of common scrub attributes Date: Fri, 1 Dec 2023 03:23:12 +0800 Message-ID: <20231130192314.1220-11-shiju.jose@huawei.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20231130192314.1220-1-shiju.jose@huawei.com> References: <20231130192314.1220-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: lhrpeml500004.china.huawei.com (7.191.163.9) To lhrpeml500006.china.huawei.com (7.191.161.198) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 11:24:38 -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