<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<!-- Template generated by Exclaimer Signature Manager Exchange Edition on 11:30:10 Friday, 26 January 2024 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Aptos",serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#467886;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Courier New";
        mso-ligatures:none;
        mso-fareast-language:DE;}
span.w
        {mso-style-name:w;}
span.n
        {mso-style-name:n;}
span.o
        {mso-style-name:o;}
span.p
        {mso-style-name:p;}
span.mi
        {mso-style-name:mi;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        font-family:"Aptos",serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<p class="ImprintUniqueID" style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"></p>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">I’m pretty new to DRM/DRI and wonder if there is a way to have a stable identification of connectors across changes in the Linux kernel and/or in the devicetree?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Our hardware contains an iMX8QM with two displays, each one connected to a MIPI-DSI channel. We use kernel 6.1.38.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">In the output of “modetest -c” the connectors are called LVDS-1 and LVDS-2. These names are built in modetest.c from connector_type and connector_type_id.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">connector_type_id is set in the kernel in drivers/gpu/drm/drm_connector.c in __drm_connector_init():<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<pre><span class="w"><span lang="EN-US" style="font-size:11.0pt;color:#BBBBBB">       </span></span><span class="n"><span style="font-size:11.0pt;color:black"><a href="https://elixir.bootlin.com/linux/latest/C/ident/connector"><b><span lang="EN-US">connector</span></b></a></span></span><span class="o"><span lang="EN-US" style="font-size:11.0pt;color:#666666">-></span></span><span class="n"><span style="font-size:11.0pt;color:black"><a href="https://elixir.bootlin.com/linux/latest/C/ident/connector_type_id"><b><span lang="EN-US">connector_type_id</span></b></a></span></span><span class="w"><span style="font-size:11.0pt;color:#BBBBBB"> </span></span><span class="o"><span lang="EN-US" style="font-size:11.0pt;color:#666666">=</span></span><span lang="EN-US" style="font-size:11.0pt;color:black"><o:p></o:p></span></pre>
<pre><span class="w"><span lang="EN-US" style="font-size:11.0pt;color:#BBBBBB">              </span></span><span class="n"><span style="font-size:11.0pt;color:black"><a href="https://elixir.bootlin.com/linux/latest/C/ident/ida_alloc_min"><b><span lang="EN-US">ida_alloc_min</span></b></a></span></span><span class="p"><span lang="EN-US" style="font-size:11.0pt;color:#666666">(</span></span><span class="n"><span style="font-size:11.0pt;color:black"><a href="https://elixir.bootlin.com/linux/latest/C/ident/connector_ida"><b><span lang="EN-US">connector_ida</span></b></a></span></span><span class="p"><span lang="EN-US" style="font-size:11.0pt;color:#666666">,</span></span><span class="w"><span lang="EN-US" style="font-size:11.0pt;color:#BBBBBB"> </span></span><span class="mi"><span lang="EN-US" style="font-size:11.0pt;color:#0000DD">1</span></span><span class="p"><span lang="EN-US" style="font-size:11.0pt;color:#666666">,</span></span><span class="w"><span lang="EN-US" style="font-size:11.0pt;color:#BBBBBB"> </span></span><span class="n"><span style="font-size:11.0pt;color:black"><a href="https://elixir.bootlin.com/linux/latest/C/ident/GFP_KERNEL"><b><span lang="EN-US">GFP_KERNEL</span></b></a></span></span><span class="p"><span lang="EN-US" style="font-size:11.0pt;color:#666666">);</span></span><span lang="EN-US" style="font-size:11.0pt;color:black"><o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Seems to me that this number depends on initialization order only. Is there any other way to identify a connector?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">If not, will the type_id be stable as long as we don’t change the kernel version and the device tree?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Best Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Joerg Albert<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:white;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:white;mso-fareast-language:DE"><br>
+491747384960<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-ligatures:none;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<font size="2"><font size="1" face="Arial"><font style="FONT-SIZE: 8pt; FONT-FAMILY: Arial" color="#000000">We move the world for the better through technology and engineering</font>.</font></font><br>
<br>
<span style="font-family:Arial;font-size:8pt;color:#0563C1;"><a href="https://www.iav.com" title="" target="" style="font-family:Arial;font-size:8pt;color:#0563C1;"><span style="font-family:Arial; font-size:8pt; color:#0563C1;">www.iav.com</span></a></span><font size="1" face="Arial"> </font><font size="1" face="Arial">|
</font><span style="font-family:Arial;font-size:8pt;color:#0563C1;"><a href="https://www.facebook.com/insideiav" title="" target="" style="font-family:Arial;font-size:8pt;color:#0563C1;"><span style="font-family:Arial; font-size:8pt; color:#0563C1;">Facebook</span></a></span><font size="1" face="Arial">
 | <span style="font-family:Arial;font-size:8pt;color:#0563C1;"><a href="https://www.instagram.com/inside_iav/" title="" target="" style="font-family:Arial;font-size:8pt;color:#0563C1;"><span style="font-family:Arial; font-size:8pt; color:#0563C1;">Instagram</span></a></span><font size="1" face="Arial">
 |</font> </font><span style="font-family:Arial;font-size:8pt;color:#0563C1;"><a href="https://www.linkedin.com/company/iav-gmbh" title="" target="" style="font-family:Arial;font-size:8pt;color:#0563C1;"><span style="font-family:Arial; font-size:8pt; color:#0563C1;">LinkedIn</span></a></span><font size="1" face="Arial">
 | </font><span style="font-family:Arial;font-size:8pt;color:#0563C1;"><a href="https://www.xing.com/companies/iav" title="" target="" style="font-family:Arial;font-size:8pt;color:#0563C1;"><span style="font-family:Arial; font-size:8pt; color:#0563C1;">Xing</span></a></span><font size="1" face="Arial"> |
</font><span style="font-family:Arial;font-size:8pt;color:#0563C1;"><a href="https://www.youtube.com/user/IAVchannel" title="" target="" style="font-family:Arial;font-size:8pt;color:#0563C1;"><span style="font-family:Arial; font-size:8pt; color:#0563C1;">YouTube</span></a></span><br>
<font size="2"><font style="FONT-SIZE: 8pt; FONT-FAMILY: Arial" size="1" face="Arial"><br>
IAV GmbH Ingenieurgesellschaft Auto und Verkehr; Sitz/Registered Office: Berlin; Registergericht/Registration Court: Amtsgericht Charlottenburg (Berlin); Registernummer/Company Registration Number: HRB 21 280 B; Geschäftsführer/Managing Directors: Joerg Astalosch,
 Martin Mahlke, Dr. Uwe Horn; Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: Dr. Nikolai Ardey<br>
<span style="color:#0563C1;"><a href="https://www.iav.com/datenschutz" title="" target="" style="color:#0563C1;"><span style="color:#0563C1;">Datenschutzhinweise/Privacy Policy</span></a></span></font></font>
<p></p>
<br>
<p></p>
<p></p>
</body>
</html>