Message ID | 20221025123931.42161-1-yekai13@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp984548wru; Tue, 25 Oct 2022 05:48:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7SIyKyVLMqM3BMvL+7vAht90YIFwZfB3yDfnW5IDT+HugGIbaEWf+7wDzUDnzjZ/s3pBTk X-Received: by 2002:a05:6a00:1389:b0:566:1549:c5bc with SMTP id t9-20020a056a00138900b005661549c5bcmr39077468pfg.8.1666702124549; Tue, 25 Oct 2022 05:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666702124; cv=none; d=google.com; s=arc-20160816; b=tWYGw8g4xX5kCJihj4aOo5mLi9LS96muYgrIMf3qh397s9CoCUaDwfOpCSswsmBDK6 vChriinOPsWMWfr+Aee+mPf3g1fKoSCYdqEtbahkxgs30uZcRU9qNdvFvkXjX9SGp3B4 wdshqNWvVr4XXFjnkcuHtVmNvxm9djBy2NTc7AQlC69S4dzie6AAPHevB3oDBoiaXpt1 MMm3pvFysn65gsKj+Aym3GbkUSSIpLUP6KsNw1tHmxyi9JHzT0UVxMJHfWFOIP5cW2nm 5gIsPXsiqDFG1Hpz3tJ0N3LUFYcvW+Q0bkp+eXZm0Dy+EmswXmet07dhVhkuYXaA8cVh EtBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from; bh=JFn/KjPoU8Iqhm4QXuHs9Oe+TKO0+EWfvw77oa8kq/A=; b=fQDk01jwD8OXe+3UWC/iYMpCzKEcuisSA682/zt3rQvi5k4dn7X0Ze3btkcH7ojLuo fE+9ww7ji2vwKl3UIPd5aGoKq7rEiVzKqTJngP2Rse465WwNVdW932FVA8GEyx/zxKnI gQj+nW5snpbzysiSddMhk5p0LIFFaJcxxh0InKTKmnufX1gz8SaWF5q3W86BDrJYvyNr aUjEswXtmxkiH6c2N6U4HxZqzGlWv0mFOLQmM5oBIvY09In92nq5c+F7d0/rwN/W2Rxe BATJO4yo2kNaPHhR9jalleFkwR5FQWShlQM+FTvm6KIvq74sfjMzd7z21IdCNaVi5/F/ ke7Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a170902d58200b001869c588d5asi2729465plh.110.2022.10.25.05.48.31; Tue, 25 Oct 2022 05:48:44 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232411AbiJYMr5 (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Tue, 25 Oct 2022 08:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232284AbiJYMrm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Oct 2022 08:47:42 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1354533E14 for <linux-kernel@vger.kernel.org>; Tue, 25 Oct 2022 05:45:25 -0700 (PDT) Received: from dggpeml500022.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MxWmq4Ww6zJn7S; Tue, 25 Oct 2022 20:42:35 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 25 Oct 2022 20:45:21 +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.31; Tue, 25 Oct 2022 20:45:21 +0800 From: Kai Ye <yekai13@huawei.com> To: <gregkh@linuxfoundation.org>, <linux-accelerators@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>, <linuxarm@huawei.com>, <zhangfei.gao@linaro.org>, <wangzhou1@hisilicon.com>, <yekai13@huawei.com> Subject: [PATCH v9 0/3] crypto: hisilicon - supports device isolation feature Date: Tue, 25 Oct 2022 12:39:28 +0000 Message-ID: <20221025123931.42161-1-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747663846486033683?= X-GMAIL-MSGID: =?utf-8?q?1747663846486033683?= |
Series |
crypto: hisilicon - supports device isolation feature
|
|
Message
yekai (A)
Oct. 25, 2022, 12:39 p.m. UTC
1.Add the uacce hardware error isolation interface. Supports configures the hardware error isolation frequency. 2.Defining the isolation strategy for ACC by uacce sysfs node. If the number of hardware errors in a per hour exceeds the configured value, the device will not be available in user space. The VF device use the PF device isolation strategy. changes v1->v2: - deleted dev_to_uacce api. - add vfs node doc. - move uacce->ref to driver. changes v2->v3: - deleted some redundant code. - use qm state instead of reference count. - add null pointer check. - isolate_strategy_read() instead of a copy. changes v3->v4: - modify a comment changes v4->v5: - use bool instead of atomic. - isolation frequency instead of isolation command. changes v5->v6: - add is_visible in uacce. - add the description of the isolation strategy file node. changes v6->v7 - add an example for isolate_strategy in Documentation. changes v7->v8 - update the correct date. changes v8->v9 - move isolation strategy from qm to uacce. Kai Ye (3): uacce: supports device isolation feature Documentation: add a isolation strategy sysfs node for uacce crypto: hisilicon/qm - add the device isolation feature for acc Documentation/ABI/testing/sysfs-driver-uacce | 27 ++++ drivers/crypto/hisilicon/qm.c | 66 +++++++-- drivers/misc/uacce/uacce.c | 145 +++++++++++++++++++ include/linux/uacce.h | 43 +++++- 4 files changed, 271 insertions(+), 10 deletions(-)