Skip to contentSkip to conversation

New: AMD-Vi: Command buffer timeout

Bug 204975 [email protected] 1 participant 12 messages Sep 23, 2019 – Apr 2, 2020 KVM

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 204975
           Summary: AMD-Vi: Command buffer timeout
           Product: Virtualization
           Version: unspecified
    Kernel Version: 4.19.75
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: blocking
          Priority: P1
         Component: kvm
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 285127
--> https://bugzilla.kernel.org/attachment.cgi?id=285127&action=edit
dmesg fragment with error

i have "ASRock X470 Gaming K4" motherboard, and using pci-passthrough for sometime already, working fine on bios version 1.90, had some troubles, but working overall, unfortunately i decided to update bios to latest versions (3.40, 3.50), and pci-passthrough stopped work at all, i guess problem rerlated to new "AMD AGESA Combo-AM4 1.0.0.3", a little searching over internet confirms what it's common problem across different boards, i do not know exactly is it amd bug, kvm, bug, or kernel bug, i have already reported problem to board manufacturer.

in console i get something like "vfio: cannot power on device, stuck in D3" from qemu.

also a lot of warnings in dmesg (see attachments).

device still visible in lspci, but looks completely unresponsive.

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#7 lore raw

[Bug 204975] AMD-Vi: Command buffer timeout

In reply to [email protected]

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

Alex Williamson ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Alex Williamson ([email protected]) --- When we get the "stuck in D3" message, it usually means that we're getting back -1 on config space reads rather than the device is actually stuck in D3. The -1 return probably means the downstream bus never recovered when we issued a secondary bus reset to perform a reset on the GPU. This seems to be common with AGESA updates and AFAICT indicates a hardware/firmware issue, not a kernel issue. As you indicate, it worked previously and started failing after BIOS update. This is the common story, AMD needs to fix secondary bus reset support on their root ports. I believe some users have had success rolling back their BIOS to a previous release.

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#11 lore raw

[Bug 204975] AMD-Vi: Command buffer timeout

In reply to [email protected]

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

Masato Yoshida ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #11 from Masato Yoshida ([email protected]) --- BioStar's X570GT8 motherboard AGESA 1.0.0.4 patch B has the same error. OS ubuntu 19.10
kernel 5.4.21

By setting the PCI-E speed to Gen2 in UEFI BIOS, no error occurs and pass-through can be performed without any problem.

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.