accel/habanalabs: update sysfs-driver-habanalabs with the accel path

Replace "/sys/class/habanalabs/hl<n>/..." with
"/sys/class/accel/accel<n>/device/...".

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
Tomer Tayar 2023-03-23 14:50:00 +02:00 committed by Oded Gabbay
parent fe77368c0f
commit 13312360ef
1 changed files with 32 additions and 32 deletions

View File

@ -1,4 +1,4 @@
What: /sys/class/habanalabs/hl<n>/armcp_kernel_ver What: /sys/class/accel/accel<n>/device/armcp_kernel_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -6,7 +6,7 @@ Description: Version of the Linux kernel running on the device's CPU.
Will be DEPRECATED in Linux kernel version 5.10, and be Will be DEPRECATED in Linux kernel version 5.10, and be
replaced with cpucp_kernel_ver replaced with cpucp_kernel_ver
What: /sys/class/habanalabs/hl<n>/armcp_ver What: /sys/class/accel/accel<n>/device/armcp_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -14,7 +14,7 @@ Description: Version of the application running on the device's CPU
Will be DEPRECATED in Linux kernel version 5.10, and be Will be DEPRECATED in Linux kernel version 5.10, and be
replaced with cpucp_ver replaced with cpucp_ver
What: /sys/class/habanalabs/hl<n>/clk_max_freq_mhz What: /sys/class/accel/accel<n>/device/clk_max_freq_mhz
Date: Jun 2019 Date: Jun 2019
KernelVersion: 5.7 KernelVersion: 5.7
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -24,58 +24,58 @@ Description: Allows the user to set the maximum clock frequency, in MHz.
frequency value of the device clock. This property is valid frequency value of the device clock. This property is valid
only for the Gaudi ASIC family only for the Gaudi ASIC family
What: /sys/class/habanalabs/hl<n>/clk_cur_freq_mhz What: /sys/class/accel/accel<n>/device/clk_cur_freq_mhz
Date: Jun 2019 Date: Jun 2019
KernelVersion: 5.7 KernelVersion: 5.7
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays the current frequency, in MHz, of the device clock. Description: Displays the current frequency, in MHz, of the device clock.
This property is valid only for the Gaudi ASIC family This property is valid only for the Gaudi ASIC family
What: /sys/class/habanalabs/hl<n>/cpld_ver What: /sys/class/accel/accel<n>/device/cpld_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the Device's CPLD F/W Description: Version of the Device's CPLD F/W
What: /sys/class/habanalabs/hl<n>/cpucp_kernel_ver What: /sys/class/accel/accel<n>/device/cpucp_kernel_ver
Date: Oct 2020 Date: Oct 2020
KernelVersion: 5.10 KernelVersion: 5.10
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the Linux kernel running on the device's CPU Description: Version of the Linux kernel running on the device's CPU
What: /sys/class/habanalabs/hl<n>/cpucp_ver What: /sys/class/accel/accel<n>/device/cpucp_ver
Date: Oct 2020 Date: Oct 2020
KernelVersion: 5.10 KernelVersion: 5.10
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the application running on the device's CPU Description: Version of the application running on the device's CPU
What: /sys/class/habanalabs/hl<n>/device_type What: /sys/class/accel/accel<n>/device/device_type
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays the code name of the device according to its type. Description: Displays the code name of the device according to its type.
The supported values are: "GOYA" The supported values are: "GOYA"
What: /sys/class/habanalabs/hl<n>/eeprom What: /sys/class/accel/accel<n>/device/eeprom
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: A binary file attribute that contains the contents of the Description: A binary file attribute that contains the contents of the
on-board EEPROM on-board EEPROM
What: /sys/class/habanalabs/hl<n>/fuse_ver What: /sys/class/accel/accel<n>/device/fuse_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays the device's version from the eFuse Description: Displays the device's version from the eFuse
What: /sys/class/habanalabs/hl<n>/fw_os_ver What: /sys/class/accel/accel<n>/device/fw_os_ver
Date: Dec 2021 Date: Dec 2021
KernelVersion: 5.18 KernelVersion: 5.18
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the firmware OS running on the device's CPU Description: Version of the firmware OS running on the device's CPU
What: /sys/class/habanalabs/hl<n>/hard_reset What: /sys/class/accel/accel<n>/device/hard_reset
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -83,14 +83,14 @@ Description: Interface to trigger a hard-reset operation for the device.
Hard-reset will reset ALL internal components of the device Hard-reset will reset ALL internal components of the device
except for the PCI interface and the internal PLLs except for the PCI interface and the internal PLLs
What: /sys/class/habanalabs/hl<n>/hard_reset_cnt What: /sys/class/accel/accel<n>/device/hard_reset_cnt
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays how many times the device have undergone a hard-reset Description: Displays how many times the device have undergone a hard-reset
operation since the driver was loaded operation since the driver was loaded
What: /sys/class/habanalabs/hl<n>/high_pll What: /sys/class/accel/accel<n>/device/high_pll
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -98,7 +98,7 @@ Description: Allows the user to set the maximum clock frequency for MME, TPC
and IC when the power management profile is set to "automatic". and IC when the power management profile is set to "automatic".
This property is valid only for the Goya ASIC family This property is valid only for the Goya ASIC family
What: /sys/class/habanalabs/hl<n>/ic_clk What: /sys/class/accel/accel<n>/device/ic_clk
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -110,27 +110,27 @@ Description: Allows the user to set the maximum clock frequency, in Hz, of
frequency value of the IC. This property is valid only for the frequency value of the IC. This property is valid only for the
Goya ASIC family Goya ASIC family
What: /sys/class/habanalabs/hl<n>/ic_clk_curr What: /sys/class/accel/accel<n>/device/ic_clk_curr
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays the current clock frequency, in Hz, of the Interconnect Description: Displays the current clock frequency, in Hz, of the Interconnect
fabric. This property is valid only for the Goya ASIC family fabric. This property is valid only for the Goya ASIC family
What: /sys/class/habanalabs/hl<n>/infineon_ver What: /sys/class/accel/accel<n>/device/infineon_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the Device's power supply F/W code. Relevant only to GOYA and GAUDI Description: Version of the Device's power supply F/W code. Relevant only to GOYA and GAUDI
What: /sys/class/habanalabs/hl<n>/max_power What: /sys/class/accel/accel<n>/device/max_power
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Allows the user to set the maximum power consumption of the Description: Allows the user to set the maximum power consumption of the
device in milliwatts. device in milliwatts.
What: /sys/class/habanalabs/hl<n>/mme_clk What: /sys/class/accel/accel<n>/device/mme_clk
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -142,21 +142,21 @@ Description: Allows the user to set the maximum clock frequency, in Hz, of
frequency value of the MME. This property is valid only for the frequency value of the MME. This property is valid only for the
Goya ASIC family Goya ASIC family
What: /sys/class/habanalabs/hl<n>/mme_clk_curr What: /sys/class/accel/accel<n>/device/mme_clk_curr
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays the current clock frequency, in Hz, of the MME compute Description: Displays the current clock frequency, in Hz, of the MME compute
engine. This property is valid only for the Goya ASIC family engine. This property is valid only for the Goya ASIC family
What: /sys/class/habanalabs/hl<n>/pci_addr What: /sys/class/accel/accel<n>/device/pci_addr
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays the PCI address of the device. This is needed so the Description: Displays the PCI address of the device. This is needed so the
user would be able to open a device based on its PCI address user would be able to open a device based on its PCI address
What: /sys/class/habanalabs/hl<n>/pm_mng_profile What: /sys/class/accel/accel<n>/device/pm_mng_profile
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -170,19 +170,19 @@ Description: Power management profile. Values are "auto", "manual". In "auto"
ic_clk, mme_clk and tpc_clk. This property is valid only for ic_clk, mme_clk and tpc_clk. This property is valid only for
the Goya ASIC family the Goya ASIC family
What: /sys/class/habanalabs/hl<n>/preboot_btl_ver What: /sys/class/accel/accel<n>/device/preboot_btl_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the device's preboot F/W code Description: Version of the device's preboot F/W code
What: /sys/class/habanalabs/hl<n>/security_enabled What: /sys/class/accel/accel<n>/device/security_enabled
Date: Oct 2022 Date: Oct 2022
KernelVersion: 6.1 KernelVersion: 6.1
Contact: obitton@habana.ai Contact: obitton@habana.ai
Description: Displays the device's security status Description: Displays the device's security status
What: /sys/class/habanalabs/hl<n>/soft_reset What: /sys/class/accel/accel<n>/device/soft_reset
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -190,14 +190,14 @@ Description: Interface to trigger a soft-reset operation for the device.
Soft-reset will reset only the compute and DMA engines of the Soft-reset will reset only the compute and DMA engines of the
device device
What: /sys/class/habanalabs/hl<n>/soft_reset_cnt What: /sys/class/accel/accel<n>/device/soft_reset_cnt
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays how many times the device have undergone a soft-reset Description: Displays how many times the device have undergone a soft-reset
operation since the driver was loaded operation since the driver was loaded
What: /sys/class/habanalabs/hl<n>/status What: /sys/class/accel/accel<n>/device/status
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -215,13 +215,13 @@ Description: Status of the card:
a compute-reset which is executed after a device release a compute-reset which is executed after a device release
(relevant for Gaudi2 only). (relevant for Gaudi2 only).
What: /sys/class/habanalabs/hl<n>/thermal_ver What: /sys/class/accel/accel<n>/device/thermal_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the Device's thermal daemon Description: Version of the Device's thermal daemon
What: /sys/class/habanalabs/hl<n>/tpc_clk What: /sys/class/accel/accel<n>/device/tpc_clk
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
@ -233,20 +233,20 @@ Description: Allows the user to set the maximum clock frequency, in Hz, of
frequency value of the TPC. This property is valid only for frequency value of the TPC. This property is valid only for
Goya ASIC family Goya ASIC family
What: /sys/class/habanalabs/hl<n>/tpc_clk_curr What: /sys/class/accel/accel<n>/device/tpc_clk_curr
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Displays the current clock frequency, in Hz, of the TPC compute Description: Displays the current clock frequency, in Hz, of the TPC compute
engines. This property is valid only for the Goya ASIC family engines. This property is valid only for the Goya ASIC family
What: /sys/class/habanalabs/hl<n>/uboot_ver What: /sys/class/accel/accel<n>/device/uboot_ver
Date: Jan 2019 Date: Jan 2019
KernelVersion: 5.1 KernelVersion: 5.1
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org
Description: Version of the u-boot running on the device's CPU Description: Version of the u-boot running on the device's CPU
What: /sys/class/habanalabs/hl<n>/vrm_ver What: /sys/class/accel/accel<n>/device/vrm_ver
Date: Jan 2022 Date: Jan 2022
KernelVersion: 5.17 KernelVersion: 5.17
Contact: ogabbay@kernel.org Contact: ogabbay@kernel.org