<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: can not set drm master with drm_setmaster_ioctl in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1135001#M161054</link>
    <description>&lt;P&gt;one can check Chapter 4 i.MX Framebuffer API&amp;nbsp; &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/user-guide/IMX_GRAPHICS_USERS_GUIDE.pdf" target="_blank"&gt;i.MX Graphics User’s Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"i.MX 8 on Linux OS supports Direct Rendering Manager (DRM) where the Linux framebuffer &lt;BR /&gt;support is limited, recommended to Graphics Buffer Manager (GBM)."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2020 07:23:48 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-09-03T07:23:48Z</dc:date>
    <item>
      <title>can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1057873#M155553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;1.I am trying to create multiple frame buffer on top of a qt application without using qt that means from another executable to show some warning dialogs by using kernel drm ioctl api.First I opened /dev/dri/card0 succesfully but while setting to drm master with ioctl DRM_IOCTL_SET_MASTER I am getting error from kernel that shows drm master is already set.When I debugged the issue, I have observed that dev-&amp;gt;master is already true on&amp;nbsp;drm_setmaster_ioctl function and directly exiting from function without setting master on drivers/gpu/drm/drm_auth.c file because of qt application( that run on wayland).For that reason, I am getting permission denied error while calling DRM_IOCTL_MODE_SETCRTC ioctl call.&lt;P&gt;If I remove qt application and run my development app to draw some shape on screen it is working since at that moment there is no drm master and I can set drm master successfully.So I have observed that there is some ioctl call to share master permission DRM_IOCTL_AUTH_MAGIC but it did not helped me.I can hack the kernel code by removing dev-&amp;gt;master check on drm_setmaster_ioctl function from drivers/gpu/drm/drm_auth.c but it is not a good approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give me some direction on the issue to see what I am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;2.When I tried to set different size for framebuffer other than our hdmi resolution(1280x720), I do not see any drawing shape on screen with my executable app that I ment on question 1, Could you help me to create different sizes framebuffer by using drm ioctl api?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;3.Could you please give me a bit details for drm framebuffer and drm plane.I am a bit confused to use of these functionalities.So I want to show some warning dialogs, some information bar top of qt app on different place on screen, without using qt functions as I mentioned in first question and need to know which one I need to use, framebuffer or plane ? Could you please give me some idea and information ?&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using bsp yocto release 4.14.98 and have a imx8qm-mek platform with hdmi connected to lilliput.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 08:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1057873#M155553</guid>
      <dc:creator>ekrem_sahin</dc:creator>
      <dc:date>2020-08-24T08:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1134872#M161037</link>
      <description>&lt;P&gt;Hi ekrem_sahin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;reason may be that frame buffer drivers are not supported for i.MX 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124156i4E3C7E9E0185BA45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;1.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 04:16:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1134872#M161037</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-03T04:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1134968#M161051</link>
      <description>&lt;P&gt;Hello Igorpadykov,&lt;/P&gt;&lt;P&gt;I think the framebuffer that you ment above is related to linux fbdev which uses /dev/fb* interfaces but what I am asking is the drm framebuffer&lt;/P&gt;&lt;P&gt;and drm planes by using drm ioctl api to reach /dev/dri/card* interfaces.So I tried to play with drm planes and imx8qm-mek device is supporting&lt;/P&gt;&lt;P&gt;upto 4 planes on hdmi.&lt;/P&gt;&lt;P&gt;Could you please double check my first question and Could you please correct me if I am wrong ?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 06:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1134968#M161051</guid>
      <dc:creator>ekrem_sahin</dc:creator>
      <dc:date>2020-09-03T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1135001#M161054</link>
      <description>&lt;P&gt;one can check Chapter 4 i.MX Framebuffer API&amp;nbsp; &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/user-guide/IMX_GRAPHICS_USERS_GUIDE.pdf" target="_blank"&gt;i.MX Graphics User’s Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"i.MX 8 on Linux OS supports Direct Rendering Manager (DRM) where the Linux framebuffer &lt;BR /&gt;support is limited, recommended to Graphics Buffer Manager (GBM)."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 07:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1135001#M161054</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-03T07:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1135242#M161081</link>
      <description>&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;From the document that you provided, I saw that imx framebuffer api is based on /dev/fb* interfaces.So is it based on using linux frame buffer ?Do you have an example/test source codes for the api ?&lt;/P&gt;&lt;P&gt;Also, I want to use drm ioctl api to reach /dev/dri/card* and want to ask you if you have an example/test source codes since I want to show some dialog on a plane on the QT app and failing while setting drm master when wayland is set already as drm master&amp;nbsp; while opening QT app?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 13:18:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1135242#M161081</guid>
      <dc:creator>ekrem_sahin</dc:creator>
      <dc:date>2020-09-03T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1136245#M161148</link>
      <description>&lt;P&gt;one can check Chapter 4 i.MX Framebuffer API&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_GRAPHICS_USERS_GUIDE.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;i.MX Graphics User’s Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"i.MX 8 on Linux OS supports Direct Rendering Manager (DRM) where the Linux framebuffer&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;support is limited, recommended to Graphics Buffer Manager (GBM)."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 15:23:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1136245#M161148</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-03T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1146157#M161223</link>
      <description>&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;The doc you provided not helping me.Could you please provide more information or doc ?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 06:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1146157#M161223</guid>
      <dc:creator>ekrem_sahin</dc:creator>
      <dc:date>2020-09-04T06:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1146543#M161227</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi ekrem_sahin&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;unfortunately&amp;nbsp; I am not aware of other documents.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I believe in your case proper way is to proceed with help of&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://contact.nxp.com/new-prof-svcs-sw-tech" target="_blank"&gt;https://contact.nxp.com/new-prof-svcs-sw-tech&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards&lt;BR /&gt;igor&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 07:26:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1146543#M161227</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-04T07:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: can not set drm master with drm_setmaster_ioctl</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1147470#M161235</link>
      <description>&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;Thanks for the information.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 08:28:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/can-not-set-drm-master-with-drm-setmaster-ioctl/m-p/1147470#M161235</guid>
      <dc:creator>ekrem_sahin</dc:creator>
      <dc:date>2020-09-04T08:28:13Z</dc:date>
    </item>
  </channel>
</rss>

