blob: ddba3e9b55b1fcceb5972e347601f31208656eed [file] [log] [blame]
Vasundhara Volam9bff98b2018-10-04 11:13:51 +05301Devlink configuration parameters
2================================
3Following is the list of configuration parameters via devlink interface.
4Each parameter can be generic or driver specific and are device level
5parameters.
6
7Note that the driver-specific files should contain the generic params
8they support to, with supported config modes.
9
10Each 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
17Following is the list of parameters:
18====================================
19enable_sriov [DEVICE, GENERIC]
20 Enable Single Root I/O Virtualisation (SRIOV) in
21 the device.
22 Type: Boolean
23
24ignore_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
32msix_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
38msix_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
Shalom Toledo846e9802018-12-03 07:58:59 +000043
44fw_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.
Dirk van der Merwee019a3b2019-09-09 00:54:17 +010051 * DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK (2)
52 Load firmware currently available on host's disk.
Shalom Toledo846e9802018-12-03 07:58:59 +000053 Type: u8
Dirk van der Merwe5bbd21d2019-09-09 00:54:18 +010054
55reset_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