Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1788233imn; Sun, 31 Jul 2022 23:16:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR4eloEH/KCYBtSFMjcYaybM4XyvbzFF+I9dWDUQCN1VkWLYmAT2WqSusPCP5Co0lbupl4Ro X-Received: by 2002:a05:6402:3583:b0:43d:6943:44a with SMTP id y3-20020a056402358300b0043d6943044amr7183934edc.409.1659334577407; Sun, 31 Jul 2022 23:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659334577; cv=none; d=google.com; s=arc-20160816; b=M80zE2T7jz71eVmRsdQaQ2cGBiocohmj05PayyTBB3YYip/d/UqDEcBLHEHCAqCoFE UxoWxDP/6H92c/JpW7HTTKFaynIlYb2XB7brVMMsQTYd9Bdo2CtjdHTVlAaLNSxLM+Oi TSsF4mn3zEEXUUqOQJeipf5tAnIHcEHOMt6hhI8EHDLKMY1gH+JL86jALq8tjg7F9Kfd fwml3cbauMA8xYJSoWZNf2ILbmcRPaEXU2ThTUc9tmWJWJWVOZEKUG+Qgv2IEu6EZ6Nr axVnY7xa1Min+SKW6vrTJP8rKX/WrsbEd343MT5RGhMBjOeIFFuKhxg3KHRxVvpGsl06 SC3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=COupwoXm8aI3uLBFerK0cQZFrn1E9JG18+XFcBjSwRw=; b=ALKG0Djt8ZT2dn2kcHJNJhBx7MoFWEKH/kky5JaiRGYvETb29zG8U1zJvi8T7A0hzN Scj7x2S3eWeHNuyPaPrITraIKf3jtBSMux9MpVbdRfQq4RhMVOlOyq+TqzGzlB6O9Z77 bBPpjyXUvnZpmDQzTFoXrhPPX69+ev3OPP4sLf3wi71P7yqUb5sA17dclXbAp/7wz+9G pADCO37+FkUEibyajLNYqdusOLAwgyonV6NRxVxu+IKEw7Pev0r54yF9/mfN3dBX5cau ONPzM40f95l3HnYfLTiFf1DxT44BsbQ/+JaLbo5ZC8fH+e/yQbidOUg1o//CK25uN23i mSxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oZyyNIyq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo7-20020a170906d04700b0072abb95e8e4si8554413ejb.598.2022.07.31.23.15.42; Sun, 31 Jul 2022 23:16:17 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oZyyNIyq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbiHAGN7 (ORCPT + 99 others); Mon, 1 Aug 2022 02:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239506AbiHAGNx (ORCPT ); Mon, 1 Aug 2022 02:13:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FB0913F84; Sun, 31 Jul 2022 23:13:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 783FFB80E93; Mon, 1 Aug 2022 06:13:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8ACECC433C1; Mon, 1 Aug 2022 06:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659334429; bh=ufvReJmyzn8HuZ2QSi6foXERUMWcAAloMDHnl/jBc58=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oZyyNIyqB7zzReEOOi0QGLgXcGLeaw3DGT7XpxPFR6xPdyDl1OYTRJEhjqQtt3drS /OpJ3v5kpWFqDmLnU18F8cW2l6D+fzzrBpOZBZr6UU+OoogdC7LDA6/29XjQB3u895 E1AOzh0/mkdtJXZMWKRHsWDtN3zOthYMtQe51lGo= Date: Mon, 1 Aug 2022 08:13:44 +0200 From: Greg KH To: "yekai (A)" Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, wangzhou1@hisilicon.com, liulongfang@huawei.com Subject: Re: [PATCH v6 2/3] Documentation: add a isolation strategy sysfs node for uacce Message-ID: References: <20220730083246.55646-1-yekai13@huawei.com> <20220730083246.55646-3-yekai13@huawei.com> <901896fa-2acc-127c-a8ea-8143cda47b1b@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <901896fa-2acc-127c-a8ea-8143cda47b1b@huawei.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-crypto@vger.kernel.org On Mon, Aug 01, 2022 at 10:20:27AM +0800, yekai (A) wrote: > > > On 2022/7/30 19:06, Greg KH wrote: > > On Sat, Jul 30, 2022 at 04:32:45PM +0800, Kai Ye wrote: > >> Update documentation describing sysfs node that could help to > >> configure isolation strategy 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 | 17 +++++++++++++++++ > >> 1 file changed, 17 insertions(+) > >> > >> diff --git a/Documentation/ABI/testing/sysfs-driver-uacce b/Documentation/ABI/testing/sysfs-driver-uacce > >> index 08f2591138af..1601f9dac29c 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: Jul 2022 > >> +KernelVersion: 5.20 > >> +Contact: linux-accelerators@lists.ozlabs.org > >> +Description: (RW) Configure the frequency size for the hardware error > >> + isolation strategy. This size is a configured integer value. > >> + The default is 0. The maximum value is 65535. This value is a > >> + threshold based on your driver handling strategy. > > what is a "driver handling strategy"? What exactly is this units in? > > Any documentation for how to use this? > > > > thanks, > > > > greg k-h > > . > The unit is the number of times, also means frequency size. > e.g. > In the hisilicon acc engine, First we will time-stamp every slot AER error. Then check the AER error log when the device > AER error occurred. if the device slot AER error count exceeds the preset the number of times in one hour, the isolated state > will be set to true. So the device will be isolated. And the AER error log that exceed one hour will be cleared. Of course, > different strategy can be defined in different drivers. Ok, can you please explain this better here when you redo the patch series? thanks, greg k-h