1 What: /sys/kernel/debug/habanalabs/hl<n>/addr
4 Contact: oded.gabbay@gmail.com
5 Description: Sets the device address to be used for read or write through
6 PCI bar, or the device VA of a host mapped memory to be read or
7 written directly from the host. The latter option is allowed
8 only when the IOMMU is disabled.
9 The acceptable value is a string that starts with "0x"
11 What: /sys/kernel/debug/habanalabs/hl<n>/command_buffers
14 Contact: oded.gabbay@gmail.com
15 Description: Displays a list with information about the currently allocated
18 What: /sys/kernel/debug/habanalabs/hl<n>/command_submission
21 Contact: oded.gabbay@gmail.com
22 Description: Displays a list with information about the currently active
25 What: /sys/kernel/debug/habanalabs/hl<n>/command_submission_jobs
28 Contact: oded.gabbay@gmail.com
29 Description: Displays a list with detailed information about each JOB (CB) of
30 each active command submission
32 What: /sys/kernel/debug/habanalabs/hl<n>/data32
35 Contact: oded.gabbay@gmail.com
36 Description: Allows the root user to read or write directly through the
37 device's PCI bar. Writing to this file generates a write
38 transaction while reading from the file generates a read
39 transaction. This custom interface is needed (instead of using
40 the generic Linux user-space PCI mapping) because the DDR bar
41 is very small compared to the DDR memory and only the driver can
42 move the bar before and after the transaction.
43 If the IOMMU is disabled, it also allows the root user to read
44 or write from the host a device VA of a host mapped memory
46 What: /sys/kernel/debug/habanalabs/hl<n>/device
49 Contact: oded.gabbay@gmail.com
50 Description: Enables the root user to set the device to specific state.
51 Valid values are "disable", "enable", "suspend", "resume".
52 User can read this property to see the valid values
54 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_addr
57 Contact: oded.gabbay@gmail.com
58 Description: Sets I2C device address for I2C transaction that is generated
61 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_bus
64 Contact: oded.gabbay@gmail.com
65 Description: Sets I2C bus address for I2C transaction that is generated by
68 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_data
71 Contact: oded.gabbay@gmail.com
72 Description: Triggers an I2C transaction that is generated by the device's
73 CPU. Writing to this file generates a write transaction while
74 reading from the file generates a read transcation
76 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_reg
79 Contact: oded.gabbay@gmail.com
80 Description: Sets I2C register id for I2C transaction that is generated by
83 What: /sys/kernel/debug/habanalabs/hl<n>/led0
86 Contact: oded.gabbay@gmail.com
87 Description: Sets the state of the first S/W led on the device
89 What: /sys/kernel/debug/habanalabs/hl<n>/led1
92 Contact: oded.gabbay@gmail.com
93 Description: Sets the state of the second S/W led on the device
95 What: /sys/kernel/debug/habanalabs/hl<n>/led2
98 Contact: oded.gabbay@gmail.com
99 Description: Sets the state of the third S/W led on the device
101 What: /sys/kernel/debug/habanalabs/hl<n>/mmu
104 Contact: oded.gabbay@gmail.com
105 Description: Displays the hop values and physical address for a given ASID
106 and virtual address. The user should write the ASID and VA into
107 the file and then read the file to get the result.
108 e.g. to display info about VA 0x1000 for ASID 1 you need to do:
109 echo "1 0x1000" > /sys/kernel/debug/habanalabs/hl0/mmu
111 What: /sys/kernel/debug/habanalabs/hl<n>/set_power_state
114 Contact: oded.gabbay@gmail.com
115 Description: Sets the PCI power state. Valid values are "1" for D0 and "2"
118 What: /sys/kernel/debug/habanalabs/hl<n>/userptr
121 Contact: oded.gabbay@gmail.com
122 Description: Displays a list with information about the currently user
123 pointers (user virtual addresses) that are pinned and mapped
126 What: /sys/kernel/debug/habanalabs/hl<n>/vm
129 Contact: oded.gabbay@gmail.com
130 Description: Displays a list with information about all the active virtual
131 address mappings per ASID