1 What: /sys/kernel/debug/accel/<paren !! 1 What: /sys/kernel/debug/habanalabs/hl<n>/addr 2 Date: Jan 2019 2 Date: Jan 2019 3 KernelVersion: 5.1 3 KernelVersion: 5.1 4 Contact: ogabbay@kernel.org 4 Contact: ogabbay@kernel.org 5 Description: Sets the device address to be 5 Description: Sets the device address to be used for read or write through 6 PCI bar, or the device VA of a 6 PCI bar, or the device VA of a host mapped memory to be read or 7 written directly from the host 7 written directly from the host. The latter option is allowed 8 only when the IOMMU is disable 8 only when the IOMMU is disabled. 9 The acceptable value is a stri 9 The acceptable value is a string that starts with "0x" 10 10 11 What: /sys/kernel/debug/accel/<paren !! 11 What: /sys/kernel/debug/habanalabs/hl<n>/clk_gate 12 Date: May 2020 12 Date: May 2020 13 KernelVersion: 5.8 13 KernelVersion: 5.8 14 Contact: ogabbay@kernel.org 14 Contact: ogabbay@kernel.org 15 Description: This setting is now deprecated 15 Description: This setting is now deprecated as clock gating is handled solely by the f/w 16 16 17 What: /sys/kernel/debug/accel/<paren !! 17 What: /sys/kernel/debug/habanalabs/hl<n>/command_buffers 18 Date: Jan 2019 18 Date: Jan 2019 19 KernelVersion: 5.1 19 KernelVersion: 5.1 20 Contact: ogabbay@kernel.org 20 Contact: ogabbay@kernel.org 21 Description: Displays a list with informati 21 Description: Displays a list with information about the currently allocated 22 command buffers 22 command buffers 23 23 24 What: /sys/kernel/debug/accel/<paren !! 24 What: /sys/kernel/debug/habanalabs/hl<n>/command_submission 25 Date: Jan 2019 25 Date: Jan 2019 26 KernelVersion: 5.1 26 KernelVersion: 5.1 27 Contact: ogabbay@kernel.org 27 Contact: ogabbay@kernel.org 28 Description: Displays a list with informati 28 Description: Displays a list with information about the currently active 29 command submissions 29 command submissions 30 30 31 What: /sys/kernel/debug/accel/<paren !! 31 What: /sys/kernel/debug/habanalabs/hl<n>/command_submission_jobs 32 Date: Jan 2019 32 Date: Jan 2019 33 KernelVersion: 5.1 33 KernelVersion: 5.1 34 Contact: ogabbay@kernel.org 34 Contact: ogabbay@kernel.org 35 Description: Displays a list with detailed 35 Description: Displays a list with detailed information about each JOB (CB) of 36 each active command submission 36 each active command submission 37 37 38 What: /sys/kernel/debug/accel/<paren !! 38 What: /sys/kernel/debug/habanalabs/hl<n>/data32 39 Date: Jan 2019 39 Date: Jan 2019 40 KernelVersion: 5.1 40 KernelVersion: 5.1 41 Contact: ogabbay@kernel.org 41 Contact: ogabbay@kernel.org 42 Description: Allows the root user to read o 42 Description: Allows the root user to read or write directly through the 43 device's PCI bar. Writing to t 43 device's PCI bar. Writing to this file generates a write 44 transaction while reading from 44 transaction while reading from the file generates a read 45 transaction. This custom inter 45 transaction. This custom interface is needed (instead of using 46 the generic Linux user-space P 46 the generic Linux user-space PCI mapping) because the DDR bar 47 is very small compared to the 47 is very small compared to the DDR memory and only the driver can 48 move the bar before and after 48 move the bar before and after the transaction. 49 49 50 If the IOMMU is disabled, it a 50 If the IOMMU is disabled, it also allows the root user to read 51 or write from the host a devic 51 or write from the host a device VA of a host mapped memory 52 52 53 What: /sys/kernel/debug/accel/<paren !! 53 What: /sys/kernel/debug/habanalabs/hl<n>/data64 54 Date: Jan 2020 54 Date: Jan 2020 55 KernelVersion: 5.6 55 KernelVersion: 5.6 56 Contact: ogabbay@kernel.org 56 Contact: ogabbay@kernel.org 57 Description: Allows the root user to read o 57 Description: Allows the root user to read or write 64 bit data directly 58 through the device's PCI bar. 58 through the device's PCI bar. Writing to this file generates a 59 write transaction while readin 59 write transaction while reading from the file generates a read 60 transaction. This custom inter 60 transaction. This custom interface is needed (instead of using 61 the generic Linux user-space P 61 the generic Linux user-space PCI mapping) because the DDR bar 62 is very small compared to the 62 is very small compared to the DDR memory and only the driver can 63 move the bar before and after 63 move the bar before and after the transaction. 64 64 65 If the IOMMU is disabled, it a 65 If the IOMMU is disabled, it also allows the root user to read 66 or write from the host a devic 66 or write from the host a device VA of a host mapped memory 67 67 68 What: /sys/kernel/debug/accel/<paren !! 68 What: /sys/kernel/debug/habanalabs/hl<n>/data_dma 69 Date: Apr 2021 69 Date: Apr 2021 70 KernelVersion: 5.13 70 KernelVersion: 5.13 71 Contact: ogabbay@kernel.org 71 Contact: ogabbay@kernel.org 72 Description: Allows the root user to read f 72 Description: Allows the root user to read from the device's internal 73 memory (DRAM/SRAM) through a D 73 memory (DRAM/SRAM) through a DMA engine. 74 This property is a binary blob 74 This property is a binary blob that contains the result of the 75 DMA transfer. 75 DMA transfer. 76 This custom interface is neede 76 This custom interface is needed (instead of using the generic 77 Linux user-space PCI mapping) 77 Linux user-space PCI mapping) because the amount of internal 78 memory is huge (>32GB) and rea 78 memory is huge (>32GB) and reading it via the PCI bar will take 79 a very long time. 79 a very long time. 80 This interface doesn't support 80 This interface doesn't support concurrency in the same device. 81 In GAUDI and GOYA, this action 81 In GAUDI and GOYA, this action can cause undefined behavior 82 in case it is done while the d !! 82 in case the it is done while the device is executing user 83 workloads. 83 workloads. 84 Only supported on GAUDI at thi 84 Only supported on GAUDI at this stage. 85 85 86 What: /sys/kernel/debug/accel/<paren !! 86 What: /sys/kernel/debug/habanalabs/hl<n>/device 87 Date: Jan 2019 87 Date: Jan 2019 88 KernelVersion: 5.1 88 KernelVersion: 5.1 89 Contact: ogabbay@kernel.org 89 Contact: ogabbay@kernel.org 90 Description: Enables the root user to set t 90 Description: Enables the root user to set the device to specific state. 91 Valid values are "disable", "e 91 Valid values are "disable", "enable", "suspend", "resume". 92 User can read this property to 92 User can read this property to see the valid values 93 93 94 What: /sys/kernel/debug/accel/<paren !! 94 What: /sys/kernel/debug/habanalabs/hl<n>/dma_size 95 Date: Oct 2022 << 96 KernelVersion: 6.2 << 97 Contact: ttayar@habana.ai << 98 Description: The watchdog timeout value in << 99 certain error cases, after whi << 100 << 101 What: /sys/kernel/debug/accel/<paren << 102 Date: Apr 2021 95 Date: Apr 2021 103 KernelVersion: 5.13 96 KernelVersion: 5.13 104 Contact: ogabbay@kernel.org 97 Contact: ogabbay@kernel.org 105 Description: Specify the size of the DMA tr 98 Description: Specify the size of the DMA transaction when using DMA to read 106 from the device's internal mem 99 from the device's internal memory. The value can not be larger 107 than 128MB. Writing to this va 100 than 128MB. Writing to this value initiates the DMA transfer. 108 When the write is finished, th 101 When the write is finished, the user can read the "data_dma" 109 blob 102 blob 110 103 111 What: /sys/kernel/debug/accel/<paren !! 104 What: /sys/kernel/debug/habanalabs/hl<n>/dump_razwi_events 112 Date: Aug 2022 105 Date: Aug 2022 113 KernelVersion: 5.20 106 KernelVersion: 5.20 114 Contact: fkassabri@habana.ai 107 Contact: fkassabri@habana.ai 115 Description: Dumps all razwi events to dmes 108 Description: Dumps all razwi events to dmesg if exist. 116 After reading the status regis 109 After reading the status register of an existing event 117 the routine will clear the sta 110 the routine will clear the status register. 118 Usage: cat dump_razwi_events 111 Usage: cat dump_razwi_events 119 112 120 What: /sys/kernel/debug/accel/<paren !! 113 What: /sys/kernel/debug/habanalabs/hl<n>/dump_security_violations 121 Date: Jan 2021 114 Date: Jan 2021 122 KernelVersion: 5.12 115 KernelVersion: 5.12 123 Contact: ogabbay@kernel.org 116 Contact: ogabbay@kernel.org 124 Description: Dumps all security violations 117 Description: Dumps all security violations to dmesg. This will also ack 125 all security violations meanin 118 all security violations meanings those violations will not be 126 dumped next time user calls th 119 dumped next time user calls this API 127 120 128 What: /sys/kernel/debug/accel/<paren !! 121 What: /sys/kernel/debug/habanalabs/hl<n>/engines 129 Date: Jul 2019 122 Date: Jul 2019 130 KernelVersion: 5.3 123 KernelVersion: 5.3 131 Contact: ogabbay@kernel.org 124 Contact: ogabbay@kernel.org 132 Description: Displays the status registers 125 Description: Displays the status registers values of the device engines and 133 their derived idle status 126 their derived idle status 134 127 135 What: /sys/kernel/debug/accel/<paren !! 128 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_addr 136 Date: Jan 2019 129 Date: Jan 2019 137 KernelVersion: 5.1 130 KernelVersion: 5.1 138 Contact: ogabbay@kernel.org 131 Contact: ogabbay@kernel.org 139 Description: Sets I2C device address for I2 132 Description: Sets I2C device address for I2C transaction that is generated 140 by the device's CPU, Not avail 133 by the device's CPU, Not available when device is loaded with secured 141 firmware 134 firmware 142 135 143 What: /sys/kernel/debug/accel/<paren !! 136 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_bus 144 Date: Jan 2019 137 Date: Jan 2019 145 KernelVersion: 5.1 138 KernelVersion: 5.1 146 Contact: ogabbay@kernel.org 139 Contact: ogabbay@kernel.org 147 Description: Sets I2C bus address for I2C t 140 Description: Sets I2C bus address for I2C transaction that is generated by 148 the device's CPU, Not availabl 141 the device's CPU, Not available when device is loaded with secured 149 firmware 142 firmware 150 143 151 What: /sys/kernel/debug/accel/<paren !! 144 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_data 152 Date: Jan 2019 145 Date: Jan 2019 153 KernelVersion: 5.1 146 KernelVersion: 5.1 154 Contact: ogabbay@kernel.org 147 Contact: ogabbay@kernel.org 155 Description: Triggers an I2C transaction th 148 Description: Triggers an I2C transaction that is generated by the device's 156 CPU. Writing to this file gene 149 CPU. Writing to this file generates a write transaction while 157 reading from the file generate 150 reading from the file generates a read transaction, Not available 158 when device is loaded with sec 151 when device is loaded with secured firmware 159 152 160 What: /sys/kernel/debug/accel/<paren !! 153 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_len 161 Date: Dec 2021 154 Date: Dec 2021 162 KernelVersion: 5.17 155 KernelVersion: 5.17 163 Contact: obitton@habana.ai 156 Contact: obitton@habana.ai 164 Description: Sets I2C length in bytes for I 157 Description: Sets I2C length in bytes for I2C transaction that is generated by 165 the device's CPU, Not availabl 158 the device's CPU, Not available when device is loaded with secured 166 firmware 159 firmware 167 160 168 What: /sys/kernel/debug/accel/<paren !! 161 What: /sys/kernel/debug/habanalabs/hl<n>/i2c_reg 169 Date: Jan 2019 162 Date: Jan 2019 170 KernelVersion: 5.1 163 KernelVersion: 5.1 171 Contact: ogabbay@kernel.org 164 Contact: ogabbay@kernel.org 172 Description: Sets I2C register id for I2C t 165 Description: Sets I2C register id for I2C transaction that is generated by 173 the device's CPU, Not availabl 166 the device's CPU, Not available when device is loaded with secured 174 firmware 167 firmware 175 168 176 What: /sys/kernel/debug/accel/<paren !! 169 What: /sys/kernel/debug/habanalabs/hl<n>/led0 177 Date: Jan 2019 170 Date: Jan 2019 178 KernelVersion: 5.1 171 KernelVersion: 5.1 179 Contact: ogabbay@kernel.org 172 Contact: ogabbay@kernel.org 180 Description: Sets the state of the first S/ 173 Description: Sets the state of the first S/W led on the device, Not available 181 when device is loaded with sec 174 when device is loaded with secured firmware 182 175 183 What: /sys/kernel/debug/accel/<paren !! 176 What: /sys/kernel/debug/habanalabs/hl<n>/led1 184 Date: Jan 2019 177 Date: Jan 2019 185 KernelVersion: 5.1 178 KernelVersion: 5.1 186 Contact: ogabbay@kernel.org 179 Contact: ogabbay@kernel.org 187 Description: Sets the state of the second S 180 Description: Sets the state of the second S/W led on the device, Not available 188 when device is loaded with sec 181 when device is loaded with secured firmware 189 182 190 What: /sys/kernel/debug/accel/<paren !! 183 What: /sys/kernel/debug/habanalabs/hl<n>/led2 191 Date: Jan 2019 184 Date: Jan 2019 192 KernelVersion: 5.1 185 KernelVersion: 5.1 193 Contact: ogabbay@kernel.org 186 Contact: ogabbay@kernel.org 194 Description: Sets the state of the third S/ 187 Description: Sets the state of the third S/W led on the device, Not available 195 when device is loaded with sec 188 when device is loaded with secured firmware 196 189 197 What: /sys/kernel/debug/accel/<paren !! 190 What: /sys/kernel/debug/habanalabs/hl<n>/memory_scrub 198 Date: May 2022 191 Date: May 2022 199 KernelVersion: 5.19 192 KernelVersion: 5.19 200 Contact: dhirschfeld@habana.ai 193 Contact: dhirschfeld@habana.ai 201 Description: Allows the root user to scrub 194 Description: Allows the root user to scrub the dram memory. The scrubbing 202 value can be set using the deb 195 value can be set using the debugfs file memory_scrub_val. 203 196 204 What: /sys/kernel/debug/accel/<paren !! 197 What: /sys/kernel/debug/habanalabs/hl<n>/memory_scrub_val 205 Date: May 2022 198 Date: May 2022 206 KernelVersion: 5.19 199 KernelVersion: 5.19 207 Contact: dhirschfeld@habana.ai 200 Contact: dhirschfeld@habana.ai 208 Description: The value to which the dram wi 201 Description: The value to which the dram will be set to when the user 209 scrubs the dram using 'memory_ 202 scrubs the dram using 'memory_scrub' debugfs file and 210 the scrubbing value when using 203 the scrubbing value when using module param 'memory_scrub' 211 204 212 What: /sys/kernel/debug/accel/<paren !! 205 What: /sys/kernel/debug/habanalabs/hl<n>/mmu 213 Date: Jan 2019 206 Date: Jan 2019 214 KernelVersion: 5.1 207 KernelVersion: 5.1 215 Contact: ogabbay@kernel.org 208 Contact: ogabbay@kernel.org 216 Description: Displays the hop values and ph 209 Description: Displays the hop values and physical address for a given ASID 217 and virtual address. The user 210 and virtual address. The user should write the ASID and VA into 218 the file and then read the fil 211 the file and then read the file to get the result. 219 e.g. to display info about VA 212 e.g. to display info about VA 0x1000 for ASID 1 you need to do: 220 echo "1 0x1000" > /sys/kernel/ !! 213 echo "1 0x1000" > /sys/kernel/debug/habanalabs/hl0/mmu 221 214 222 What: /sys/kernel/debug/accel/<paren !! 215 What: /sys/kernel/debug/habanalabs/hl<n>/mmu_error 223 Date: Mar 2021 216 Date: Mar 2021 224 KernelVersion: 5.12 217 KernelVersion: 5.12 225 Contact: fkassabri@habana.ai 218 Contact: fkassabri@habana.ai 226 Description: Check and display page fault o 219 Description: Check and display page fault or access violation mmu errors for 227 all MMUs specified in mmu_cap_ 220 all MMUs specified in mmu_cap_mask. 228 e.g. to display error info for 221 e.g. to display error info for MMU hw cap bit 9, you need to do: 229 echo "0x200" > /sys/kernel/deb !! 222 echo "0x200" > /sys/kernel/debug/habanalabs/hl0/mmu_error 230 cat /sys/kernel/debug/accel/<p !! 223 cat /sys/kernel/debug/habanalabs/hl0/mmu_error 231 224 232 What: /sys/kernel/debug/accel/<paren !! 225 What: /sys/kernel/debug/habanalabs/hl<n>/monitor_dump 233 Date: Mar 2022 226 Date: Mar 2022 234 KernelVersion: 5.19 227 KernelVersion: 5.19 235 Contact: osharabi@habana.ai 228 Contact: osharabi@habana.ai 236 Description: Allows the root user to dump m 229 Description: Allows the root user to dump monitors status from the device's 237 protected config space. 230 protected config space. 238 This property is a binary blob 231 This property is a binary blob that contains the result of the 239 monitors registers dump. 232 monitors registers dump. 240 This custom interface is neede 233 This custom interface is needed (instead of using the generic 241 Linux user-space PCI mapping) 234 Linux user-space PCI mapping) because this space is protected 242 and cannot be accessed using P 235 and cannot be accessed using PCI read. 243 This interface doesn't support 236 This interface doesn't support concurrency in the same device. 244 Only supported on GAUDI. 237 Only supported on GAUDI. 245 238 246 What: /sys/kernel/debug/accel/<paren !! 239 What: /sys/kernel/debug/habanalabs/hl<n>/monitor_dump_trig 247 Date: Mar 2022 240 Date: Mar 2022 248 KernelVersion: 5.19 241 KernelVersion: 5.19 249 Contact: osharabi@habana.ai 242 Contact: osharabi@habana.ai 250 Description: Triggers dump of monitor data. 243 Description: Triggers dump of monitor data. The value to trigger the operation 251 must be 1. Triggering the moni 244 must be 1. Triggering the monitor dump operation initiates dump of 252 current registers values of al 245 current registers values of all monitors. 253 When the write is finished, th 246 When the write is finished, the user can read the "monitor_dump" 254 blob 247 blob 255 248 256 What: /sys/kernel/debug/accel/<paren !! 249 What: /sys/kernel/debug/habanalabs/hl<n>/set_power_state 257 Date: Feb 2024 << 258 KernelVersion: 6.11 << 259 Contact: trisin@habana.ai << 260 Description: Exposes the device's server ty << 261 << 262 What: /sys/kernel/debug/accel/<paren << 263 Date: Jan 2019 250 Date: Jan 2019 264 KernelVersion: 5.1 251 KernelVersion: 5.1 265 Contact: ogabbay@kernel.org 252 Contact: ogabbay@kernel.org 266 Description: Sets the PCI power state. Vali 253 Description: Sets the PCI power state. Valid values are "1" for D0 and "2" 267 for D3Hot 254 for D3Hot 268 255 269 What: /sys/kernel/debug/accel/<paren !! 256 What: /sys/kernel/debug/habanalabs/hl<n>/skip_reset_on_timeout 270 Date: Jun 2021 257 Date: Jun 2021 271 KernelVersion: 5.13 258 KernelVersion: 5.13 272 Contact: ynudelman@habana.ai 259 Contact: ynudelman@habana.ai 273 Description: Sets the skip reset on timeout 260 Description: Sets the skip reset on timeout option for the device. Value of 274 "0" means device will be reset 261 "0" means device will be reset in case some CS has timed out, 275 otherwise it will not be reset 262 otherwise it will not be reset. 276 263 277 What: /sys/kernel/debug/accel/<paren !! 264 What: /sys/kernel/debug/habanalabs/hl<n>/state_dump 278 Date: Oct 2021 265 Date: Oct 2021 279 KernelVersion: 5.15 266 KernelVersion: 5.15 280 Contact: ynudelman@habana.ai 267 Contact: ynudelman@habana.ai 281 Description: Gets the state dump occurring 268 Description: Gets the state dump occurring on a CS timeout or failure. 282 State dump is used for debug a 269 State dump is used for debug and is created each time in case of 283 a problem in a CS execution, b 270 a problem in a CS execution, before reset. 284 Reading from the node returns 271 Reading from the node returns the newest state dump available. 285 Writing an integer X discards 272 Writing an integer X discards X state dumps, so that the 286 next read would return X+1-st 273 next read would return X+1-st newest state dump. 287 274 288 What: /sys/kernel/debug/accel/<paren !! 275 What: /sys/kernel/debug/habanalabs/hl<n>/stop_on_err 289 Date: Mar 2020 276 Date: Mar 2020 290 KernelVersion: 5.6 277 KernelVersion: 5.6 291 Contact: ogabbay@kernel.org 278 Contact: ogabbay@kernel.org 292 Description: Sets the stop-on_error option 279 Description: Sets the stop-on_error option for the device engines. Value of 293 "0" is for disable, otherwise 280 "0" is for disable, otherwise enable. 294 Relevant only for GOYA and GAU 281 Relevant only for GOYA and GAUDI. 295 282 296 What: /sys/kernel/debug/accel/<paren !! 283 What: /sys/kernel/debug/habanalabs/hl<n>/timeout_locked 297 Date: Sep 2021 284 Date: Sep 2021 298 KernelVersion: 5.16 285 KernelVersion: 5.16 299 Contact: obitton@habana.ai 286 Contact: obitton@habana.ai 300 Description: Sets the command submission ti 287 Description: Sets the command submission timeout value in seconds. 301 288 302 What: /sys/kernel/debug/accel/<paren !! 289 What: /sys/kernel/debug/habanalabs/hl<n>/userptr 303 Date: Jan 2019 290 Date: Jan 2019 304 KernelVersion: 5.1 291 KernelVersion: 5.1 305 Contact: ogabbay@kernel.org 292 Contact: ogabbay@kernel.org 306 Description: Displays a list with informati !! 293 Description: Displays a list with information about the currently user 307 pointers (user virtual address 294 pointers (user virtual addresses) that are pinned and mapped 308 to DMA addresses 295 to DMA addresses 309 296 310 What: /sys/kernel/debug/accel/<paren !! 297 What: /sys/kernel/debug/habanalabs/hl<n>/userptr_lookup 311 Date: Oct 2021 298 Date: Oct 2021 312 KernelVersion: 5.15 299 KernelVersion: 5.15 313 Contact: ogabbay@kernel.org 300 Contact: ogabbay@kernel.org 314 Description: Allows to search for specific 301 Description: Allows to search for specific user pointers (user virtual 315 addresses) that are pinned and 302 addresses) that are pinned and mapped to DMA addresses, and see 316 their resolution to the specif 303 their resolution to the specific dma address. 317 304 318 What: /sys/kernel/debug/accel/<paren !! 305 What: /sys/kernel/debug/habanalabs/hl<n>/vm 319 Date: Jan 2019 306 Date: Jan 2019 320 KernelVersion: 5.1 307 KernelVersion: 5.1 321 Contact: ogabbay@kernel.org 308 Contact: ogabbay@kernel.org 322 Description: Displays a list with informati 309 Description: Displays a list with information about all the active virtual 323 address mappings per ASID and 310 address mappings per ASID and all user mappings of HW blocks
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.