crypto: hisilicon/qm - obtain stop queue status
authorWeili Qian <qianweili@huawei.com>
Wed, 7 Feb 2024 09:51:00 +0000 (17:51 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 17 Feb 2024 01:09:16 +0000 (09:09 +0800)
commitce133a22123055f5f988499cd9ac7953d2bf0677
tree1214f390104a6304f509bba329149a28bad997f7
parent12b8ae68f50de200c038246c2496822f38b18fe2
crypto: hisilicon/qm - obtain stop queue status

The debugfs files 'dev_state' and 'dev_timeout' are added.
Users can query the current queue stop status through these two
files. And set the waiting timeout when the queue is released.

dev_state: if dev_timeout is set, dev_state indicates the status
of stopping the queue. 0 indicates that the queue is stopped
successfully. Other values indicate that the queue stops fail.
If dev_timeout is not set, the value of dev_state is 0;

dev_timeout: if the queue fails to stop, the queue is released
after waiting dev_timeout * 20ms.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/ABI/testing/debugfs-hisi-hpre
Documentation/ABI/testing/debugfs-hisi-sec
Documentation/ABI/testing/debugfs-hisi-zip
drivers/crypto/hisilicon/debugfs.c
drivers/crypto/hisilicon/qm.c
include/linux/hisi_acc_qm.h