The TX2 camera driver format issue

HI
I want to support two cameras on tx2 devboard, I have modified following code and resolved incompitable issue of MEDIA_BUS_FMT_YUYV8_2X8,However, when I config MEDIA_BUS_FMT_Y8_1X8, the kernal is corrupt.
I have added on: /drivers/media/platform/tegra/camera/camera_common.c

{
		MEDIA_BUS_FMT_YUYV8_2X8,
		V4L2_COLORSPACE_SMPTE240M,
		V4L2_PIX_FMT_YUYV,
	},
	{
		MEDIA_BUS_FMT_Y8_1X8,
		V4L2_COLORSPACE_SMPTE170M,
		V4L2_PIX_FMT_GREY,
	},

Here are the error:

[    7.003110]   #0: tegra-hda at 0x3518000 irq 400
[    7.003111]   #1: tegra-snd-t186ref-mobile-rt565x
[    7.004301] tegra-vi4 15700000.vi: initialized
[    7.005686] Unable to handle kernel NULL pointer dereference at virtual address 0000001c
[    7.005688] pgd = ffffffc001442000
[    7.005693] [0000001c] *pgd=000000026cdd6003, *pud=000000026cdd6003, *pmd=000000026cdd7003, *pte=00e8000003881707
[    7.005696] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[    7.005698] Modules linked in:
[    7.005702] CPU: 0 PID: 115 Comm: kworker/u12:2 Not tainted 4.4.38 #28
[    7.005703] Hardware name: quill (DT)
[    7.005709] Workqueue: events_unbound async_run_entry_fn
[    7.005711] task: ffffffc1eaf27080 ti: ffffffc1ea928000 task.ti: ffffffc1ea928000
[    7.005716] PC is at tegra_channel_fmts_bitmap_init+0x190/0x1f4
[    7.005718] LR is at tegra_channel_fmts_bitmap_init+0x150/0x1f4
[    7.005719] pc : [<ffffffc00076b3ec>] lr : [<ffffffc00076b3ac>] pstate: 60000045
[    7.005720] sp : ffffffc1ea92b8d0
[    7.005722] x29: ffffffc1ea92b8d0 x28: 0000000000000018 
[    7.005724] x27: ffffffc000fb0290 x26: ffffffc000fb0298 
[    7.005726] x25: ffffffc1eab76660 x24: ffffffc1eab76660 
[    7.005728] x23: ffffffc1ecdecb80 x22: ffffffc1ecdec018 
[    7.005729] x21: ffffffc1ea92b968 x20: 0000000000003012 
[    7.005731] x19: 00000000ffffffff x18: 0000000000000000 
[    7.005733] x17: ffffffc000b13a60 x16: ffffffc000b13a60 
[    7.005734] x15: 00000000fa83b2da x14: 0ffffffffffffffe 
[    7.005736] x13: 0000000000000020 x12: 0101010101010101 
[    7.005737] x11: 7f7f7f7f7f7f7f7f x10: fefefeff642f2f2f 
[    7.005739] x9 : 7f7f7f7f7f7f7f7f x8 : 0000000000000001 
[    7.005741] x7 : 0000000000000000 x6 : 0000000000000000 
[    7.005742] x5 : 0000000000000014 x4 : 0000000000000000 
[    7.005744] x3 : ffffffc1ecdec0b8 x2 : 00000000000001e0 
[    7.005745] x1 : 0000000000000280 x0 : 0000000000000000 
[    7.005745] 
[    7.005747] Process kworker/u12:2 (pid: 115, stack limit = 0xffffffc1ea928020)
[    7.005748] Call trace:
[    7.005750] [<ffffffc00076b3ec>] tegra_channel_fmts_bitmap_init+0x190/0x1f4
[    7.005753] [<ffffffc00076c404>] tegra_channel_init_subdevices+0x12c/0x2c0
[    7.005756] [<ffffffc00076d420>] tegra_vi_graph_notify_complete+0x44c/0x6a4
[    7.005761] [<ffffffc00075dcd4>] v4l2_async_test_notify+0xfc/0x114
[    7.005763] [<ffffffc00075de1c>] v4l2_async_notifier_register+0x130/0x194
[    7.005765] [<ffffffc00076dc1c>] tegra_vi_graph_init+0xf0/0x19c
[    7.005768] [<ffffffc00076a418>] tegra_vi_media_controller_init+0x188/0x1f8
[    7.005772] [<ffffffc0008d7b04>] tegra_vi4_probe+0x1f8/0x2c0
[    7.005776] [<ffffffc00054a400>] platform_drv_probe+0x50/0xbc
[    7.005778] [<ffffffc000547e90>] driver_probe_device+0xc8/0x408
[    7.005780] [<ffffffc00054826c>] __driver_attach+0x9c/0xa0
[    7.005783] [<ffffffc000545f0c>] bus_for_each_dev+0x58/0x98
[    7.005784] [<ffffffc000547938>] driver_attach+0x20/0x28
[    7.005786] [<ffffffc0005463c8>] driver_attach_async+0x14/0x50
[    7.005788] [<ffffffc0000c4264>] async_run_entry_fn+0x44/0x180
[    7.005791] [<ffffffc0000bbc24>] process_one_work+0x154/0x434
[    7.005792] [<ffffffc0000bc038>] worker_thread+0x134/0x40c
[    7.005794] [<ffffffc0000c18c8>] kthread+0xe0/0xf4
[    7.005797] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    7.005799] ---[ end trace f13605d0a5b20854 ]---
[    7.006973] Unable to handle kernel paging request at virtual address ffffffffffffffd8
[    7.006973] pgd = ffffffc001442000
[    7.006976] [ffffffffffffffd8] *pgd=0000000000000000, *pud=0000000000000000
[    7.006977] Internal error: Oops: 96000005 [#2] PREEMPT SMP
[    7.006979] Modules linked in:
[    7.006981] CPU: 0 PID: 115 Comm: kworker/u12:2 Tainted: G      D         4.4.38 #28
[    7.006982] Hardware name: quill (DT)
[    7.006987] task: ffffffc1eaf27080 ti: ffffffc1ea928000 task.ti: ffffffc1ea928000
[    7.006990] PC is at kthread_data+0x4/0xc
[    7.006992] LR is at wq_worker_sleeping+0x10/0xc4
[    7.006993] pc : [<ffffffc0000c1f90>] lr : [<ffffffc0000bcae4>] pstate: 600000c5
[    7.006994] sp : ffffffc1ea92b4c0
[    7.006996] x29: ffffffc1ea92b4c0 x28: ffffffc1ea928000 
[    7.006997] x27: ffffffc000fb0290 x26: ffffffc0011e5000 
[    7.006999] x25: 0000000000000000 x24: ffffffc000b04898 
[    7.007001] x23: 0000000000000000 x22: ffffffc1eaf27610 
[    7.007002] x21: ffffffc0011b6000 x20: ffffffc1eaf27080 
[    7.007004] x19: ffffffc1f5d6a500 x18: ffffffc000b83f38 
[    7.007005] x17: 000000000000000e x16: 0000000000000007 
[    7.007007] x15: 0000000000000001 x14: 0000000000000007 
[    7.007008] x13: 000000000000000e x12: 0000000000000013 
[    7.007010] x11: 000000000000001a x10: 000000000023dff7 
[    7.007011] x9 : 000000000023dff7 x8 : 0000000000000400 
[    7.007013] x7 : 0000000000000000 x6 : 0000000000a57cad 
[    7.007014] x5 : ffffffc1f5d6a500 x4 : ffffffc1f5d6aee0 
[    7.007016] x3 : 000000000001af3b x2 : ffffffc1ecc03000 
[    7.007017] x1 : 0000000000000000 x0 : 0000000000000000 
[    7.007018] 
[    7.007019] Process kworker/u12:2 (pid: 115, stack limit = 0xffffffc1ea928020)
[    7.007019] Call trace:
[    7.007021] [<ffffffc0000c1f90>] kthread_data+0x4/0xc
[    7.007025] [<ffffffc000b044c8>] __schedule+0x348/0x6d4
[    7.007027] [<ffffffc000b04898>] schedule+0x44/0xa8
[    7.007029] [<ffffffc0000a6bc8>] do_exit+0x5b0/0x9a0
[    7.007032] [<ffffffc000089bcc>] bug_handler.part.3+0x0/0x7c
[    7.007036] [<ffffffc00009c780>] __do_kernel_fault.part.7+0x74/0x84
[    7.007038] [<ffffffc00009a8f8>] do_page_fault+0x350/0x444
[    7.007040] [<ffffffc00009aaac>] do_translation_fault+0xc0/0xf0
[    7.007042] [<ffffffc00008139c>] do_mem_abort+0x40/0xa0
[    7.007044] [<ffffffc000084540>] el1_da+0x18/0x78
[    7.007047] [<ffffffc00076c404>] tegra_channel_init_subdevices+0x12c/0x2c0
[    7.007049] [<ffffffc00076d420>] tegra_vi_graph_notify_complete+0x44c/0x6a4
[    7.007052] [<ffffffc00075dcd4>] v4l2_async_test_notify+0xfc/0x114
[    7.007054] [<ffffffc00075de1c>] v4l2_async_notifier_register+0x130/0x194
[    7.007056] [<ffffffc00076dc1c>] tegra_vi_graph_init+0xf0/0x19c
[    7.007058] [<ffffffc00076a418>] tegra_vi_media_controller_init+0x188/0x1f8
[    7.007060] [<ffffffc0008d7b04>] tegra_vi4_probe+0x1f8/0x2c0
[    7.007062] [<ffffffc00054a400>] platform_drv_probe+0x50/0xbc
[    7.007063] [<ffffffc000547e90>] driver_probe_device+0xc8/0x408
[    7.007065] [<ffffffc00054826c>] __driver_attach+0x9c/0xa0
[    7.007067] [<ffffffc000545f0c>] bus_for_each_dev+0x58/0x98
[    7.007068] [<ffffffc000547938>] driver_attach+0x20/0x28
[    7.007070] [<ffffffc0005463c8>] driver_attach_async+0x14/0x50
[    7.007072] [<ffffffc0000c4264>] async_run_entry_fn+0x44/0x180
[    7.007074] [<ffffffc0000bbc24>] process_one_work+0x154/0x434
[    7.007075] [<ffffffc0000bc038>] worker_thread+0x134/0x40c
[    7.007077] [<ffffffc0000c18c8>] kthread+0xe0/0xf4
[    7.007079] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    7.007080] ---[ end trace f13605d0a5b20855 ]---
[    7.008212] Fixing recursive fault but reboot is needed!
[   11.050088] random: nonblocking pool is initialized

Could anyone kindly advise if I should modify anywhere else to make TX2 support MEDIA_BUS_FMT_Y8_1X8?

Thank You

Did you have modify any other files, I can boot normally with the kernel add that two formats.

I didn’t modify the other files. I only changed camera_common.c ,

Can you solve this problem,I have the same question.

Did you use 28.1 or 28.2DP, I check the 28.1 didn’t have this problem didn’t try 28.2 yet.

sorry , I am trying solve this problem now

yes , I use the 28.1, at chann. c , I found chan->fmtinfo->fourcc is invalid value, but I don’t know why

Hi

a similar problem
I use TX2 and driver package R28.1

Added to driver (based on ov5693) MEDIA_BUS_FMT_YUYV8_2X8

I have added on: kernel/kernel-4.4/drivers/media/platform/tegra/camera/camera_common.c

{
   MEDIA_BUS_FMT_YUYV8_2X8,
   V4L2_COLORSPACE_SMPTE170M,
   V4L2_PIX_FMT_YUYV,
},

added on: kernel/kernel-4.4/drivers/media/platform/tegra/camera/sensor_common.c

else if (strncmp(pixel_t, “uyvy”, size) == 0)
*format = V4L2_PIX_FMT_UYVY;

static int extract_pixel_format(
	const char *pixel_t, u32 *format)
{
	size_t size = strnlen(pixel_t, OF_MAX_STR_LEN);

	if (strncmp(pixel_t, "bayer_bggr10", size) == 0)
		*format = V4L2_PIX_FMT_SBGGR10;
	else if (strncmp(pixel_t, "bayer_rggb10", size) == 0)
		*format = V4L2_PIX_FMT_SRGGB10;
	else if (strncmp(pixel_t, "bayer_bggr12", size) == 0)
		*format = V4L2_PIX_FMT_SBGGR12;
	else if (strncmp(pixel_t, "bayer_rggb12", size) == 0)
		*format = V4L2_PIX_FMT_SRGGB12;
	else if (strncmp(pixel_t, "bayer_wdr_pwl_rggb12", size) == 0)
		*format = V4L2_PIX_FMT_SRGGB12;
	else if (strncmp(pixel_t, "bayer_xbggr10p", size) == 0)
		*format = V4L2_PIX_FMT_XBGGR10P;
	else if (strncmp(pixel_t, "bayer_xrggb10p", size) == 0)
		*format = V4L2_PIX_FMT_XRGGB10P;
	else if (strncmp(pixel_t, "uyvy", size) == 0)
		*format = V4L2_PIX_FMT_YUYV;
	else {
		pr_err("%s: Need to extend format%s\n", __func__, pixel_t);
		return -EINVAL;
	}

	return 0;
}

the kernel load log with the modified driver

[    4.630902] tegra-vi4 15700000.vi: initialized
[    4.632128] [OV5693]: GET-FMT 
[    4.632134] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[    4.632135] pgd = ffffffc00142d000
[    4.632140] [00000000] *pgd=000000026cdd6003, *pud=000000026cdd6003, *pmd=000000026cdd7003, *pte=00e8000003881707
[    4.632144] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[    4.632147] Modules linked in:
[    4.632150] CPU: 5 PID: 229 Comm: kworker/u12:6 Not tainted 4.4.38+ #212
[    4.632151] Hardware name: quill (DT)
[    4.632158] Workqueue: events_unbound async_run_entry_fn
[    4.632160] task: ffffffc1eb577080 ti: ffffffc1e4cac000 task.ti: ffffffc1e4cac000
[    4.632165] PC is at camera_common_g_fmt+0x34/0xa8
[    4.632168] LR is at ov5693_get_fmt+0x30/0x3c
[    4.632169] pc : [<ffffffc00076db48>] lr : [<ffffffc000740d4c>] pstate: 80000045
[    4.632170] sp : ffffffc1e4caf870
[    4.632172] x29: ffffffc1e4caf870 x28: 0000000000000018 
[    4.632174] x27: ffffffc000fa42b8 x26: ffffffc000fa42c0 
[    4.632176] x25: ffffffc1e9c77260 x24: ffffffc1e9c77260 
[    4.632178] x23: ffffffc0593e5b80 x22: ffffffc0593e5018 
[    4.632179] x21: ffffffc1e9c77260 x20: 0000000000000000 
[    4.632181] x19: ffffffc1e4caf918 x18: 0000000000000000 
[    4.632183] x17: ffffffc000b0ba60 x16: ffffffc000b0ba60 
[    4.632184] x15: ffffffc000b0ba60 x14: 0ffffffffffffffe 
[    4.632186] x13: 0000000000000028 x12: ffffffc0011f0000 
[    4.632187] x11: ffffffc001386000 x10: 0000000000000000 
[    4.632190] x9 : 0000000000010620 x8 : ffffffc001397204 
[    4.632191] x7 : 0000000000000000 x6 : 00000000089c47b0 
[    4.632193] x5 : 00000000089c47b0 x4 : 0000000000000000 
[    4.632194] x3 : 0000000000000000 x2 : ffffffc1ebb3f400 
[    4.632196] x1 : ffffffc1e4caf918 x0 : ffffffc001371e80 
[    4.632196] 
[    4.632198] Process kworker/u12:6 (pid: 229, stack limit = 0xffffffc1e4cac020)
[    4.632199] Call trace:
[    4.632202] [<ffffffc00076db48>] camera_common_g_fmt+0x34/0xa8
[    4.632204] [<ffffffc000740d4c>] ov5693_get_fmt+0x30/0x3c
[    4.632206] [<ffffffc000763880>] tegra_channel_fmts_bitmap_init+0x134/0x1f4
[    4.632208] [<ffffffc0007648f4>] tegra_channel_init_subdevices+0x12c/0x2c0
[    4.632210] [<ffffffc000765910>] tegra_vi_graph_notify_complete+0x44c/0x6a4
[    4.632213] [<ffffffc0007561c4>] v4l2_async_test_notify+0xfc/0x114
[    4.632215] [<ffffffc00075630c>] v4l2_async_notifier_register+0x130/0x194
[    4.632217] [<ffffffc00076610c>] tegra_vi_graph_init+0xf0/0x19c
[    4.632218] [<ffffffc000762908>] tegra_vi_media_controller_init+0x188/0x1f8
[    4.632221] [<ffffffc0008d0004>] tegra_vi4_probe+0x1f8/0x2c0
[    4.632225] [<ffffffc00054a354>] platform_drv_probe+0x50/0xbc
[    4.632227] [<ffffffc000547de4>] driver_probe_device+0xc8/0x408
[    4.632229] [<ffffffc0005481c0>] __driver_attach+0x9c/0xa0
[    4.632232] [<ffffffc000545e60>] bus_for_each_dev+0x58/0x98
[    4.632233] [<ffffffc00054788c>] driver_attach+0x20/0x28
[    4.632235] [<ffffffc00054631c>] driver_attach_async+0x14/0x50
[    4.632237] [<ffffffc0000c4264>] async_run_entry_fn+0x44/0x180
[    4.632240] [<ffffffc0000bbc24>] process_one_work+0x154/0x434
[    4.632241] [<ffffffc0000bc038>] worker_thread+0x134/0x40c
[    4.632243] [<ffffffc0000c18c8>] kthread+0xe0/0xf4
[    4.632246] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    4.632248] ---[ end trace 273dd7c8f7302275 ]---
[    4.633220] Unable to handle kernel paging request at virtual address ffffffffffffffd8
[    4.633221] pgd = ffffffc00142d000
[    4.633224] [ffffffffffffffd8] *pgd=0000000000000000, *pud=0000000000000000
[    4.633225] Internal error: Oops: 96000005 [#2] PREEMPT SMP
[    4.633226] Modules linked in:
[    4.633229] CPU: 5 PID: 229 Comm: kworker/u12:6 Tainted: G      D         4.4.38+ #212
[    4.633230] Hardware name: quill (DT)
[    4.633234] task: ffffffc1eb577080 ti: ffffffc1e4cac000 task.ti: ffffffc1e4cac000
[    4.633238] PC is at kthread_data+0x4/0xc
[    4.633239] LR is at wq_worker_sleeping+0x10/0xc4
[    4.633241] pc : [<ffffffc0000c1f90>] lr : [<ffffffc0000bcae4>] pstate: 600000c5
[    4.633241] sp : ffffffc1e4caf460
[    4.633243] x29: ffffffc1e4caf460 x28: ffffffc1e4cac000 
[    4.633245] x27: ffffffc000fa42b8 x26: ffffffc0011d9000 
[    4.633247] x25: 0000000000000005 x24: ffffffc000afcdb0 
[    4.633248] x23: 0000000000000000 x22: ffffffc1eb577610 
[    4.633250] x21: ffffffc0011ab000 x20: ffffffc1eb577080 
[    4.633252] x19: ffffffc1f5dc7500 x18: ffffffc000b7bf38 
[    4.633253] x17: 000000000000000e x16: ffffffc000b0ba60 
[    4.633255] x15: 00000000fa83b2da x14: 0000000000747549 
[    4.633256] x13: 0000000000000000 x12: 0000000000747549 
[    4.633258] x11: 0000000000000400 x10: 00000000000d6429 
[    4.633259] x9 : 00000000000d6429 x8 : 0000000000000400 
[    4.633261] x7 : 0000000000000001 x6 : 00000000007958a9 
[    4.633262] x5 : ffffffc1f5dc7500 x4 : ffffffc1f5dc7ee0 
[    4.633264] x3 : 000000000001af3b x2 : ffffffc1ecc03000 
[    4.633265] x1 : 0000000000000005 x0 : 0000000000000000 
[    4.633266] 
[    4.633267] Process kworker/u12:6 (pid: 229, stack limit = 0xffffffc1e4cac020)
[    4.633268] Call trace:
[    4.633270] [<ffffffc0000c1f90>] kthread_data+0x4/0xc
[    4.633274] [<ffffffc000afc9e0>] __schedule+0x348/0x6d4
[    4.633275] [<ffffffc000afcdb0>] schedule+0x44/0xa8
[    4.633278] [<ffffffc0000a6bc8>] do_exit+0x5b0/0x9a0
[    4.633281] [<ffffffc000089bcc>] bug_handler.part.3+0x0/0x7c
[    4.633285] [<ffffffc00009c780>] __do_kernel_fault.part.7+0x74/0x84
[    4.633287] [<ffffffc00009a8f8>] do_page_fault+0x350/0x444
[    4.633288] [<ffffffc00009aaac>] do_translation_fault+0xc0/0xf0
[    4.633290] [<ffffffc00008139c>] do_mem_abort+0x40/0xa0
[    4.633292] [<ffffffc000084540>] el1_da+0x18/0x78
[    4.633293] [<ffffffc000740d4c>] ov5693_get_fmt+0x30/0x3c
[    4.633295] [<ffffffc000763880>] tegra_channel_fmts_bitmap_init+0x134/0x1f4
[    4.633297] [<ffffffc0007648f4>] tegra_channel_init_subdevices+0x12c/0x2c0
[    4.633299] [<ffffffc000765910>] tegra_vi_graph_notify_complete+0x44c/0x6a4
[    4.633301] [<ffffffc0007561c4>] v4l2_async_test_notify+0xfc/0x114
[    4.633302] [<ffffffc00075630c>] v4l2_async_notifier_register+0x130/0x194
[    4.633304] [<ffffffc00076610c>] tegra_vi_graph_init+0xf0/0x19c
[    4.633305] [<ffffffc000762908>] tegra_vi_media_controller_init+0x188/0x1f8
[    4.633307] [<ffffffc0008d0004>] tegra_vi4_probe+0x1f8/0x2c0
[    4.633309] [<ffffffc00054a354>] platform_drv_probe+0x50/0xbc
[    4.633311] [<ffffffc000547de4>] driver_probe_device+0xc8/0x408
[    4.633312] [<ffffffc0005481c0>] __driver_attach+0x9c/0xa0
[    4.633315] [<ffffffc000545e60>] bus_for_each_dev+0x58/0x98
[    4.633316] [<ffffffc00054788c>] driver_attach+0x20/0x28
[    4.633318] [<ffffffc00054631c>] driver_attach_async+0x14/0x50
[    4.633319] [<ffffffc0000c4264>] async_run_entry_fn+0x44/0x180
[    4.633322] [<ffffffc0000bbc24>] process_one_work+0x154/0x434
[    4.633323] [<ffffffc0000bc038>] worker_thread+0x134/0x40c
[    4.633325] [<ffffffc0000c18c8>] kthread+0xe0/0xf4
[    4.633326] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[    4.633327] ---[ end trace 273dd7c8f7302276 ]---
[    4.634338] Fixing recursive fault but reboot is needed!
[    6.097002] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB)
[    6.097092] sd 0:0:0:0: [sda] Write Protect is off
[    6.097095] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    6.097124] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   17.398061] random: nonblocking pool is initialized
[   27.642043] INFO: rcu_preempt detected stalls on CPUs/tasks:
[   27.642046] 	0-...: (1 GPs behind) idle=1ff/1/0 softirq=71/72 fqs=5251 
[   27.642049] 	4-...: (1 GPs behind) idle=93f/140000000000000/0 softirq=60/68 fqs=5251 
[   27.642052] 	5-...: (1 GPs behind) idle=93d/140000000000000/0 softirq=164/164 fqs=5251 
[   27.642055] 	(detected by 3, t=5252 jiffies, g=-232, c=-233, q=9)
[   27.642056] Task dump for CPU 0:
[   27.642060] swapper/0       R  running task        0     0      0 0x00000002
[   27.642060] Call trace:
[   27.642066] [<ffffffc0000865b8>] __switch_to+0xa4/0xb0
[   27.642068] [<0000000060000045>] 0x60000045
[   27.642069] Task dump for CPU 4:
[   27.642071] kworker/u12:1   R  running task        0    55      2 0x00000002
[   27.642075] Workqueue: events_unbound async_run_entry_fn
[   27.642076] Call trace:
[   27.642078] [<ffffffc0000865b8>] __switch_to+0xa4/0xb0
[   27.642082] [<ffffffc000320170>] vsnprintf+0x358/0x6b8
[   27.642083] [<00000000000003c0>] 0x3c0
[   27.642083] Task dump for CPU 5:
[   27.642087] kworker/u12:6   D ffffffc0000865b8     0   229      0 0x00000000
[   27.642091] Call trace:
[   27.642093] [<ffffffc0000865b8>] __switch_to+0xa4/0xb0
[   27.642095] [<ffffffc000320600>] snprintf+0x54/0x5c
[   36.086046] Watchdog detected hard LOCKUP on cpu 4
[   36.086046] ------------[ cut here ]------------
[   36.086047] WARNING: at ffffffc00013ca74 [verbose debug info unavailable]
[   36.086048] Modules linked in:
[   36.086048] 
[   36.086051] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D         4.4.38+ #212
[   36.086052] Hardware name: quill (DT)
[   36.086053] task: ffffffc1ececa580 ti: ffffffc1ecedc000 task.ti: ffffffc1ecedc000
[   36.086057] PC is at watchdog_timer_fn+0x230/0x33c
[   36.086059] LR is at watchdog_timer_fn+0x230/0x33c
[   36.086060] pc : [<ffffffc00013ca74>] lr : [<ffffffc00013ca74>] pstate: 800001c5
[   36.086061] sp : ffffffc1ecedfae0
[   36.086063] x29: ffffffc1ecedfae0 x28: 0000000000000004 
[   36.086065] x27: ffffffc0011d8b28 x26: ffffffc1f5da1260 
[   36.086067] x25: ffffffc0011a72c0 x24: ffffffc1ecedfdc0 
[   36.086069] x23: 0000000000000000 x22: 000000000000001d 
[   36.086071] x21: ffffffc0011d8000 x20: ffffffc0011a7000 
[   36.086072] x19: ffffffc0011a7248 x18: ffffffc000b7bf38 
[   36.086074] x17: ffffffc000b0ba60 x16: ffffffc000b0ba60 
[   36.086075] x15: ffffffc000b0ba60 x14: 0000000000000001 
[   36.086077] x13: 00000000000076f5 x12: 00000e0aab703a59 
[   36.086079] x11: 0000000000000000 x10: ffffffc0013a8e88 
[   36.086080] x9 : ffffffc1ecedfa30 x8 : 4c20647261682064 
[   36.086082] x7 : 6574636574656420 x6 : ffffffc0013a9838 
[   36.086084] x5 : 000000004332ac93 x4 : 0000000000000000 
[   36.086085] x3 : 0000000000000000 x2 : 0000000000010001 
[   36.086087] x1 : ffffffc1ecedc000 x0 : 0000000000000026 
[   36.086087] 
[   36.086088] ---[ end trace 273dd7c8f7302277 ]---
[   36.086088] Call trace:
[   36.086091] [<ffffffc00013ca74>] watchdog_timer_fn+0x230/0x33c
[   36.086095] [<ffffffc0001073c4>] __hrtimer_run_queues+0x140/0x350
[   36.086098] [<ffffffc000107e24>] hrtimer_interrupt+0x9c/0x1e0
[   36.086101] [<ffffffc0008d23f8>] tegra186_timer_isr+0x24/0x30
[   36.086104] [<ffffffc0000f4cb0>] handle_irq_event_percpu+0x84/0x290
[   36.086105] [<ffffffc0000f4f00>] handle_irq_event+0x44/0x74
[   36.086108] [<ffffffc0000f8208>] handle_fasteoi_irq+0xb4/0x188
[   36.086109] [<ffffffc0000f42d0>] generic_handle_irq+0x24/0x38
[   36.086111] [<ffffffc0000f45d8>] __handle_domain_irq+0x60/0xb4
[   36.086113] [<ffffffc0000815dc>] gic_handle_irq+0x5c/0xb4
[   36.086114] [<ffffffc000084740>] el1_irq+0x80/0xf8
[   36.086117] [<ffffffc0007b18bc>] cpuidle_enter+0x18/0x20
[   36.086120] [<ffffffc0000e7a74>] call_cpuidle+0x28/0x50
[   36.086122] [<ffffffc0000e7c18>] cpu_startup_entry+0x17c/0x340
[   36.086124] [<ffffffc00008ede8>] secondary_start_kernel+0x12c/0x164
[   36.086125] [<000000008008192c>] 0x8008192c
[   90.292168] Bad mode in Synchronous Abort handler detected, code 0x86000005 -- IABT (current EL)
[   90.292170] Bad mode in Synchronous Abort handler detected, code 0x86000005 -- IABT (current EL)
[   90.292171] Bad mode in Synchronous Abort handler detected, code 0x86000005 -- IABT (current EL)
[   90.292173] Bad mode in Synchronous Abort handler detected, code 0x86000005 -- IABT (current EL)
[   90.292174] Internal error: Oops - bad mode: 0 [#3] PREEMPT SMP
[   90.292176] Modules linked in:
[   90.292178] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D W       4.4.38+ #212
[   90.292179] Hardware name: quill (DT)
[   90.292180] task: ffffffc0011e0ec0 ti: ffffffc0011d0000 task.ti: ffffffc0011d0000
[   90.292182] PC is at 0x0
[   90.292186] LR is at sched_rt_period_timer+0x100/0x2b0
[   90.292187] pc : [<0000000000000000>] lr : [<ffffffc0000e37e0>] pstate: 800001c5
[   90.292188] sp : ffffffc0011d3a70
[   90.292190] x29: ffffffc0011d3a70 x28: 0000000000000000 
[   90.292192] x27: ffffffc1f5dc76e8 x26: ffffffc1f5db6db0 
[   90.292194] x25: 0000000000000001 x24: ffffffc0011d8af0 
[   90.292196] x23: ffffffc001386108 x22: ffffffc0011d79c8 
[   90.292197] x21: 0000000000000000 x20: 0000000000000005 
[   90.292199] x19: ffffffc1f5dc7500 x18: ffffffc000b7bf38 
[   90.292200] x17: ffffffc000b0ba60 x16: 00000000fa83b2da 
[   90.292202] x15: 00000000001ef868 x14: 000000003b81ca80 
[   90.292204] x13: 0000000000000004 x12: 7fffffffffffffff 
[   90.292205] x11: 0000000300000000 x10: 0d235036530b3f80 
[   90.292207] x9 : 001ba81400000000 x8 : 0000000000000017 
[   90.292209] x7 : 0000000000000003 x6 : 0000000000000742 
[   90.292210] x5 : ffffffffffffffe0 x4 : 0000000000000020 
[   90.292212] x3 : 0000000000000f4f x2 : 000000000000001e 
[   90.292213] x1 : 000000000f510f4f x0 : ffffffc1f5dc7500 
[   90.292214] 
[   90.292215] Process swapper/0 (pid: 0, stack limit = 0xffffffc0011d0020)
[   90.292216] Call trace:
[   90.292217] [<          (null)>]           (null)
[   90.292220] [<ffffffc0001073c4>] __hrtimer_run_queues+0x140/0x350
[   90.292222] [<ffffffc000107e24>] hrtimer_interrupt+0x9c/0x1e0
[   90.292224] [<ffffffc0008d23f8>] tegra186_timer_isr+0x24/0x30
[   90.292226] [<ffffffc0000f4cb0>] handle_irq_event_percpu+0x84/0x290
[   90.292228] [<ffffffc0000f4f00>] handle_irq_event+0x44/0x74
[   90.292229] [<ffffffc0000f8208>] handle_fasteoi_irq+0xb4/0x188
[   90.292231] [<ffffffc0000f42d0>] generic_handle_irq+0x24/0x38
[   90.292232] [<ffffffc0000f45d8>] __handle_domain_irq+0x60/0xb4
[   90.292234] [<ffffffc0000815dc>] gic_handle_irq+0x5c/0xb4
[   90.292235] [<ffffffc000084740>] el1_irq+0x80/0xf8
[   90.292237] [<ffffffc0007b18bc>] cpuidle_enter+0x18/0x20
[   90.292238] [<ffffffc0000e7a74>] call_cpuidle+0x28/0x50
[   90.292240] [<ffffffc0000e7c18>] cpu_startup_entry+0x17c/0x340
[   90.292243] [<ffffffc000afb428>] rest_init+0x84/0x8c
[   90.292246] [<ffffffc00108c97c>] start_kernel+0x39c/0x3b0
[   90.292247] [<0000000080b01000>] 0x80b01000
[   90.292249] ---[ end trace 273dd7c8f7302278 ]---
[   90.292250] Internal error: Oops - bad mode: 0 [#4] PREEMPT SMP
[   90.292252] Modules linked in:
[   90.293274] CPU: 4 PID: 55 Comm: kworker/u12:1 Tainted: G      D W       4.4.38+ #212
[   90.293275] Hardware name: quill (DT)
[   90.293278] Workqueue: events_unbound async_run_entry_fn
[   90.293279] task: ffffffc1ec2e8c80 ti: ffffffc1eb568000 task.ti: ffffffc1eb568000
[   90.293280] PC is at 0x0
[   90.293284] LR is at try_to_wake_up+0x230/0x3c4
[   90.293285] pc : [<0000000000000000>] lr : [<ffffffc0000cbd84>] pstate: 600000c5
[   90.293286] sp : ffffffc1eb56bc00
[   90.293288] x29: ffffffc1eb56bc00 x28: ffffffc1ecc15018 
[   90.293290] x27: ffffffc1ecc152e0 x26: ffffffc00134b2f8 
[   90.293292] x25: ffffffc0011d9148 x24: ffffffc1f5dc7500 
[   90.293294] x23: 00000000000000c0 x22: 0000000000000000 
[   90.293296] x21: ffffffc1ebdff75c x20: 0000000000000005 
[   90.293297] x19: ffffffc1ebdff080 x18: ffffffc000b7bf38 
[   90.293299] x17: ffffffc000b0ba60 x16: ffffffc000b0ba60 
[   90.293301] x15: ffffffc000b0ba60 x14: 0ffffffffffffffe 
[   90.293303] x13: 0000000000000018 x12: 0000000000000020 
[   90.293304] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f 
[   90.293306] x9 : fefefeff72636064 x8 : 7f7f7f7f7f7f7f7f 
[   90.293308] x7 : ffffffc1ebdff080 x6 : ffffffc0000e771c 
[   90.293309] x5 : ffffffffffffffff x4 : ffffffc0011a5a54 
[   90.293311] x3 : 0000000000000f4f x2 : 000000000000001d 
[   90.293313] x1 : 000000000f520f4f x0 : ffffffc1f5dc7500 
[   90.293313] 
[   90.293314] Process kworker/u12:1 (pid: 55, stack limit = 0xffffffc1eb568020)
[   90.293315] Call trace:
[   90.293316] [<          (null)>]           (null)
[   90.293318] [<ffffffc0000cbfe0>] default_wake_function+0x10/0x18
[   90.293320] [<ffffffc0000e7730>] autoremove_wake_function+0x14/0x40
[   90.293322] [<ffffffc0000e6f94>] __wake_up_common+0x60/0xa0
[   90.293324] [<ffffffc0000e71dc>] __wake_up+0x3c/0x54
[   90.293325] [<ffffffc0000c4310>] async_run_entry_fn+0xf0/0x180
[   90.293328] [<ffffffc0000bbc24>] process_one_work+0x154/0x434
[   90.293329] [<ffffffc0000bc038>] worker_thread+0x134/0x40c
[   90.293331] [<ffffffc0000c18c8>] kthread+0xe0/0xf4
[   90.293333] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[   90.293334] ---[ end trace 273dd7c8f7302279 ]---
[   90.293335] Internal error: Oops - bad mode: 0 [#5] PREEMPT SMP
[   90.293336] Modules linked in:
[   90.293339] CPU: 5 PID: 229 Comm: kworker/u12:6 Tainted: G      D W       4.4.38+ #212
[   90.293339] Hardware name: quill (DT)
[   90.293343] task: ffffffc1eb577080 ti: ffffffc1e4cac000 task.ti: ffffffc1e4cac000
[   90.293344] PC is at 0x0
[   90.293346] LR is at __schedule+0x90/0x6d4
[   90.293347] pc : [<0000000000000000>] lr : [<ffffffc000afc728>] pstate: 200001c5
[   90.293348] sp : ffffffc1e4caf0e0
[   90.293350] x29: ffffffc1e4caf0e0 x28: ffffffc1e4cac000 
[   90.293351] x27: ffffffc000fa42b8 x26: ffffffc0011d9000 
[   90.293353] x25: 0000000000000005 x24: ffffffc000afcdb0 
[   90.293355] x23: 0000000000000000 x22: ffffffc1e4caf330 
[   90.293356] x21: ffffffc0011ab000 x20: ffffffc1eb577080 
[   90.293358] x19: ffffffc1f5dc7500 x18: ffffffc000b7bf38 
[   90.293359] x17: 000000000000000e x16: ffffffc000b0ba60 
[   90.293361] x15: 00000000fa83b2da x14: 38332e342e342020 
[   90.293362] x13: 2020202020202044 x12: ffffffc0011f0000 
[   90.293364] x11: ffffffc001386000 x10: 0000000000000000 
[   90.293366] x9 : 000000000000e9d0 x8 : ffffffc001398e6c 
[   90.293367] x7 : 0000000000000000 x6 : 00000000089d5571 
[   90.293369] x5 : 00000000089d5571 x4 : ffffffc0011ac280 
[   90.293370] x3 : 0000000000000f4f x2 : 000000000000001f 
[   90.293372] x1 : 000000000f500f4f x0 : ffffffc1f5dc7500 
[   90.293372] 
[   90.293373] Process kworker/u12:6 (pid: 229, stack limit = 0xffffffc1e4cac020)
[   90.293374] Call trace:
[   90.293375] [<          (null)>]           (null)
[   90.293377] [<ffffffc000afcdb0>] schedule+0x44/0xa8
[   90.293378] [<ffffffc0000a6f84>] do_exit+0x96c/0x9a0
[   90.293381] [<ffffffc000089bcc>] bug_handler.part.3+0x0/0x7c
[   90.293384] [<ffffffc00009c780>] __do_kernel_fault.part.7+0x74/0x84
[   90.293385] [<ffffffc00009aadc>] cpu_enable_pan+0x0/0x48
[   90.293387] [<ffffffc00008139c>] do_mem_abort+0x40/0xa0
[   90.293388] [<ffffffc000084540>] el1_da+0x18/0x78
[   90.293390] [<ffffffc000afc9e0>] __schedule+0x348/0x6d4
[   90.293392] [<ffffffc000afcdb0>] schedule+0x44/0xa8
[   90.293393] [<ffffffc0000a6bc8>] do_exit+0x5b0/0x9a0
[   90.293395] [<ffffffc000089bcc>] bug_handler.part.3+0x0/0x7c
[   90.293397] [<ffffffc00009c780>] __do_kernel_fault.part.7+0x74/0x84
[   90.293398] [<ffffffc00009a8f8>] do_page_fault+0x350/0x444
[   90.293400] [<ffffffc00009aaac>] do_translation_fault+0xc0/0xf0
[   90.293401] [<ffffffc00008139c>] do_mem_abort+0x40/0xa0
[   90.293402] [<ffffffc000084540>] el1_da+0x18/0x78
[   90.293405] [<ffffffc000740d4c>] ov5693_get_fmt+0x30/0x3c
[   90.293407] [<ffffffc000763880>] tegra_channel_fmts_bitmap_init+0x134/0x1f4
[   90.293407] Kernel panic - not syncing: Fatal exception in interrupt
[   90.293409] [<ffffffc0007648f4>] tegra_channel_init_subdevices+0x12c/0x2c0
[   90.293410] note: kworker/u12:1[55] exited with preempt_count 3
[   90.293412] [<ffffffc000765910>] tegra_vi_graph_notify_complete+0x44c/0x6a4
[   90.293414] [<ffffffc0007561c4>] v4l2_async_test_notify+0xfc/0x114
[   90.293417] CPU2: stopping
[   90.293419] [<ffffffc00075630c>] v4l2_async_notifier_register+0x130/0x194
[   90.293421] [<ffffffc00076610c>] tegra_vi_graph_init+0xf0/0x19c
[   90.293428] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D W       4.4.38+ #212
[   90.293430] [<ffffffc000762908>] tegra_vi_media_controller_init+0x188/0x1f8
[   90.293432] Hardware name: quill (DT)
[   90.293434] [<ffffffc0008d0004>] tegra_vi4_probe+0x1f8/0x2c0
[   90.293437] Call trace:
[   90.293440] [<ffffffc00054a354>] platform_drv_probe+0x50/0xbc
[   90.293450] [<ffffffc000089854>] dump_backtrace+0x0/0x100
[   90.293452] [<ffffffc000547de4>] driver_probe_device+0xc8/0x408
[   90.293456] [<ffffffc000089a1c>] show_stack+0x14/0x1c
[   90.293458] [<ffffffc0005481c0>] __driver_attach+0x9c/0xa0
[   90.293464] [<ffffffc0003136f8>] dump_stack+0x98/0xc0
[   90.293467] [<ffffffc000545e60>] bus_for_each_dev+0x58/0x98
[   90.293472] [<ffffffc00008f40c>] handle_IPI+0x300/0x30c
[   90.293473] [<ffffffc00054788c>] driver_attach+0x20/0x28
[   90.293478] [<ffffffc00008161c>] gic_handle_irq+0x9c/0xb4
[   90.293480] [<ffffffc00054631c>] driver_attach_async+0x14/0x50
[   90.293485] [<ffffffc000084740>] el1_irq+0x80/0xf8
[   90.293487] [<ffffffc0000c4264>] async_run_entry_fn+0x44/0x180
[   90.293492] [<ffffffc0007b18bc>] cpuidle_enter+0x18/0x20
[   90.293494] [<ffffffc0000bbc24>] process_one_work+0x154/0x434
[   90.293519] [<ffffffc0000e7a74>] call_cpuidle+0x28/0x50
[   90.293521] [<ffffffc0000bc038>] worker_thread+0x134/0x40c
[   90.293525] [<ffffffc0000e7c18>] cpu_startup_entry+0x17c/0x340
[   90.293527] [<ffffffc0000c18c8>] kthread+0xe0/0xf4
[   90.293532] [<ffffffc00008ede8>] secondary_start_kernel+0x12c/0x164
[   90.293534] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[   90.293537] [<000000008008192c>] 0x8008192c
[   90.293538] ---[ end trace 273dd7c8f730227a ]---
[   90.293540] Internal error: Oops - bad mode: 0 [#6] PREEMPT SMP
[   90.293542] CPU1: stopping
[   90.294647] Modules linked in:
[   90.294653] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D W       4.4.38+ #212
[   90.294655] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D W       4.4.38+ #212
[   90.294657] Hardware name: quill (DT)
[   90.294658] Hardware name: quill (DT)
[   90.294662] Call trace:
[   90.294663] task: ffffffc1ececa580 ti: ffffffc1ecedc000 task.ti: ffffffc1ecedc000
[   90.294670] [<ffffffc000089854>] dump_backtrace+0x0/0x100
[   90.294671] PC is at 0x0
[   90.294675] [<ffffffc000089a1c>] show_stack+0x14/0x1c
[   90.294676] LR is at t18x_a57_enter_state+0x20/0xc4
[   90.294681] [<ffffffc0003136f8>] dump_stack+0x98/0xc0
[   90.294683] pc : [<0000000000000000>] lr : [<ffffffc0008eab44>] pstate: 800000c5
[   90.294687] [<ffffffc00008f40c>] handle_IPI+0x300/0x30c
[   90.294688] sp : ffffffc1ecedfec0
[   90.294693] [<ffffffc00008161c>] gic_handle_irq+0x9c/0xb4
[   90.294698] x29: ffffffc1ecedfec0 
[   90.294699] [<ffffffc000084740>] el1_irq+0x80/0xf8
[   90.294705] x28: ffffffc1ecedc000 
[   90.294705] [<ffffffc0007b18bc>] cpuidle_enter+0x18/0x20
[   90.294706] 
[   90.294709] [<ffffffc0000e7a74>] call_cpuidle+0x28/0x50
[   90.294715] x27: ffffffc000b0af00 
[   90.294716] [<ffffffc0000e7c18>] cpu_startup_entry+0x17c/0x340
[   90.294721] x26: 00000015051bbc00 
[   90.294722] [<ffffffc00008ede8>] secondary_start_kernel+0x12c/0x164
[   90.294723] 
[   90.294726] [<000000008008192c>] 0x8008192c
[   90.294728] x25: ffffffc00134b000 
[   90.294728] CPU4: stopping
[   90.294731] x24: 0000000000000000 
[   90.294731] CPU: 4 PID: 55 Comm: kworker/u12:1 Tainted: G      D W       4.4.38+ #212
[   90.294731] 
[   90.294732] Hardware name: quill (DT)
[   90.294733] x23: ffffffc0012d8148 x22: ffffffc0012d8160 
[   90.294735] x21: ffffffc00134be88 x20: ffffffc001412628 
[   90.294736] Call trace:
[   90.294739] x19: 0000000000000000 
[   90.294739] [<ffffffc000089854>] dump_backtrace+0x0/0x100
[   90.294742] x18: ffffffc000b7bf38 
[   90.294742] [<ffffffc000089a1c>] show_stack+0x14/0x1c
[   90.294742] 
[   90.294744] [<ffffffc0003136f8>] dump_stack+0x98/0xc0
[   90.294746] x17: ffffffc000b0ba60 
[   90.294746] [<ffffffc00008f40c>] handle_IPI+0x300/0x30c
[   90.294748] x16: ffffffc000b0ba60 
[   90.294748] [<ffffffc00008161c>] gic_handle_irq+0x9c/0xb4
[   90.294748] 
[   90.294750] [<ffffffc000084740>] el1_irq+0x80/0xf8
[   90.294752] x15: 00000000fa83b2da 
[   90.294752] [<ffffffc0000a8e28>] irq_exit+0x84/0xdc
[   90.294755] x14: 0000000000007448 
[   90.294755] [<ffffffc0000f45e4>] __handle_domain_irq+0x6c/0xb4
[   90.294755] 
[   90.294756] [<ffffffc0000815dc>] gic_handle_irq+0x5c/0xb4
[   90.294758] x13: 0000000000000000 
[   90.294758] [<ffffffc000084740>] el1_irq+0x80/0xf8
[   90.294760] x12: 0000000000007448 
[   90.294760] [<ffffffc0000a6aa8>] do_exit+0x490/0x9a0
[   90.294760] 
[   90.294762] [<ffffffc000089bcc>] bug_handler.part.3+0x0/0x7c
[   90.294765] x11: 0000000000000400 
[   90.294765] [<ffffffc000089c90>] arm64_notify_die+0x1c/0x58
[   90.294767] x10: 00000000000008a0 
[   90.294768] [<ffffffc000089ee4>] bad_mode+0x84/0x90
[   90.294768] 
[   90.294770] [<ffffffc0000cbd84>] try_to_wake_up+0x230/0x3c4
[   90.294772] x9 : ffffffc1ecedfec0 
[   90.294772] [<ffffffc0000cbfe0>] default_wake_function+0x10/0x18
[   90.294774] x8 : ffffffc1ececae80 
[   90.294774] [<ffffffc0000e7730>] autoremove_wake_function+0x14/0x40
[   90.294775] 
[   90.294776] [<ffffffc0000e6f94>] __wake_up_common+0x60/0xa0
[   90.294778] x7 : 0000001505b4db80 
[   90.294778] [<ffffffc0000e71dc>] __wake_up+0x3c/0x54
[   90.294780] x6 : 000000000000ac14 
[   90.294780] [<ffffffc0000c4310>] async_run_entry_fn+0xf0/0x180
[   90.294780] 
[   90.294781] Fixing recursive fault but reboot is needed!
[   90.294783] [<ffffffc0000bbc24>] process_one_work+0x154/0x434
[   90.294784] x5 : 0000000000000000 
[   90.294785] [<ffffffc0000bc038>] worker_thread+0x134/0x40c
[   90.294787] x4 : 00ffffffffffffff 
[   90.294787] [<ffffffc0000c18c8>] kthread+0xe0/0xf4
[   90.294787] 
[   90.294789] [<ffffffc000084f90>] ret_from_fork+0x10/0x40
[   90.294790] x3 : 000000003b9aca00 x2 : 00000000003cc960 
[   90.294792] x1 : 0000000000000000 x0 : 0000000000000000 
[   90.294792] 
[   90.294794] Process swapper/3 (pid: 0, stack limit = 0xffffffc1ecedc020)
[   90.294794] Call trace:
[   90.294795] [<          (null)>]           (null)
[   90.294799] [<ffffffc0007b1630>] cpuidle_enter_state+0x88/0x2dc
[   90.294800] [<ffffffc0007b18bc>] cpuidle_enter+0x18/0x20
[   90.294801] [<ffffffc0000e7a74>] call_cpuidle+0x28/0x50
[   90.294803] [<ffffffc0000e7c18>] cpu_startup_entry+0x17c/0x340
[   90.294805] [<ffffffc00008ede8>] secondary_start_kernel+0x12c/0x164
[   90.294806] [<000000008008192c>] 0x8008192c
[   90.294807] ---[ end trace 273dd7c8f730227b ]---
[   91.336428] SMP: failed to stop secondary CPUs
[   93.289110] Rebooting in 5 seconds..
[   99.335458] SMP: failed to stop secondary CPUs

in principle, is it possible to add this video format to the package R28.1 or R28.2?

Thank you in advance.

18321083174/visiondev,
One question - are you guys adding a YUV or bayer format sensor for your development? If it’s former, is it a CSI interface or USB interface? Thanks.

Hello, I have the same problem as everyone, how can I solve it?
(Tx1 L4TR28.3)

无法在虚拟地址00000178 处理内核NULL指针解除引用
[ 4.089150 ] pgd = ffffffc0015fa000 
[ 4.089155 ] [ 00000178 ] * PGD = 000000017a5d8003 ,* PUD = 000000017a5d8003 ,* PMD = 000000017a5d9003 ,* PTE = 00e8000050041707      
[ 4.089158 ] 内部错误:糟糕:96000005 [ #1] PREEMPT SMP     
[ 4.089160 ] 模块连接在:  
[ 4.089164 ] CPU :1 PID :1 Comm :swapper / 0 不受污染4.4 。159 #1      
[ 4.089165 ] 硬件名称:jetson_tx1 (DT )  
[ 4.089167 ] 任务:ffffffc0fa6f0000 ti :ffffffc0fa6a4000任务。ti :ffffffc0fa6a4000 
[ 4.089174 ] PC 是在find_matching_color_fmt + 0x10的/ 0xa4 
[ 4.089177 ] LR 是在camera_common_enum_mbus_code + 0×44 / 0xb4 
[ 4.089179 ] pc :[< ffffffc0007b6d40 >] lr :[< ffffffc0007b6e18 >] pstate :20000045    
[ 4.089180 ] sp :ffffffc0fa6a7830 
[ 4.089182 ] x29 :ffffffc0fa6a7840 x28 :0000000000000018   
[ 4.089185 ] x27 :ffffffc0010f1fa0 x26 :ffffffc0010f1fa8 
[ 4.089187 ] x25 :ffffffc0f8bb2050 x24 :ffffffc0f8bb2050 
[ 4.089189 ] x23 :ffffffc07d35dbe8 x22 :ffffffc07d35d018 
[ 4.089191 ] X21 :ffffffc0fa6a7908 X20 :ffffffc0f9094c20 
[ 4.089193 ] x19 :ffffffc07d35d018 x18 :0000000000000000   
[ 4.089195 ] X17 :0000000000000000 X16 :0000000000000000    
[ 4.089197 ] x15 :0000000000000000 x14 :0ffffffffffffffe    
[ 4.089200 ] x13 :0000000000000020 x12 :0101010101010101

debug kernel

(gdb) l*find_matching_color_fmt
0x7b5f20 is in find_matching_color_fmt (/home/wf/TX1283/kernel_sc/kernel_src/kernel/kernel-4.4/drivers/media/platform/tegra/camera/camera_common.c:398).
393	
394	/* Filters for the sensor's supported colors */
395	static const struct camera_common_colorfmt *find_matching_color_fmt(
396			const struct camera_common_data *s_data,
397			size_t index)
398	{
399		const struct sensor_properties *sensor_props = &s_data->sensor_props;
400		const size_t num_modes = sensor_props->num_modes;
401		const size_t common_fmts_size = ARRAY_SIZE(camera_common_color_fmts);
402	
(gdb)

I am a sensor of CSI interface. YUV data format.

I modified the file below
camera_common.c

static const struct camera_common_colorfmt camera_common_color_fmts[] = {
	{
		MEDIA_BUS_FMT_SRGGB12_1X12,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SRGGB12,
	},
	{
		MEDIA_BUS_FMT_SRGGB10_1X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SRGGB10,
	},
	{
		MEDIA_BUS_FMT_SBGGR10_1X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SBGGR10,
	},
	{
		MEDIA_BUS_FMT_SRGGB8_1X8,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_SRGGB8,
	},
[b]	{
		MEDIA_BUS_FMT_YUYV8_2X8,
		V4L2_COLORSPACE_SMPTE240M,
		V4L2_PIX_FMT_YUYV,
	},
	{
		MEDIA_BUS_FMT_Y8_1X8,
		V4L2_COLORSPACE_SMPTE170M,
		V4L2_PIX_FMT_GREY,
	},[/b]
	/*
	 * The below two formats are not supported by VI4,
	 * keep them at the last to ensure they get discarded
	 */
	{
		MEDIA_BUS_FMT_XRGGB10P_3X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_XRGGB10P,
	},
	{
		MEDIA_BUS_FMT_XBGGR10P_3X10,
		V4L2_COLORSPACE_SRGB,
		V4L2_PIX_FMT_XRGGB10P,
	},

};

sensor_common.c

static int extract_pixel_format(
	const char *pixel_t, u32 *format)
{
	size_t size = strnlen(pixel_t, OF_MAX_STR_LEN);

	if (strncmp(pixel_t, "bayer_bggr10", size) == 0)
		*format = V4L2_PIX_FMT_SBGGR10;
	else if (strncmp(pixel_t, "bayer_rggb10", size) == 0)
		*format = V4L2_PIX_FMT_SRGGB10;
	else if (strncmp(pixel_t, "bayer_bggr12", size) == 0)
		*format = V4L2_PIX_FMT_SBGGR12;
	else if (strncmp(pixel_t, "bayer_rggb12", size) == 0)
		*format = V4L2_PIX_FMT_SRGGB12;
	else if (strncmp(pixel_t, "bayer_wdr_pwl_rggb12", size) == 0)
		*format = V4L2_PIX_FMT_SRGGB12;
	else if (strncmp(pixel_t, "bayer_wdr_dol_rggb10", size) == 0)
		*format = V4L2_PIX_FMT_SRGGB10;
	else if (strncmp(pixel_t, "bayer_xbggr10p", size) == 0)
		*format = V4L2_PIX_FMT_XBGGR10P;
	else if (strncmp(pixel_t, "bayer_grey", size) == 0)
		*format = V4L2_PIX_FMT_GREY;
	else if (strncmp(pixel_t, "bayer_yuyv", size) == 0)
		*format = V4L2_PIX_FMT_YUYV;
	else if (strncmp(pixel_t, "bayer_xrggb10p", size) == 0)
		*format = V4L2_PIX_FMT_XRGGB10P;
	else {
		pr_err("%s: Need to extend format%s\n", __func__, pixel_t);
		return -EINVAL;
	}

	return 0;
}

Driver file

common_data->mode           	= MEDIA_BUS_FMT_YUYV8_2X8;
			//common_data->mode           	= MEDIA_BUS_FMT_Y8_1X8;
			common_data->def_mode       	= common_data->mode;
		    	common_data->def_width      	= 1920;
		   	common_data->def_height     	= 1080;
			common_data->def_clk_freq   	= 74250000;
		   	common_data->fmt_width      	= common_data->def_width;
		    	common_data->fmt_height     	= common_data->def_height;

How can I solve it? Thank you.

Hi
you need modify another file to add your fmt,I am sorrt I forget the file name,if you add this,you can solve the problem(the tx1 and tx2 file name is disaffinity)

Thank you, can anyone else know how to solve it?

I would suggest to move to J4.2.1 that release have add the YUV format supported.