<div dir="ltr">On Friday, Jul 18, 2025, Dmitry Baryshkov <<a href="mailto:dmitry.baryshkov@oss.qualcomm.com" target="_blank">dmitry.baryshkov@oss.qualcomm.com</a>> wrote:<br>> On Thu, Jul 17, 2025 at 11:36:38PM +0200, Jérôme de Bretagne wrote:<br>>> Le jeu. 17 juil. 2025 à 23:10, Konrad Dybcio<br>>> <<a href="mailto:konrad.dybcio@oss.qualcomm.com" target="_blank">konrad.dybcio@oss.qualcomm.com</a>> a écrit :<br>>> ><br>>> > On 7/17/25 10:27 PM, Jérôme de Bretagne wrote:<br>>> > > On 2025/7/17 04:21, Xilin Wu <<a href="mailto:sophon@radxa.com" target="_blank">sophon@radxa.com</a>> wrote :<br>>> > >><br>>> > >> On 2025/7/15 01:35:42, Dale Whinham wrote:<br>>> > >>> From: Jérôme de Bretagne <<a href="mailto:jerome.debretagne@gmail.com" target="_blank">jerome.debretagne@gmail.com</a>><br>>> > >>><br>>> > >>> The OLED display in the Surface Pro 11 reports a maximum link rate of<br>>> > >>> zero in its DPCD, causing it to fail to probe correctly.<br>>> > >>><br>>> > >>> The Surface Pro 11's DSDT table contains some XML with an<br>>> > >>> "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E<br>>> > >>> (8.1Gbps/HBR3).<br>>> > >>><br>>> > >>> Add a quirk to conditionally override the max link rate if its value<br>>> > >>> is zero specifically for this model.<br>>> > >>><br>>> > >>> Signed-off-by: Jérôme de Bretagne <<a href="mailto:jerome.debretagne@gmail.com" target="_blank">jerome.debretagne@gmail.com</a>><br>>> > >>> Signed-off-by: Dale Whinham <<a href="mailto:daleyo@gmail.com" target="_blank">daleyo@gmail.com</a>><br>>> > >>> ---<br>>> > >>>   drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++<br>>> > >>>   1 file changed, 13 insertions(+)<br>>> > >>><br>><br>> [...]<br>><br>>><br>>> > ><br>>> > > Is it a feature planned in the short-medium term within the MSM driver?<br>>> > > If not, would a quirk like [4] be acceptable upstream in the meanwhile?<br>>> ><br>>> > I'm not a display guy, but this looks like yet another block of code<br>>> > begging to be commonized across DP drivers,<br>>><br>>> I agree 100% in principle, but the 3 implementations are different today.<br>>><br>>> > so I wouldn't expect it to be a big blocker.<br>>><br>>> Well, it is for me :)<br>>><br>>> > Adding a panel quirk doesn't seem in order, as the panel is /probably/<br>>> > very much in spec, and it's the driver bit that's missing.<br>>><br>>> I agree that a quirk shouldn't be needed. I guess we'll work on<br>>> upstreaming everything else and keep an out-of-tree patch for this<br>>> issue for the moment That's a bit sad as this will block regular<br>>> users from easily installing / testing via the Ubuntu Concept ISO<br>>> for instance.<br>>><br>>> Or could the quirk be accepted temporarily with good comments<br>>> then reverted when the driver adds the missing support? I guess<br>>> it would depend on the time scale of this support landing.<br>><br>> Unforutunately, there is more than that. We should also be writing the<br>> LINK_RATE_SET register. So, just setting the max_bw is not enough.<br><br>Maybe I've misunderstood. When you say max_bw is not enough, <br><div>are you talking about some future driver changes or about a potential</div><div>shorter-term fix?</div><div><br></div><div>I can confirm that this initial simple patch (and also the updated one</div><div>reusing the quirk list [4]) is enough to get the SP11 OLED display</div><div>working whereas it doesn't probe and remains off without such a fix.</div><br>Thanks,<br>Jérôme<br><br>[4] <a href="https://github.com/JeromeDeBretagne/linux-surface-pro-11/commit/d265cfb" target="_blank">https://github.com/JeromeDeBretagne/linux-surface-pro-11/commit/d265cfb</a></div><br><br>> --<br>> With best wishes<br>> Dmitry<br>>