]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ccp - Add debugfs entries for CCP information
authorGary R Hook <gary.hook@amd.com>
Tue, 2 May 2017 22:33:40 +0000 (17:33 -0500)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:57:36 +0000 (10:57 -0700)
commit967b9a04ee841bf38ad8d66dfb16ba4df53a8e1b
tree7de29a972d273f58e0ef941fad18fb61b142cf7c
parentc34cab68ec8396eca317cf5f98395d7c827b1196
crypto: ccp - Add debugfs entries for CCP information

Orabug: 26644685

Expose some data about the configuration and operation of the CCP
through debugfs entries: device name, capabilities, configuration,
statistics.

Allow the user to reset the counters to zero by writing (any value)
to the 'stats' file. This can be done per queue or per device.

Changes from V1:
 - Correct polarity of test when destroying devices at module unload

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 3cdbe346ed3f380eae1cb3e9febfe703e7d8a7b0)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/Makefile
drivers/crypto/ccp/ccp-debugfs.c [new file with mode: 0644]
drivers/crypto/ccp/ccp-dev-v5.c
drivers/crypto/ccp/ccp-dev.c
drivers/crypto/ccp/ccp-dev.h