i915ovmfPkg
i915ovmfPkg copied to clipboard
Link training fails and retries forever
Description
When QEMU launches, it remains black screen and the debug log shows it's looping on "Link training failed... Retrying link training".
On the other hand, using kethen/edk2 + i440fx (not q35) actually works though.
Regardless, I'm more interested in trying to see if q35 works which is why I tried using the i915ovmf rom instead.
System Info
- Host OS(Distro/Version): Arch Linux (Kernel 5.15.8-zen1-1-zen)
- CPU: i5-7300HQ 2.5GHz (Kaby Lake)
- GPUs: Intel HD Graphics 630 + Nvidia Geforce GTX 1050Ti Mobile
- Guest OS: Windows 10
- GVT-D
- Display connections: eDP
- i915ovmfPkg Release version or Commit: Followed the 'Compiling' wiki
Qemu command
Used included scripts. Tried both i440fx and q35.
Logs
Driver starts!
i915: found device 8086-591B 0
i915: start
i915: set pci attrs
i915: made gop path
i915: installed child handle
i915: before QEMU shenanigans
BdsmSize=8388608
i915: vbt: 0x7FBFB400, bdb: 0x7FBFB430, sig: $B KLK d0Øu0, bsig: BO_AABOKѧþ
i915: finding section 2
i915: Boot display type: 0x0000
i915: Child device size: 38
i915: Child device count: 8
i915: SetupOpRegion: OpRegion @ 0x7FBFB000 size 0x2000 in 2 pages
SetupStolenMemory: : stolen memory @ 0x7DA00000 size 0x800000
i915: SetupFwcfgStuff returns 0
i915: after QEMU shenanigans
Port A VBT info: CRT:0 DVI:0 HDMI:0 DP:1 eDP:1 USB-Type-C:0 TBT:0 type:1806
VBT HDMI level shift for port A: 0
VBT DP max link rate for port A: 810000
Port B VBT info: CRT:0 DVI:0 HDMI:0 DP:0 eDP:0 USB-Type-C:0 TBT:0 type:0000
VBT HDMI level shift for port B: 3
VBT DP max link rate for port B: 810000
Port C VBT info: CRT:0 DVI:0 HDMI:0 DP:0 eDP:0 USB-Type-C:0 TBT:0 type:0000
VBT HDMI level shift for port C: 8
VBT DP max link rate for port C: 810000
More than one child device for port A in VBT, using the first.
Port E VBT info: CRT:0 DVI:0 HDMI:0 DP:0 eDP:0 USB-Type-C:0 TBT:0 type:0000
VBT HDMI level shift for port E: 0
VBT DP max link rate for port E: 810000
More than one child device for port A in VBT, using the first.
More than one child device for port A in VBT, using the first.
More than one child device for port A in VBT, using the first.
i915: power well enabled F00003FF
panel power sequencer register settings: PP_ON #x, PP_OFF #x, PP_DIV #x
PP_CTL: 00000000, PP_STAT 00000000
PP_CTL: 00000003, PP_STAT 9000000A
PP_CTL: 00000003, PP_STAT 90000009
i915: CDCLK = 080002A1
i915: DBUF timeout
i915: _PLANE_BUF_CFG_1_A = 00000000
i915: _PLANE_BUF_CFG_1_A = 035B0000 (after)
i915: SFUSE_STRAP = 00000000
Port A VBT info: DVI:0 HDMI:0 DP:1 eDP:1
i915: Port Is Connected!
using AUX A for port A (VBT)
i915: Port is DP/EdP. Aux_ch is 0
i915: trying DP aux 0
i915: reading DP aux 0
00 FF FF FF FF FF FF 00
30 E4 90 05 00 00 00 00
00 1B 01 04 95 22 13 78
EA A1 C5 94 59 57 8F 27
20 50 54 00 00 00 01 01
01 01 01 01 01 01 01 01
01 01 01 01 01 01 2E 36
80 A0 70 38 1F 40 30 20
35 00 58 C2 10 00 00 1A
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 FE 00 4C
47 20 44 69 73 70 6C 61
79 0A 20 20 00 00 00 FE
00 4C 50 31 35 36 57 46
36 2D 53 50 4B 36 00 5E
i915: ReadEDIDDP returned 0
I915: DUsing Connector Mode: 3, On Port 0Reading PP_STATUS: 2415919113
i915: got EDID:
00 FF FF FF FF FF FF 00
30 E4 90 05 00 00 00 00
00 1B 01 04 95 22 13 78
EA A1 C5 94 59 57 8F 27
20 50 54 00 00 00 01 01
01 01 01 01 01 01 01 01
01 01 01 01 01 01 2E 36
80 A0 70 38 1F 40 30 20
35 00 58 C2 10 00 00 1A
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 FE 00 4C
47 20 44 69 73 70 6C 61
79 0A 20 20 00 00 00 FE
00 4C 50 31 35 36 57 46
36 2D 53 50 4B 36 00 5E
i915: bar ranges - 812000000 1000000, 800000000 10000000
i915: aperture at 800000000
i915: gmadr = 00000000, size = 00000000, hgmadr = 00000000, hsize = 00000000
i915: 1920x1080 clock=138700
i915: ggtt_base at 812800000, entries: 044A2001 044A2001, backing fb: 7D200000, 7F9E00 bytes
i915: progressed to mline 673, status is 0
i915: set mode 0
i915: DPLL 1 not locked
Link Rate: 0
i915: DPLL_CTRL1 = 00000543
i915: _DPLL1_CFGCR1 = 00000000
i915: _DPLL1_CFGCR2 = 00000000
i915: DPLL 1 locked
i915: port is 0
i915: DPLL_CTRL2 = 00A00003
PP_CTL: 00000003, PP_STAT 90000009
Using LINK_BW_SET value 10
this_v:1 v:0 this_p:0 p:0
this_v:1 v:1 this_p:0 p:0
v:1 p:0
TrainSet[0]: 1
TrainSet[1]: 1
TrainSet[2]: 1
TrainSet[3]: 1
Using signal levels 02000000
this_v:2 v:0 this_p:0 p:0
this_v:2 v:2 this_p:0 p:0
v:6 p:0
TrainSet[0]: 6
TrainSet[1]: 6
TrainSet[2]: 6
TrainSet[3]: 6
Using signal levels 04000000
Max Voltage Swing reached
Link Training failed at link rate = 270000, lane count = 2Mode: 416100, Max:324000
Retrying Link training for eDP with same parameters
i915: DPLL 1 not locked
Link Rate: 270000
i915: DPLL_CTRL1 = 000004C3
i915: _DPLL1_CFGCR1 = 00000000
i915: _DPLL1_CFGCR2 = 00000000
i915: DPLL 1 locked
i915: port is 0
i915: DPLL_CTRL2 = 00A00003
Using LINK_BW_SET value 10
this_v:2 v:0 this_p:0 p:0
this_v:2 v:2 this_p:0 p:0
v:6 p:0
TrainSet[0]: 6
TrainSet[1]: 6
TrainSet[2]: 6
TrainSet[3]: 6
Using signal levels 04000000
Max Voltage Swing reached
Link Training failed at link rate = 270000, lane count = 2Mode: 416100, Max:324000
Retrying Link training for eDP with same parameters
i915: DPLL 1 not locked
Link Rate: 270000
i915: DPLL_CTRL1 = 000004C3
i915: _DPLL1_CFGCR1 = 00000000
i915: _DPLL1_CFGCR2 = 00000000
i915: DPLL 1 locked
i915: port is 0
i915: DPLL_CTRL2 = 00A00003
Using LINK_BW_SET value 10
this_v:2 v:0 this_p:0 p:0
this_v:2 v:2 this_p:0 p:0
v:6 p:0
TrainSet[0]: 6
TrainSet[1]: 6
TrainSet[2]: 6
TrainSet[3]: 6
Using signal levels 04000000
Max Voltage Swing reached
Link Training failed at link rate = 270000, lane count = 2Mode: 416100, Max:324000