From: Longfang Liu liulongfang@huawei.com
driver inclusion category: cleanup bugzilla: https://gitee.com/openeuler/kernel/issues/IB9H0P CVE: NA
----------------------------------------------------------------------
In the live migration scenario, when the ACC driver is not insmod to the VM, the command to test the mailbox operation will detect that the device has no driver loaded. However, the error reported is the same as the abnormal parameter when testing dfx, and the error scenario cannot be distinguished. Therefore, this error type needs to be modified.
Signed-off-by: Longfang Liu liulongfang@huawei.com Signed-off-by: JiangShui Yang yangjiangshui@h-partners.com --- drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c index 0a3589430105..c8b60d1384e4 100644 --- a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c +++ b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c @@ -1523,7 +1523,7 @@ static ssize_t acc_vf_debug_write(struct file *filp, const char __user *buffer, case MB_TEST: ret = acc_vf_debug_test(hisi_acc_vdev); if (ret) - return -EINVAL; + return -EAGAIN; break; case MIG_DATA_DUMP: acc_vf_dev_data_dump(hisi_acc_vdev);