arm64: dts: renesas: white-hawk: Add mini-DP output support
Geert Uytterhoeven
maintainercover arm64: dts: renesas: white-hawk: Add mini-DP output support
Hi all,
As I had to test Tomi's WIP patches to add mini-DP output support to Gray Hawk Single, I moved my (old and new) DisplayPort gear to my board farm, and thought this was a good opportunity to test mini-DP output on White Hawk as a baseline (CN5), and add support for the second mini-DP output on the White Hawk BreakOut board (CN15).
For testing, I used the following hardware:
(A) BenQ BL2420PT desktop display (2560x1440),
(B) Joy-It Joy-View 15 portable display (1920x1080),
(C) Lindy DisplayPort to 2 Port HDMI MST Hub,
(D) Passive mini-DP to HDMI cable,
(E) LogiLink Mini DisplayPort to VGA Converter.
(A)-(C) are known to work with my Intel desktop.
(D)-(E) are known to work with an old Dell XPS13.
Software-wise, I used the frame buffer text console, "modetest -M rcar-du -s 86:1920x1080@XR24" or "modetest -M rcar-du -s 86:2560x1440@XR24", and fbtest.
White Hawk CN5
--------------
0. General:
- Hotplug detect does not work, switching display needs a reboot,
- fbtest test002 crashes with SEGV in 2560x1440.
1. Mini-DP to (A) DP:
- 2560x1440 works but flickers (flickering shifts image horizontally; perhaps a cable issue, as 2 below does work?)
- 1920x1080 is stable
2. Mini-DP to (C) to (A) HDMI:
- 2560x1440 OK
- 1920x1080 OK
3. Mini-DP to (C) to (B) mini-HDMI:
- 1920x1080 OK
4. Mini-DP to (C) to (A) HDMI + (B) mini-HDMI:
- 1920x1080 mirrored OK
5. Mini-DP to (E) to (A) HDMI:
- SN65DSI86 behaves as if no cable is connected. Expected, as TI SN65DSI86 does not support Dual-Mode/DP++.
6. Mini-DP to (D) to (A) VGA:
- Detected 1920x1080, black screen / no signal. Perhaps this adapter relies on DP++, too?
White Hawk CN15
---------------
Does not work:
- Display resolution is detected correctly (1920x1080 or 2560x1440),
- Black screen, displays say no signal detected,
- "modetest -M rcar-du -s 88:1920x1080@XR24" triggers:
rcar-mipi-dsi fed90000.dsi-encoder: Failed to disable video transmission vsp1 fea20000.vsp: Underrun occurred at WPF0 (total underruns 2)
Note that fea20000.vsp is vspd0, not vspd1. I do have a few similar messages for fea28000.vsp in my logs, so this may be a red herring.
Thanks for your comments!
Geert Uytterhoeven (1):
arm64: dts: renesas: white-hawk: Add mini-DP output support
.../boot/dts/renesas/r8a779g0-white-hawk.dts | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+)
Signature · 12 lines
2.34.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsGeert Uytterhoeven
maintainerPATCH 1/1 arm64: dts: renesas: white-hawk: Add mini-DP output support
Add support for the mini-DisplayPort connector on the White Hawk BreakOut board. This port is driven by a TI SN65DSI86 DSI to eDP bridge, which in turn gets the pixel data from the second DSI channel on the R-Car V4H SoC. Note that this port is not present on the White Hawk Single development board.
Based on the work by Tomi Valkeinen for the mini-DP port on the White Hawk CPU board, and by a patch in the BSP by LUU HOAI.
---
This has a hard dependency on "[PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances"[1], as the rcar-du driver fails to probe when any of the encoders failed to initialize:
platform feb00000.display: deferred probe pending: rcar-du: failed to initialize encoders
Does not work:
- Display resolution is detected correctly (1920x1080 or 2560x1440),
- Black screen, displays say no signal detected,
- "modetest -M rcar-du -s 88:1920x1080@XR24" triggers:
rcar-mipi-dsi fed90000.dsi-encoder: Failed to disable video transmission vsp1 fea20000.vsp: Underrun occurred at WPF0 (total underruns 2)
Note that fea20000.vsp is vspd0, not vspd1. I do have a few similar messages for fea28000.vsp in my logs, so this may be a red herring.
--- .../boot/dts/renesas/r8a779g0-white-hawk.dts | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+)
arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts +90 -0
@@ -12,4 +12,94 @@ / { model = "Renesas White Hawk CPU and Breakout boards based on r8a779g0"; compatible = "renesas,white-hawk-breakout", "renesas,white-hawk-cpu", "renesas,r8a779g0"; + + sn65dsi86_refclk2: clk-x16 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <38400000>; + }; + + mini-dp-con2 { + compatible = "dp-connector"; + label = "CN15"; + type = "mini"; + + port { + mini_dp_con_in2: endpoint { + remote-endpoint = <&sn65dsi86_out2>; + }; + }; + }; +}; + +&dsi1 { + status = "okay"; + + ports { + port@1 { + dsi1_out: endpoint { + remote-endpoint = <&sn65dsi86_in2>; + data-lanes = <1 2 3 4>; + }; + }; + }; +}; + +&i2c4 { + pinctrl-0 = <&i2c4_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + bridge@2c { + pinctrl-0 = <&irq1_pins>; + pinctrl-names = "default"; + + compatible = "ti,sn65dsi86"; + reg = <0x2c>; + + clocks = <&sn65dsi86_refclk2>; + clock-names = "refclk"; + + interrupts-extended = <&intc_ex 1 IRQ_TYPE_LEVEL_HIGH>; + + enable-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; + + vccio-supply = <®_1p8v>; + vpll-supply = <®_1p8v>; + vcca-supply = <®_1p2v>; + vcc-supply = <®_1p2v>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + sn65dsi86_in2: endpoint { + remote-endpoint = <&dsi1_out>; + }; + }; + + port@1 { + reg = <1>; + sn65dsi86_out2: endpoint { + remote-endpoint = <&mini_dp_con_in2>; + }; + }; + }; + }; +}; + +&pfc { + i2c4_pins: i2c4 { + groups = "i2c4"; + function = "i2c4"; + }; + + irq1_pins: irq1 { + groups = "intc_ex_irq1_a"; + function = "intc_ex"; + }; };
Signature · 1 line
2.34.1
Hi all,
Quoted 6 lines · Geert Uytterhoeven
Add support for the mini-DisplayPort connector on the White Hawk BreakOut board. This port is driven by a TI SN65DSI86 DSI to eDP bridge, which in turn gets the pixel data from the second DSI channel on the R-Car V4H SoC. Note that this port is not present on the White Hawk Single development board.
Quoted 8 lines
Based on the work by Tomi Valkeinen for the mini-DP port on the White Hawk CPU board, and by a patch in the BSP by LUU HOAI.
Signed-off-by Geert Uytterhoeven <[email protected]>Does not work:
- Display resolution is detected correctly (1920x1080 or 2560x1440),
- Black screen, displays say no signal detected,
The second display pipeline has a Display Stream Compression (DSC) encoder between the Display Unit (DU) and the DSI encoder. Forcing the DSC module clock on gives a working display, just like on Sparrow Hawk.
So now we just need DT bindings for the DSC, and a very simple DSC driver that calls pm_runtime_resume_and_get() ;-)
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi,
Quoted 19 lines · Geert Uytterhoeven
Hi all,
Quoted 6 lines · Geert Uytterhoeven
Add support for the mini-DisplayPort connector on the White Hawk BreakOut board. This port is driven by a TI SN65DSI86 DSI to eDP bridge, which in turn gets the pixel data from the second DSI channel on the R-Car V4H SoC. Note that this port is not present on the White Hawk Single development board.
Quoted 8 lines
Based on the work by Tomi Valkeinen for the mini-DP port on the White Hawk CPU board, and by a patch in the BSP by LUU HOAI.
Signed-off-by Geert Uytterhoeven <[email protected]>Does not work:
- Display resolution is detected correctly (1920x1080 or 2560x1440),
- Black screen, displays say no signal detected,
Quoted 6 lines
The second display pipeline has a Display Stream Compression (DSC) encoder between the Display Unit (DU) and the DSI encoder. Forcing the DSC module clock on gives a working display, just like on Sparrow Hawk.
So now we just need DT bindings for the DSC, and a very simple DSC driver that calls
pm_runtime_resume_and_get();-)
Alright, nice. Sometimes (rarely...) the solution is as easy as we thought it would be ;)
Tomi
Quoted 1 line · Geert Uytterhoeven
- fbtest test002 crashes with SEGV in 2560x1440.
This is a bug in fbtest: 32-bit arithmetic no longer flies for drawing ellipses on very large displays...
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi,
Quoted 22 lines · Geert Uytterhoeven
Hi all,
As I had to test Tomi's WIP patches to add mini-DP output support to Gray Hawk Single, I moved my (old and new) DisplayPort gear to my board farm, and thought this was a good opportunity to test mini-DP output on White Hawk as a baseline (CN5), and add support for the second mini-DP output on the White Hawk BreakOut board (CN15).
For testing, I used the following hardware:
(A) BenQ BL2420PT desktop display (2560x1440),
(B) Joy-It Joy-View 15 portable display (1920x1080),
(C) Lindy DisplayPort to 2 Port HDMI MST Hub,
(D) Passive mini-DP to HDMI cable,
(E) LogiLink Mini DisplayPort to VGA Converter.(A)-(C) are known to work with my Intel desktop.
(D)-(E) are known to work with an old Dell XPS13.Software-wise, I used the frame buffer text console, "modetest -M rcar-du -s 86:1920x1080@XR24" or "modetest -M rcar-du -s 86:2560x1440@XR24", and fbtest.
Quoted 5 lines
White Hawk CN5
--------------0. General:
- Hotplug detect does not work, switching display needs a reboot,
Right. It's an eDP chip, and the driver seems to be made to really only support eDP.
I'm not so familiar with the HW that I could say if DP HPD can be properly implemented or not (I've seen eDP chips that have had issues there...), but with a quick test one can do:
rwmem --i2c=1:0x2c -s8 -S8 0x5c:0=0
to enable the HPD, and then it seems to work. However, the driver doesn't support interrupts and uses DRM's polling, so it takes a while for the framework to notice the disconnect.
But if you run a command that does a display probe, say "kmsprint" from kms++, it'll update the status right away.
So, as far as I can see, without actually properly looking at it, it should be doable to improve the sn65dsi86 driver to support HPD too.
Quoted 5 lines
- fbtest test002 crashes with SEGV in 2560x1440.
1. Mini-DP to (A) DP:
- 2560x1440 works but flickers (flickering shifts image horizontally; perhaps a cable issue, as 2 below does work?)
I get a stable picture with my old-ish Dell monitor:
# kmstest Connector 0/@86: DP-1 Crtc 0/@83: [email protected] 241.500 2560/48/32/80/+ 1440/3/5/33/- 60 (59.95) P|D Plane 0/@33: 0,0-2560x1440 Fb 97 2560x1440-XR24 press enter to exit
Quoted 12 lines
- 1920x1080 is stable
2. Mini-DP to (C) to (A) HDMI:
- 2560x1440 OK
- 1920x1080 OK3. Mini-DP to (C) to (B) mini-HDMI:
- 1920x1080 OK4. Mini-DP to (C) to (A) HDMI + (B) mini-HDMI:
- 1920x1080 mirrored OK
Quoted 7 lines
5. Mini-DP to (E) to (A) HDMI:
- SN65DSI86 behaves as if no cable is connected. Expected, as TI SN65DSI86 does not support Dual-Mode/DP++.6. Mini-DP to (D) to (A) VGA:
- Detected 1920x1080, black screen / no signal. Perhaps this adapter relies on DP++, too?
Hmm, are these two mixed up? 5. should have (D), and 6 should have (E)?
No, the vga is an active one, but does it have external power source? If not, it relies on the power from the DP connector, and I'm not sure if we're providing any/enough.
Tomi
Quoted 24 lines
White Hawk CN15
---------------Does not work:
- Display resolution is detected correctly (1920x1080 or 2560x1440),
- Black screen, displays say no signal detected,
- "modetest -M rcar-du -s 88:1920x1080@XR24" triggers:rcar-mipi-dsi fed90000.dsi-encoder: Failed to disable video transmission vsp1 fea20000.vsp: Underrun occurred at WPF0 (total underruns 2)
Note that fea20000.vsp is vspd0, not vspd1. I do have a few similar messages for fea28000.vsp in my logs, so this may be a red herring.
Thanks for your comments!
Geert Uytterhoeven (1):
arm64: dts: renesas: white-hawk: Add mini-DP output support.../boot/dts/renesas/r8a779g0-white-hawk.dts | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+)
Hi Tomi,
Quoted 30 lines · Tomi Valkeinen
Quoted 20 lines · Geert Uytterhoeven
As I had to test Tomi's WIP patches to add mini-DP output support to Gray Hawk Single, I moved my (old and new) DisplayPort gear to my board farm, and thought this was a good opportunity to test mini-DP output on White Hawk as a baseline (CN5), and add support for the second mini-DP output on the White Hawk BreakOut board (CN15).
For testing, I used the following hardware:
(A) BenQ BL2420PT desktop display (2560x1440),
(B) Joy-It Joy-View 15 portable display (1920x1080),
(C) Lindy DisplayPort to 2 Port HDMI MST Hub,
(D) Passive mini-DP to HDMI cable,
(E) LogiLink Mini DisplayPort to VGA Converter.(A)-(C) are known to work with my Intel desktop.
(D)-(E) are known to work with an old Dell XPS13.Software-wise, I used the frame buffer text console, "modetest -M rcar-du -s 86:1920x1080@XR24" or "modetest -M rcar-du -s 86:2560x1440@XR24", and fbtest.
Quoted 6 lines
White Hawk CN5
--------------1. Mini-DP to (A) DP:
- 2560x1440 works but flickers (flickering shifts image
horizontally; perhaps a cable issue, as 2 below does work?)I get a stable picture with my old-ish Dell monitor:
Quoted 7 lines
# kmstest Connector 0/@86: DP-1 Crtc 0/@83: [email protected] 241.500 2560/48/32/80/+ 1440/3/5/33/- 60 (59.95) P|D Plane 0/@33: 0,0-2560x1440 Fb 97 2560x1440-XR24 press enter to exit
Good to know! I'll see if I can try with a different cable (the current one claims to do 8K, though).
Quoted 9 lines
Quoted 7 lines
5. Mini-DP to (E) to (A) HDMI:
- SN65DSI86 behaves as if no cable is connected. Expected, as TI SN65DSI86 does not support Dual-Mode/DP++.6. Mini-DP to (D) to (A) VGA:
- Detected 1920x1080, black screen / no signal. Perhaps this adapter relies on DP++, too?Hmm, are these two mixed up? 5. should have (D), and 6 should have (E)?
Yes they are. Sorry for that.
Quoted 3 lines
No, the vga is an active one, but does it have external power source? If not, it relies on the power from the DP connector, and I'm not sure if we're providing any/enough.
The VGA adapter does not have an external power source.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi,
Quoted 8 lines · Geert Uytterhoeven
White Hawk CN15
---------------Does not work:
- Display resolution is detected correctly (1920x1080 or 2560x1440),
- Black screen, displays say no signal detected,
- "modetest -M rcar-du -s 88:1920x1080@XR24" triggers:
Quoted 5 lines
rcar-mipi-dsi fed90000.dsi-encoder: Failed to disable video transmission vsp1 fea20000.vsp: Underrun occurred at WPF0 (total underruns 2)
Note that fea20000.vsp is vspd0, not vspd1. I do have a few similar messages for fea28000.vsp in my logs, so this may be a red herring.
I had a try with this. The first issue I hit was that ti-sn65dsi86 driver doesn't work if there are two sn65dsi86 devices: Creating aux devices try to create sysfs files with the same names for both devices, thus failing. I take you didn't see this?
I brute forced my way through that by doing "aux->id = s_foo++;" in ti_sn65dsi86_add_aux_device().
After that, I was in the same situation as you, black screen. The ti-sn65dsi86 does detect the monitor, though, and reads the edid just fine, so I think it unlikely that the issue is on ti-sn65dsi86 side. I'm not sure if the second DSI output has ever been tested, maybe the issue is around there.
I did not see the errors you saw. Random underflows are know to happen, though, but it's odd if you see them for the display path that's (supposedly) not in use...
The fps looks fine, so the pclk and timings are probably ok:
kmstest -c1 --flip
Connector 1/@88: DP-2
Crtc 1/@84: [email protected] 241.500 2560/48/32/80/+ 1440/3/5/33/- 60
(59.95) P|D
Plane 5/@58: 0,0-2560x1440
Fb 99 2560x1440-XR24
press enter to exit
Connector 1: fps 60.02, slowest 17.16 ms Connector 1: fps 59.99, slowest 16.69 ms Connector 1: fps 59.99, slowest 16.82 ms Connector 1: fps 60.00, slowest 16.82 ms
Tomi
Hi Tomi,
Quoted 13 lines · Tomi Valkeinen
Quoted 11 lines · Geert Uytterhoeven
White Hawk CN15
---------------Does not work:
- Display resolution is detected correctly (1920x1080 or 2560x1440),
- Black screen, displays say no signal detected,
- "modetest -M rcar-du -s 88:1920x1080@XR24" triggers:rcar-mipi-dsi fed90000.dsi-encoder: Failed to disable video transmission vsp1 fea20000.vsp: Underrun occurred at WPF0 (total underruns 2)
Quoted 7 lines
Quoted 2 lines
Note that fea20000.vsp is vspd0, not vspd1. I do have a few similar messages for fea28000.vsp in my logs, so this may be a red herring.
I had a try with this. The first issue I hit was that ti-sn65dsi86 driver doesn't work if there are two sn65dsi86 devices: Creating aux devices try to create sysfs files with the same names for both devices, thus failing. I take you didn't see this?
I did, cfr. my comment in [PATCH/RFC 1/1][2]:
This has a hard dependency on "[PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances"[1]
Quoted 9 lines
I brute forced my way through that by doing "
aux->id= s_foo++;" inti_sn65dsi86_add_aux_device().After that, I was in the same situation as you, black screen. The ti-sn65dsi86 does detect the monitor, though, and reads the edid just fine, so I think it unlikely that the issue is on ti-sn65dsi86 side. I'm not sure if the second DSI output has ever been tested, maybe the issue is around there.
Quoted 5 lines
I did not see the errors you saw. Random underflows are know to happen, though, but it's odd if you see them for the display path that's (supposedly) not in use...
The fps looks fine, so the pclk and timings are probably ok:
Thanks! So it probably is an issue with the routing in the DU or DSI driver...
[1] https://lore.kernel.org/8c2df6a903f87d4932586b25f1d3bd548fe8e6d1.1729180470.git.geert+renesas@glider.be/
[2] https://lore.kernel.org/all/05e43f61321b4191d5f97dec2349facd4b56c899.1729240989.git.geert+renesas@glider.be/
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 20 lines · Geert Uytterhoeven
As I had to test Tomi's WIP patches to add mini-DP output support to Gray Hawk Single, I moved my (old and new) DisplayPort gear to my board farm, and thought this was a good opportunity to test mini-DP output on White Hawk as a baseline (CN5), and add support for the second mini-DP output on the White Hawk BreakOut board (CN15).
For testing, I used the following hardware:
(A) BenQ BL2420PT desktop display (2560x1440),
(B) Joy-It Joy-View 15 portable display (1920x1080),
(C) Lindy DisplayPort to 2 Port HDMI MST Hub,
(D) Passive mini-DP to HDMI cable,
(E) LogiLink Mini DisplayPort to VGA Converter.(A)-(C) are known to work with my Intel desktop.
(D)-(E) are known to work with an old Dell XPS13.Software-wise, I used the frame buffer text console, "modetest -M rcar-du -s 86:1920x1080@XR24" or "modetest -M rcar-du -s 86:2560x1440@XR24", and fbtest.
Quoted 7 lines
White Hawk CN5
--------------1. Mini-DP to (A) DP:
- 2560x1440 works but flickers (flickering shifts image horizontally; perhaps a cable issue, as 2 below does work?)
- 1920x1080 is stable
While I don't have a second Mini-DP-to-DP-M cable, I tried a few other combos (now on Gray Hawk Single):
7. (D) + HDMI-F-F adapter + passive HDMI-F-to-DP-cable to (A) DP,
8. Mini-DP-to-DP-F cable (=X) + plain DP cable (=Y) to (A) DP,
unfortunately with the same results. Note that (X) is the same cable as used in scenario 2 below, and (Y) works fine with my Intel desktop.
However, the maximum cable length for eDP seems to be 30 cm, so that may explain why 2 below is the only wiring that works at 2560x1440 (despite cable (X) being 1m, i.e. still too long)?
Quoted 3 lines
2. Mini-DP to (C) to (A) HDMI:
- 2560x1440 OK
- 1920x1080 OK
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 25 lines · Geert Uytterhoeven
Quoted 23 lines · Geert Uytterhoeven
As I had to test Tomi's WIP patches to add mini-DP output support to Gray Hawk Single, I moved my (old and new) DisplayPort gear to my board farm, and thought this was a good opportunity to test mini-DP output on White Hawk as a baseline (CN5), and add support for the second mini-DP output on the White Hawk BreakOut board (CN15).
For testing, I used the following hardware:
(A) BenQ BL2420PT desktop display (2560x1440),
(B) Joy-It Joy-View 15 portable display (1920x1080),
(C) Lindy DisplayPort to 2 Port HDMI MST Hub,
(D) Passive mini-DP to HDMI cable,
(E) LogiLink Mini DisplayPort to VGA Converter.(A)-(C) are known to work with my Intel desktop.
(D)-(E) are known to work with an old Dell XPS13.Software-wise, I used the frame buffer text console, "modetest -M rcar-du -s 86:1920x1080@XR24" or "modetest -M rcar-du -s 86:2560x1440@XR24", and fbtest.
White Hawk CN5
--------------
Quoted 8 lines
Quoted 4 lines
1. Mini-DP to (A) DP:
- 2560x1440 works but flickers (flickering shifts image horizontally; perhaps a cable issue, as 2 below does work?)
- 1920x1080 is stableWhile I don't have a second Mini-DP-to-DP-M cable, I tried a few other combos (now on Gray Hawk Single):
7. (D) + HDMI-F-F adapter + passive HDMI-F-to-DP-cable to (A) DP,
D is passive DP->HDMI, it won't work. Are you saying it works, and the result matches the test case 1.?
Quoted 2 lines
8. Mini-DP-to-DP-F cable (=X) + plain DP cable (=Y) to (A) DP,
unfortunately with the same results. Note that (X) is the same cable
"same results" means same as in 1.?
Quoted 3 lines
as used in scenario 2 below, and (Y) works fine with my Intel desktop.
However, the maximum cable length for eDP seems to be 30 cm, so that
Where did you read that? I don't think there's such a thing as "eDP cable". In laptops etc. eDP is connected to the panel via custom made cables, and the cable design affects how long it can be. eDP and DP are identical wrt. signaling, so using a DP cable with eDP or DP should behave the same.
That said, I don't think the eDP->DP connector designs we see in these development boards are really made to match what one would expect from a consumer device with a DP output.
Quoted 6 lines
may explain why 2 below is the only wiring that works at 2560x1440 (despite cable (X) being 1m, i.e. still too long)?
Quoted 3 lines
2. Mini-DP to (C) to (A) HDMI:
- 2560x1440 OK
- 1920x1080 OK
My guess is that this works, because there's an active component there which decodes the DP input and re-encodes it to HDMI output, probably with different timings (read, more standard). So the (C) is more tolerant on not-so-standard DP input than (A) is.
The eDP chip is limited in its capabilities, e.g. back porch registers are 8-bit, so they max out at 255. While those are checked in the driver, I wouldn't be surprised if some other limitations are not (the driver has clearly been written for eDP panels).
You could try different custom timings with kmstest, to find if there's something obvious that makes the case 1. work. For example, if the issue is indeed the cable, probably lowering the pixel clock would fix it. So using the same timings but dropping the pclk in half might get a stable picture (then again, lowering pclk might fix many other kinds of issues too...).
Can you send your monitor's edid blob? I don't have a board up here, but it should be available from somewhere in sysfs. On my desktop it's:
/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-DP-2/edid
Tomi
Hi Tomi,
Quoted 31 lines · Tomi Valkeinen
Quoted 30 lines · Geert Uytterhoeven
Quoted 27 lines · Geert Uytterhoeven
As I had to test Tomi's WIP patches to add mini-DP output support to Gray Hawk Single, I moved my (old and new) DisplayPort gear to my board farm, and thought this was a good opportunity to test mini-DP output on White Hawk as a baseline (CN5), and add support for the second mini-DP output on the White Hawk BreakOut board (CN15).
For testing, I used the following hardware:
(A) BenQ BL2420PT desktop display (2560x1440),
(B) Joy-It Joy-View 15 portable display (1920x1080),
(C) Lindy DisplayPort to 2 Port HDMI MST Hub,
(D) Passive mini-DP to HDMI cable,
(E) LogiLink Mini DisplayPort to VGA Converter.(A)-(C) are known to work with my Intel desktop.
(D)-(E) are known to work with an old Dell XPS13.Software-wise, I used the frame buffer text console, "modetest -M rcar-du -s 86:1920x1080@XR24" or "modetest -M rcar-du -s 86:2560x1440@XR24", and fbtest.
White Hawk CN5
--------------1. Mini-DP to (A) DP:
- 2560x1440 works but flickers (flickering shifts image horizontally; perhaps a cable issue, as 2 below does work?)
- 1920x1080 is stable
Quoted 6 lines
Quoted 3 lines
While I don't have a second Mini-DP-to-DP-M cable, I tried a few other combos (now on Gray Hawk Single):
7. (D) + HDMI-F-F adapter + passive HDMI-F-to-DP-cable to (A) DP,D is passive
DP->HDMI, it won't work. Are you saying it works, and the result matches the test case 1.?
It doesn't. I had hoped combining the two passive adapters would provide a valid galvanical DP conduit...
Quoted 5 lines
Quoted 3 lines
8. Mini-DP-to-DP-F cable (=X) + plain DP cable (=Y) to (A) DP,
unfortunately with the same results. Note that (X) is the same cable"same results" means same as in 1.?
Oops, IIRC both 7 and 8 didn't work at all (monitor not detected).
Quoted 5 lines
Quoted 3 lines
as used in scenario 2 below, and (Y) works fine with my Intel desktop.
However, the maximum cable length for eDP seems to be 30 cm, so that
Where did you read that? I don't think there's such a thing as "eDP
https://www.lv-tron.com/edp-made-simple-quick-start-guide-with-experts-tips/
Quoted 2 lines
cable". In laptops etc. eDP is connected to the panel via custom made cables, and the cable design affects how long it can be. eDP and DP are
i.e. an eDP cable ;-)
Quoted 6 lines
identical wrt. signaling, so using a DP cable with eDP or DP should behave the same.
That said, I don't think the
eDP->DPconnector designs we see in these development boards are really made to match what one would expect from a consumer device with a DP output.
Indeed. And using a (too) long cable probably breaks this.
Quoted 11 lines
Quoted 6 lines
may explain why 2 below is the only wiring that works at 2560x1440 (despite cable (X) being 1m, i.e. still too long)?
Quoted 3 lines
2. Mini-DP to (C) to (A) HDMI:
- 2560x1440 OK
- 1920x1080 OKMy guess is that this works, because there's an active component there which decodes the DP input and re-encodes it to HDMI output, probably with different timings (read, more standard). So the (C) is more tolerant on not-so-standard DP input than (A) is.
Yes, it has an active component, and a shorter cable.
Quoted 11 lines
The eDP chip is limited in its capabilities, e.g. back porch registers are 8-bit, so they max out at 255. While those are checked in the driver, I wouldn't be surprised if some other limitations are not (the driver has clearly been written for eDP panels).
You could try different custom timings with kmstest, to find if there's something obvious that makes the case 1. work. For example, if the issue is indeed the cable, probably lowering the pixel clock would fix it. So using the same timings but dropping the pclk in half might get a stable picture (then again, lowering pclk might fix many other kinds of issues too...).
The modes reported by modetest differ slightly between (1) and (2).
(1) contains one additional 1920x1080 mode, but all other modes are the same.
Quoted 4 lines
Can you send your monitor's edid blob? I don't have a board up here, but it should be available from somewhere in sysfs. On my desktop it's:
/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-DP-2/edid
And in the modetest output. I'll send these by PM.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds