[IMX8MP][ISP] [DrmDisplay] drmSetMaster fail: -1 Unknown error -1

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[IMX8MP][ISP] [DrmDisplay] drmSetMaster fail: -1 Unknown error -1

1,463件の閲覧回数
khang_letruong
Senior Contributor III

Dear All,

This is another question in my serie of questions related to the bring-up of ISP camera driver.  My purpose is displaying the processed output of our custom RAW Bayer, 1-lane data Sony IMX296. Instead of using gst-launch command, I use the video_test program that is built together with ISP-IMX framework. My steps :
1. SSH console : manually running the the script that loads necessary modules and executes the isp_media_server daemon:

root@imx8mpevk:~# cd /opt/imx8-isp/bin/ && 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] ******************************************************************

2. Launch the video_test in another the console :

sh-5.0# cd /opt/imx8-isp/bin/ && 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

And UART console shows :

[ 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

 

Could someone help to clarify the error [DrmDisplay] drmSetMaster fail: -1 Unknown error -1, please ? I'm really stuck of knowing how to display correctly the output behind the ISP block.

Thanks in advance,

Khang

 

0 件の賞賛
返信
3 返答(返信)

1,453件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @khang_letruong 

 

Can you attach full kernel log after enabling drm.debug?

0 件の賞賛
返信

1,450件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

 

this gpu card0 can't create buffer, you can try to use another gpu card, maybe card1

 

[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

 

0 件の賞賛
返信

1,443件の閲覧回数
khang_letruong
Senior Contributor III

Hi @Zhiming_Liu ,

Thanks for you replies. Could you advice how to enable drm.debug as well as how to switch to another gpu card, please ?

Thanks very much in advance.
Khang

0 件の賞賛
返信