diff options
author | Mun Chun Yep <[email protected]> | 2024-02-02 18:53:20 +0800 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2024-02-09 12:57:18 +0800 |
commit | 4469f9b2346834085fe4478ee1a851ee1de8ccb2 (patch) | |
tree | 800c90eaaa3cd7fdf440c098b785e5e225b98d73 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | ec26f8e6c784ae391e69b19f4738d7196ed7794d (diff) |
crypto: qat - re-enable sriov after pf reset
When a Physical Function (PF) is reset, SR-IOV gets disabled, making the
associated Virtual Functions (VFs) unavailable. Even after reset and
using pci_restore_state, VFs remain uncreated because the numvfs still
at 0. Therefore, it's necessary to reconfigure SR-IOV to re-enable VFs.
This commit introduces the ADF_SRIOV_ENABLED configuration flag to cache
the SR-IOV enablement state. SR-IOV is only re-enabled if it was
previously configured.
This commit also introduces a dedicated workqueue without
`WQ_MEM_RECLAIM` flag for enabling SR-IOV during Heartbeat and CPM error
resets, preventing workqueue flushing warning.
This patch is based on earlier work done by Shashank Gupta.
Signed-off-by: Mun Chun Yep <[email protected]>
Reviewed-by: Ahsan Atta <[email protected]>
Reviewed-by: Markas Rapoportas <[email protected]>
Reviewed-by: Giovanni Cabiddu <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions