Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Test Procedure

DP-Tx can be manually configured to generate the required mode. An open source utility like modetest can be used to configure the display pipeline.

  • DDR ==>FB_Rd (DMA)==>DP _Tx


2020.1 and on wards Sample command to set a mode is shown below

Code Block
themeMidnight
%> modetest -M xlnx -s <connector_id>[@<crtc_id>]:<mode>[-<vrefresh>][@<format>

example command 

Code Block
themeMidnight
%> modetest -M xlnx -s 35:1920x1080-60@BG24

Above command will generate a color bar pattern at requested resolution in DDR, configures the DMA to read the frame from DDR and configures the DP Tx for said resolution. As a final result Color Bar at defined resolution should be visible on screen.

Driver also supports changing output color formats dynamically. Available output color formats supported by DMA engine can be determined using modetest utility as shown below

Code Block
languagexml
themeMidnight
root@xilinx-zcu102-2021_1:/media# modetest -M xlnx
Encoders:
id      crtc    type    possible crtcs  possible clones
34      0       TMDS    0x00000001      0x00000000

Connectors:
id      encoder status          name            size (mm)       modes   encoders
35      0       connected       DP-1            700x390         39      34
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  7680x4320 29.93 7680 7710 7720 7880 4320 4323 4328 4368 1030240 flags: phsync, nvsync; type: preferred, driver
  7680x4320 24.00 7680 7728 7760 7880 4320 4323 4328 4369 826250 flags: phsync, nvsync; type: preferred, driver
  3840x2160 60.00 3840 3888 3920 4000 2160 2163 2168 2222 533250 flags: phsync, nvsync; type: preferred, driver
  3840x4320 60.00 3840 3888 3920 4040 4320 4323 4333 4368 1058790 flags: phsync, nvsync; type: driver
  3840x4320 48.00 3840 3888 3920 4040 4320 4323 4333 4418 856720 flags: phsync, nvsync; type: driver
  3840x2160 29.98 3840 3888 3920 4000 2160 2163 2168 2191 262750 flags: phsync, nvsync; type: driver
  2560x1440 59.95 2560 2608 2640 2720 1440 1443 1448 1481 241500 flags: phsync, nvsync; type: driver
  1920x1200 59.88 1920 2056 2256 2592 1200 1203 1209 1245 193250 flags: nhsync, pvsync; type: driver
  2048x1080 59.99 2048 2096 2128 2208 1080 1083 1093 1111 147160 flags: phsync, nvsync; type: driver
  2048x1080 23.90 2048 2096 2128 2208 1080 1083 1093 1099 58000 flags: phsync, nvsync; type: driver
  1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: nhsync, nvsync; type: driver
  1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 59.94 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver
  1920x1080 50.00 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 24.00 1920 2558 2602 2750 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver
  1920x1080 23.98 1920 2558 2602 2750 1080 1084 1089 1125 74176 flags: phsync, pvsync; type: driver
  1600x1200 60.00 1600 1664 1856 2160 1200 1201 1204 1250 162000 flags: phsync, pvsync; type: driver
  1680x1050 59.95 1680 1784 1960 2240 1050 1053 1059 1089 146250 flags: nhsync, pvsync; type: driver
  1280x1024 75.02 1280 1296 1440 1688 1024 1025 1028 1066 135000 flags: phsync, pvsync; type: driver
  1280x1024 60.02 1280 1328 1440 1688 1024 1025 1028 1066 108000 flags: phsync, pvsync; type: driver
  1280x800 59.81 1280 1352 1480 1680 800 803 809 831 83500 flags: nhsync, pvsync; type: driver
  1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1280x720 59.94 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver
  1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1024x768 75.03 1024 1040 1136 1312 768 769 772 800 78750 flags: phsync, pvsync; type: driver
  1024x768 60.00 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver
  800x600 75.00 800 816 896 1056 600 601 604 625 49500 flags: phsync, pvsync; type: driver
  800x600 60.32 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
  720x576 50.00 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
  720x576 50.00 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
  720x480 60.00 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
  720x480 60.00 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
  720x480 59.94 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  720x480 59.94 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  640x480 75.00 640 656 720 840 480 481 484 500 31500 flags: nhsync, nvsync; type: driver
  640x480 60.00 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver
  640x480 59.94 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  640x480 59.94 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  720x400 70.08 720 738 846 900 400 412 414 449 28320 flags: nhsync, pvsync; type: driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
                        00ffffffffffff0010ac47414c353730
                        201b0104b54627783a7645ae5133ba26
                        0d5054a54b008100b300d100a9408180
                        d1c0010101014dd000a0f0703e803020
                        3500ba892100001a000000ff0046464e
                        584d3738373037354c0a000000fc0044
                        454c4c205550333231384b0a000000fd
                        00184b1eb46c010a2020202020200270
                        02031df150101f200514041312110302
                        161507060123091f0783010000a36600
                        a0f0701f8030203500ba892100001a56
                        5e00a0a0a0295030203500ba89210000
                        1a7c3900a080381f4030203a00ba8921
                        00001aa81600a08038134030203a00ba
                        892100001a0000000000000000000000
                        00000000000000000000000000000047
                        701279000012001682100000ff0edf10
                        000000000044454c47414c3537300301
                        5070920184ff1dc7001d800900df102f
                        0002000400c1420184ff1dc7002f801f
                        00df10300002000400a84e0104ff0ec7
                        002f801f00df10610002000900979d01
                        04ff0ec7002f801f00df102f00020009
                        00000000000000000000000000009890
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 3
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        6 non-desktop:
                flags: immutable range
                values: 0 1
                value: 0
        4 TILE:
                flags: immutable blob
                blobs:

                value:
                        313a313a323a313a303a303a33383430
                        3a3433323000
        21 CRTC_ID:
                flags: object
                value: 0
        36 sync:
                flags: range
                values: 0 1
                value: 0
        37 bpc:
                flags: enum
                enums: 6BPC=6 8BPC=8 10BPC=10 12BPC=12
                value: 8

CRTCs:
id      fb      pos     size
33      0       (0,0)   (0x0)
   nan 0 0 0 0 0 0 0 0 0 flags: ; type:
  props:
        23 ACTIVE:
                flags: range
                values: 0 1
                value: 0
        24 MODE_ID:
                flags: blob
                blobs:

                value:
        20 OUT_FENCE_PTR:
                flags: range
                values: 0 18446744073709551615
                value: 0
        25 VRR_ENABLED:
                flags: range
                values: 0 1
                value: 0

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
32      0       0       0,0             0,0     0               0x00000001
  formats: XB30 VU24 XV30 YUYV XV20 BG24
  props:
        9 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        18 FB_ID:
                flags: object
                value: 0
        19 IN_FENCE_FD:
                flags: signed range
                values: -1 2147483647
                value: -1
        21 CRTC_ID:
                flags: object
                value: 0
        14 CRTC_X:
                flags: signed range
                values: -2147483648 2147483647
                value: 0
        15 CRTC_Y:
                flags: signed range
                values: -2147483648 2147483647
                value: 0
        16 CRTC_W:
                flags: range
                values: 0 2147483647
                value: 1920
        17 CRTC_H:
                flags: range
                values: 0 2147483647
                value: 1080
        10 SRC_X:
                flags: range
                values: 0 4294967295
                value: 0
        11 SRC_Y:
                flags: range
                values: 0 4294967295
                value: 0
        12 SRC_W:
                flags: range
                values: 0 4294967295
                value: 125829120
        13 SRC_H:
                flags: range
                values: 0 4294967295
                value: 70778880

Frame buffers:
id      size    pitch

root@xilinx-zcu102-2021_1:/media#

Refer Line "formats"that indicates the FrameBuffer DMA IP configuration supports XB30 VU24 XV30 YUYV XV20 BG24 GREY Y10 color formats. This setting is configured by the DMA driver device tree node property xlnx,vid-formats 

Debug Capability

 DP Linux driver implements the capability to tap IP status at pre-defined points in the control flow. User can enable the debug taps by uncommenting the pre-processor directive (#define DEBUG) to monitor the progress within the driver. All debug prints are sent to serial console and can be viewed in kernel dmesg buffer

Boards Supported

Driver has been tested on following boards

  • zcu102 Rev-D
  • zcu102 Rev 1.0

Change Log

  • 2020

    2021.

    2

    1

    • Summary:
      • Removed the support for external AXI Remapper 46e3b9  drm: xlnx: dptx: open-code some DP helper functions
      • 639ff5 drm: xlnx: dptx: Use correct headers
      • 17d102 :drm: xlnx: dptx: Fix clock recovery training for all lanes instead of…

Related Links