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 v8 0/3] crypto: hisilicon - supports device isolation feature
Date: Fri, 2 Sep 2022 03:13:01 +0000 [thread overview]
Message-ID: <20220902031304.37516-1-yekai13@huawei.com> (raw)
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.
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.17.1
next reply other threads:[~2022-09-02 3:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-02 3:13 Kai Ye [this message]
2022-09-02 3:13 ` [PATCH v8 1/3] uacce: " Kai Ye
2022-09-09 8:30 ` Greg KH
2022-09-02 3:13 ` [PATCH v8 2/3] Documentation: add a isolation strategy sysfs node for uacce Kai Ye
2022-09-09 8:27 ` Greg KH
2022-09-19 3:21 ` yekai (A)
2022-09-19 9:34 ` Greg KH
2022-09-21 3:04 ` yekai (A)
2022-09-02 3:13 ` [PATCH v8 3/3] crypto: hisilicon/qm - define the device isolation strategy Kai Ye
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220902031304.37516-1-yekai13@huawei.com \
--to=yekai13@huawei.com \
--cc=gregkh@linuxfoundation.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liulongfang@huawei.com \
--cc=wangzhou1@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®