xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/debugfs-hisi-zip (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/comp_core[01]/regs
2*4882a593SmuzhiyunDate:           Nov 2018
3*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
4*4882a593SmuzhiyunDescription:    Dump of compression cores related debug registers.
5*4882a593Smuzhiyun		Only available for PF.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/decomp_core[0-5]/regs
8*4882a593SmuzhiyunDate:           Nov 2018
9*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
10*4882a593SmuzhiyunDescription:    Dump of decompression cores related debug registers.
11*4882a593Smuzhiyun		Only available for PF.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/clear_enable
14*4882a593SmuzhiyunDate:           Nov 2018
15*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
16*4882a593SmuzhiyunDescription:    Compression/decompression core debug registers read clear
17*4882a593Smuzhiyun		control. 1 means enable register read clear, otherwise 0.
18*4882a593Smuzhiyun		Writing to this file has no functional effect, only enable or
19*4882a593Smuzhiyun		disable counters clear after reading of these registers.
20*4882a593Smuzhiyun		Only available for PF.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/current_qm
23*4882a593SmuzhiyunDate:           Nov 2018
24*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
25*4882a593SmuzhiyunDescription:    One ZIP controller has one PF and multiple VFs, each function
26*4882a593Smuzhiyun		has a QM. Select the QM which below qm refers to.
27*4882a593Smuzhiyun		Only available for PF.
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/regs
30*4882a593SmuzhiyunDate:           Nov 2018
31*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
32*4882a593SmuzhiyunDescription:    Dump of QM related debug registers.
33*4882a593Smuzhiyun		Available for PF and VF in host. VF in guest currently only
34*4882a593Smuzhiyun		has one debug register.
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/current_q
37*4882a593SmuzhiyunDate:           Nov 2018
38*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
39*4882a593SmuzhiyunDescription:    One QM may contain multiple queues. Select specific queue to
40*4882a593Smuzhiyun		show its debug registers in above regs.
41*4882a593Smuzhiyun		Only available for PF.
42*4882a593Smuzhiyun
43*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/clear_enable
44*4882a593SmuzhiyunDate:           Nov 2018
45*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
46*4882a593SmuzhiyunDescription:    QM debug registers(regs) read clear control. 1 means enable
47*4882a593Smuzhiyun		register read clear, otherwise 0.
48*4882a593Smuzhiyun		Writing to this file has no functional effect, only enable or
49*4882a593Smuzhiyun		disable counters clear after reading of these registers.
50*4882a593Smuzhiyun		Only available for PF.
51*4882a593Smuzhiyun
52*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/err_irq
53*4882a593SmuzhiyunDate:           Apr 2020
54*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
55*4882a593SmuzhiyunDescription:    Dump the number of invalid interrupts for
56*4882a593Smuzhiyun		QM task completion.
57*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
58*4882a593Smuzhiyun
59*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/aeq_irq
60*4882a593SmuzhiyunDate:           Apr 2020
61*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
62*4882a593SmuzhiyunDescription:    Dump the number of QM async event queue interrupts.
63*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
64*4882a593Smuzhiyun
65*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/abnormal_irq
66*4882a593SmuzhiyunDate:           Apr 2020
67*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
68*4882a593SmuzhiyunDescription:    Dump the number of interrupts for QM abnormal event.
69*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
70*4882a593Smuzhiyun
71*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/create_qp_err
72*4882a593SmuzhiyunDate:           Apr 2020
73*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
74*4882a593SmuzhiyunDescription:    Dump the number of queue allocation errors.
75*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
76*4882a593Smuzhiyun
77*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/mb_err
78*4882a593SmuzhiyunDate:           Apr 2020
79*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
80*4882a593SmuzhiyunDescription:    Dump the number of failed QM mailbox commands.
81*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
82*4882a593Smuzhiyun
83*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/qm/status
84*4882a593SmuzhiyunDate:           Apr 2020
85*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
86*4882a593SmuzhiyunDescription:    Dump the status of the QM.
87*4882a593Smuzhiyun		Four states: initiated, started, stopped and closed.
88*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
89*4882a593Smuzhiyun
90*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_cnt
91*4882a593SmuzhiyunDate:           Apr 2020
92*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
93*4882a593SmuzhiyunDescription:    Dump the total number of sent requests.
94*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
95*4882a593Smuzhiyun
96*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/recv_cnt
97*4882a593SmuzhiyunDate:           Apr 2020
98*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
99*4882a593SmuzhiyunDescription:    Dump the total number of received requests.
100*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
101*4882a593Smuzhiyun
102*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/send_busy_cnt
103*4882a593SmuzhiyunDate:           Apr 2020
104*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
105*4882a593SmuzhiyunDescription:    Dump the total number of requests received
106*4882a593Smuzhiyun		with returning busy.
107*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
108*4882a593Smuzhiyun
109*4882a593SmuzhiyunWhat:           /sys/kernel/debug/hisi_zip/<bdf>/zip_dfx/err_bd_cnt
110*4882a593SmuzhiyunDate:           Apr 2020
111*4882a593SmuzhiyunContact:        linux-crypto@vger.kernel.org
112*4882a593SmuzhiyunDescription:    Dump the total number of BD type error requests
113*4882a593Smuzhiyun		to be received.
114*4882a593Smuzhiyun		Available for both PF and VF, and take no other effect on ZIP.
115