AnsweredAssumed Answered

Issue with Webcam

Question asked by Santhosh Kumar on Mar 8, 2019
Latest reply on Mar 8, 2019 by igorpadykov

I have enabled the USB Gadget driver for I.Mx8 from kernal menconfig and i'm getting the below issue. please advice how to proceed

 

root@imx8qm_iwg27m:~# v4l2-ctl --list-devices
[  604.528529] BUG: scheduling while atomic: v4l2-ctl/3339/0x00000002
[  604.534725] Modules linked in:
[  604.537792] CPU: 4 PID: 3339 Comm: v4l2-ctl Tainted: G        W       4.9.51 #2
[  604.545103] Hardware name: Freescale i.MX8QM ARM2 (DT)
[  604.550237] Call trace:
[  604.552692] [<ffff0000080884c8>] dump_backtrace+0x0/0x1a0
[  604.558093] [<ffff00000808867c>] show_stack+0x14/0x20
[  604.563141] [<ffff0000083dd91c>] dump_stack+0x94/0xb8
[  604.568189] [<ffff0000080df898>] __schedule_bug+0x50/0x70
[  604.573584] [<ffff000008c439f0>] __schedule+0x4c0/0x580
[  604.578803] [<ffff000008c43aec>] schedule+0x3c/0xa8
[  604.583683] [<ffff000008c46c60>] schedule_hrtimeout_range_clock+0x80/0xe8
[  604.590475] [<ffff000008c46cd8>] schedule_hrtimeout_range+0x10/0x18
[  604.596747] [<ffff000008c46720>] usleep_range+0x50/0x58
[  604.601980] [<ffff000008837574>] mxs_phy_suspend+0xe4/0x1f8
[  604.607556] [<ffff00000885e8ac>] ci_controller_resume.isra.3+0x54/0x1b8
[  604.614173] [<ffff00000885ea20>] ci_runtime_resume+0x10/0x18
[  604.619840] [<ffff00000861a3b8>] pm_generic_runtime_resume+0x28/0x40
[  604.626197] [<ffff00000861bde0>] __rpm_callback+0x70/0x98
[  604.631600] [<ffff00000861be2c>] rpm_callback+0x24/0xa0
[  604.636830] [<ffff00000861ce88>] rpm_resume+0x328/0x528
[  604.642060] [<ffff00000861cda4>] rpm_resume+0x244/0x528
[  604.647290] [<ffff00000861d0d8>] __pm_runtime_resume+0x50/0x78
[  604.653130] [<ffff000008861fe8>] ci_udc_pullup+0x78/0x100
[  604.658533] [<ffff000008881b5c>] usb_gadget_activate+0x4c/0x70
[  604.664373] [<ffff00000887b8b0>] usb_function_activate+0x48/0x98
[  604.670382] [<ffff0000088834e0>] uvc_function_connect+0x20/0x58
[  604.676307] [<ffff0000088840a0>] uvc_v4l2_open+0x60/0x80
[  604.681623] [<ffff0000088d0778>] v4l2_open+0xa0/0x110
[  604.686682] [<ffff0000081e2518>] chrdev_open+0x98/0x1c0
[  604.691911] [<ffff0000081da614>] do_dentry_open+0x21c/0x320
[  604.697487] [<ffff0000081dba10>] vfs_open+0x48/0x80
[  604.702369] [<ffff0000081ec600>] path_openat+0x560/0x10e8
[  604.707772] [<ffff0000081ee24c>] do_filp_open+0x64/0xe0
[  604.713003] [<ffff0000081dbe30>] do_sys_open+0x130/0x208
[  604.718319] [<ffff0000081dbf40>] SyS_openat+0x10/0x18
[  604.723376] [<ffff000008082f4c>] __sys_trace_return+0x0/0x4
[  604.731492] BUG: scheduling while atomic: v4l2-ctl/3339/0x00000000
[  604.737680] Modules linked in:
[  604.740742] CPU: 4 PID: 3339 Comm: v4l2-ctl Tainted: G        W       4.9.51 #2
[  604.748054] Hardware name: Freescale i.MX8QM ARM2 (DT)
[  604.753196] Call trace:
[  604.755644] [<ffff0000080884c8>] dump_backtrace+0x0/0x1a0
[  604.761045] [<ffff00000808867c>] show_stack+0x14/0x20
[  604.766100] [<ffff0000083dd91c>] dump_stack+0x94/0xb8
[  604.771158] [<ffff0000080df898>] __schedule_bug+0x50/0x70
[  604.776562] [<ffff000008c439f0>] __schedule+0x4c0/0x580
[  604.781790] [<ffff000008c43aec>] schedule+0x3c/0xa8
[  604.786673] [<ffff00000808808c>] do_notify_resume+0x9c/0xb0
[  604.792249] [<ffff000008082ddc>] work_pending+0x8/0x10
5b0d0000.usb (gadget):
        /dev/video0

 

mxc-isi (platform:58100000.isi.0):
        /dev/video1

 

mxc-jpeg decoder (platform:58400000.jpegdec):
        /dev/video2

 

Regards

Santhosh Kumar S

Outcomes