[Letux-kernel] [drm] what are connectors, and do they exist?

Josua Mayer josua.mayer at jm0.eu
Mon Jan 1 12:30:01 CET 2018


Here is a little follow-up.
I dug out a demo from libdrm to among other things list the connectors:

#replicant: modedemo -full
Starting test
Resources

count_connectors : 1
count_encoders   : 1
count_crtcs      : 2
count_fbs        : 0

Connector: 0-1
        id             : 27
        encoder id     : 26
        conn           : connected
        size           : 0x0 (mm)
        count_modes    : 1
        count_props    : 2
        props          : 1 2
        count_encoders : 1
        encoders       : 26
Mode: "480x640" 480x640 66

Encoder
        id     :26
        crtc_id   :29
        type   :2
        possible_crtcs  :0x1
        possible_clones :0x0

Crtc
        id             : 29
        x              : 0
        y              : 0
        width          : 480
        height         : 640
        mode           : 0xb6cde01c
        gamma size     : 0
Crtc
        id             : 31
        x              : 0
        y              : 0
        width          : 0
        height         : 0
        mode           : 0xb6cde01c
        gamma size     : 0

Ok

#debian: ./modedemo -full
Starting test
Resources

count_connectors : 2
count_encoders   : 2
count_crtcs      : 2
count_fbs        : 0

Connector: 17-1
        id             : 29
        encoder id     : 28
        conn           : connected
        size           : 0x0 (mm)
        count_modes    : 1
        count_props    : 3
        props          : 1 2 5
        count_encoders : 1
        encoders       : 28
Mode: "480x640" 480x640 66
Connector: 6-1
        id             : 34
        encoder id     : 0
        conn           : unknown
        size           : 0x0 (mm)
        count_modes    : 1
        count_props    : 3
        props          : 1 2 5
        count_encoders : 1
        encoders       : 33
Mode: "720x574i" 720x574 50

Encoder
        id     :28
        crtc_id   :32
        type   :2
        possible_crtcs  :0x1
        possible_clones :0x0
Encoder
        id     :33
        crtc_id   :0
        type   :2
        possible_crtcs  :0x2
        possible_clones :0x0

Crtc
        id             : 32
        x              : 0
        y              : 0
        width          : 480
        height         : 640
        mode           : 0x221dc
        gamma size     : 0
Crtc
        id             : 37
        x              : 0
        y              : 0
        width          : 0
        height         : 0
        mode           : 0x220bc
        gamma size     : 0

Ok

So the replicant 4.10 kernel does present one connector, and these
values look consistent to me.
So it looks like I'll have to search the problem elsewhere.

Am 30.12.2017 um 16:27 schrieb Josua Mayer:
> Hi everybody,
>
> While trying to make replicant use the drm_hwcomposer, I have now
> encountered an error that I can not figure out, and it seems related
> to the drm subsystem in the kernel:
>
> 12-31 17:19:02.255  2924  2924 I SurfaceFlinger: Using composer
> version 1.4
> 12-31 17:19:02.255  2924  2924 E hwcomposer-drm: Failed to get
> connector for display 0
> 12-31 17:19:02.256  2924  2924 E SurfaceFlinger:
> queryDisplayProperties: Invalid display config! -1
> 12-31 17:19:02.256  2924  2924 W SurfaceFlinger: no suitable EGLConfig
> found, trying a simpler query
>
> This is the chain of calls leading to above error message:
> drm_hwcomposer: hwcomposer.cpp: hwc_get_display_attributes:
> drm.GetConnectorForDisplay(0)
> drm_hwcomposer: drmresources.cpp:
> DrmResources::GetConnectorForDisplay(0): <find matching entry in
> connectors_>
> DrmResources::Init(): drmModeGetResources(</dev/dri/card0>)
>
> The kernel in question is work/lukas/android-4.10
> So apparently this call to drm returns no connectors, or at least no
> connector with id 0.
> Any ideas why that is?
>
> Please find attached a full system log producing this error.
>
> br
> Josua Mayer
>
>
>
> _______________________________________________
> http://projects.goldelico.com/p/gta04-kernel/
> Letux-kernel mailing list
> Letux-kernel at openphoenux.org
> http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180101/78ca6b4e/attachment.html>


More information about the Letux-kernel mailing list