cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sherazalishah
Visitor
Visitor
362 Views
Registered: ‎08-24-2020

Dispay Port Monitor going to sleep

Hi,

I am working Display Port TX, After booting and running modetest for the first time, Internal TPG is displayed but subsequent modetest command do not give any error or TPG on the monitor but register 0x110 is set to 1 after modertest is executed, 

 

//Scenario

modetest -D amba_pl@0:dptx_disp_0 -s 31:3840x2160@BG24
trying to open device 'i915'...done
setting mode 3840x2160-60Hz@BG24 on connectors 31, crtc 29
//Internal Test Pattern Displayed on Display Port
root@PRGLT-DP-RX:~#
root@PRGLT-DP-RX:~#//Monitor Does not display Internal TPG
root@PRGLT-DP-RX:~# modetest -D amba_pl@0:dptx_disp_0 -s 31:3840x2160@BG24
setting mode 3840x2160-60Hz@BG24 on connectors 31, crtc 29

110 register is set to 1 after 2nd Modetest command is run

I have attched DP TX and DP PHY Controller for your reference

Tags (2)
0 Kudos
5 Replies
sandeepg
Moderator
Moderator
325 Views
Registered: ‎04-24-2017

Hi @sherazalishah ,

Are you using PL DP 1.4 Tx right ? I will check and let you know.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
sherazalishah
Visitor
Visitor
290 Views
Registered: ‎08-24-2020

Hi Sandeep.

I am using PL DP 1.4 TX.

Thanks,
Sheraz Ali Shah

0 Kudos
sherazalishah
Visitor
Visitor
237 Views
Registered: ‎08-24-2020

Hi @sandeepg 

Any update on PL DP Monitor going to sleep, I have attached the log showing my testing.

Display Module Source Code https://github.com/Xilinx/dp-modules/tree/rel-v2020.1

Thanks,
Sheraz Ali Shah

 

0 Kudos
sandeepg
Moderator
Moderator
212 Views
Registered: ‎04-24-2017

Hi @sherazalishah ,

I ran the test for more than a hour I don't see DP going to sleep.

root@zcu102-dp-rxtx:~# [   53.079386] Asserted cable unplug interrupt

root@zcu102-dp-rxtx:~#
root@zcu102-dp-rxtx:~# dmesg | grep -i dp
[    2.682261] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    2.688930] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    2.706165] RPC: Registered udp transport module.
[    3.358443] xilinx-video amba_pl@0:vcap_dp: /amba_pl@0/vcap_dp/ports/port@0 initialization failed
[    3.366883] xilinx-video amba_pl@0:vcap_dp: DMA initialization failed
[    3.713174] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.719059] Bluetooth: HIDP socket layer initialized
[    4.046719] TI DP83867 ff0e0000.ethernet-ffffffff:0c: attached PHY driver [TI DP83867] (mii_bus:phy_addr=ff0e0000.ethernet-ffffffff:0c, irq=POLL)
[    4.139775] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    4.199608] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    4.560230] xilinx-video amba_pl@0:vcap_dp: device registered
[    4.605296] xilinx-video amba_pl@0:vcap_dp: Entity type for entity a00a0000.v_axi4s_remap was not initialized!
[    5.124904] xilinx-vphy a0020000.vid_phy_controller: xlnx-dp-vphy: probed
[    5.152688] mcdp6000 2-0014: mcdp6000 : probe success !
[   10.154997] xilinx-vphy a0020000.vid_phy_controller: dp-vphy probe successful
[   10.163969] xilinx-video amba_pl@0:vcap_dp: Entity type for entity a0040000.v_dp_rxss1 was not initialized!
[   10.174637] xilinx-dprxss a0040000.v_dp_rxss1: Xilinx DP Rx Subsystem device found!
[   10.202109] xlnx-drm xlnx-drm.0: bound a0100000.v_dp_txss1 (ops xlnx_dp_component_ops [xilinx_dp])
root@zcu102-dp-rxtx:~#
root@zcu102-dp-rxtx:~# modetest -M xlnx -s 34:1920x1080-60@BG24 &
[1] 665
[  211.448558] pll lock status 0
[  211.448558]
[  211.448561] PLL Lock  : Status =0
root@zcu102-dp-rxtx:~# setting mode 1920x1080-60.00Hz@BG24 on connectors 34, crtc 32
[  211.687291] ------------[ cut here ]------------
[  211.691906] [CRTC:32:crtc-0] vblank wait timed out
[  211.696732] WARNING: CPU: 1 PID: 665 at drivers/gpu/drm/drm_atomic_helper.c:1467 drm_atomic_helper_wait_for_vblanks.part.0+0x274/0x290
[  211.708796] Modules linked in: xilinx_dp(O) xilinx_dprxss(O) phy_xilinx_vphy(O) uio_pdrv_genirq
[  211.717490] CPU: 1 PID: 665 Comm: modetest Tainted: G        W  O      5.4.0-xilinx-v2020.1 #1
[  211.726087] Hardware name: ZynqMP ZCU102 Rev1.0 (DT)
[  211.731037] pstate: 60000005 (nZCv daif -PAN -UAO)
[  211.735812] pc : drm_atomic_helper_wait_for_vblanks.part.0+0x274/0x290
[  211.742331] lr : drm_atomic_helper_wait_for_vblanks.part.0+0x274/0x290
[  211.748838] sp : ffffffc011bdb970
[  211.752136] x29: ffffffc011bdb970 x28: 0000000000000000
[  211.757431] x27: 0000000000000007 x26: 0000000000000000
[  211.762726] x25: ffffff8875d23000 x24: 0000000000000001
[  211.768021] x23: 0000000000000038 x22: 0000000000000001
[  211.773316] x21: ffffff8877f75e80 x20: ffffff8878199090
[  211.778610] x19: 0000000000000000 x18: 0000000000000010
[  211.783905] x17: 0000000000000000 x16: 0000000000000000
[  211.789200] x15: ffffff887a07a4e8 x14: ffffffffffffffff
[  211.794495] x13: ffffffc091bdb6b7 x12: ffffffc011bdb6bf
[  211.799790] x11: ffffffc01104c000 x10: 0000000000000000
[  211.805085] x9 : ffffffc0110e1000 x8 : 00000000000001ca
[  211.810379] x7 : 0000000000000006 x6 : ffffffc0110e1095
[  211.815674] x5 : 0000000000000007 x4 : 0000000000000000
[  211.820969] x3 : 0000000000000000 x2 : 00000000ffffffff
[  211.826264] x1 : 9b6f148d1ced7400 x0 : 0000000000000000
[  211.831559] Call trace:
[  211.833993]  drm_atomic_helper_wait_for_vblanks.part.0+0x274/0x290
[  211.840164]  drm_atomic_helper_commit_tail+0x60/0x78
[  211.845119]  commit_tail+0xe8/0x138
[  211.848592]  drm_atomic_helper_commit+0xc8/0x140
[  211.853192]  drm_atomic_commit+0x48/0x58
[  211.857099]  drm_atomic_helper_set_config+0xa0/0xb0
[  211.861959]  drm_mode_setcrtc+0x154/0x660
[  211.865954]  drm_ioctl_kernel+0xb8/0x108
[  211.869866]  drm_ioctl+0x200/0x410
[  211.873252]  do_vfs_ioctl+0x878/0xa20
[  211.876896]  ksys_ioctl+0x44/0x90
[  211.880195]  __arm64_sys_ioctl+0x1c/0x28
[  211.884104]  el0_svc_common.constprop.0+0x68/0x160
[  211.888885]  el0_svc_handler+0x6c/0x88
[  211.892617]  el0_svc+0x8/0xc
[  211.895479] ---[ end trace 5dcfa03ad34526fa ]---


[1]+  Stopped(SIGTTIN)        modetest -M xlnx -s 34:1920x1080-60@BG24
root@zcu102-dp-rxtx:~#
root@zcu102-dp-rxtx:~# ps -a | grep modetest
  665 root      0:00 modetest -M xlnx -s 34:1920x1080-60@BG24
  806 root      0:00 grep modetest
root@zcu102-dp-rxtx:~#
root@zcu102-dp-rxtx:~# ls /sys/devices/platform/amba_pl@0/*dp_tx* -ld
drwxr-xr-x    4 root     root             0 Mar  9 18:58 /sys/devices/platform/amba_pl@0/a0100000.v_dp_txss1
root@zcu102-dp-rxtx:~#

 

sandeepg_0-1615319685206.png

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
sherazalishah
Visitor
Visitor
176 Views
Registered: ‎08-24-2020

Hi @sandeepg 

Now modetest is working for me after changing the xlnx,vformat  from "BG24" to "YUYV", But i am unable to run videotestsrc using gstreamer,

dptx_disp_0: dptx_disp_0 {
compatible = "xlnx,pl-disp";
dmas = <&dp_tx_frmbuf_rd1 0>;
dma-names = "dma0";
xlnx,vformat = "YUYV";
#address-cells = <1>;
#size-cells = <0>;
dptx_disp_0_port_0: port@0 {
reg = <0>;
dptx_disp_0_crtc_0: endpoint_0 {
remote-endpoint = <&dptx_encoder_0>;
};
};
};

This is the gstreamer command i am using 

gst-launch-1.0 -v videotestsrc ! video/x-raw,width=3840,height=2160 ! queue ! kmssink bus-id="amba_pl@0:dptx_disp_0" async=false sync=false

0 Kudos