mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:50:59 +07:00
5bbd21df5a
Add the 'reset_dev_on_drv_probe' devlink parameter, controlling the device reset policy on driver probe. This parameter is useful in conjunction with the existing 'fw_load_policy' parameter. Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
68 lines
2.4 KiB
Plaintext
68 lines
2.4 KiB
Plaintext
Devlink configuration parameters
|
|
================================
|
|
Following is the list of configuration parameters via devlink interface.
|
|
Each parameter can be generic or driver specific and are device level
|
|
parameters.
|
|
|
|
Note that the driver-specific files should contain the generic params
|
|
they support to, with supported config modes.
|
|
|
|
Each parameter can be set in different configuration modes:
|
|
runtime - set while driver is running, no reset required.
|
|
driverinit - applied while driver initializes, requires restart
|
|
driver by devlink reload command.
|
|
permanent - written to device's non-volatile memory, hard reset
|
|
required.
|
|
|
|
Following is the list of parameters:
|
|
====================================
|
|
enable_sriov [DEVICE, GENERIC]
|
|
Enable Single Root I/O Virtualisation (SRIOV) in
|
|
the device.
|
|
Type: Boolean
|
|
|
|
ignore_ari [DEVICE, GENERIC]
|
|
Ignore Alternative Routing-ID Interpretation (ARI)
|
|
capability. If enabled, adapter will ignore ARI
|
|
capability even when platforms has the support
|
|
enabled and creates same number of partitions when
|
|
platform does not support ARI.
|
|
Type: Boolean
|
|
|
|
msix_vec_per_pf_max [DEVICE, GENERIC]
|
|
Provides the maximum number of MSIX interrupts that
|
|
a device can create. Value is same across all
|
|
physical functions (PFs) in the device.
|
|
Type: u32
|
|
|
|
msix_vec_per_pf_min [DEVICE, GENERIC]
|
|
Provides the minimum number of MSIX interrupts required
|
|
for the device initialization. Value is same across all
|
|
physical functions (PFs) in the device.
|
|
Type: u32
|
|
|
|
fw_load_policy [DEVICE, GENERIC]
|
|
Controls the device's firmware loading policy.
|
|
Valid values:
|
|
* DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER (0)
|
|
Load firmware version preferred by the driver.
|
|
* DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH (1)
|
|
Load firmware currently stored in flash.
|
|
* DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK (2)
|
|
Load firmware currently available on host's disk.
|
|
Type: u8
|
|
|
|
reset_dev_on_drv_probe [DEVICE, GENERIC]
|
|
Controls the device's reset policy on driver probe.
|
|
Valid values:
|
|
* DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN (0)
|
|
Unknown or invalid value.
|
|
* DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS (1)
|
|
Always reset device on driver probe.
|
|
* DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER (2)
|
|
Never reset device on driver probe.
|
|
* DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK (3)
|
|
Reset only if device firmware can be found in the
|
|
filesystem.
|
|
Type: u8
|