[v6] PCI: Add reset quirk for Huawei Intelligent NIC virtual function

2021-04-14 Thread Chiqijun
fail to load. Link: https://support.huawei.com/enterprise/en/doc/EDOC1100063073/87950645/vm-oss-occasionally-fail-to-load-the-in200-driver-when-the-vf-performs-flr To solve this problem, add host and firmware status synchronization during FLR. Signed-off-by: Chiqijun --- v6: - Addressed Bjorn&#

Re: [v5] PCI: Add reset quirk for Huawei Intelligent NIC virtual function

2021-03-30 Thread Chiqijun
On 2021/3/19 4:54, Bjorn Helgaas wrote: On Tue, Mar 16, 2021 at 10:08:47PM +0800, Chiqijun wrote: When multiple VFs do FLR at the same time, the firmware is processed serially, resulting in some VF FLRs being delayed more than 100ms, when the virtual machine restarts and the device driver is

[v5] PCI: Add reset quirk for Huawei Intelligent NIC virtual function

2021-03-16 Thread Chiqijun
this problem, add host and firmware status synchronization during FLR. Signed-off-by: Chiqijun --- v5: - Fix build warning reported by kernel test robot v4: - Addressed Bjorn's review comments v3: - The MSE bit in the VF configuration space is hardwired to zero, remove the setti

[v4] PCI: Add reset quirk for Huawei Intelligent NIC virtual function

2021-03-12 Thread Chiqijun
this problem, add host and firmware status synchronization during FLR. Signed-off-by: Chiqijun --- v4: - Addressed Bjorn's review comments v3: - The MSE bit in the VF configuration space is hardwired to zero, remove the setting of PCI_COMMAND_MEMORY bit. Add comment for set PCI_CO

Re: [v3] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2021-02-09 Thread Chiqijun
On 2021/1/21 23:30, Bjorn Helgaas wrote: [Alex is a reset expert, hoping he can chime in] On Thu, Jan 21, 2021 at 08:53:12PM +0800, Chiqijun wrote: On 2021/1/9 6:25, Bjorn Helgaas wrote: On Fri, Dec 25, 2020 at 05:25:30PM +0800, Chiqijun wrote: When multiple VFs do FLR at the same time

Re: [v3] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2021-01-21 Thread Chiqijun
On 2021/1/9 6:25, Bjorn Helgaas wrote: s/pci reset/reset/ in subject (it's obvious this is for PCI). Will fix. On Fri, Dec 25, 2020 at 05:25:30PM +0800, Chiqijun wrote: When multiple VFs do FLR at the same time, the firmware is processed serially, resulting in some VF FLRs being de

[v3] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-25 Thread Chiqijun
this problem, add host and firmware status synchronization during FLR. Signed-off-by: Chiqijun --- v3: - The MSE bit in the VF configuration space is hardwired to zero, remove the setting of PCI_COMMAND_MEMORY bit. Add comment for set PCI_COMMAND register. v2: - Update comments - Use the

Re: [v2] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-23 Thread Chiqijun
On 2020/12/11 5:31, Alex Williamson wrote: On Wed, 2 Dec 2020 19:34:50 +0800 Chiqijun wrote: When multiple VFs do FLR at the same time, the firmware is processed serially, resulting in some VF FLRs being delayed more than 100ms, when the virtual machine restarts and the device driver is

Re: [PATCH] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-03 Thread Chiqijun
On 2020/12/3 4:18, Bjorn Helgaas wrote: On Wed, Dec 02, 2020 at 05:18:12PM +0800, Chiqijun wrote: On 2020/11/30 23:46, Alex Williamson wrote: On Sat, 28 Nov 2020 17:29:19 -0600 Bjorn Helgaas wrote: On Sat, Nov 28, 2020 at 02:18:25PM +0800, Chiqijun wrote: When multiple VFs do FLR at the

Re: [PATCH] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-03 Thread Chiqijun
On 2020/12/3 1:46, Alex Williamson wrote: On Wed, 2 Dec 2020 17:18:12 +0800 Chiqijun wrote: On 2020/11/30 23:46, Alex Williamson wrote: On Sat, 28 Nov 2020 17:29:19 -0600 Bjorn Helgaas wrote: [+cc Alex] On Sat, Nov 28, 2020 at 02:18:25PM +0800, Chiqijun wrote: When multiple VFs do

[v2] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-02 Thread Chiqijun
this problem, add host and firmware status synchronization during FLR. Signed-off-by: Chiqijun --- v2: - Update comments - Use the HINIC_VF_FLR_CAP_BIT_SHIFT and HINIC_VF_FLR_PROC_BIT_SHIFT macro instead of the magic number --- drivers/pci/quirks.c | 75

Re: [PATCH] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-02 Thread Chiqijun
On 2020/11/30 23:46, Alex Williamson wrote: On Sat, 28 Nov 2020 17:29:19 -0600 Bjorn Helgaas wrote: [+cc Alex] On Sat, Nov 28, 2020 at 02:18:25PM +0800, Chiqijun wrote: When multiple VFs do FLR at the same time, the firmware is processed serially, resulting in some VF FLRs being delayed

Re: [PATCH] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-02 Thread Chiqijun
On 2020/11/29 7:29, Bjorn Helgaas wrote: [+cc Alex] On Sat, Nov 28, 2020 at 02:18:25PM +0800, Chiqijun wrote: When multiple VFs do FLR at the same time, the firmware is processed serially, resulting in some VF FLRs being delayed more than 100ms, when the virtual machine restarts and the

[PATCH] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-11-28 Thread Chiqijun
this problem, add host and firmware status synchronization during FLR. Signed-off-by: Chiqijun --- drivers/pci/quirks.c | 67 1 file changed, 67 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index f70692ac79c5..bd6236ea9064