Skip to content

Instantly share code, notes, and snippets.

GTAV @ 4K Res, original looking glass:
[I] dxgi.c:684 | dxgi_capture | tex: 1 frame: 00000377 ups: 38.2 acquireTime: 0.6561 mapTime: 17.8065 totalTime: 18.4696
[I] dxgi.c:684 | dxgi_capture | tex: 2 frame: 00000378 ups: 39.3 acquireTime: 0.0859 mapTime: 28.6140 totalTime: 28.7084
[I] dxgi.c:684 | dxgi_capture | tex: 0 frame: 00000379 ups: 38.1 acquireTime: 0.1219 mapTime: 19.2188 totalTime: 19.3442
[I] dxgi.c:684 | dxgi_capture | tex: 1 frame: 00000380 ups: 37.8 acquireTime: 0.1054 mapTime: 16.0650 totalTime: 16.1750
[I] dxgi.c:684 | dxgi_capture | tex: 2 frame: 00000381 ups: 38.9 acquireTime: 0.3961 mapTime: 15.8534 totalTime: 16.2540
[I] dxgi.c:684 | dxgi_capture | tex: 0 frame: 00000382 ups: 39.6 acquireTime: 0.7999 mapTime: 29.0496 totalTime: 29.8536
[I] dxgi.c:684
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 44c4ae1abd00..27840129e4b0 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -3433,6 +3433,14 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0034, quirk_no_bus_reset);
*/
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CAVIUM, 0xa100, quirk_no_bus_reset);
+/*
+ * Radeon RX Vega and Navi devices break on bus reset. Oi...
import evdev
import sys
device = evdev.InputDevice(sys.argv[1])
print(device)
for event in device.read_loop():
print(evdev.categorize(event))
@aiberia
aiberia / bench.txt
Last active October 18, 2018 02:34
Bench 1, Q35 Unpatched, root port: 1B36:000C
Lspci: x8/1.0, Nvidia: x1
3DMark Time Spy:
4009 4503
3996 4549
3999 4564
Bench 2, Q35 Unmodified patch [x16], root port: 1B36:000C
Lspci: x8/3.0, Nvidia: Unknown bus
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index f3c7b9d328..438b0a7bc0 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -228,11 +228,11 @@ pcie_cap_v1_fill(PCIDevice *dev, uint8_t port, uint8_t type, uint8_t version)
pci_set_long(exp_cap + PCI_EXP_LNKCAP,
(port << PCI_EXP_LNKCAP_PN_SHIFT) |
PCI_EXP_LNKCAP_ASPMS_0S |
- PCI_EXP_LNK_MLW_16 |
+ PCI_EXP_LNK_MLW_8 |