Message ID | 20221119074817.12063-1-yekai13@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp606017wrr; Sat, 19 Nov 2022 00:06:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf61+GwbZ0H7mxAMTqHOufgRatW+HjrgSrlVLjRFhEj52Ur8R370h+iBCMgIXZsjyZmnMf6i X-Received: by 2002:a17:90a:b38e:b0:218:79d8:1a2d with SMTP id e14-20020a17090ab38e00b0021879d81a2dmr9778429pjr.229.1668845173030; Sat, 19 Nov 2022 00:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668845173; cv=none; d=google.com; s=arc-20160816; b=BXLROMebjTxbf0aIvwftknCYN4po5hkPM8T6SsQ4p/bzRj1eCltoR++n15BxtxhNDi TMNuRqHplDOx4tGTT7zfzR/xr5OXv7MhGvjPgCoh7LDVsJPzcZIeTepeJmTy/iPLj80w nh1p9nmhMVhS8srN8oBa+E/Co6WxMaARnftfSZ/Ud45L+W7jMEbqltnrAenzToi+6IXF Swezwr6QPLVI8gOpK3SvWTsHmaP3haRl4QHcHo/m0/rRTVJB8ehDyh5KXBS11V+Ns9dB gSmuLYKW6jqp6bn2HvjNHWZSMXAGw0ReZVFgNFlXFUpXB0HZsajjnAE4StretmCzPrnu ry6g== 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 :message-id:date:subject:cc:to:from; bh=AbXuPHmn8IMB8bIof8kXkJY5M9DL0LL034BJ5s6GL1c=; b=yrXToC/DuAKDJNGK23a2Z2J/3pEUQ8VOidNsTZc2dPAqJ4BJwXvt7QyzZ+kqJ5B/+D hB67d1TkNAU9AmPZWCbF+RiRF0Qh0uZDvgvIvaOLh+v0KLkyuSpPfAq+xzNmlgW/05VY fZNDkhoiSCMUzXut6DO+jbLeSvJ/bvh2FIaBIEaarQCoGv15tdm+iS8b6Zoj5RvBoOxy IOIUoWFA89xLXg49E0xbfUwhYvRu+rk6YKODN2PbQnv5hdsgYAaJTVSRi01KYlf5N5z0 xLwkVwWbK/g7amlyJoe1FrfFbTGCvLwTEx+PzhjTeXl8D9P+hQbojqrTO5tgdGOBQyvy vo3g== 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 q18-20020a170902f35200b00186b766d6cbsi5016584ple.414.2022.11.19.00.05.58; Sat, 19 Nov 2022 00:06:13 -0800 (PST) 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 S231300AbiKSHyv (ORCPT <rfc822;kkmonlee@gmail.com> + 99 others); Sat, 19 Nov 2022 02:54:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233106AbiKSHyd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 19 Nov 2022 02:54:33 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61ACC24F36; Fri, 18 Nov 2022 23:54:31 -0800 (PST) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NDmBK5NhRzmV5w; Sat, 19 Nov 2022 15:54:01 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 19 Nov 2022 15:54:27 +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; Sat, 19 Nov 2022 15:54:27 +0800 From: Kai Ye <yekai13@huawei.com> To: <gregkh@linuxfoundation.org>, <herbert@gondor.apana.org.au> CC: <linux-crypto@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <wangzhou1@hisilicon.com>, <liulongfang@huawei.com>, <yekai13@huawei.com> Subject: [PATCH v10 0/3] crypto: hisilicon - supports device isolation feature Date: Sat, 19 Nov 2022 07:48:14 +0000 Message-ID: <20221119074817.12063-1-yekai13@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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?1749910996071271147?= X-GMAIL-MSGID: =?utf-8?q?1749910996071271147?= |
Series |
crypto: hisilicon - supports device isolation feature
|
|
Message
yekai (A)
Nov. 19, 2022, 7:48 a.m. UTC
1、Add the uacce hardware error isolation interface. Hardware error thresholds can be configured by sysfs node. User can get the hardware isolated state by sysfs node. 2、Defining the isolation strategy for uacce device by uacce sysfs node. If the number of hardware errors exceeds the configured value, the uacce device will not be available in user space. 3、The ACC 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. changes v9->v10 - Go back to the v8 version of the solution. - Modify some code according to suggestions. Kai Ye (3): uacce: supports device isolation feature Documentation: add the device isolation feature sysfs nodes for uacce crypto: hisilicon/qm - define the device isolation strategy Documentation/ABI/testing/sysfs-driver-uacce | 18 ++ drivers/crypto/hisilicon/qm.c | 169 +++++++++++++++++-- drivers/misc/uacce/uacce.c | 50 ++++++ include/linux/hisi_acc_qm.h | 15 ++ include/linux/uacce.h | 12 ++ 5 files changed, 249 insertions(+), 15 deletions(-)
Comments
On 2022/11/19 15:48, Kai Ye wrote: > 1、Add the uacce hardware error isolation interface. Hardware error > thresholds can be configured by sysfs node. User can get the hardware > isolated state by sysfs node. > 2、Defining the isolation strategy for uacce device by uacce sysfs node. > If the number of hardware errors exceeds the configured value, the > uacce device will not be available in user space. > 3、The ACC 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. > changes v9->v10 > - Go back to the v8 version of the solution. > - Modify some code according to suggestions. > > Kai Ye (3): > uacce: supports device isolation feature > Documentation: add the device isolation feature sysfs nodes for uacce > crypto: hisilicon/qm - define the device isolation strategy > > Documentation/ABI/testing/sysfs-driver-uacce | 18 ++ > drivers/crypto/hisilicon/qm.c | 169 +++++++++++++++++-- > drivers/misc/uacce/uacce.c | 50 ++++++ > include/linux/hisi_acc_qm.h | 15 ++ > include/linux/uacce.h | 12 ++ > 5 files changed, 249 insertions(+), 15 deletions(-) > Hi Grek Just a friendly ping. Thanks Kai
On 2022/11/25 16:49, yekai (A) wrote: > > On 2022/11/19 15:48, Kai Ye wrote: >> 1、Add the uacce hardware error isolation interface. Hardware error >> thresholds can be configured by sysfs node. User can get the hardware >> isolated state by sysfs node. >> 2、Defining the isolation strategy for uacce device by uacce sysfs node. >> If the number of hardware errors exceeds the configured value, the >> uacce device will not be available in user space. >> 3、The ACC 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. >> changes v9->v10 >> - Go back to the v8 version of the solution. >> - Modify some code according to suggestions. >> >> Kai Ye (3): >> uacce: supports device isolation feature >> Documentation: add the device isolation feature sysfs nodes for uacce >> crypto: hisilicon/qm - define the device isolation strategy >> >> Documentation/ABI/testing/sysfs-driver-uacce | 18 ++ >> drivers/crypto/hisilicon/qm.c | 169 +++++++++++++++++-- >> drivers/misc/uacce/uacce.c | 50 ++++++ >> include/linux/hisi_acc_qm.h | 15 ++ >> include/linux/uacce.h | 12 ++ >> 5 files changed, 249 insertions(+), 15 deletions(-) >> > Hi Grek > > Just a friendly ping. > > Thanks > Kai Hi Greg KH Could you help me to apply this patchset v10? thanks Kai
On Fri, Dec 09, 2022 at 02:15:07PM +0800, yekai (A) wrote: > > > On 2022/11/25 16:49, yekai (A) wrote: > > > > On 2022/11/19 15:48, Kai Ye wrote: > >> 1、Add the uacce hardware error isolation interface. Hardware error > >> thresholds can be configured by sysfs node. User can get the hardware > >> isolated state by sysfs node. > >> 2、Defining the isolation strategy for uacce device by uacce sysfs node. > >> If the number of hardware errors exceeds the configured value, the > >> uacce device will not be available in user space. > >> 3、The ACC 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. > >> changes v9->v10 > >> - Go back to the v8 version of the solution. > >> - Modify some code according to suggestions. > >> > >> Kai Ye (3): > >> uacce: supports device isolation feature > >> Documentation: add the device isolation feature sysfs nodes for uacce > >> crypto: hisilicon/qm - define the device isolation strategy > >> > >> Documentation/ABI/testing/sysfs-driver-uacce | 18 ++ > >> drivers/crypto/hisilicon/qm.c | 169 +++++++++++++++++-- > >> drivers/misc/uacce/uacce.c | 50 ++++++ > >> include/linux/hisi_acc_qm.h | 15 ++ > >> include/linux/uacce.h | 12 ++ > >> 5 files changed, 249 insertions(+), 15 deletions(-) > >> > > Hi Grek > > > > Just a friendly ping. > > > > Thanks > > Kai > > Hi Greg KH > > Could you help me to apply this patchset v10? Sorry, it needs review from the crypto maintainers before I can take it. Also, it looks to be too late for 6.2-rc1 at this point in time. thanks, greg k-h