Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp269423iog; Wed, 15 Jun 2022 01:49:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tD/GgFf5caNyQcdxvmvCwzGMCJnNCyd7olfoqjKIwiFCh5PKwYeoknk4jDb36qVqCr7Pvw X-Received: by 2002:a17:906:7292:b0:712:3880:3e7b with SMTP id b18-20020a170906729200b0071238803e7bmr7719417ejl.118.1655282970763; Wed, 15 Jun 2022 01:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655282970; cv=none; d=google.com; s=arc-20160816; b=DSjRdXPkFlW3bCw63Z2yMGUnnU1sMgw34NyRKDYGGmX1rYwoMSLURQJXPevlKPuJy3 GLLejgm+iu5L0yH//LseOw1hrcJnZGiV8jaN1co0exQSX0zCF9Ulu0H4nmfTjKwJgZqx iXDOAeTFj8naXgeUnQxt3eI79CdLbktsJ/2FkhStqeYS/SYZZOfOIh0LG4h5Iny6kmZh jOaJlJDBk14/uu4hdE47hToAn7EzMmutZDylWPj+oZA1UqIRNj1XCmqF1oioeQy1YCZb PnG9viUcUvlOjsM0Q2IVCzAeR+Sg9SaPjUlKifsFqmUXmvvI7LTRBzh6A/0PnlveJ9vE t7tg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=uP8VfK8ayZdfm6C5JaNE77aPJOwarWhUACltfD6zoNQ=; b=rSV5pBfVpwpEyVzYKaGGC+GWLchzn+g8ANeG8vRqbCLOWFwn1cATHVgNqfrF0+Ebiw PF/ld9y8xxZG1YfqPgoILOVZZ6rEm79ZvUqK2HP9Ny/8koM6e1F/YBL2V764CyFrlcg2 OViAphFRdgqkg89OSWu06tRY+Fo3DuKdvNdHVfzy3K9VtscoZe+3mIFjKXWp6axECew2 DBx8vL8EBa8nrm7oS+KXjA4MuIG0FfqUuOT0foi+/aElKv9upirPeQzLmcnKqXKzbgAR JN9ueKs0edeIG7ObuLePYTtGZFbY9bBOJPCTjhormtAaHRA/mL7lu233+qjMADGNixgr Cd9g== 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 go40-20020a1709070da800b006ff19100b37si15927433ejc.616.2022.06.15.01.48.49; Wed, 15 Jun 2022 01:49:30 -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 S245243AbiFOIsY (ORCPT + 99 others); Wed, 15 Jun 2022 04:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345654AbiFOIsV (ORCPT ); Wed, 15 Jun 2022 04:48:21 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D6DB2FE53; Wed, 15 Jun 2022 01:48:19 -0700 (PDT) Received: from fraeml745-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LNJl52Hmbz6H71h; Wed, 15 Jun 2022 16:44:33 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml745-chm.china.huawei.com (10.206.15.226) 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 10:48:15 +0200 Received: from localhost (10.202.226.42) by lhreml710-chm.china.huawei.com (10.201.108.61) 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 09:48:14 +0100 Date: Wed, 15 Jun 2022 09:48:13 +0100 From: Jonathan Cameron To: Greg KH CC: Kai Ye , , , , , , , Subject: Re: [PATCH v2 2/3] Documentation: add a isolation strategy vfs node for uacce Message-ID: <20220615094813.000026a6@Huawei.com> In-Reply-To: References: <20220614122943.1406-1-yekai13@huawei.com> <20220614122943.1406-3-yekai13@huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.42] X-ClientProxiedBy: lhreml739-chm.china.huawei.com (10.201.108.189) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 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. > > > + > > +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