This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA745: kmscube : display 0 failed to set mode: Permission denied

Part Number: DRA745

Tool/software: Linux

Evm log as below:

dra7xx-evm login:
 _____                    _____           _         _
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
              |___|                    |___|

Arago Project http://arago-project.org dra7xx-evm ttyS0

Arago 2016.12 dra7xx-evm ttyS0

dra7xx-evm login: root
root@dra7xx-evm:~# modetest
trying to open device 'i915'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...done
Encoders:
id      crtc    type    possible crtcs  possible clones
31      34      TMDS    0x00000001      0x00000000
35      0       TMDS    0x00000002      0x00000000

Connectors:
id      encoder status          name            size (mm)       modes   encoders
32      31      connected       unknown-1       0x0             1       31
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1920x1200 60 1920 2032 2048 2080 1200 1216 1218 1234 flags: nhsync, nvsync; type: preferred, driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
36      0       disconnected    HDMI-A-1        0x0             0       35
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0

CRTCs:
id      fb      pos     size
34      46      (0,0)   (1920x1200)
  1920x1200 60 1920 2032 2048 2080 1200 1216 1218 1234 flags: nhsync, nvsync; type: preferred, driver
  props:
        27 trans-key-mode:
                flags: enum
                enums: disable=0 gfx-dst=1 vid-src=2
                value: 0
        28 trans-key:
                flags: range
                values: 0 16777215
                value: 0
        29 background:
                flags: range
                values: 0 16777215
                value: 0
        30 alpha_blender:
                flags: range
                values: 0 1
                value: 0
        21 GAMMA_LUT:
                flags: blob
                blobs:

                value:
        22 GAMMA_LUT_SIZE:
                flags: immutable range
                values: 0 4294967295
                value: 256
        23 rotation:
                flags: bitmask
                values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
                value: 1
        24 zorder:
                flags: range
                values: 0 3
                value: 0
38      0       (0,0)   (0x0)
   0 0 0 0 0 0 0 0 0 flags: ; type:
  props:
        27 trans-key-mode:
                flags: enum
                enums: disable=0 gfx-dst=1 vid-src=2
                value: 0
        28 trans-key:
                flags: range
                values: 0 16777215
                value: 0
        29 background:
                flags: range
                values: 0 16777215
                value: 0
        30 alpha_blender:
                flags: range
                values: 0 1
                value: 0
        21 GAMMA_LUT:
                flags: blob
                blobs:

                value:
        22 GAMMA_LUT_SIZE:
                flags: immutable range
                values: 0 4294967295
                value: 256
        23 rotation:
                flags: bitmask
                values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
                value: 1
        24 zorder:
                flags: range
                values: 0 3
                value: 0

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
33      34      46      0,0             0,0     0               0x00000001
  formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        23 rotation:
                flags: bitmask
                values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
                value: 1
        24 zorder:
                flags: range
                values: 0 3
                value: 0
        25 global_alpha:
                flags: range
                values: 0 255
                value: 255
        26 pre_mult_alpha:
                flags: range
                values: 0 1
                value: 0
37      0       0       0,0             0,0     0               0x00000002
  formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24 NV12 YUYV UYVY
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1
        23 rotation:
                flags: bitmask
                values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
                value: 1
        24 zorder:
                flags: range
                values: 0 3
                value: 0
        25 global_alpha:
                flags: range
                values: 0 255
                value: 255
        26 pre_mult_alpha:
                flags: range
                values: 0 1
                value: 0
39      0       0       0,0             0,0     0               0x00000003
  formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24 NV12 YUYV UYVY
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0
        23 rotation:
                flags: bitmask
                values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
                value: 1
        24 zorder:
                flags: range
                values: 0 3
                value: 2
        25 global_alpha:
                flags: range
                values: 0 255
                value: 255
        26 pre_mult_alpha:
                flags: range
                values: 0 1
                value: 0
40      0       0       0,0             0,0     0               0x00000003
  formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24 NV12 YUYV UYVY
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 0
        23 rotation:
                flags: bitmask
                values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
                value: 1
        24 zorder:
                flags: range
                values: 0 3
                value: 3
        25 global_alpha:
                flags: range
                values: 0 255
                value: 255
        26 pre_mult_alpha:
                flags: range
                values: 0 1
                value: 0

Frame buffers:
id      size    pitch

root@dra7xx-evm:~# kmscube
trying to load module omapdrm...success.
### Display [0]: CRTC = 34, Connector = 32, format = 0x34325258
        Mode chosen [1920x1200] : Clock => 154000, Vertical refresh => 60, Type => 72
        Horizontal => 1920, 2032, 2048, 2080, 0
        Vertical => 1200, 1216, 1218, 1234, 0
### Primary display => ConnectorId = 32, Resolution = 1920x1200
loaded module : gbm_pvr.so
found valid GBM backend : gbm_pvr.so
Using display 0x1 with EGL version 1.4
EGL Version "1.4 build 1.14@3699939 (MAIN)"
EGL Vendor "Imagination Technologies"
EGL Extensions "EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import"
display 0 failed to set mode: Permission denied
root@dra7xx-evm:~#