Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2361906rwb; Fri, 5 Aug 2022 19:50:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6tHitlaLTtJSIRVQgU4q4yGkhmAdhZj1ZwEMrRIb+gJYb389P0AJqtaHKydvi7MfRDUiI0 X-Received: by 2002:a17:907:8692:b0:730:b0d3:5311 with SMTP id qa18-20020a170907869200b00730b0d35311mr7316307ejc.674.1659754258386; Fri, 05 Aug 2022 19:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659754258; cv=none; d=google.com; s=arc-20160816; b=H4AY1osTFv4Ghs9OCpA3KG7SbZpLNjaicBW37lJGpxJDx30FJnQukIXmxPThw0+7vj mhLxo1ZALX8xJuV2GZEvnVZ0kesA/AgnQTCN7vAYFvSuO3+AeosyLRv5y4CNzv5xpFF0 /w0fdRU8BjjOE3sYESFuvaKLsr24TS+ccgFmH3k/uHMGkcF9mHgT/CzIAK3a3iNozxQB uqHi+UB6OazlVfL2mubxcBHjBzn6nJeE3i0QxMkFaHnqWNxxqaiTbbiSnXCkKypqouw3 dFAYVb9HhL0iypWISBMaBCvh+uXuQ8r7LADGnHrkcwab2vxAejzeBrhL3BoK7tOWaESq KGwg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7XGvDp87/VvmVismbyLqG2K58P1r5Y8rNnqYybQhmnQ=; b=FQlrsOY5uXjkOAHsINY2zEihZ+qax0eNwQ5Lk34+9dBYe+lCBIAdPSQc/ERVTDGW9L ZGA10zTsGqnptUvT3QoxLA4oqx4ulS+WZZL71ghw9V09NzDxfyJhJpVcOzVb+PLleOzv cr1l8/eMsNu7L1Xs2jMmgyUJMZ0M5rhWNulmBTVfb9UfLw7x9CxzZ9RbzN09EL6QK2zb gzTZQ3FOguC0sAbUqJQ7hvegRrQmuDM1J565yx7aMGD3jTbINkNtbf5VdOl9eJ8MxkSF N4sTRHD5Z38ljNwmeG0warLOeEl3GzOC1uDaFjsgfZ1vR6g2fJJ0VAiIvQFEi4iliK5e BdXg== 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 cs14-20020a170906dc8e00b0072b8311a17dsi3091709ejc.310.2022.08.05.19.50.32; Fri, 05 Aug 2022 19:50:58 -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 S241577AbiHFCgz (ORCPT + 99 others); Fri, 5 Aug 2022 22:36:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238396AbiHFCgy (ORCPT ); Fri, 5 Aug 2022 22:36:54 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F398C1260A; Fri, 5 Aug 2022 19:36:52 -0700 (PDT) Received: from dggpeml500021.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M064W1XNzzmV6B; Sat, 6 Aug 2022 10:34:51 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500021.china.huawei.com (7.185.36.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 6 Aug 2022 10:36:50 +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.24; Sat, 6 Aug 2022 10:36:50 +0800 From: Kai Ye To: , CC: , , , , Subject: [PATCH v7 2/3] Documentation: add a isolation strategy sysfs node for uacce Date: Sat, 6 Aug 2022 10:29:42 +0800 Message-ID: <20220806022943.47292-3-yekai13@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220806022943.47292-1-yekai13@huawei.com> References: <20220806022943.47292-1-yekai13@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) 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,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 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 | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-driver-uacce b/Documentation/ABI/testing/sysfs-driver-uacce index 08f2591138af..e09fd160d3fa 100644 --- a/Documentation/ABI/testing/sysfs-driver-uacce +++ b/Documentation/ABI/testing/sysfs-driver-uacce @@ -19,6 +19,32 @@ 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: 6.0 +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 strategies. + + For example, 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. Of course, different strategies can be defined in + different drivers. + +What: /sys/class/uacce//isolate +Date: Jul 2022 +KernelVersion: 6.0 +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 -- 2.33.0