Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1898690rwa; Sun, 21 Aug 2022 20:41:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR74e+83G7myWNlpCw+fUKSUDFVpFsxG/db77eo3v5xliGLIq5KxYCgqxbPcppYsdvBwfw5P X-Received: by 2002:a05:6402:3553:b0:446:b76a:bb59 with SMTP id f19-20020a056402355300b00446b76abb59mr3255027edd.375.1661139672186; Sun, 21 Aug 2022 20:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661139672; cv=none; d=google.com; s=arc-20160816; b=Hnrrh0t7DgiGib4qQmnbyWr1bAGWQOGbOLF5sHokGUPAzPDTHZSXKHhwOx5+lZk8pu zIai62w66Ti4Ji/zI+CkN+gDy3r3nTiAOTGbG7ODeEH6VvomTP+Utz2S3DtEEQAlYt7M jf4ywEceFUZqmhvnO8efNHiJecHkpikAliRwWAhDsFtQE37qFBFrb8WjPfDE+owUFQ4b n63TyLjESHlyhbbpHRCriEQfN/OiHeixUAIdIL4v6QnVRwhYfVqCMLS8QlyyduNVCUZ8 v43PtLSRY+gsf8QQCJI2SHrIwT+vu2SzP3LHvSnv5eZ99a5x2UkC30B+qNyzXrj/3XNr hPiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=MQojZxoHbzNeICYT/xih52L8nsRigLeLshprz+RyCNg=; b=Vc7o4y92tdF1nAERT8jggXeyNM/Vuo9nuw8mMBiw2cVVOUeYnhUNdCPYpp89fP2n5t khb/hJvv7CMa2PQUHfTuKeiv2DdfAaPTteikPq/tGabM52oNfQYPssZy02z0Z/IPBxwD we9iCrv5oT4/M3rQRfYGf0S1jELWzlleLxCU9vhHsX8DOU8jMPb8FesMZhiorQqKuQBa PIvn/ex6yPRGOJhQiG9ejD4buHS8r7259UEogEPzb8A/KqutFOkbm9Omx6TSaM1CWFxI pTvi+4dAzHGFXwW9VUsCjDqvWikCuYc+ohp4VZVrGEg6BA/mvhQo2Nta2qitMNPUIWk7 gbqg== 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 n9-20020a05640205c900b00445f6ff57bfsi9725558edx.335.2022.08.21.20.40.33; Sun, 21 Aug 2022 20:41:12 -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 S232059AbiHVDjG (ORCPT + 99 others); Sun, 21 Aug 2022 23:39:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231851AbiHVDjF (ORCPT ); Sun, 21 Aug 2022 23:39:05 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDD0C1EEDD; Sun, 21 Aug 2022 20:39:03 -0700 (PDT) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M9yhY2l9xzXdYd; Mon, 22 Aug 2022 11:36:45 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 22 Aug 2022 11:39:02 +0800 Received: from [10.67.103.212] (10.67.103.212) 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; Mon, 22 Aug 2022 11:39:01 +0800 Subject: Re: [PATCH v7 0/3] crypto: hisilicon - supports device isolation feature To: , References: <20220806022943.47292-1-yekai13@huawei.com> CC: , , , From: "yekai (A)" Message-ID: Date: Mon, 22 Aug 2022 11:38:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20220806022943.47292-1-yekai13@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.212] 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,NICE_REPLY_A, 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 On 2022/8/6 10:29, Kai Ye wrote: > 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. > > Kai Ye (3): > uacce: supports device isolation feature > Documentation: add a isolation strategy sysfs node for uacce > crypto: hisilicon/qm - define the device isolation strategy > > Documentation/ABI/testing/sysfs-driver-uacce | 26 +++ > drivers/crypto/hisilicon/qm.c | 163 +++++++++++++++++-- > drivers/misc/uacce/uacce.c | 58 +++++++ > include/linux/hisi_acc_qm.h | 9 + > include/linux/uacce.h | 11 ++ > 5 files changed, 255 insertions(+), 12 deletions(-) > Hi, Just a friendly ping... thanks Kai