[PATCH v3 0/2] PCI/IOV: sriov_numvfs bug fixes

2024-02-14 Thread Jim Harris
those issues. --- v1 => v2: * No code changes * Updated commit messages per feedback from Bjorn * Added Leon's Reviewed-by tags * Moved bulk of the v1 cover letter to the revert patch commit message where it belonged v2 => v3: * Update iov->num_VFs before VFs are probed ---

[PATCH v3 1/2] PCI/IOV: Revert "PCI/IOV: Serialize sysfs sriov_numvfs reads vs writes"

2024-02-14 Thread Jim Harris
had a small conflict, the sprintf() is now changed to sysfs_emit(). Link: https://lore.kernel.org/linux-pci/ZXJI5+f8bUelVXqu@ubuntu/ Suggested-by: Leon Romanovsky Reviewed-by: Leon Romanovsky Signed-off-by: Jim Harris --- drivers/pci/iov.c |8 +--- 1 file changed, 1 insertion(+), 7

[PATCH v3 2/2] PCI/IOV: set iov->num_VFs before VFs are probed

2024-02-14 Thread Jim Harris
Ensure userspace can see the updated number of VFs via sysfs sriov_numvfs before those VFs are probed. Suggested-by: Leon Romanovsky Signed-off-by: Jim Harris --- drivers/pci/iov.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pci/iov.c b/drivers/pci