diff options
| author | Michal Wajdeczko <[email protected]> | 2024-05-07 18:57:57 +0200 |
|---|---|---|
| committer | Michal Wajdeczko <[email protected]> | 2024-05-15 22:31:52 +0200 |
| commit | 75fe5f347167aceb8b78b9f6ad0ba01a38a34e16 (patch) | |
| tree | 31e93613dcfad135afb68ae82e4ebd500e0922df /tools/perf/scripts/python/stat-cpi.py | |
| parent | c8ff26b82c5b0f589516edcf7628704e3a6bc426 (diff) | |
drm/xe/pf: Don't advertise support to enable VFs if not ready
Even if we have not enabled SR-IOV support using the platform
specific has_sriov flag, the hardware may still report SR-IOV
capability and the PCI layer may wrongly advertise driver support
to enable VFs. Explicitly reset the number of supported VFs to
zero to avoid confusion.
Applications may read the /sys/bus/pci/devices/.../sriov_totalvfs
prior to enabling VFs using the sriov_numvfs to check if such an
operation is possible.
Signed-off-by: Michal Wajdeczko <[email protected]>
Reviewed-by: Piotr Piórkowski <[email protected]>
Acked-by: Lucas De Marchi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions