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 64a0ce776STomer Tayar PCI bar, or the device VA of a host mapped memory to be read or 74a0ce776STomer Tayar written directly from the host. The latter option is allowed 84a0ce776STomer Tayar only when the IOMMU is disabled. 94a0ce776STomer 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 394a0ce776STomer 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 424a0ce776STomer Tayar move the bar before and after the transaction. 434a0ce776STomer Tayar If the IOMMU is disabled, it also allows the root user to read 444a0ce776STomer 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 54*06deb86aSTomer TayarWhat: /sys/kernel/debug/habanalabs/hl<n>/engines 55*06deb86aSTomer TayarDate: Jul 2019 56*06deb86aSTomer TayarKernelVersion: 5.3 57*06deb86aSTomer TayarContact: oded.gabbay@gmail.com 58*06deb86aSTomer TayarDescription: Displays the status registers values of the device engines and 59*06deb86aSTomer Tayar their derived idle status 60*06deb86aSTomer Tayar 61c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/i2c_addr 62c2164773SOded GabbayDate: Jan 2019 63c2164773SOded GabbayKernelVersion: 5.1 64c2164773SOded GabbayContact: oded.gabbay@gmail.com 65c2164773SOded GabbayDescription: Sets I2C device address for I2C transaction that is generated 66c2164773SOded Gabbay by the device's CPU 67c2164773SOded Gabbay 68c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/i2c_bus 69c2164773SOded GabbayDate: Jan 2019 70c2164773SOded GabbayKernelVersion: 5.1 71c2164773SOded GabbayContact: oded.gabbay@gmail.com 72c2164773SOded GabbayDescription: Sets I2C bus address for I2C transaction that is generated by 73c2164773SOded Gabbay the device's CPU 74c2164773SOded Gabbay 75c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/i2c_data 76c2164773SOded GabbayDate: Jan 2019 77c2164773SOded GabbayKernelVersion: 5.1 78c2164773SOded GabbayContact: oded.gabbay@gmail.com 79c2164773SOded GabbayDescription: Triggers an I2C transaction that is generated by the device's 80c2164773SOded Gabbay CPU. Writing to this file generates a write transaction while 81c2164773SOded Gabbay reading from the file generates a read transcation 82c2164773SOded Gabbay 83c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/i2c_reg 84c2164773SOded GabbayDate: Jan 2019 85c2164773SOded GabbayKernelVersion: 5.1 86c2164773SOded GabbayContact: oded.gabbay@gmail.com 87c2164773SOded GabbayDescription: Sets I2C register id for I2C transaction that is generated by 88c2164773SOded Gabbay the device's CPU 89c2164773SOded Gabbay 90c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/led0 91c2164773SOded GabbayDate: Jan 2019 92c2164773SOded GabbayKernelVersion: 5.1 93c2164773SOded GabbayContact: oded.gabbay@gmail.com 94c2164773SOded GabbayDescription: Sets the state of the first S/W led on the device 95c2164773SOded Gabbay 96c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/led1 97c2164773SOded GabbayDate: Jan 2019 98c2164773SOded GabbayKernelVersion: 5.1 99c2164773SOded GabbayContact: oded.gabbay@gmail.com 100c2164773SOded GabbayDescription: Sets the state of the second S/W led on the device 101c2164773SOded Gabbay 102c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/led2 103c2164773SOded GabbayDate: Jan 2019 104c2164773SOded GabbayKernelVersion: 5.1 105c2164773SOded GabbayContact: oded.gabbay@gmail.com 106c2164773SOded GabbayDescription: Sets the state of the third S/W led on the device 107c2164773SOded Gabbay 108c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/mmu 109c2164773SOded GabbayDate: Jan 2019 110c2164773SOded GabbayKernelVersion: 5.1 111c2164773SOded GabbayContact: oded.gabbay@gmail.com 112c2164773SOded GabbayDescription: Displays the hop values and physical address for a given ASID 113c2164773SOded Gabbay and virtual address. The user should write the ASID and VA into 114c2164773SOded Gabbay the file and then read the file to get the result. 115c2164773SOded Gabbay e.g. to display info about VA 0x1000 for ASID 1 you need to do: 116c2164773SOded Gabbay echo "1 0x1000" > /sys/kernel/debug/habanalabs/hl0/mmu 117c2164773SOded Gabbay 118c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/set_power_state 119c2164773SOded GabbayDate: Jan 2019 120c2164773SOded GabbayKernelVersion: 5.1 121c2164773SOded GabbayContact: oded.gabbay@gmail.com 122c2164773SOded GabbayDescription: Sets the PCI power state. Valid values are "1" for D0 and "2" 123c2164773SOded Gabbay for D3Hot 124c2164773SOded Gabbay 125c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/userptr 126c2164773SOded GabbayDate: Jan 2019 127c2164773SOded GabbayKernelVersion: 5.1 128c2164773SOded GabbayContact: oded.gabbay@gmail.com 129c2164773SOded GabbayDescription: Displays a list with information about the currently user 130c2164773SOded Gabbay pointers (user virtual addresses) that are pinned and mapped 131c2164773SOded Gabbay to DMA addresses 132c2164773SOded Gabbay 133c2164773SOded GabbayWhat: /sys/kernel/debug/habanalabs/hl<n>/vm 134c2164773SOded GabbayDate: Jan 2019 135c2164773SOded GabbayKernelVersion: 5.1 136c2164773SOded GabbayContact: oded.gabbay@gmail.com 137c2164773SOded GabbayDescription: Displays a list with information about all the active virtual 138c2164773SOded Gabbay address mappings per ASID 139