<?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>i.MX Processorsのトピック[IMX8MP][ISP] [DrmDisplay] drmSetMaster fail: -1 Unknown error -1</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1318807#M177936</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;This is another question in my serie of questions related to the bring-up of ISP camera driver.&amp;nbsp; My purpose is displaying the processed output of our custom RAW Bayer, 1-lane data Sony IMX296. Instead of using&lt;A href="https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-gst-launch-does-not-show-anything/m-p/1318643" target="_self"&gt; gst-launch&lt;/A&gt;&amp;nbsp;command, I use the &lt;STRONG&gt;video_test&lt;/STRONG&gt; program that is built together with ISP-IMX framework. My steps :&lt;BR /&gt;1. SSH console : manually running the the script that loads necessary modules and executes the &lt;STRONG&gt;isp_media_server&lt;/STRONG&gt; daemon:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mpevk:~# cd /opt/imx8-isp/bin/ &amp;amp;&amp;amp; export ISP_LOG_LEVEL=8
root@imx8mpevk:/opt/imx8-isp/bin#  ./run.sh -c imx296 -lm
RUN_SCRIPT=/opt/imx8-isp/bin/run.sh
RUN_SCRIPT_PATH=/opt/imx8-isp/bin
Trying configuration "imx296"...
Removing vvcam-isp...
Removing vvcam-dwe...
Removing vvcam-video...
Removing imx8-media-dev...
Removing ov2775...
Removing os08a20...
Removing imx296...
Removing basler-camera-driver-vvcam...
Loading module imx296 ...
imx296
Loaded /lib/modules/5.4.70-2.3.2+gf7caf9ea5176/kernel/drivers/staging/media/imx/imx296.ko 
Loading module imx8-media-dev ...
imx8_media_dev
Loaded /lib/modules/5.4.70-2.3.2+gf7caf9ea5176/kernel/drivers/staging/media/imx/imx8-media-dev.ko 
Loading module vvcam-video ...
vvcam_video
Loaded /lib/modules/5.4.70-2.3.2+gf7caf9ea5176/kernel/drivers/staging/media/imx/vvcam-video.ko 
Loading module vvcam-dwe ...
vvcam_dwe
vvcam_dwe              24576  2
vvcam-dwe already loaded.
Loading module vvcam-isp ...
vvcam_isp
vvcam_isp              69632  2
vvcam-isp already loaded.
Starting isp_media_server with configuration file CAMERA0
INFO   : [ISP_MEDIA_SERVER] ******************************************************************
INFO   : [ISP_MEDIA_SERVER] VIV ISP Media Control Framework V4.2.2p11 (Aug  5 2021, 01:34:06)
INFO   : [ISP_MEDIA_SERVER] ******************************************************************&lt;/LI-CODE&gt;&lt;P&gt;2. Launch the &lt;STRONG&gt;video_test&lt;/STRONG&gt; in another the console :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sh-5.0# cd /opt/imx8-isp/bin/ &amp;amp;&amp;amp; export ISP_LOG_LEVEL=0
sh-5.0#  ./video_test -w 1440 -h 1080 -f YUYV -t drm -m0
INFO   : [DrmDisplay] drm device '/dev/dri/card0' does not support dumb buffers
INFO   : [DrmDisplay] Open /dev/dri/card1 success
ERROR  : [DrmDisplay] drmSetMaster fail: -1 Unknown error -1
DEBUG  : [DrmDisplay] DRM bufffer[0] addr=0x0xffff8de41000 size=3686400 w/h=(1280,720) buf_id=44
DEBUG  : [DrmDisplay] DRM bufffer[1] addr=0x0xffff8dabd000 size=3686400 w/h=(1280,720) buf_id=48
INFO   : [VIDEOTEST] Open Device: /dev/video0 (fd=6)
INFO   : [VIDEOTEST]   Driver: viv_v4l2_device
INFO   : [VIDEOTEST] found viv video dev /dev/video0
INFO   : [VIDEOTEST] openDevice Control User Controls
INFO   : [VIDEOTEST] openDevice Control viv_ext_ctrl
INFO   : [VIDEOTEST] openDevice, find viv ctrl id 0x98f901
INFO   : [VIDEOTEST] open camdev ret : 6
INFO   : [VIDEOTEST] Open Device: /dev/video0 (fd=6)
INFO   : [VIDEOTEST]   Driver: viv_v4l2_device
INFO   : [VIDEOTEST]   Card: VIV
INFO   : [VIDEOTEST]   Version: 5.4.70
INFO   : [VIDEOTEST]   All Caps: 84200001
INFO   : [VIDEOTEST]   Dev Caps: 04200001
Video Test:caps supports:{
	count = 1
	{
	index    = 0
	width    = 1440
	height   = 1080
	fps      = 60
	hdr_mode = 0
	}
}
INFO   : [VIDEOTEST] Video Test: Set mode[0]

INFO   : [VIDEOTEST]    0: YUYV 4:2:2 0x56595559 0x0
INFO   : [VIDEOTEST]    1: Y/CbCr 4:2:0 0x3231564E 0x0
INFO   : [VIDEOTEST]    2: Y/CbCr 4:2:2 0x3631564E 0x0
INFO   : [VIDEOTEST]    3: 10-bit Bayer BGBG/GRGR 0x30314742 0x0
DEBUG  : [VIDEOTEST] V4L2 ext ctrl id: 0x98f901
DEBUG  : [VIDEOTEST] V4L2 ext ctrl name: viv_ext_ctrl
DEBUG  : [VIDEOTEST] V4L2 ext ctrl elem size: 65536
DEBUG  : [VIDEOTEST] V4L2 ext ctrl id: 0x98f903
DEBUG  : [VIDEOTEST] V4L2 ext ctrl name: sensor.resw
DEBUG  : [VIDEOTEST] V4L2 ext ctrl elem size: 4
DEBUG  : [VIDEOTEST] V4L2 ext ctrl id: 0x98f904
DEBUG  : [VIDEOTEST] V4L2 ext ctrl name: sensor.resh
DEBUG  : [VIDEOTEST] V4L2 ext ctrl elem size: 4
DEBUG  : [VIDEOTEST] VIDIOC_QUERY_EXT_CTRL: Invalid argument
DEBUG  : [VIDEOTEST] Sensor's caps (JSON format string):{
	"caps" : 
	[
		{
			"bayer_pattern" : 3,
			"bit_width" : 10,
			"fps" : 60,
			"hdr_mode" : 0,
			"height" : 1080,
			"index" : 0,
			"stitching_mode" : 0,
			"width" : 1440
		}
	],
	"current" : 0,
	"default" : 0
}

INFO   : [VIDEOTEST] Buffer description:
INFO   : [VIDEOTEST]   offset: 0
INFO   : [VIDEOTEST]   length: 3110400
INFO   : [VIDEOTEST] map buffer 0xffff8d7c5000
INFO   : [VIDEOTEST] Buffer description:
INFO   : [VIDEOTEST]   offset: 3112960
INFO   : [VIDEOTEST]   length: 3110400
INFO   : [VIDEOTEST] map buffer 0xffff8d4cd000
INFO   : [VIDEOTEST] Buffer description:
INFO   : [VIDEOTEST]   offset: 6225920
INFO   : [VIDEOTEST]   length: 3110400
INFO   : [VIDEOTEST] map buffer 0xffff8d1d5000
INFO   : [VIDEOTEST] Buffer description:
INFO   : [VIDEOTEST]   offset: 9338880
INFO   : [VIDEOTEST]   length: 3110400
INFO   : [VIDEOTEST] map buffer 0xffff8cedd000&lt;/LI-CODE&gt;&lt;P&gt;And UART console shows :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ 3030.800237] enter isp_mi_stop
[ 3123.236602] enter isp_mi_stop
[ 3123.349320] enter isp_s_comp
[ 3123.352246] enter isp_s_comp
[ 3123.355157] enter isp_s_comp
[ 3123.371076] enter wdr3_hw_init
[ 3123.374135] wdr3 res: 1440 1080 
[ 3123.378036] enter isp_mi_start&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help to clarify the error&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt; [DrmDisplay] drmSetMaster fail: -1 Unknown error -1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, please ? I'm really stuck of knowing how to display correctly the output behind the ISP block.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 07:43:05 GMT</pubDate>
    <dc:creator>khang_letruong</dc:creator>
    <dc:date>2021-08-05T07:43:05Z</dc:date>
    <item>
      <title>[IMX8MP][ISP] [DrmDisplay] drmSetMaster fail: -1 Unknown error -1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1318807#M177936</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;This is another question in my serie of questions related to the bring-up of ISP camera driver.&amp;nbsp; My purpose is displaying the processed output of our custom RAW Bayer, 1-lane data Sony IMX296. Instead of using&lt;A href="https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-gst-launch-does-not-show-anything/m-p/1318643" target="_self"&gt; gst-launch&lt;/A&gt;&amp;nbsp;command, I use the &lt;STRONG&gt;video_test&lt;/STRONG&gt; program that is built together with ISP-IMX framework. My steps :&lt;BR /&gt;1. SSH console : manually running the the script that loads necessary modules and executes the &lt;STRONG&gt;isp_media_server&lt;/STRONG&gt; daemon:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mpevk:~# cd /opt/imx8-isp/bin/ &amp;amp;&amp;amp; export ISP_LOG_LEVEL=8
root@imx8mpevk:/opt/imx8-isp/bin#  ./run.sh -c imx296 -lm
RUN_SCRIPT=/opt/imx8-isp/bin/run.sh
RUN_SCRIPT_PATH=/opt/imx8-isp/bin
Trying configuration "imx296"...
Removing vvcam-isp...
Removing vvcam-dwe...
Removing vvcam-video...
Removing imx8-media-dev...
Removing ov2775...
Removing os08a20...
Removing imx296...
Removing basler-camera-driver-vvcam...
Loading module imx296 ...
imx296
Loaded /lib/modules/5.4.70-2.3.2+gf7caf9ea5176/kernel/drivers/staging/media/imx/imx296.ko 
Loading module imx8-media-dev ...
imx8_media_dev
Loaded /lib/modules/5.4.70-2.3.2+gf7caf9ea5176/kernel/drivers/staging/media/imx/imx8-media-dev.ko 
Loading module vvcam-video ...
vvcam_video
Loaded /lib/modules/5.4.70-2.3.2+gf7caf9ea5176/kernel/drivers/staging/media/imx/vvcam-video.ko 
Loading module vvcam-dwe ...
vvcam_dwe
vvcam_dwe              24576  2
vvcam-dwe already loaded.
Loading module vvcam-isp ...
vvcam_isp
vvcam_isp              69632  2
vvcam-isp already loaded.
Starting isp_media_server with configuration file CAMERA0
INFO   : [ISP_MEDIA_SERVER] ******************************************************************
INFO   : [ISP_MEDIA_SERVER] VIV ISP Media Control Framework V4.2.2p11 (Aug  5 2021, 01:34:06)
INFO   : [ISP_MEDIA_SERVER] ******************************************************************&lt;/LI-CODE&gt;&lt;P&gt;2. Launch the &lt;STRONG&gt;video_test&lt;/STRONG&gt; in another the console :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sh-5.0# cd /opt/imx8-isp/bin/ &amp;amp;&amp;amp; export ISP_LOG_LEVEL=0
sh-5.0#  ./video_test -w 1440 -h 1080 -f YUYV -t drm -m0
INFO   : [DrmDisplay] drm device '/dev/dri/card0' does not support dumb buffers
INFO   : [DrmDisplay] Open /dev/dri/card1 success
ERROR  : [DrmDisplay] drmSetMaster fail: -1 Unknown error -1
DEBUG  : [DrmDisplay] DRM bufffer[0] addr=0x0xffff8de41000 size=3686400 w/h=(1280,720) buf_id=44
DEBUG  : [DrmDisplay] DRM bufffer[1] addr=0x0xffff8dabd000 size=3686400 w/h=(1280,720) buf_id=48
INFO   : [VIDEOTEST] Open Device: /dev/video0 (fd=6)
INFO   : [VIDEOTEST]   Driver: viv_v4l2_device
INFO   : [VIDEOTEST] found viv video dev /dev/video0
INFO   : [VIDEOTEST] openDevice Control User Controls
INFO   : [VIDEOTEST] openDevice Control viv_ext_ctrl
INFO   : [VIDEOTEST] openDevice, find viv ctrl id 0x98f901
INFO   : [VIDEOTEST] open camdev ret : 6
INFO   : [VIDEOTEST] Open Device: /dev/video0 (fd=6)
INFO   : [VIDEOTEST]   Driver: viv_v4l2_device
INFO   : [VIDEOTEST]   Card: VIV
INFO   : [VIDEOTEST]   Version: 5.4.70
INFO   : [VIDEOTEST]   All Caps: 84200001
INFO   : [VIDEOTEST]   Dev Caps: 04200001
Video Test:caps supports:{
	count = 1
	{
	index    = 0
	width    = 1440
	height   = 1080
	fps      = 60
	hdr_mode = 0
	}
}
INFO   : [VIDEOTEST] Video Test: Set mode[0]

INFO   : [VIDEOTEST]    0: YUYV 4:2:2 0x56595559 0x0
INFO   : [VIDEOTEST]    1: Y/CbCr 4:2:0 0x3231564E 0x0
INFO   : [VIDEOTEST]    2: Y/CbCr 4:2:2 0x3631564E 0x0
INFO   : [VIDEOTEST]    3: 10-bit Bayer BGBG/GRGR 0x30314742 0x0
DEBUG  : [VIDEOTEST] V4L2 ext ctrl id: 0x98f901
DEBUG  : [VIDEOTEST] V4L2 ext ctrl name: viv_ext_ctrl
DEBUG  : [VIDEOTEST] V4L2 ext ctrl elem size: 65536
DEBUG  : [VIDEOTEST] V4L2 ext ctrl id: 0x98f903
DEBUG  : [VIDEOTEST] V4L2 ext ctrl name: sensor.resw
DEBUG  : [VIDEOTEST] V4L2 ext ctrl elem size: 4
DEBUG  : [VIDEOTEST] V4L2 ext ctrl id: 0x98f904
DEBUG  : [VIDEOTEST] V4L2 ext ctrl name: sensor.resh
DEBUG  : [VIDEOTEST] V4L2 ext ctrl elem size: 4
DEBUG  : [VIDEOTEST] VIDIOC_QUERY_EXT_CTRL: Invalid argument
DEBUG  : [VIDEOTEST] Sensor's caps (JSON format string):{
	"caps" : 
	[
		{
			"bayer_pattern" : 3,
			"bit_width" : 10,
			"fps" : 60,
			"hdr_mode" : 0,
			"height" : 1080,
			"index" : 0,
			"stitching_mode" : 0,
			"width" : 1440
		}
	],
	"current" : 0,
	"default" : 0
}

INFO   : [VIDEOTEST] Buffer description:
INFO   : [VIDEOTEST]   offset: 0
INFO   : [VIDEOTEST]   length: 3110400
INFO   : [VIDEOTEST] map buffer 0xffff8d7c5000
INFO   : [VIDEOTEST] Buffer description:
INFO   : [VIDEOTEST]   offset: 3112960
INFO   : [VIDEOTEST]   length: 3110400
INFO   : [VIDEOTEST] map buffer 0xffff8d4cd000
INFO   : [VIDEOTEST] Buffer description:
INFO   : [VIDEOTEST]   offset: 6225920
INFO   : [VIDEOTEST]   length: 3110400
INFO   : [VIDEOTEST] map buffer 0xffff8d1d5000
INFO   : [VIDEOTEST] Buffer description:
INFO   : [VIDEOTEST]   offset: 9338880
INFO   : [VIDEOTEST]   length: 3110400
INFO   : [VIDEOTEST] map buffer 0xffff8cedd000&lt;/LI-CODE&gt;&lt;P&gt;And UART console shows :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ 3030.800237] enter isp_mi_stop
[ 3123.236602] enter isp_mi_stop
[ 3123.349320] enter isp_s_comp
[ 3123.352246] enter isp_s_comp
[ 3123.355157] enter isp_s_comp
[ 3123.371076] enter wdr3_hw_init
[ 3123.374135] wdr3 res: 1440 1080 
[ 3123.378036] enter isp_mi_start&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help to clarify the error&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt; [DrmDisplay] drmSetMaster fail: -1 Unknown error -1&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, please ? I'm really stuck of knowing how to display correctly the output behind the ISP block.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 07:43:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1318807#M177936</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2021-08-05T07:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: [IMX8MP][ISP] [DrmDisplay] drmSetMaster fail: -1 Unknown error -1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1319510#M177995</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/147542"&gt;@khang_letruong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you attach full kernel log after enabling drm.debug?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 06:30:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1319510#M177995</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-08-06T06:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: [IMX8MP][ISP] [DrmDisplay] drmSetMaster fail: -1 Unknown error -1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1319521#M177996</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this gpu card0 can't create buffer, you can try to use another gpu card, maybe card1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;[DrmDisplay] drm device '/dev/dri/card0' does not support dumb buffers
INFO   : [DrmDisplay] Open /dev/dri/card1 success
ERROR  : [DrmDisplay] drmSetMaster fail: -1 Unknown error -1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 06:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1319521#M177996</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-08-06T06:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: [IMX8MP][ISP] [DrmDisplay] drmSetMaster fail: -1 Unknown error -1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1319633#M178011</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for you replies. Could you advice how to enable drm.debug as well as how to switch to another gpu card, please ?&lt;/P&gt;&lt;P&gt;Thanks very much in advance.&lt;BR /&gt;Khang&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:10:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-ISP-DrmDisplay-drmSetMaster-fail-1-Unknown-error-1/m-p/1319633#M178011</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2021-08-06T09:10:14Z</dc:date>
    </item>
  </channel>
</rss>

