<div dir="ltr"><div dir="ltr"><div id="gmail-msg_id_5783" class="gmail-BubbleStyle_MessageContainer"><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">Dear All, </span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">We are facing one issue related to drm and layer manager. </span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">We are using below setup;</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">SOC:imx6 QUAD</span></font></div><div><span style="font-size:13.333px;color:rgb(26,26,26);font-family:"Segoe UI"">BSP:Linux 3.1.17</span><br></div><div><span style="font-size:13.333px;color:rgb(26,26,26);font-family:"Segoe UI"">Layer Manager : 1.1</span></div><div><br></div><div><span style="font-size:13.333px;color:rgb(26,26,26);font-family:"Segoe UI"">Below components are using “/dev/dri/card0”  </span><br></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">meucy17-t101-a0:~# lsof /dev/dri/card0</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">COMMAND         PID        USER   FD            TYPE DEVICE SIZE/OFF    NODE NAME</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">Xorg                    165        root  mem          CHR  226,0          1113     /dev/dri/card0</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">Xorg                    165        root   12u            CHR  226,0     0t0 1113 /dev/dri/card0</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">LayerMana          239        root  mem          CHR  226,0          1113     /dev/dri/card0</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">LayerMana          239        root    6u             CHR  226,0      0t0 1113  /dev/dri/card0</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">Below ioctl is failing when called from Layermanger, which will return as permission denied(-EACCES);</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">DRM_IOCTL_DEF(DRM_IOCTL_SET_VERSION, drm_setversion, DRM_MASTER),</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">I am getting these kind of system logs:</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">type=SYSCALL msg=audit(07/30/18 12:58:38.890:23) : arch=armeb syscall=ioctl per=PER_LINUX_32BIT success=no exit=EACCES(Permission denied) a0=0x6 a1=0xc0106407 a2=0x768d9a28 a3=0x7 items=0 ppid=1 pid=1527 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root ses=unset tty=(none) comm=LayerManagerSer exe=/usr/bin/LayerManagerService key=DAC</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">If I changed the flag from DRM_MASTER to DRM_AUTH in drm driver, no errorlogs observed related to Layermanger.</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">--- a/drivers/gpu/drm/drm_drv.c</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">+++ b/drivers/gpu/drm/drm_drv.c</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">@@ -69,7 +69,8 @@ static const struct drm_ioctl_desc drm_ioctls[] = {</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">        DRM_IOCTL_DEF(DRM_IOCTL_GET_CLIENT, drm_getclient, DRM_UNLOCKED),</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">        DRM_IOCTL_DEF(DRM_IOCTL_GET_STATS, drm_getstats, DRM_UNLOCKED),</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">        DRM_IOCTL_DEF(DRM_IOCTL_GET_CAP, drm_getcap, DRM_UNLOCKED),</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">-       DRM_IOCTL_DEF(DRM_IOCTL_SET_VERSION, drm_setversion, DRM_MASTER),</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">+       DRM_IOCTL_DEF(DRM_IOCTL_SET_VERSION, drm_setversion, DRM_AUTH),</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">I have following queries:</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">1. Is it ok to have the above changes?</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">2. With failure logs, there is no problem in system behavior. Can we ignore these system logs?</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">3. In logs we found that, Xorg setting the version, then why LayerManager again trying to change the version?</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">Thanks in advance.</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px"><br></span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">Regards,</span></font></div><div><font color="#1a1a1a" face="Segoe UI"><span style="font-size:13.333px">Ikshwaku</span></font></div></div></div></div>