xref: /linux/Documentation/ABI/testing/debugfs-driver-habanalabs (revision 4a0ce7764b09044fdb5f92dcf03ec5d8657296f4)
1c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/addr
2c2164773SOded GabbayDate:           Jan 2019
3c2164773SOded GabbayKernelVersion:  5.1
4c2164773SOded GabbayContact:        oded.gabbay@gmail.com
5c2164773SOded GabbayDescription:    Sets the device address to be used for read or write through
6*4a0ce776STomer Tayar                PCI bar, or the device VA of a host mapped memory to be read or
7*4a0ce776STomer Tayar                written directly from the host. The latter option is allowed
8*4a0ce776STomer Tayar                only when the IOMMU is disabled.
9*4a0ce776STomer Tayar                The acceptable value is a string that starts with "0x"
10c2164773SOded Gabbay
11c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/command_buffers
12c2164773SOded GabbayDate:           Jan 2019
13c2164773SOded GabbayKernelVersion:  5.1
14c2164773SOded GabbayContact:        oded.gabbay@gmail.com
15c2164773SOded GabbayDescription:    Displays a list with information about the currently allocated
16c2164773SOded Gabbay                command buffers
17c2164773SOded Gabbay
18c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/command_submission
19c2164773SOded GabbayDate:           Jan 2019
20c2164773SOded GabbayKernelVersion:  5.1
21c2164773SOded GabbayContact:        oded.gabbay@gmail.com
22c2164773SOded GabbayDescription:    Displays a list with information about the currently active
23c2164773SOded Gabbay                command submissions
24c2164773SOded Gabbay
25c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/command_submission_jobs
26c2164773SOded GabbayDate:           Jan 2019
27c2164773SOded GabbayKernelVersion:  5.1
28c2164773SOded GabbayContact:        oded.gabbay@gmail.com
29c2164773SOded GabbayDescription:    Displays a list with detailed information about each JOB (CB) of
30c2164773SOded Gabbay                each active command submission
31c2164773SOded Gabbay
32c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/data32
33c2164773SOded GabbayDate:           Jan 2019
34c2164773SOded GabbayKernelVersion:  5.1
35c2164773SOded GabbayContact:        oded.gabbay@gmail.com
36c2164773SOded GabbayDescription:    Allows the root user to read or write directly through the
37c2164773SOded Gabbay                device's PCI bar. Writing to this file generates a write
38c2164773SOded Gabbay                transaction while reading from the file generates a read
39*4a0ce776STomer Tayar                transaction. This custom interface is needed (instead of using
40c2164773SOded Gabbay                the generic Linux user-space PCI mapping) because the DDR bar
41c2164773SOded Gabbay                is very small compared to the DDR memory and only the driver can
42*4a0ce776STomer Tayar                move the bar before and after the transaction.
43*4a0ce776STomer Tayar                If the IOMMU is disabled, it also allows the root user to read
44*4a0ce776STomer Tayar                or write from the host a device VA of a host mapped memory
45c2164773SOded Gabbay
46c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/device
47c2164773SOded GabbayDate:           Jan 2019
48c2164773SOded GabbayKernelVersion:  5.1
49c2164773SOded GabbayContact:        oded.gabbay@gmail.com
50c2164773SOded GabbayDescription:    Enables the root user to set the device to specific state.
51c2164773SOded Gabbay                Valid values are "disable", "enable", "suspend", "resume".
52c2164773SOded Gabbay                User can read this property to see the valid values
53c2164773SOded Gabbay
54c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/i2c_addr
55c2164773SOded GabbayDate:           Jan 2019
56c2164773SOded GabbayKernelVersion:  5.1
57c2164773SOded GabbayContact:        oded.gabbay@gmail.com
58c2164773SOded GabbayDescription:    Sets I2C device address for I2C transaction that is generated
59c2164773SOded Gabbay                by the device's CPU
60c2164773SOded Gabbay
61c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/i2c_bus
62c2164773SOded GabbayDate:           Jan 2019
63c2164773SOded GabbayKernelVersion:  5.1
64c2164773SOded GabbayContact:        oded.gabbay@gmail.com
65c2164773SOded GabbayDescription:    Sets I2C bus address for I2C transaction that is generated by
66c2164773SOded Gabbay                the device's CPU
67c2164773SOded Gabbay
68c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/i2c_data
69c2164773SOded GabbayDate:           Jan 2019
70c2164773SOded GabbayKernelVersion:  5.1
71c2164773SOded GabbayContact:        oded.gabbay@gmail.com
72c2164773SOded GabbayDescription:    Triggers an I2C transaction that is generated by the device's
73c2164773SOded Gabbay                CPU. Writing to this file generates a write transaction while
74c2164773SOded Gabbay                reading from the file generates a read transcation
75c2164773SOded Gabbay
76c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/i2c_reg
77c2164773SOded GabbayDate:           Jan 2019
78c2164773SOded GabbayKernelVersion:  5.1
79c2164773SOded GabbayContact:        oded.gabbay@gmail.com
80c2164773SOded GabbayDescription:    Sets I2C register id for I2C transaction that is generated by
81c2164773SOded Gabbay                the device's CPU
82c2164773SOded Gabbay
83c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/led0
84c2164773SOded GabbayDate:           Jan 2019
85c2164773SOded GabbayKernelVersion:  5.1
86c2164773SOded GabbayContact:        oded.gabbay@gmail.com
87c2164773SOded GabbayDescription:    Sets the state of the first S/W led on the device
88c2164773SOded Gabbay
89c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/led1
90c2164773SOded GabbayDate:           Jan 2019
91c2164773SOded GabbayKernelVersion:  5.1
92c2164773SOded GabbayContact:        oded.gabbay@gmail.com
93c2164773SOded GabbayDescription:    Sets the state of the second S/W led on the device
94c2164773SOded Gabbay
95c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/led2
96c2164773SOded GabbayDate:           Jan 2019
97c2164773SOded GabbayKernelVersion:  5.1
98c2164773SOded GabbayContact:        oded.gabbay@gmail.com
99c2164773SOded GabbayDescription:    Sets the state of the third S/W led on the device
100c2164773SOded Gabbay
101c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/mmu
102c2164773SOded GabbayDate:           Jan 2019
103c2164773SOded GabbayKernelVersion:  5.1
104c2164773SOded GabbayContact:        oded.gabbay@gmail.com
105c2164773SOded GabbayDescription:    Displays the hop values and physical address for a given ASID
106c2164773SOded Gabbay                and virtual address. The user should write the ASID and VA into
107c2164773SOded Gabbay                the file and then read the file to get the result.
108c2164773SOded Gabbay                e.g. to display info about VA 0x1000 for ASID 1 you need to do:
109c2164773SOded Gabbay                echo "1 0x1000" > /sys/kernel/debug/habanalabs/hl0/mmu
110c2164773SOded Gabbay
111c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/set_power_state
112c2164773SOded GabbayDate:           Jan 2019
113c2164773SOded GabbayKernelVersion:  5.1
114c2164773SOded GabbayContact:        oded.gabbay@gmail.com
115c2164773SOded GabbayDescription:    Sets the PCI power state. Valid values are "1" for D0 and "2"
116c2164773SOded Gabbay                for D3Hot
117c2164773SOded Gabbay
118c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/userptr
119c2164773SOded GabbayDate:           Jan 2019
120c2164773SOded GabbayKernelVersion:  5.1
121c2164773SOded GabbayContact:        oded.gabbay@gmail.com
122c2164773SOded GabbayDescription:    Displays a list with information about the currently user
123c2164773SOded Gabbay                pointers (user virtual addresses) that are pinned and mapped
124c2164773SOded Gabbay                to DMA addresses
125c2164773SOded Gabbay
126c2164773SOded GabbayWhat:           /sys/kernel/debug/habanalabs/hl<n>/vm
127c2164773SOded GabbayDate:           Jan 2019
128c2164773SOded GabbayKernelVersion:  5.1
129c2164773SOded GabbayContact:        oded.gabbay@gmail.com
130c2164773SOded GabbayDescription:    Displays a list with information about all the active virtual
131c2164773SOded Gabbay                address mappings per ASID
132