From patchwork Sat Nov 19 07:48:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "yekai (A)" X-Patchwork-Id: 23228 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp603374wrr; Fri, 18 Nov 2022 23:59:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7J52VstLD9CVNC1ksCLSRxsmhP3Vdqu7+zezRb7WfbldkNpXNgC8HfKzb15exqENa6DIS1 X-Received: by 2002:aa7:d844:0:b0:458:fa8f:f82c with SMTP id f4-20020aa7d844000000b00458fa8ff82cmr8861735eds.246.1668844779164; Fri, 18 Nov 2022 23:59:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668844779; cv=none; d=google.com; s=arc-20160816; b=JP3pzPDy0FUDZmwIG6Zzh1BiVl2v4VZxcmTYk4vQ9cIqCh3Pqlb6t7Pd7c5NJ29fWy XZspTWeQWw+r74SnppUKRnz8BsQQ2h2QOWdZmtHjgSF96Ca9flt7hFdduFot8yT8pD59 7CYC6lBpsA5toAcbPRUFii1F4ReOwivuCUkiCDxnvWS9RnyaF6/fv2TWut2pngle6CvW A2klRlYevWDHl+lmKJN682dBZ8SXnlwHUFvl8NM31tvsiY2lTJg+yiMLQnTebqagR0Zp c8nuwaJ20Y7zvmb31O2y8+fZSGaq0HA2VbaThSfV+Z9e66fDTT9ovPIVaUc02as5tHSZ TGew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=cr7+9w02ScSfmJA969h+bv1U/N88PXAivymK9Hx0ppg=; b=Sf6LDemSruYVEai26GqjcJF1fh6GdF2fNrfvTJxYwWIDtg92S8PDg56pN+C5kavM4h llb5wTond6hhtzhQr4FnpRRaZObh8tk+dyzm0h13kfy6DpuSryAzxvPksHjHNPTyM8/7 uHXLxXrNmIPBZ7Bw4qt9V6urEtjXG9LM2UzrwZK/UzvnYYud5LlFUyT7jonH3RixwxIv O8g9rOYlG/vahz07AODdlTuUB8PC5I8YO+65mHuSDt0flix5HF3h3EV/zMlxoFFbrCkN Op6Npn9Q5XMs1zjr3iztcM8UR0Nz7lXMAMjfathWTJ9FQIkpnq+Xo6Oa+l3zcLOKQNsn duYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a170906148c00b00791a3dd01b6si4254319ejc.864.2022.11.18.23.59.15; Fri, 18 Nov 2022 23:59:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233366AbiKSHyg (ORCPT + 99 others); Sat, 19 Nov 2022 02:54:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiKSHyb (ORCPT ); Sat, 19 Nov 2022 02:54:31 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D309C248DF; Fri, 18 Nov 2022 23:54:29 -0800 (PST) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4NDmBL5jvtz15Mcm; Sat, 19 Nov 2022 15:54:02 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 19 Nov 2022 15:54:28 +0800 Received: from huawei.com (10.67.165.24) by dggpeml100012.china.huawei.com (7.185.36.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 19 Nov 2022 15:54:27 +0800 From: Kai Ye To: , CC: , , , , Subject: [PATCH v10 2/3] Documentation: add the device isolation feature sysfs nodes for uacce Date: Sat, 19 Nov 2022 07:48:16 +0000 Message-ID: <20221119074817.12063-3-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221119074817.12063-1-yekai13@huawei.com> References: <20221119074817.12063-1-yekai13@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml100012.china.huawei.com (7.185.36.121) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749910583169321232?= X-GMAIL-MSGID: =?utf-8?q?1749910583169321232?= Update documentation describing sysfs node that could help to configure hardware error threshold for users in the user space. And describing sysfs node that could read the device isolated state. Signed-off-by: Kai Ye --- Documentation/ABI/testing/sysfs-driver-uacce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-driver-uacce b/Documentation/ABI/testing/sysfs-driver-uacce index 08f2591138af..d3f0b8f3c589 100644 --- a/Documentation/ABI/testing/sysfs-driver-uacce +++ b/Documentation/ABI/testing/sysfs-driver-uacce @@ -19,6 +19,24 @@ Contact: linux-accelerators@lists.ozlabs.org Description: Available instances left of the device Return -ENODEV if uacce_ops get_available_instances is not provided +What: /sys/class/uacce//isolate_strategy +Date: Nov 2022 +KernelVersion: 6.1 +Contact: linux-accelerators@lists.ozlabs.org +Description: (RW) A sysfs node that configure the error threshold for the hardware + isolation strategy. This size is a configured integer value, which is the + number of threshold for hardware errors occurred in one hour. The default is 0. + 0 means never isolate the device. The maximum value is 65535. You can write + a number of threshold based on your hardware. + +What: /sys/class/uacce//isolate +Date: Nov 2022 +KernelVersion: 6.1 +Contact: linux-accelerators@lists.ozlabs.org +Description: (R) A sysfs node that read the device isolated state. The value 1 + means the device is unavailable. The 0 means the device is + available. + What: /sys/class/uacce//algorithms Date: Feb 2020 KernelVersion: 5.7