xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-driver-genwqe (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/version
2*4882a593SmuzhiyunDate:           Oct 2013
3*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
4*4882a593SmuzhiyunDescription:    Unique bitstream identification e.g.
5*4882a593Smuzhiyun                '0000000330336283.00000000475a4950'.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/appid
8*4882a593SmuzhiyunDate:           Oct 2013
9*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
10*4882a593SmuzhiyunDescription:    Identifies the currently active card application e.g. 'GZIP'
11*4882a593Smuzhiyun                for compression/decompression.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/type
14*4882a593SmuzhiyunDate:           Oct 2013
15*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
16*4882a593SmuzhiyunDescription:    Type of the card e.g. 'GenWQE5-A7'.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/curr_bitstream
19*4882a593SmuzhiyunDate:           Oct 2013
20*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
21*4882a593SmuzhiyunDescription:    Currently active bitstream. 1 is default, 0 is backup.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/next_bitstream
24*4882a593SmuzhiyunDate:           Oct 2013
25*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
26*4882a593SmuzhiyunDescription:    Interface to set the next bitstream to be used.
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/reload_bitstream
29*4882a593SmuzhiyunDate:           May 2014
30*4882a593SmuzhiyunContact:        klebers@linux.vnet.ibm.com
31*4882a593SmuzhiyunDescription:    Interface to trigger a PCIe card reset to reload the bitstream.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun		::
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun                  sudo sh -c 'echo 1 > \
36*4882a593Smuzhiyun                    /sys/class/genwqe/genwqe0_card/reload_bitstream'
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun                If successfully, the card will come back with the bitstream set
39*4882a593Smuzhiyun                on 'next_bitstream'.
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/tempsens
42*4882a593SmuzhiyunDate:           Oct 2013
43*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
44*4882a593SmuzhiyunDescription:    Interface to read the cards temperature sense register.
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/freerunning_timer
47*4882a593SmuzhiyunDate:           Oct 2013
48*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
49*4882a593SmuzhiyunDescription:    Interface to read the cards free running timer.
50*4882a593Smuzhiyun                Used for performance and utilization measurements.
51*4882a593Smuzhiyun
52*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/queue_working_time
53*4882a593SmuzhiyunDate:           Oct 2013
54*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
55*4882a593SmuzhiyunDescription:    Interface to read queue working time.
56*4882a593Smuzhiyun                Used for performance and utilization measurements.
57*4882a593Smuzhiyun
58*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/state
59*4882a593SmuzhiyunDate:           Oct 2013
60*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
61*4882a593SmuzhiyunDescription:    State of the card: "unused", "used", "error".
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/base_clock
64*4882a593SmuzhiyunDate:           Oct 2013
65*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
66*4882a593SmuzhiyunDescription:    Base clock frequency of the card.
67*4882a593Smuzhiyun
68*4882a593SmuzhiyunWhat:           /sys/class/genwqe/genwqe<n>_card/device/sriov_numvfs
69*4882a593SmuzhiyunDate:           Oct 2013
70*4882a593SmuzhiyunContact:        haver@linux.vnet.ibm.com
71*4882a593SmuzhiyunDescription:    Enable VFs (1..15)::
72*4882a593Smuzhiyun
73*4882a593Smuzhiyun                  sudo sh -c 'echo 15 > \
74*4882a593Smuzhiyun                    /sys/bus/pci/devices/0000\:1b\:00.0/sriov_numvfs'
75*4882a593Smuzhiyun
76*4882a593Smuzhiyun                Disable VFs::
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun                  Write a 0 into the same sysfs entry.
79