天天看點

RK3399/libdrm/modetest

PLANE(ID=58, W=1920, H=1080)

      |

    \ | /

CRCT(ID=64) --> ENCODER(ID=92) --> CONNECTED(ID=93) --> HDMI

modetest   -a -s [email protected]:1920x1080  -P [email protected]:1920x1080 -Ftiles

[[email protected]:/]#  modetest   -a -s [email protected]:1920x1080  -P [email protected]:1920x1080

trying to open device 'i915'...failed

trying to open device 'amdgpu'...failed

trying to open device 'radeon'...failed

trying to open device 'nouveau'...failed

trying to open device 'vmwgfx'...failed

trying to open device 'omapdrm'...failed

trying to open device 'exynos'...failed

trying to open device 'tilcdc'...failed

trying to open device 'msm'...failed

trying to open device 'sti'...failed

trying to open device 'tegra'...failed

trying to open device 'imx-drm'...failed

trying to open device 'rockchip'...done

setting mode [email protected] on connectors 93, crtc 64

[ 1053.287799] rockchip-vop ff900000.vop: [drm:vop_crtc_enable] Update mode to 1920x1080p60, type: 11

[ 1053.312178] dwhdmi-rockchip ff940000.hdmi: Rate 138500000 missing; compute N dynamically

testing [email protected] overlay plane 58

#######  

[[email protected]:/]# modetest  -c

Connectors:

id      encoder status          name            size (mm)       modes   encoders

93      92      connected       HDMI-A-1        510x280         36      92

  modes:

        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)

  1920x1080 60 1920 1968 2000 2080 1080 1083 1088 1111 138500 flags: phsync, nvsync; type: preferred, driver

  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver

  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver

  1920x1080i 60 1920 2008 2052 2200 1080 1084 1094 1125 74250 flags: phsync, pvsync, interlace; type: driver

  1920x1080i 60 1920 2008 2052 2200 1080 1084 1094 1125 74176 flags: phsync, pvsync, interlace; type: driver

  1920x1080 50 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver

  1920x1080i 50 1920 2448 2492 2640 1080 1084 1094 1125 74250 flags: phsync, pvsync, interlace; type: driver

  1920x1080 30 1920 2008 2052 2200 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver

[[email protected]:/]# modetest -e

Encoders:

id      crtc    type    possible crtcs  possible clones 

92      83      TMDS    0x00000003      0x00000000

100     0       TMDS    0x00000003      0x00000000

 [[email protected]:/]# modetest    -p 

CRTCs:

id      fb      pos     size

64      129     (0,0)   (1920x1080)

  1920x1080 60 1920 1932 1936 1948 1080 1088 1092 1100 128568 flags: nhsync, nvsync; type:

  props:

        44 left margin:

                flags: range

                values: 0 100

                value: 100

        45 right margin:

                flags: range

                values: 0 100

                value: 100

        46 top margin:

                flags: range

                values: 0 100

                value: 100

        47 bottom margin:

                flags: range

                values: 0 100

                value: 100

        29 CABC_LUT:

                flags: blob

                blobs:

                value:

        28 CABC_MODE:

                flags: enum

                enums: Disable=0 Normal=1 LowPower=2 Userspace=3

                value: 0

        28 CABC_MODE:

                flags: enum

                enums: Disable=0 Normal=1 LowPower=2 Userspace=3

                value: 0

        57 FEATURE:

                flags: immutable bitmask

                values: afbdc=0x1

                value: 1

83      129     (0,0)   (1920x1080)

  1920x1080 60 1920 1968 2000 2080 1080 1083 1088 1111 138500 flags: phsync, nvsync; type: preferred, driver

  props:

        44 left margin:

                flags: range

                values: 0 100

                value: 100

        45 right margin:

                flags: range

                values: 0 100

                value: 100

        46 top margin:

                flags: range

                values: 0 100

                value: 100

        47 bottom margin:

                flags: range

                values: 0 100

                value: 100

        29 CABC_LUT:

                flags: blob

                blobs:

                value:

        28 CABC_MODE:

                flags: enum

                enums: Disable=0 Normal=1 LowPower=2 Userspace=3

                value: 0

        28 CABC_MODE:

                flags: enum

                enums: Disable=0 Normal=1 LowPower=2 Userspace=3

                value: 0

        79 FEATURE:

                flags: immutable bitmask

                values: afbdc=0x1

                value: 0

Planes:

id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs

58      64      129     0,0             0,0     0               0x00000001

  formats: XR24 AR24 XB24 AB24 RG24 BG24 RG16 BG16 NV12 NV16 NV24 NA12 NA16 NA24

  props:

        7 type:

                flags: immutable enum

                enums: Overlay=0 Primary=1 Cursor=2

                value: 1

        8 SHARE_ID:

                flags: immutable range

                values: 0 4294967295

                value: 58

        60 rotation:

                flags: bitmask

                values: rotate-0=0x1 reflect-x=0x10 reflect-y=0x20

                value: 1

        56 FEATURE:

                flags: immutable bitmask

                values: scale=0x1 alpha=0x2 hdr2sdr=0x4 sdr2hdr=0x8 afbdc=0x10 pdaf_pos=0x20

                value: 19

61      0       0       0,0             0,0     0               0x00000001

  formats: XR24 AR24 XB24 AB24 RG24 BG24 RG16 BG16

  props:

        7 type:

                flags: immutable enum

                enums: Overlay=0 Primary=1 Cursor=2

                value: 2

        8 SHARE_ID:

                flags: immutable range

                values: 0 4294967295

                value: 61

        63 rotation:

                flags: bitmask

                values: rotate-0=0x1 reflect-y=0x20

                value: 1

        56 FEATURE:

                flags: immutable bitmask

                values: scale=0x1 alpha=0x2 hdr2sdr=0x4 sdr2hdr=0x8 afbdc=0x10 pdaf_pos=0x20

                value: 18

繼續閱讀