UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
293 次查看
注册日期: ‎05-19-2019

[PS.DisplayPort] Nothing shows on display while running modetest

Please help to check the issue about displayport output:

Running modetest without any errors, but nothing shows on display (expect a bar shows up)

root@baseboard:/# modetest -M xlnx -s 38:1920x1080@RG24                                                                                                                               
setting mode 1920x1080-60Hz@RG24 on connectors 38, crtc 36 

 

This is the pipeline info:

root@baseboard:/# modetest -M xlnx 
Encoders:
id      crtc    type    possible crtcs  possible clones
37      36      TMDS    0x00000001      0x00000000

Connectors:
id      encoder status          name            size (mm)       modes   encoders
38      37      connected       DP-1            480x270         12      37
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
  1600x900 60 1600 1624 1704 1800 900 901 904 1000 108000 flags: phsync, pvsync; type: driver
  1280x1024 75 1280 1296 1440 1688 1024 1025 1028 1066 135000 flags: phsync, pvsync; type: driver
  1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 108000 flags: phsync, pvsync; type: driver
  1152x864 75 1152 1216 1344 1600 864 865 868 900 108000 flags: phsync, pvsync; type: driver
  1024x768 75 1024 1040 1136 1312 768 769 772 800 78750 flags: phsync, pvsync; type: driver
  1024x768 60 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver
  800x600 75 800 816 896 1056 600 601 604 625 49500 flags: phsync, pvsync; type: driver
  800x600 60 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
  640x480 75 640 656 720 840 480 481 484 500 31500 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  720x400 70 720 738 846 900 400 412 414 449 28320 flags: nhsync, pvsync; type: driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
                        00ffffffffffff0010acd8a04c573430
                        311a0104a5301b783ac7b5a756539c27
                        105054a54b00714f8180a9c0d1c00101
                        010101010101023a801871382d40582c
                        4500dc0b1100001e000000ff00584856
                        4a563643333034574c0a000000fc0044
                        454c4c205032323137480a20000000fd
                        00384c1e5311010a202020202020002f
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        39 sync:
                flags: range
                values: 0 1
                value: 0
        40 bpc:
                flags: enum
                enums: 6BPC=6 8BPC=8 10BPC=10 12BPC=12
                value: 8

CRTCs:
id      fb      pos     size
36      55      (0,0)   (1920x1080)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
  props:
        29 output_color:
                flags: enum
                enums: rgb=0 ycrcb444=1 ycrcb422=2 yonly=3
                value: 0
        30 bg_c0:
                flags: range
                values: 0 4095
                value: 0
        31 bg_c1:
                flags: range
                values: 0 4095
                value: 0
        32 bg_c2:
                flags: range
                values: 0 4095
                value: 0

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
34      0       0       0,0             0,0     0               0x00000001
  formats: VYUY UYVY YUYV YVYU YU16 YV16 YU24 YV24 NV16 NV61 BG24 RG24 XB24 XR24 XB30 XR30 YU12 YV12 NV12 NV21 XV15 XV20
  props:
        6 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0
        33 tpg:
                flags: range
                values: 0 1
                value: 0
35      36      55      0,0             0,0     0               0x00000001
  formats: AB24 AR24 RA24 BA24 BG24 RG24 RA15 BA15 RA12 BA12 RG16 BG16
  props:
        6 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        27 alpha:
                flags: range
                values: 0 255
                value: 255
        28 g_alpha_en:
                flags: range
                values: 0 1
                value: 1

Frame buffers:
id      size    pitch

SOC model:XCZU19EG

Software: Yocto with Xilinx BSP

Monitor: DELL P2217HB, or some other similar DELL monitors.

Cable: DP-DP

Please find kernel log from the attached, there's one error message out of it:

OF: graph: no port node found in /amba/zynqmp-display@fd4a0000

Is this error relevant to the issue?

0 项奖励
5 条回复5
Moderator
Moderator
250 次查看
注册日期: ‎08-01-2007

回复: [DP of PS] 运行modetest,显示器一直黑屏

测试过的可以跟PS DP工作的montior如https://www.xilinx.com/support/answers/68671.html.

Have you verified that DP cable is working as expected?

0 项奖励
215 次查看
注册日期: ‎05-19-2019

回复: [DP of PS] 运行modetest,显示器一直黑屏

 

Yes. The combination (monitor + cable) was proven all right by verification with an HP desktop workstation. 

Some more details during digging over the xlnx driver:

1. DP hotplug event detected (observed by both oscilloscope and IRQ handler);
2. I2C over AUX readout OK (proved by DPCD reading transactions OK);
3. link train OK (zynqmp_dp_train return 0);

DPCD read out on DELL P2217H and P2314H (the same):

address           value                     interpretation

---------------------------------------------------------------

0x0                   0x11                     DPCD revision 1.1

0x1                   0x0A                     2.7Gbps per lane

0x2                   0x84                     4 lanes, support ENHANCED_FRAME_CAP

0x3                   0x01                     Up to 0.5% down-spread, Requires AUX CH handshake to synchronize to DisplayPort transmitter

0x4                   0x01                     number of receiver ports (value + 1) = 2

0x5                   0x00                     downstream port type = DisplayPort, default for other option.

0x6                   0x01                     DisplayPort receiver supports the Main Link channel coding specification as specified in ANSI X3.230-1994, clause 11.

0x7                   0x00                     downstream port count = 0, OUI not supported

0x8                   0x02                     Receiver port #0 has a local EDID

0x9                   0x02                     Receiver port #0 buffer size = (value + 1) * 32 bytes per lane = 96 bytes / lane

0xA                   0x06                     Receiver port #1 has a local EDID

0xB                   0x00                     Receiver port #0 buffer size = 0 (??)                 

0xC                   0x00                     The DisplayPort receiver does not implement a physical I2C bus, so no source (speed) control.

0xD                   0x00                     for eDP only, meaningless in DRS360 case.

0xE                    0x00                    100us for the Main Link Clock Recovery phase 400us for the Main Link Channel Equalization phase and for FAUX training

 

0 项奖励
199 次查看
注册日期: ‎05-19-2019

回复: [DP of PS] 运行modetest,显示器一直黑屏

here is the kernel log using the bootargs for drm debugging (and some my own pr_info):

[ 1.794743] mmcblk0: mmc0:0007 SD16G 14.4 GiB
[ 1.809138] mmcblk0: p1 p2
[ 3.672632] console [ttyPS0] enabled
[ 3.676621] ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 49, base_baud = 6250000) is a xuartps
[ 3.686787] xilinx-psgtr fd400000.zynqmp_phy: Lane:3 type:8 protocol:4 pll_locked:yes
[ 3.694910] PLL: shutdown vpll_int
[ 3.699118] OF: graph: no port node found in /amba/zynqmp-display@fd4a0000
[ 3.706047] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 3.712586] [drm] No driver support for vblank timestamp query.
[ 3.718551] xlnx-drm xlnx-drm.0: bound fd4a0000.zynqmp-display (ops 0xffffff8008b8cab0)
[ 3.718559] lih: DP_TX_INTR_HPD_EVENT, 0, 0
[ 3.720788] lih: zynqmp_dp_connector_detect -> dpcd read: ret=15
[ 3.720795] lih: dpcd: 11 0A 84 01 01 00 01 80 02 00 00 00 00 00 00
[ 3.720806] [drm:drm_helper_hpd_irq_event] [CONNECTOR:38:DP-1] status updated from unknown to connected
[ 3.742981] [drm:drm_setup_crtcs]
[ 3.742990] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:38:DP-1]
[ 3.745217] lih: zynqmp_dp_connector_detect -> dpcd read: ret=15
[ 3.751147] lih: dpcd: 11 0A 84 01 01 00 01 80 02 00 00 00 00 00 00
[ 3.770003] lih: zynqmp_dp_connector_get_modes - drm_get_edid return 0x76b7de00
[ 3.783608] lih: zynqmp_dp_connector_get_modes - drm_add_edid_modes return 12
[ 3.790815] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:38:DP-1] probed modes :
[ 3.790826] [drm:drm_mode_debug_printmodeline] Modeline 42:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5
[ 3.790834] [drm:drm_mode_debug_printmodeline] Modeline 45:"1600x900" 60 108000 1600 1624 1704 1800 900 901 904 1000 0x40 0x5
[ 3.790843] [drm:drm_mode_debug_printmodeline] Modeline 50:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 3.790851] [drm:drm_mode_debug_printmodeline] Modeline 44:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 3.790860] [drm:drm_mode_debug_printmodeline] Modeline 43:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5
[ 3.790868] [drm:drm_mode_debug_printmodeline] Modeline 51:"1024x768" 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5
[ 3.790877] [drm:drm_mode_debug_printmodeline] Modeline 52:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[ 3.790885] [drm:drm_mode_debug_printmodeline] Modeline 53:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
[ 3.790894] [drm:drm_mode_debug_printmodeline] Modeline 46:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
[ 3.790902] [drm:drm_mode_debug_printmodeline] Modeline 47:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
[ 3.790910] [drm:drm_mode_debug_printmodeline] Modeline 48:"640x480" 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
[ 3.790919] [drm:drm_mode_debug_printmodeline] Modeline 49:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
[ 3.790925] [drm:drm_setup_crtcs] connector 38 enabled? yes
[ 3.790932] [drm:drm_setup_crtcs] looking for cmdline mode on connector 38
[ 3.790937] [drm:drm_setup_crtcs] looking for preferred mode on connector 38 0
[ 3.790942] [drm:drm_setup_crtcs] found mode 1920x1080
[ 3.790947] [drm:drm_setup_crtcs] picking CRTCs for 4096x4096 config
[ 3.790955] [drm:drm_setup_crtcs] desired mode 1920x1080 set on crtc 36 (0,0)
[ 3.793426] lih: zynqmp_dp_mode_configure: max_lanes=2
[ 3.793429] lih: zynqmp_dp_mode_configure: bw=270000, rate=90000, pclock=148500
[ 3.793431] lih: zynqmp_dp_mode_configure: bw=270000, rate=180000, pclock=148500
[ 3.794009] PLL: enable vpll_int
[ 3.865691] lih: zynqmp_dp_train --> entry
[ 3.873552] lih: zynqmp_dp_train reg = 3 bw_code=10 lane_cnt=2 aux_lane_cnt=130 enhanced=1
[ 3.887454] lih: zynqmp_dp_train --> return 0
[ 3.887456] lih: zynqmp_dp_train return 0
[ 3.924150] Console: switching to colour frame buffer device 240x67
[ 3.990800] zynqmp-display fd4a0000.zynqmp-display: fb0: frame buffer device
[ 3.998132] [drm] Initialized xlnx 1.0.0 20130509 for fd4a0000.zynqmp-display on minor 0
[ 4.006239] zynqmp-display fd4a0000.zynqmp-display: ZynqMP DisplayPort Subsystem driver probed
[ 4.015035] zynqmp_gpd_attach_dev error -13, node 47
[ 4.019966] xilinx_can ff060000.can: failed to add to PM domain pd-can0: -13
[ 4.027197] zynqmp_gpd_attach_dev error -13, node 48
[ 4.032126] xilinx_can ff070000.can: failed to add to PM domain pd-can1: -13
[ 4.040899] xilinx-psgtr fd400000.zynqmp_phy: Lane:1 type:0 protocol:3 pll_locked:yes
[ 4.050982] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 4.056457] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 4.064345] xhci-hcd xhci-hcd.0.auto: hcc params 0x0238f625 hci version 0x100 quirks 0x22010010
[ 4.073072] xhci-hcd xhci-hcd.0.auto: irq 168, io mem 0xfe200000
[ 4.079159] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

0 项奖励
189 次查看
注册日期: ‎05-19-2019

回复: [DP of PS] 运行modetest,显示器一直黑屏

 

It turns out CR training and CE training were passed successfully, literally from software point of view. But nothing shows up on the display while running modetest.

Below is the waveform of the main link, seems the signal is not so good:

微信图片_20190611171403.jpg

0 项奖励
Moderator
Moderator
173 次查看
注册日期: ‎08-01-2007

回复: [DP of PS] 运行modetest,显示器一直黑屏

0 项奖励