Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp183782iol; Sat, 11 Jun 2022 01:28:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT1JAgUvHHXyJMAZ3HzSkx9W2L4+Maoobz2phquYtorqdd8t7aO57BZ/um7Y/G1ITX3euc X-Received: by 2002:a05:6402:50d0:b0:431:70e1:956 with SMTP id h16-20020a05640250d000b0043170e10956mr30130923edb.205.1654936110640; Sat, 11 Jun 2022 01:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654936110; cv=none; d=google.com; s=arc-20160816; b=P8CSWf+NYvOf+Z7YEYG66/cvg7xeEprLoB/YgqBN2hdU2d7vOK4wALAgl8IeTvnxt0 DwjTY1lDKtjlhlgjl8qjeWDVBG9G8vl670yo/aKKpP7kbvpYpGE9LEw1oDghDtSokif0 slj2EjaQDcd9egwRa1TUbAnBDRAe/vcieBGv9/3MTCMkFRRYx7uwofv9XJTY2V5i820M Jt0IWCNvotvIsGnvjvD//5NeVleeShCQb8t28c35G99rboG9Fx0efnoZYKQBXtyf9mA6 8xwlw5k/tkxJbBVd7n9edjKtrcQAopnRjsTksUtahZe8nmwjbpSgTkndrR1+JijYW7HT HKgw== 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:to:from; bh=UceGTvHyexUHgHQbF8w7rIOneP8aF3EFSfQlo+DDFe0=; b=lrRQONj984a9KDwoGcuw4U03AFkK3kJ5tK+qq0wT/SxRYsyOF/K8+5hYDNV+tPtITE 3Nm91eQODrmPLSWZOgQSeG7RtxvUK1pwQR33CoLQmU5DKWqC5vcEfzWZOlhb0eLSMPa9 iO68VXvQvA56WDtEwRL6lD0c0JQnSmJ9O0IDBwk7QRPowZJxDBbKdSOOeMD3CHGmqXYU kRX2dtNtqL0DwtP0JssIGImqgjnxPhH0flNVBrUBMMXWEhiHoGep5OF7KhZA4Gt5Gq9g VDZDYtZw7ZFFJldEXyahmyLEfr6VpH61A7Yi0s7W/SxmSNG6PlmMjvvyhJvUcbHro+Ir h0XA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z27-20020a17090674db00b006ff20273cccsi1258926ejl.231.2022.06.11.01.28.06; Sat, 11 Jun 2022 01:28:30 -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 S230100AbiFKHOe (ORCPT + 99 others); Sat, 11 Jun 2022 03:14:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbiFKHOa (ORCPT ); Sat, 11 Jun 2022 03:14:30 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A976167E9 for ; Sat, 11 Jun 2022 00:14:28 -0700 (PDT) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4LKptn3RXBz1K96J; Sat, 11 Jun 2022 15:12:33 +0800 (CST) Received: from dggpeml100012.china.huawei.com (7.185.36.121) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 11 Jun 2022 15:14:25 +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, 11 Jun 2022 15:14:25 +0800 From: Kai Ye To: , , , , , , Subject: [PATCH 0/2] crypto: hisilicon - supports device isolation feature Date: Sat, 11 Jun 2022 15:08:06 +0800 Message-ID: <20220611070808.49219-1-yekai13@huawei.com> X-Mailer: git-send-email 2.33.0 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-kernel@vger.kernel.org Add the hardware error isolation feature for ACC. Defines a driver debugfs node that used to configures the hardware error frequency. When the error frequency is exceeded, the device will be isolated. The isolation strategy can be defined in each driver module. e.g. Defining the isolation strategy for ACC, if the AER error frequency exceeds the value of setting for a certain period of time, The device will not be available in user space. The VF device use the PF device isolation strategy. as well as the isolation strategy should not be set during device use. Kai Ye (2): uacce: supports device isolation feature crypto: hisilicon/qm - defining the device isolation strategy drivers/crypto/hisilicon/qm.c | 149 +++++++++++++++++++++++++++++++--- drivers/misc/uacce/uacce.c | 76 +++++++++++++++++ include/linux/hisi_acc_qm.h | 8 ++ include/linux/uacce.h | 21 ++++- 4 files changed, 241 insertions(+), 13 deletions(-) -- 2.33.0