Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2359869rwb; Fri, 5 Aug 2022 19:46:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR49H7XuJ2BQlT3lrnPodYwZbNonV87PwfLfXJm6WdvP9oHf0lw+CZJcwjNEtXiXXn2GQu9P X-Received: by 2002:a05:6402:26c2:b0:43d:d885:451a with SMTP id x2-20020a05640226c200b0043dd885451amr8968652edd.287.1659754007918; Fri, 05 Aug 2022 19:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659754007; cv=none; d=google.com; s=arc-20160816; b=qu6aSXja/YBlTSXejPhXTcSWG9eeYQO+92XbxEqOLKO0GxYy916W9etdJLIZKXR3VJ jz7y/h0nf1s/+sSFcMZ/TTdrHSdIEMBATqYt/PzTNjQ3rOdgcF91jBgwxX1LwbgIcsRQ pevQL8/2dYR1YlkLqUs/lpNrkdvYfiPA+KI2RIjW4e5eJQi4zd53NjCDSgmWlBGT8+Jj Red6KQtG+7QXfkUBa4EcZBpnWHTC8m2xacavXlbuoNamz9JCgYhSw1XI2oYtQYfGY6qe hat9g78GkBuBMpl7Yu9trPjzYRua+3vLZPu8Mgudcb0eLYgw11SzInBgOzEZlBRHlm/Q yZkg== 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=geUb5ZSwl+gJtTBRvyEiipp52LzrcosdAmLY6z+vo1Y=; b=DEkDZCu0X604ctR1Xen6hnQBF3+pYPGCehj+ox2gKrtn7ltIfyRS/zeoWDVcuex+88 9mmaVlnNm+VC65NqBPdMA7x8HYQCYcMLZYyRloj8+FW3cWru/cG1qi4/XOI/fAYGsO5z axc75iRrYSE8tihbPDYSpmVx7UMzgBCRpbK1a+mkffUUbHdQLoosQ7SQmlQTsXygSJ/+ JenPlFRVRZxmukCytUWnOAZ29ScLXCZ7KfPrCYBb7uBEs+M/hYNNydRGauUV5hD+maF0 KjJGeb3XVHY95EIE2247GD3JiQ6jrpII2C/EB5seQTdtLztGNpr7CbPGoMI9cw3TsZRZ xjhw== 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 j16-20020a170906831000b007309303da68si4457022ejx.340.2022.08.05.19.46.06; Fri, 05 Aug 2022 19:46:47 -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 S238175AbiHFCgy (ORCPT + 99 others); Fri, 5 Aug 2022 22:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237982AbiHFCgx (ORCPT ); Fri, 5 Aug 2022 22:36:53 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84E5B60F8; Fri, 5 Aug 2022 19:36:52 -0700 (PDT) Received: from dggpeml500021.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M063D40dXzjXdp; Sat, 6 Aug 2022 10:33:44 +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 0/3] crypto: hisilicon - supports device isolation feature Date: Sat, 6 Aug 2022 10:29:40 +0800 Message-ID: <20220806022943.47292-1-yekai13@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 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(-) -- 2.33.0