Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8501358rwi; Tue, 25 Oct 2022 07:26:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5dswA1vLp6AcfG/ByBDQaIUr1QFr3oVRjL9osye5CirT360wtri3GyMJpm6e9SNHwJG43i X-Received: by 2002:a05:6402:35c9:b0:45c:de2e:ae1c with SMTP id z9-20020a05640235c900b0045cde2eae1cmr36013090edc.393.1666708014139; Tue, 25 Oct 2022 07:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666708014; cv=none; d=google.com; s=arc-20160816; b=cH3Nps5RCZUsH2yI3ZR5cYGNsmM8UIj0JdWNRXxPq7OGEtOvuPivEfZ8ccRMLsG6R6 ZNa03NkimvAHtJK5vSH+HhVN3ECpzBzQLfLR68ee/WwQ7y+q+kSbBqaUQt/gNNw2JFiq C9ttNnJz3FCHwOyct9pU+mIzUrNuDJlXeKBXT6KQibhZvyv9cn7+5l0a08M6YNEdXyfM s6eGKiu9JFdF2OiCL0PLcB12Awuaa9WEwjuP26/NcrwmWYhnMiqJaVmAIwbQC6u6jF3d kcrWfCifgYVy8ZqLAhEU2d+Av7PR6ye8q/fmHzd6FM1QfzaVYevvvcpdRNu0tQMRaVBi QdcQ== 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=qT0vAVv6cyUhN/gNOesvZgZpsF4SUw4Kgj2Mkvq67c8=; b=ImacXReEeFBE7NXKD18u1LyarYwyJ7NUYR4FeUzLDUUqbQ7AmBLnkPLVcJ/haz0O7m hVfMUyb0OarLCtqvnv+RP20kU+6q2KdUlDXqiTfZRNHNFRFbi/FeYUZdp/DCrJeac9wK 6chagRKQOyQAE+b3ajZYHEsUGj/otbBoPSK/hpsAFHSNH/lty7T3fagUJ/ax1cGtHPFK 4eqOVoLRkU2SIcmtb53uuG/y1CwfDdrE1TPLOcf8wJ6tepTE0TAMNrL3zt+SulcpMvcf uQuteNJ7VM0si516Gqm+Hlwl57dPtMaNhBCc0mXgnK5S7yeW4ldutZXeNZgnyV5b3RkG 1ZYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X5UR3ZF7; 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=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 o19-20020a1709061b1300b007811ace1701si2594994ejg.445.2022.10.25.07.26.27; Tue, 25 Oct 2022 07:26:54 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X5UR3ZF7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232735AbiJYNFK (ORCPT + 99 others); Tue, 25 Oct 2022 09:05:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbiJYNEs (ORCPT ); Tue, 25 Oct 2022 09:04:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32F146F544 for ; Tue, 25 Oct 2022 06:04:00 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C47606191A for ; Tue, 25 Oct 2022 13:03:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9B7DC433C1; Tue, 25 Oct 2022 13:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666703039; bh=kfm8qo3Fgl8HUHXDJktvjOEaXfHCoDD7o4NPCEMl6C8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X5UR3ZF7k96jbSM92ps8ljplZMbzuJlqRI9E8pY6Y6WqUMZ1JeQGTVa6kSat14PT8 j9SMlPf89gLlWKUJ2reoafO0EXEpMy9oH68Rmudl834UjID79YijA+JJIF9BlN5APy zSoUavYHvXTx2snKvlZcAP0Cj7qr4dqfUfxgzO2g= Date: Tue, 25 Oct 2022 15:03:56 +0200 From: Greg KH To: Kai Ye Cc: linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, zhangfei.gao@linaro.org, wangzhou1@hisilicon.com Subject: Re: [PATCH v9 2/3] Documentation: add a isolation strategy sysfs node for uacce Message-ID: References: <20221025123931.42161-1-yekai13@huawei.com> <20221025123931.42161-3-yekai13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221025123931.42161-3-yekai13@huawei.com> X-Spam-Status: No, score=-7.6 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,URIBL_BLOCKED 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 On Tue, Oct 25, 2022 at 12:39:30PM +0000, 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 | 27 ++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-driver-uacce b/Documentation/ABI/testing/sysfs-driver-uacce > index 08f2591138af..50737c897ba3 100644 > --- a/Documentation/ABI/testing/sysfs-driver-uacce > +++ b/Documentation/ABI/testing/sysfs-driver-uacce > @@ -19,6 +19,33 @@ 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: Oct 2022 > +KernelVersion: 6.1 > +Contact: linux-accelerators@lists.ozlabs.org > +Description: (RW) Configure the frequency size for the hardware error > + isolation strategy. This unit is the number of times. Number Number of times what? > + of occurrences in a period, also means threshold. If the number > + of device pci AER error exceeds the threshold in a time window, What is the time window? > + the device is isolated. This size is a configured integer value. > + The default is 0. The maximum value is 65535. > + > + In the hisilicon accelerator 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. This seems like a very hardware-specific implementation here. And this is supposed to be a generic class? I feel this is getting really messy :( thanks, greg k-h