Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp298288iog; Wed, 15 Jun 2022 02:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp3X4cWYCOSPfe7Vb8jx4tuoQuEqpaUzbwEyLI70hPqsKQoP8YK9IrbZjefelzJ8dJ8L4c X-Received: by 2002:a17:906:acb:b0:709:d274:611b with SMTP id z11-20020a1709060acb00b00709d274611bmr8067687ejf.147.1655285320079; Wed, 15 Jun 2022 02:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655285320; cv=none; d=google.com; s=arc-20160816; b=zjpFNRUv3+QIfBQUZTPF0VHSCVCt88NRlyDP51SePi788R6wmfU/NOcTGhwC/9ixot UD+nJvK7UNd0S47xdVyIDFiR1f1a68JwGdj7ycP0nmNPeKze0Q7rlbywkvW9OueF8kBz XKnJxpXIsdXHeuYpcssSPUB7PDnHKV9VbwuWZ0wtKlxzNwaaxm5ogJQTIrdIn5y2gYSu Op5YuK5lGR0DKpcBSpjkeYmUpQy0G5l6HdO3IqhAmxr/VwW3TTRe96FopTvPjCaMbSgJ Vnnse/GDxlyHSFIFIyBrOOI9fsN+OBFo5wfzON2kynugSDzTE/y7IPu5qq5BJfb3Wxxz mCDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=JP97LTXS4RTQ1EgV7900737y2EFqnhwrpA3Xt1B96GI=; b=N7BMfa8UZsQAf8JgcQVhv4pNvEnnRZ0iNRP8z4lwXSpyHOlZRYzIKubNNdkJ9k0OSQ lc03vM2WrhSxar7vzmCybfDK/7+lqS6qjReTygkdSvCqzcXJ7LhmejIZ0v44uEtjI5ak nulhQwxwdDEE8tWFgpin0E7snXXbpq6QmSlxTRgAmoG6UoQSlftnlWpM/nRd7rtlM0CH 2L/QF3xv2FcygZ8ucNKnF7zIcp0qbMtHQuxjK4bwauVLI/kiAyubv6cXAk/C8iDse3E7 xuNHiskVSYdCD2qatSNfS0ISOT2lBA/+HFrHj9ZisZUKbkDe+umu7cZQRv+31Kc/6fWS AKqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho38-20020a1709070ea600b0070795e99fe3si15751510ejc.984.2022.06.15.02.28.15; Wed, 15 Jun 2022 02:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S245207AbiFOJTC (ORCPT + 99 others); Wed, 15 Jun 2022 05:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241370AbiFOJTC (ORCPT ); Wed, 15 Jun 2022 05:19:02 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C3D91A83E; Wed, 15 Jun 2022 02:19:01 -0700 (PDT) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LNKR06hyHzSgvS; Wed, 15 Jun 2022 17:15:40 +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.24; Wed, 15 Jun 2022 17:18:58 +0800 Received: from [10.67.103.212] (10.67.103.212) 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.24; Wed, 15 Jun 2022 17:18:58 +0800 Subject: Re: [PATCH v2 2/3] Documentation: add a isolation strategy vfs node for uacce To: Jonathan Cameron , Greg KH References: <20220614122943.1406-1-yekai13@huawei.com> <20220614122943.1406-3-yekai13@huawei.com> <20220615094813.000026a6@Huawei.com> CC: , , , , , , From: "yekai(A)" Message-ID: Date: Wed, 15 Jun 2022 17:18:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20220615094813.000026a6@Huawei.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.212] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml100012.china.huawei.com (7.185.36.121) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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-crypto@vger.kernel.org On 2022/6/15 16:48, Jonathan Cameron wrote: > On Tue, 14 Jun 2022 14:41:52 +0200 > Greg KH wrote: > >> On Tue, Jun 14, 2022 at 08:29:39PM +0800, Kai Ye wrote: >>> Update documentation describing DebugFS that could help to >>> configure hard error frequency for users in th user space. >>> >>> Signed-off-by: Kai Ye >>> --- >>> Documentation/ABI/testing/sysfs-driver-uacce | 17 +++++++++++++++++ >>> 1 file changed, 17 insertions(+) >>> >>> diff --git a/Documentation/ABI/testing/sysfs-driver-uacce b/Documentation/ABI/testing/sysfs-driver-uacce >>> index 08f2591138af..0c4226364182 100644 >>> --- a/Documentation/ABI/testing/sysfs-driver-uacce >>> +++ b/Documentation/ABI/testing/sysfs-driver-uacce >>> @@ -19,6 +19,23 @@ 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: Jun 2022 >>> +KernelVersion: 5.19 >>> +Contact: linux-accelerators@lists.ozlabs.org >>> +Description: A vfs node that used to configures the hardware >> >> What is a "vfs node"? >> >>> + error frequency. This frequency is abstract. Like once an hour >>> + or once a day. The specific isolation strategy can be defined in >>> + each driver module. >> >> No, you need to be specific here and describe the units and the format. >> Otherwise it is no description at all :( > > Also, rename it. A frequency isn't a strategy. Strategy would be something > like: > > * First fault > * Faults in moving time window. > * Faults in fixed time window. > > some of which would then need separate controls for the threshold and the > time window - those should be in separate sysfs attributes. > I will describe the units and the format in here. Thanks Kai >> >>> + >>> +What: /sys/class/uacce//isolate >>> +Date: Jun 2022 >>> +KernelVersion: 5.19 >> >> 5.19 will not have this change. >> >>> +Contact: linux-accelerators@lists.ozlabs.org >>> +Description: A vfs node that show the device isolated state. The value 0 >>> + means that the device is working. The value 1 means that the >>> + device has been isolated. >> >> What does "working" or "isolated" mean? >> >> thanks, >> >> greg k-h > > . >