[Bug 202055] Failed to PCI passthrough SSD with SMI SM2262 controller.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=202055

--- Comment #23 from Dongli Zhang (dongli.zhang@xxxxxxxxxx) ---
(In reply to Alex Williamson from comment #21)
> Actually, msleep(100) may be a few orders of magnitude longer than we need,
> I continue to see errors with udelay(10), but it seems to work perfectly
> with udelay(100).  Dongli, please test the above using udelay(100) rather
> than msleep(100).  Thanks

Hi Alex,

While waiting for the patch mentioned by Comment 22, I have tested the below by
adding udelay(100):

3828 static int prefer_bus_reset(struct pci_dev *dev, int probe)
3829 {
3830         udelay(100);
3831         return pci_parent_bus_reset(dev, probe);
3832 }

I got the below error again:

QEMU:

# ./x86_64-softmmu/qemu-system-x86_64 -hda /home/zhang/img/ubuntu/disk.img -smp
2 -m 2000M -enable-kvm -vnc :0 -device vfio-pci,host=0000:01:00.0
WARNING: Image format was not specified for '/home/zhang/img/ubuntu/disk.img'
and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write
operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-x86_64: vfio_err_notifier_handler(0000:01:00.0) Unrecoverable error
detected. Please collect any data possible and then kill the guest



KERNEL:

[   69.715224] pcieport 0000:00:1b.0: AER: Uncorrected (Non-Fatal) error
received: 0000:00:1b.0
[   69.715230] pcieport 0000:00:1b.0: PCIe Bus Error: severity=Uncorrected
(Non-Fatal), type=Transaction Layer, (Receiver ID)
[   69.715234] pcieport 0000:00:1b.0:   device [8086:a2e7] error
status/mask=00200000/00010000
[   69.715236] pcieport 0000:00:1b.0:    [21] ACSViol                (First)
[   70.742423] pcieport 0000:00:1b.0: AER: Device recovery successful
[   70.742430] pcieport 0000:00:1b.0: AER: Uncorrected (Non-Fatal) error
received: 0000:00:1b.0
[   70.742442] pcieport 0000:00:1b.0: can't find device of ID00d8
[   70.742554] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x158
[   70.742562] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1e@0x180
[   70.834427] pcieport 0000:00:1b.0: AER: Uncorrected (Non-Fatal) error
received: 0000:00:1b.0
[   70.834440] pcieport 0000:00:1b.0: PCIe Bus Error: severity=Uncorrected
(Non-Fatal), type=Transaction Layer, (Receiver ID)
[   70.834448] pcieport 0000:00:1b.0:   device [8086:a2e7] error
status/mask=00200000/00010000
[   70.834453] pcieport 0000:00:1b.0:    [21] ACSViol                (First)
[   71.822627] pcieport 0000:00:1b.0: AER: Device recovery successful
[   71.822634] pcieport 0000:00:1b.0: AER: Uncorrected (Non-Fatal) error
received: 0000:00:1b.0
[   71.822645] pcieport 0000:00:1b.0: can't find device of ID00d8


Dongli Zhang

-- 
You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux