| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | Devlink configuration parameters |
| 2 | ================================ |
| 3 | Following is the list of configuration parameters via devlink interface. |
| 4 | Each parameter can be generic or driver specific and are device level |
| 5 | parameters. |
| 6 | |
| 7 | Note that the driver-specific files should contain the generic params |
| 8 | they support to, with supported config modes. |
| 9 | |
| 10 | Each parameter can be set in different configuration modes: |
| 11 | runtime - set while driver is running, no reset required. |
| 12 | driverinit - applied while driver initializes, requires restart |
| 13 | driver by devlink reload command. |
| 14 | permanent - written to device's non-volatile memory, hard reset |
| 15 | required. |
| 16 | |
| 17 | Following is the list of parameters: |
| 18 | ==================================== |
| 19 | enable_sriov [DEVICE, GENERIC] |
| 20 | Enable Single Root I/O Virtualisation (SRIOV) in |
| 21 | the device. |
| 22 | Type: Boolean |
| 23 | |
| 24 | ignore_ari [DEVICE, GENERIC] |
| 25 | Ignore Alternative Routing-ID Interpretation (ARI) |
| 26 | capability. If enabled, adapter will ignore ARI |
| 27 | capability even when platforms has the support |
| 28 | enabled and creates same number of partitions when |
| 29 | platform does not support ARI. |
| 30 | Type: Boolean |
| 31 | |
| 32 | msix_vec_per_pf_max [DEVICE, GENERIC] |
| 33 | Provides the maximum number of MSIX interrupts that |
| 34 | a device can create. Value is same across all |
| 35 | physical functions (PFs) in the device. |
| 36 | Type: u32 |
| 37 | |
| 38 | msix_vec_per_pf_min [DEVICE, GENERIC] |
| 39 | Provides the minimum number of MSIX interrupts required |
| 40 | for the device initialization. Value is same across all |
| 41 | physical functions (PFs) in the device. |
| 42 | Type: u32 |
| 43 | |
| 44 | fw_load_policy [DEVICE, GENERIC] |
| 45 | Controls the device's firmware loading policy. |
| 46 | Valid values: |
| 47 | * DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER (0) |
| 48 | Load firmware version preferred by the driver. |
| 49 | * DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH (1) |
| 50 | Load firmware currently stored in flash. |
| 51 | * DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK (2) |
| 52 | Load firmware currently available on host's disk. |
| 53 | Type: u8 |
| 54 | |
| 55 | reset_dev_on_drv_probe [DEVICE, GENERIC] |
| 56 | Controls the device's reset policy on driver probe. |
| 57 | Valid values: |
| 58 | * DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN (0) |
| 59 | Unknown or invalid value. |
| 60 | * DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS (1) |
| 61 | Always reset device on driver probe. |
| 62 | * DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER (2) |
| 63 | Never reset device on driver probe. |
| 64 | * DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK (3) |
| 65 | Reset only if device firmware can be found in the |
| 66 | filesystem. |
| 67 | Type: u8 |