New: AMD-Vi: Command buffer timeout
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: NoCreated 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.
[Bug 204975] AMD-Vi: Command buffer timeout
https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #1 from Gluzskiy Alexandr ([email protected]) --- Created attachment 285129
--> https://bugzilla.kernel.org/attachment.cgi?id=285129&action=edit
dmesg frament with error
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204975] AMD-Vi: Command buffer timeout
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #2 from Gluzskiy Alexandr ([email protected]) --- Created attachment 285131
--> https://bugzilla.kernel.org/attachment.cgi?id=285131&action=edit
dmesg fragment with error
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204975] AMD-Vi: Command buffer timeout
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #3 from Gluzskiy Alexandr ([email protected]) --- Created attachment 285133
--> https://bugzilla.kernel.org/attachment.cgi?id=285133&action=edit
dmesg fragment with error (latest bios)
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204975] AMD-Vi: Command buffer timeout
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #4 from Gluzskiy Alexandr ([email protected]) --- Created attachment 285135
--> https://bugzilla.kernel.org/attachment.cgi?id=285135&action=edit
dmesg fragment with error (latest bios)
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204975] AMD-Vi: Command buffer timeout
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #5 from Gluzskiy Alexandr ([email protected]) --- Created attachment 285137
--> https://bugzilla.kernel.org/attachment.cgi?id=285137&action=edit
dmidecode output
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204975] AMD-Vi: Command buffer timeout
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #6 from Gluzskiy Alexandr ([email protected]) --- Created attachment 285139
--> https://bugzilla.kernel.org/attachment.cgi?id=285139&action=edit
lspci output
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[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.
[Bug 204975] AMD-Vi: Command buffer timeout
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #8 from Gluzskiy Alexandr ([email protected]) --- i see, got it.
unfortunately manufacturer of this board decided to NOT provide downgrade option for some reason.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204975] AMD-Vi: Command buffer timeout
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #9 from Gluzskiy Alexandr ([email protected]) --- is it possible to workaround this problem somehow ? testing another board (x570 based), same problem.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204975] AMD-Vi: Command buffer timeout
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204975
--- Comment #10 from Gluzskiy Alexandr ([email protected]) ---
https://community.amd.com/thread/241650 - link to amd own forums for reference.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[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.