7900XTX: No display output (Lg C2) after latest build
Everything was working great when I built linux-mkopec-git using the AUR PKGBUILD 2 days ago. My screen worked with 4k 120hz rgb 4:4:4 either with or without HDR and vrr enabled (Im on Sway WM arch linux). Only bug I found was that dpms was flaky and display showed "No-signal" when dpms turned off. I rebuilt the kernel today to check for new patches and now the display wont initialize = "No-signal". What change could have made this happen?
Did you try to turn of/on the display multiple times? Some TV's have this bug, and need to cycle few times
Same on LG C5, found a person on reddit and on another forum that report the same, both LG users as well.
Checked out an older commit - 435360c on the hdmi_frl_stable branch - and it works again. So some of the following commits must have changed something that the LG TVs don't like.
I'll try to grab some logs later.
Same issue here with same GPU + LG C3, I confirm if rebuild with 435360c it works.
Can also confirm that a rebuild with older commit - 435360c works for me.
I wanted to participate in testing as well and got no output with RX 7900 XTX and hisense 65eq7pro TV. Seems related to this issue.
Just to be sure: I tried to reboot multiple times, tried to turn TV ON and OFF multiple times and I do get output with CachyOS kernel 4k120hz
Hey,
Still on commit - 435360c and its been working almost flawlessly. Still no fix for the latest commit breaking FRL on my system. Possible to fix this to build the latest kernel?
Hi, i've pushed some fixes to the hdmi_frl branch that might help.
Hi, i've pushed some fixes to the hdmi_frl branch that might help.
Great, that resolved it for me
Ive got a working kernel using a version 6 kernel of cachyos but im trying to get it working with the latest 7 rc5 and i just cant get it to compile. I have a 7900xtx too. I have 144hz 4k with freesync working. I just need a working step by step process from someone who has already give it a go.
Great work by the way everyone.
Ive got a working kernel using a version 6 kernel of cachyos but im trying to get it working with the latest 7 rc5 and i just cant get it to compile. I have a 7900xtx too. I have 144hz 4k with freesync working. I just need a working step by step process from someone who has already give it a go.
Great work by the way everyone.
if it was that simple, there would be a simple guide already.
it looks like its gonna be the kernel version that is in the AUR, if you want to use the patch with the latest kernel, youre out of luck.
Tag me if you find a "step by step" guide that "works" for applying this to latest kernel for compilation
git -C /path/to/repo diff --binary 7dff99b354601dd01829e1511711846e04340a69..hdmi_frl > /tmp/frl.patch
Then apply patch to rc5. Could work.
git -C /path/to/repo diff --binary 7dff99b..hdmi_frl > /tmp/frl.patch
Then apply patch to rc5. Could work.
path/to/repo you mean this repo? and what is the commit? do you have to specify this number or something? and then how do you apply the patch to the kernel? Sorry for asking off topic, im learning about linux and i dont know what other people know how to do. Im really interested to have options just in case.
Similar issue for me, setup:
Operating System: Arch Linux KDE Plasma Version: 6.6.4 KDE Frameworks Version: 6.24.0 Qt Version: 6.11.0 Kernel Version: 7.0.0-rc1-1-mkopec-git-g1cac81ea1c86 (64-bit) Graphics Platform: Wayland Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor Memory: 64 GiB of RAM (62,7 GiB usable) Graphics Processor: AMD Radeon RX 7900 XTX TV: LG B9
When HDMI ULTRA HD Deep Colour is enabled KDE screen settings shows all vrr, 120HZ, 10 bit output as possible options BUT TV says "No Signal", Does not matter if I choose 60Hz or 120Hz or any other setting in KDE Display configuration.
When I DISABLE HDMI ULTRA HD Deep Colour on TV, screen works but only in 60Hz.
dmesg LOGS with timestamps: 1848* -- HDMI ULTRA HD Deep Colour ENABLED -- No Signal on TV 2176* - HDMI ULTRA HD Deep Colour DISABLED -- 60 HZ only Signal on TV
Logs timestamps: 1848* -- HDMI ULTRA HD Deep Colour ENABLED 2176* - HDMI ULTRA HD Deep Colour DISABLED
[ 1848.044245] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: manufacturer_id = 6D1E, product_id = C0A0, serial_number = 1010101, manufacture_week = 1, manufacture_year = 29, display_name = LG TV, speaker_flag = 5, audio_mode_count = 6
[ 1848.044250] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 0, format_code = 1, channel_count = 8, sample_rate = 87, sample_size = 7
[ 1848.044253] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 1, format_code = 2, channel_count = 6, sample_rate = 7, sample_size = 80
[ 1848.044255] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 2, format_code = 10, channel_count = 8, sample_rate = 7, sample_size = 1
[ 1848.044257] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 3, format_code = 12, channel_count = 8, sample_rate = 4, sample_size = 3
[ 1848.044258] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 4, format_code = 7, channel_count = 6, sample_rate = 30, sample_size = 192
[ 1848.044260] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 5, format_code = 11, channel_count = 8, sample_rate = 126, sample_size = 1
[ 1848.056403] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.056456] [HW_LINK_TRAINING]:HDMI FRL: Rate 5 Supported. Borrowed: 156, Margin: 377321 ppm
[ 1848.056504] [HW_LINK_TRAINING]:HDMI FRL: Rate 5 Supported. Borrowed: 151, Margin: 377872 ppm
[ 1848.056551] [HW_LINK_TRAINING]:HDMI FRL: Rate 5 Supported. Borrowed: 156, Margin: 1021836 ppm
[ 1848.056594] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 484730 ppm
[ 1848.056636] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 485276 ppm
[ 1848.056688] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 1021836 ppm
[ 1848.056740] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 663321 ppm
[ 1848.056784] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 663661 ppm
[ 1848.056826] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.056868] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.056910] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.056954] [HW_LINK_TRAINING]:HDMI FRL: Rate 5 Supported. Borrowed: 145, Margin: 690051 ppm
[ 1848.056998] [HW_LINK_TRAINING]:HDMI FRL: Rate 5 Supported. Borrowed: 142, Margin: 690334 ppm
[ 1848.057041] [HW_LINK_TRAINING]:HDMI FRL: Rate 5 Supported. Borrowed: 145, Margin: 1021836 ppm
[ 1848.057083] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.057124] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745624 ppm
[ 1848.057166] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 1021836 ppm
[ 1848.057207] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 837045 ppm
[ 1848.057248] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 837220 ppm
[ 1848.057289] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.057331] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.057371] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.057419] [HW_LINK_TRAINING]:HDMI FRL: Rate 2 Supported. Borrowed: 0, Margin: 365054 ppm
[ 1848.057456] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 346, Margin: 643674 ppm
[ 1848.057495] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 344, Margin: 644084 ppm
[ 1848.057533] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 346, Margin: 1021355 ppm
[ 1848.057580] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 832566 ppm
[ 1848.057613] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 832566 ppm
[ 1848.057651] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 832745 ppm
[ 1848.057693] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.057729] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 925061 ppm
[ 1848.057767] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 925159 ppm
[ 1848.057806] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.057845] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.057885] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.057941] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.057990] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058035] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058067] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058099] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058132] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058179] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058224] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058258] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1004076 ppm
[ 1848.058289] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1000898 ppm
[ 1848.058323] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1000898 ppm
[ 1848.058354] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1000918 ppm
[ 1848.058386] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1000918 ppm
[ 1848.058417] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058449] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058481] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.058533] [HW_LINK_TRAINING]:HDMI FRL: Rate 1 Supported. Borrowed: 0, Margin: 1021355 ppm
[ 1848.060179] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.060217] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.060354] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.060385] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.077833] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.078002] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.078463] [HW_LINK_TRAINING]:HDMI FRL: Rate 3 Supported. Borrowed: 0, Margin: 745343 ppm
[ 1848.096284] [HW_LINK_TRAINING]:enable_link entered
[ 1848.096287] [HW_LINK_TRAINING]:link disabled
[ 1848.096288] [HW_LINK_TRAINING]:enable_link_hdmi entered
[ 1848.099102] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=6 lanes=4)
[ 1848.101871] FRL DEBUG: entering training loop
[ 1848.101874] FRL DEBUG: poll 0
[ 1848.102574] FRL DEBUG: UPDATE_0 = 0x23
[ 1848.102576] FRL DEBUG: FLT_UPDATE asserted
[ 1848.103950] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.103952] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.103954] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.103955] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.103957] FRL DEBUG: programming training patterns
[ 1848.106645] FRL DEBUG: poll 1
[ 1848.107344] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.107346] FRL DEBUG: FLT_UPDATE asserted
[ 1848.108720] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.108722] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.108724] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.108725] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.108727] FRL DEBUG: programming training patterns
[ 1848.111642] FRL DEBUG: poll 2
[ 1848.112338] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.112340] FRL DEBUG: FLT_UPDATE asserted
[ 1848.113700] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.113702] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.113704] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.113705] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.113707] FRL DEBUG: programming training patterns
[ 1848.116646] FRL DEBUG: poll 3
[ 1848.117340] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.117342] FRL DEBUG: FLT_UPDATE asserted
[ 1848.118846] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.118847] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.118849] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.118851] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.122876] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.122878] [HW_LINK_TRAINING]:FRL: Training attempt 1 failed! Will attempt rate 5 next
[ 1848.124490] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=5 lanes=4)
[ 1848.127085] FRL DEBUG: entering training loop
[ 1848.127088] FRL DEBUG: poll 0
[ 1848.127785] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.127786] FRL DEBUG: FLT_UPDATE asserted
[ 1848.129144] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.129146] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.129147] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.129149] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.129150] FRL DEBUG: programming training patterns
[ 1848.131641] FRL DEBUG: poll 1
[ 1848.132342] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.132344] FRL DEBUG: FLT_UPDATE asserted
[ 1848.133709] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.133711] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.133712] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.133714] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.133715] FRL DEBUG: programming training patterns
[ 1848.136642] FRL DEBUG: poll 2
[ 1848.137344] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.137346] FRL DEBUG: FLT_UPDATE asserted
[ 1848.138715] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.138717] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.138719] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.138720] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.138721] FRL DEBUG: programming training patterns
[ 1848.141642] FRL DEBUG: poll 3
[ 1848.142340] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.142342] FRL DEBUG: FLT_UPDATE asserted
[ 1848.143711] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.143713] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.143714] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.143716] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.143717] FRL DEBUG: programming training patterns
[ 1848.146638] FRL DEBUG: poll 4
[ 1848.147339] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.147341] FRL DEBUG: FLT_UPDATE asserted
[ 1848.148707] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.148709] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.148710] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.148712] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.152871] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.152872] [HW_LINK_TRAINING]:FRL: Training attempt 2 failed! Will attempt rate 4 next
[ 1848.154477] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=4 lanes=4)
[ 1848.157081] FRL DEBUG: entering training loop
[ 1848.157084] FRL DEBUG: poll 0
[ 1848.157788] FRL DEBUG: UPDATE_0 = 0x31
[ 1848.157789] FRL DEBUG: FLT_UPDATE asserted
[ 1848.159160] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.159162] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.159164] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.159166] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.159168] FRL DEBUG: programming training patterns
[ 1848.161638] FRL DEBUG: poll 1
[ 1848.162344] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.162346] FRL DEBUG: FLT_UPDATE asserted
[ 1848.163714] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.163716] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.163717] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.163718] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.163720] FRL DEBUG: programming training patterns
[ 1848.166635] FRL DEBUG: poll 2
[ 1848.167338] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.167340] FRL DEBUG: FLT_UPDATE asserted
[ 1848.168848] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.168850] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.168852] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.168853] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.168855] FRL DEBUG: programming training patterns
[ 1848.171634] FRL DEBUG: poll 3
[ 1848.172339] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.172341] FRL DEBUG: FLT_UPDATE asserted
[ 1848.173712] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.173714] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.173716] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.173717] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.173719] FRL DEBUG: programming training patterns
[ 1848.176633] FRL DEBUG: poll 4
[ 1848.177338] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.177340] FRL DEBUG: FLT_UPDATE asserted
[ 1848.178707] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.178709] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.178710] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.178712] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.182869] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.182870] [HW_LINK_TRAINING]:FRL: Training attempt 3 failed! Will attempt rate 3 next
[ 1848.184075] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=3 lanes=4)
[ 1848.186807] FRL DEBUG: entering training loop
[ 1848.186810] FRL DEBUG: poll 0
[ 1848.187503] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.187505] FRL DEBUG: FLT_UPDATE asserted
[ 1848.188871] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.188873] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.188874] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.188876] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.188877] FRL DEBUG: programming training patterns
[ 1848.191632] FRL DEBUG: poll 1
[ 1848.192336] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.192338] FRL DEBUG: FLT_UPDATE asserted
[ 1848.193708] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.193710] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.193712] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.193713] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.193715] FRL DEBUG: programming training patterns
[ 1848.196630] FRL DEBUG: poll 2
[ 1848.197334] FRL DEBUG: UPDATE_0 = 0x00
[ 1848.197336] FRL DEBUG: FLT_UPDATE not set
[ 1848.199631] FRL DEBUG: poll 3
[ 1848.200335] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.200336] FRL DEBUG: FLT_UPDATE asserted
[ 1848.201845] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.201847] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.201848] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.201849] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.201851] FRL DEBUG: programming training patterns
[ 1848.204630] FRL DEBUG: poll 4
[ 1848.205332] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.205334] FRL DEBUG: FLT_UPDATE asserted
[ 1848.206703] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.206705] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.206707] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.206708] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.206710] FRL DEBUG: programming training patterns
[ 1848.209630] FRL DEBUG: poll 5
[ 1848.210333] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.210335] FRL DEBUG: FLT_UPDATE asserted
[ 1848.211708] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.211710] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.211711] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.211712] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.215864] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.215865] [HW_LINK_TRAINING]:FRL: Training attempt 4 failed! Will attempt rate 3 next
[ 1848.215966] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=3 lanes=4)
[ 1848.218706] FRL DEBUG: entering training loop
[ 1848.218708] FRL DEBUG: poll 0
[ 1848.219403] FRL DEBUG: UPDATE_0 = 0x31
[ 1848.219405] FRL DEBUG: FLT_UPDATE asserted
[ 1848.220773] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.220775] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.220776] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.220778] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.220779] FRL DEBUG: programming training patterns
[ 1848.223629] FRL DEBUG: poll 1
[ 1848.224333] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.224335] FRL DEBUG: FLT_UPDATE asserted
[ 1848.225705] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.225707] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.225708] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.225710] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.225711] FRL DEBUG: programming training patterns
[ 1848.228627] FRL DEBUG: poll 2
[ 1848.229331] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.229333] FRL DEBUG: FLT_UPDATE asserted
[ 1848.230705] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.230707] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.230708] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.230710] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.230711] FRL DEBUG: programming training patterns
[ 1848.233626] FRL DEBUG: poll 3
[ 1848.234467] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.234469] FRL DEBUG: FLT_UPDATE asserted
[ 1848.235840] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.235842] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.235844] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.235845] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.239637] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.239639] [HW_LINK_TRAINING]:FRL: Training attempt 5 failed! Will attempt rate 3 next
[ 1848.239731] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=3 lanes=4)
[ 1848.241466] FRL DEBUG: entering training loop
[ 1848.241467] FRL DEBUG: poll 0
[ 1848.241941] FRL DEBUG: UPDATE_0 = 0x33
[ 1848.241943] FRL DEBUG: FLT_UPDATE asserted
[ 1848.243478] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.243480] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.243482] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.243483] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.243485] FRL DEBUG: programming training patterns
[ 1848.245626] FRL DEBUG: poll 1
[ 1848.246103] FRL DEBUG: UPDATE_0 = 0x22
[ 1848.246105] FRL DEBUG: FLT_UPDATE asserted
[ 1848.247021] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.247023] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.247024] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.247026] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.247027] FRL DEBUG: programming training patterns
[ 1848.249628] FRL DEBUG: poll 2
[ 1848.250117] FRL DEBUG: UPDATE_0 = 0x23
[ 1848.250119] FRL DEBUG: FLT_UPDATE asserted
[ 1848.251053] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.251055] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.251056] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.251058] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.251059] FRL DEBUG: programming training patterns
[ 1848.253630] FRL DEBUG: poll 3
[ 1848.254119] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.254121] FRL DEBUG: FLT_UPDATE asserted
[ 1848.255052] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.255054] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.255055] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.255056] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.255058] FRL DEBUG: programming training patterns
[ 1848.257625] FRL DEBUG: poll 4
[ 1848.258107] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.258109] FRL DEBUG: FLT_UPDATE asserted
[ 1848.259038] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.259040] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.259042] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.259043] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.262462] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.262464] [HW_LINK_TRAINING]:FRL: Training attempt 6 failed! Will attempt rate 3 next
[ 1848.262560] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=3 lanes=4)
[ 1848.264331] FRL DEBUG: entering training loop
[ 1848.264333] FRL DEBUG: poll 0
[ 1848.264815] FRL DEBUG: UPDATE_0 = 0x33
[ 1848.264817] FRL DEBUG: FLT_UPDATE asserted
[ 1848.265747] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.265748] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.265750] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.265751] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.265753] FRL DEBUG: programming training patterns
[ 1848.268625] FRL DEBUG: poll 1
[ 1848.269110] FRL DEBUG: UPDATE_0 = 0x22
[ 1848.269112] FRL DEBUG: FLT_UPDATE asserted
[ 1848.270039] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.270041] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.270043] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.270044] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.270046] FRL DEBUG: programming training patterns
[ 1848.272622] FRL DEBUG: poll 2
[ 1848.273107] FRL DEBUG: UPDATE_0 = 0x23
[ 1848.273109] FRL DEBUG: FLT_UPDATE asserted
[ 1848.274039] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.274041] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.274043] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.274044] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.274046] FRL DEBUG: programming training patterns
[ 1848.276623] FRL DEBUG: poll 3
[ 1848.277109] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.277111] FRL DEBUG: FLT_UPDATE asserted
[ 1848.278041] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.278043] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.278044] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.278046] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.281457] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.281459] [HW_LINK_TRAINING]:FRL: Training attempt 7 failed! Will attempt rate 3 next
[ 1848.281555] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=3 lanes=4)
[ 1848.283322] FRL DEBUG: entering training loop
[ 1848.283324] FRL DEBUG: poll 0
[ 1848.283806] FRL DEBUG: UPDATE_0 = 0x31
[ 1848.283808] FRL DEBUG: FLT_UPDATE asserted
[ 1848.284806] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.284808] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.284810] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.284811] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.284813] FRL DEBUG: programming training patterns
[ 1848.287621] FRL DEBUG: poll 1
[ 1848.288107] FRL DEBUG: UPDATE_0 = 0x20
[ 1848.288109] FRL DEBUG: FLT_UPDATE asserted
[ 1848.289038] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.289040] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.289041] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.289043] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.289044] FRL DEBUG: programming training patterns
[ 1848.291620] FRL DEBUG: poll 2
[ 1848.292105] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.292107] FRL DEBUG: FLT_UPDATE asserted
[ 1848.293039] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.293041] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.293042] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.293044] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.293045] FRL DEBUG: programming training patterns
[ 1848.295620] FRL DEBUG: poll 3
[ 1848.296104] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.296106] FRL DEBUG: FLT_UPDATE asserted
[ 1848.297038] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.297040] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.297041] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.297042] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.300463] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.300464] [HW_LINK_TRAINING]:FRL: Training attempt 8 failed! Will attempt rate 3 next
[ 1848.300560] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=3 lanes=4)
[ 1848.302331] FRL DEBUG: entering training loop
[ 1848.302333] FRL DEBUG: poll 0
[ 1848.302815] FRL DEBUG: UPDATE_0 = 0x23
[ 1848.302817] FRL DEBUG: FLT_UPDATE asserted
[ 1848.303748] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.303750] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.303752] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.303753] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.303755] FRL DEBUG: programming training patterns
[ 1848.306618] FRL DEBUG: poll 1
[ 1848.307100] FRL DEBUG: UPDATE_0 = 0x22
[ 1848.307102] FRL DEBUG: FLT_UPDATE asserted
[ 1848.308031] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.308033] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.308035] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.308036] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.308037] FRL DEBUG: programming training patterns
[ 1848.310618] FRL DEBUG: poll 2
[ 1848.311104] FRL DEBUG: UPDATE_0 = 0x23
[ 1848.311106] FRL DEBUG: FLT_UPDATE asserted
[ 1848.312037] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.312039] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.312041] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.312042] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.312044] FRL DEBUG: programming training patterns
[ 1848.314620] FRL DEBUG: poll 3
[ 1848.315110] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.315111] FRL DEBUG: FLT_UPDATE asserted
[ 1848.316043] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.316045] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.316047] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.316048] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.319455] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.319457] [HW_LINK_TRAINING]:FRL: Training attempt 9 failed! Will attempt rate 3 next
[ 1848.319553] [HW_LINK_TRAINING]:HDMI FRL: starting training (rate=3 lanes=4)
[ 1848.321320] FRL DEBUG: entering training loop
[ 1848.321322] FRL DEBUG: poll 0
[ 1848.321805] FRL DEBUG: UPDATE_0 = 0x33
[ 1848.321807] FRL DEBUG: FLT_UPDATE asserted
[ 1848.322737] FRL DEBUG: lane 0 LTP = 0x3
[ 1848.322739] FRL DEBUG: lane 1 LTP = 0x3
[ 1848.322740] FRL DEBUG: lane 2 LTP = 0x3
[ 1848.322742] FRL DEBUG: lane 3 LTP = 0x3
[ 1848.322743] FRL DEBUG: programming training patterns
[ 1848.325616] FRL DEBUG: poll 1
[ 1848.326105] FRL DEBUG: UPDATE_0 = 0x22
[ 1848.326107] FRL DEBUG: FLT_UPDATE asserted
[ 1848.327038] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.327040] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.327041] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.327043] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.327044] FRL DEBUG: programming training patterns
[ 1848.329616] FRL DEBUG: poll 2
[ 1848.330098] FRL DEBUG: UPDATE_0 = 0x23
[ 1848.330100] FRL DEBUG: FLT_UPDATE asserted
[ 1848.331029] FRL DEBUG: lane 0 LTP = 0x5
[ 1848.331031] FRL DEBUG: lane 1 LTP = 0x6
[ 1848.331033] FRL DEBUG: lane 2 LTP = 0x7
[ 1848.331034] FRL DEBUG: lane 3 LTP = 0x8
[ 1848.331035] FRL DEBUG: programming training patterns
[ 1848.333644] FRL DEBUG: poll 3
[ 1848.334129] FRL DEBUG: UPDATE_0 = 0x21
[ 1848.334131] FRL DEBUG: FLT_UPDATE asserted
[ 1848.335064] FRL DEBUG: lane 0 LTP = 0x0
[ 1848.335066] FRL DEBUG: lane 1 LTP = 0x0
[ 1848.335067] FRL DEBUG: lane 2 LTP = 0x0
[ 1848.335069] FRL DEBUG: lane 3 LTP = 0x0
[ 1848.338458] [HW_LINK_TRAINING]:HDMI FRL: retraining needed
[ 1848.338460] [HW_LINK_TRAINING]:FRL: Training attempt 10 failed! Will attempt rate 3 next
[ 1848.338461] [HW_LINK_TRAINING]:HDMI FRL: training failed
[ 1848.338464] amdgpu 0000:10:00.0: [drm] enabling link 3 failed: -1
[ 1848.347408] amdgpu 0000:10:00.0: [drm] REG_WAIT timeout 1us * 100 tries - dcn32_program_compbuf_size line:149
[ 2176.703694] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: manufacturer_id = 6D1E, product_id = C0A0, serial_number = 1010101, manufacture_week = 1, manufacture_year = 29, display_name = LG TV, speaker_flag = 5, audio_mode_count = 6
[ 2176.703700] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 0, format_code = 1, channel_count = 8, sample_rate = 87, sample_size = 7
[ 2176.703702] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 1, format_code = 2, channel_count = 6, sample_rate = 7, sample_size = 80
[ 2176.703704] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 2, format_code = 10, channel_count = 8, sample_rate = 7, sample_size = 1
[ 2176.703706] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 3, format_code = 12, channel_count = 8, sample_rate = 4, sample_size = 3
[ 2176.703708] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 4, format_code = 7, channel_count = 6, sample_rate = 30, sample_size = 192
[ 2176.703710] amdgpu 0000:10:00.0: [drm] detect_link_and_local_sink: mode number = 5, format_code = 11, channel_count = 8, sample_rate = 126, sample_size = 1
[ 2176.764447] [HW_LINK_TRAINING]:enable_link entered
[ 2176.764450] [HW_LINK_TRAINING]:link disabled
[ 2176.764452] [HW_LINK_TRAINING]:enable_link_hdmi entered
[ 2176.782112] amdgpu 0000:10:00.0: [drm] REG_WAIT timeout 1us * 100 tries - dcn32_program_compbuf_size line:149
It's working
I finally got HDMI 2.1 working reliably on my LG TV B9 (manufacturer ID 0x6D1E) with the RX 7900 XTX.
The problem was exactly as described in the thread: DFM correctly selects a supported rate, training reaches LTP PASS on all lanes, but the TV then asserts FLT_UPDATE again instead of FRL_START. The code treated this as "retraining needed" → link enable fails.
Root cause (from dmesg):
- Rate fallback loop broke LG behaviour (worked on older commit).
- Occasional
failed to read sink versionafter PHY reprogram. - After
LTP=0x0 (PASS)the TV sendsFLT_UPDATEinstead ofFRL_START.
My Patch
This is FIXME code aka works on my system, I'm not a kernel developer so it should be refined. So what's added: 10x retry with 20ms sleep when first sink version read fails. fixing state machine
From 1b2f1a9272598c30b51a3b809ae766b4a07d4c57 Mon Sep 17 00:00:00 2001
From: test <[email protected]>
Date: Wed, 8 Apr 2026 15:00:45 +0200
Subject: [PATCH 1/1] fix_with_retry
---
.../dc/link/protocols/link_frl_training.c | 44 +++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_frl_training.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_frl_training.c
index fac7bd979bdc..80da3d3bf8e7 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_frl_training.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_frl_training.c
@@ -85,6 +85,21 @@ bool dc_link_perform_frl_training(struct dc_link *link,
return false;
}
+ /* LG quirk: sometimes the first sink version read fails after PHY reprogram */
+ if (link->local_sink && link->local_sink->edid_caps.manufacturer_id == 0x6D1E) {
+ int retry;
+ for (retry = 0; retry < 10; retry++) {
+ if (frl_read_scdc(link, HDMI_SCDC_SINK_VERSION, &sink_version, 1))
+ break;
+ msleep(20);
+ }
+ if (retry == 10) {
+ DC_LOG_ERROR("FRL: failed to read sink version (LG quirk retry failed)\n");
+ return false;
+ }
+ }
+
+
if (sink_version == 0) {
DC_LOG_HW_LINK_TRAINING("FRL: sink does not support FRL\n");
return false;
@@ -196,6 +211,16 @@ bool dc_link_perform_frl_training(struct dc_link *link,
DC_LOG_HW_LINK_TRAINING("HDMI FRL: training successful\n");
return true;
} else if (update & SCDC_FLT_UPDATE_BIT) {
+ /* LG-specific quirk: after LTP PASS the TV often asserts
+ * FLT_UPDATE again instead of FRL_START. The training
+ * succeeded (we saw all lanes PASS), so treat it as success.
+ */
+ if (link->local_sink &&
+ link->local_sink->edid_caps.manufacturer_id == 0x6D1E) {
+ DC_LOG_HW_LINK_TRAINING("LG TV quirk: ignoring retraining request after PASS - treating as success\n");
+ return true;
+ }
+
DC_LOG_HW_LINK_TRAINING("HDMI FRL: retraining needed\n");
return false;
} else {
@@ -265,6 +290,24 @@ bool dc_link_perform_frl_training_with_retries(struct dc_link *link,
link->cur_link_settings.frl_rate = link->local_sink->edid_caps.frl_caps.max_rate;
link->cur_link_settings.lane_count = link->cur_link_settings.frl_rate <= 2 ? 3 : 4;
+ /* LG-specific quirk (EDID manufacturer ID 0x6D1E = LG Electronics).
+ * LG OLEDs fail when we start from max_rate and fall back.
+ * Use the DFM-selected rate directly.
+ */
+ bool is_lg = false;
+ if (link->local_sink && link->local_sink->edid_caps.manufacturer_id == 0x6D1E) {
+ is_lg = true;
+ DC_LOG_HW_LINK_TRAINING("LG TV quirk: using DFM-selected FRL rate directly (rate %u)\n",
+ min_rate);
+ link->cur_link_settings.frl_rate = min_rate;
+ link->cur_link_settings.lane_count = min_rate <= 2 ? 3 : 4;
+ }
+
+ if (is_lg) {
+ success = dc_link_perform_frl_training(link, link_res);
+ } else {
+
+
for (i = 0; i < FRL_TRAINING_RETRIES; ++i) {
/* Reprogram the PHY for the current rate attempt. The caller
* (enable_link_hdmi) already called enable_hdmi_link_output once
@@ -293,6 +336,7 @@ bool dc_link_perform_frl_training_with_retries(struct dc_link *link,
DC_LOG_HW_LINK_TRAINING("FRL: Training attempt %d failed! Will attempt rate %d next",
i + 1, link->cur_link_settings.frl_rate);
}
+ }
return success;
}
--
2.53.0
How to test on arch:
- Add this code to:
/etc/linux-mkopec-git/patches/patch_filee.g./etc/linux-mkopec-git/patches/0005-FIX.patch - Include this patch in
/etc/linux-mkopec-git/patches/patches, mine looks like:
# List here the patches' filename to be applied in the correct order.
# All patches need to be placed in this directory and have the .patch name
# extension.
#
# PATCHES=(
# '0001-foo.patch'
# '0002-bar.patch'
# ...
# )
PATCHES=(
#'lg-frl-quirk.patch'
#'lg-frl-quirk-fixed.patch'
#'0001-FIX-LG-EDID.patch'
#'0001-FIX-LG-FRL.patch'
'0005-FIX.patch'
)
yay -S linux-mkopec-git linux-mkopec-git-headers --rebuild- Make sure you have correct kernel set at boot
I use systemd-boot so mine config looks like
/boot/loader/entries/arch_amd.conf
title Arch Linux amd 120HZ version
linux //vmlinuz-linux-mkopec-git
initrd /amd-ucode.img
initrd /initramfs-linux-mkopec-git.img
I had the same symptoms on a 9070 XT connected to a C9:
When HDMI Ultra Deep Colour was enabled he screen was black, but vnc-ing into the pc I could see 4k120 and vrr as available in KDE display options.
When HDMI Ultra Deep Colour was disabled, the screen would work normally, but only at 4k60.
@xerrni's patch didn't apply for me directly (I think the formatting might have broken in the comment), but reformatting it did the trick.
Works on Hicense 27GX. Thanks!