xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/debugfs-pfo-nx-crypto (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/kernel/debug/nx-crypto/*
2*4882a593SmuzhiyunDate:		March 2012
3*4882a593SmuzhiyunKernelVersion:	3.4
4*4882a593SmuzhiyunContact:	Kent Yoder <key@linux.vnet.ibm.com>
5*4882a593SmuzhiyunDescription:
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThese debugfs interfaces are built by the nx-crypto driver, built in
8*4882a593Smuzhiyunarch/powerpc/crypto/nx.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunError Detection
11*4882a593Smuzhiyun===============
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunerrors:
14*4882a593Smuzhiyun  A u32 providing a total count of errors since the driver was loaded. The
15*4882a593Smuzhiyun  only errors counted here are those returned from the hcall, H_COP_OP.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunlast_error:
18*4882a593Smuzhiyun  The most recent non-zero return code from the H_COP_OP hcall. -EBUSY is not
19*4882a593Smuzhiyun  recorded here (the hcall will retry until -EBUSY goes away).
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunlast_error_pid:
22*4882a593Smuzhiyun  The process ID of the process who received the most recent error from the
23*4882a593Smuzhiyun  hcall.
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunDevice Use
26*4882a593Smuzhiyun==========
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunaes_bytes:
29*4882a593Smuzhiyun  The total number of bytes encrypted using AES in any of the driver's
30*4882a593Smuzhiyun  supported modes.
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunaes_ops:
33*4882a593Smuzhiyun  The total number of AES operations submitted to the hardware.
34*4882a593Smuzhiyun
35*4882a593Smuzhiyunsha256_bytes:
36*4882a593Smuzhiyun  The total number of bytes hashed by the hardware using SHA-256.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunsha256_ops:
39*4882a593Smuzhiyun  The total number of SHA-256 operations submitted to the hardware.
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunsha512_bytes:
42*4882a593Smuzhiyun  The total number of bytes hashed by the hardware using SHA-512.
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunsha512_ops:
45*4882a593Smuzhiyun  The total number of SHA-512 operations submitted to the hardware.
46