4 Replies Latest reply on Oct 30, 2015 8:00 AM by Intel_Alvarado

    kernel panic with gadgetfs

    farazata

      Hi All

      I want to test gadgetfs on galelio gen1 board.For which i am followwing steps mentioned on the link linux-kernel:usb-gadget:fs [Analog Devices Open Source| Mixed-signal and Digital Signal Processing ICs]

      I am able to perform below steps

      root:/dev> modprobe gadgetfs

      root:/dev> mkdir /dev/gadget 

      root:/dev> mount -t gadgetfs gadgetfs /dev/gadget 

      root:/dev> ls /dev/gadget/ -l

      -rw------- 1 root root 0 Jan 1 04:29 pch_udc.

       

      But when i am doing root:~> gadgetfs-test -r "1.3" -v.

      I observe kernel panic.Below are the logs.

      root@quark:/media/mmcblk0p1# ./gadgetfs-test -r "1.3" -v                                                                                       

      [   91.884169] gadgetfs: bound to pch_udc driver

      [   91.894735] gadgetfs: suspended from state 2

      /dev/gadget/pch_udc ep0 configured

      serial="1.3"

      ** Mon Jan  1 00:01:52 2001

      SUSPEND

      [   92.142841] gadgetfs: connected

      CONNECT high spe

      [   92.146943] BUG: unable to handle kernel paging request at d27d35ed

      [   92.152799] IP: [<d27d400d>] ep0_complete+0x7d/0xc0 [gadgetfs]

      [   92.152799] *pdpt = 000000000148f001 *pde = 000000000002b067 *pte = 000000000e333061

      [   92.152799] Oops: 0003 [#1]

      [   92.152799] Modules linked in: gadgetfs ad7298 industrialio_triggered_buffer kfifo_buf industrialio cy8c9540a usbhid usb_storage spidev spi_]

      [   92.152799] Pid: 243, comm: gadgetfs-test Not tainted 3.8.7-yocto-standard #7 Intel Corp. QUARK/Galileo

      [   92.152799] EIP: 0060:[<d27d400d>] EFLAGS: 00010046 CPU: 0

      [   92.152799] EIP is at ep0_complete+0x7d/0xc0 [gadgetfs]

      [   92.152799] EAX: 00000008 EBX: d27d35a0 ECX: 00000000 EDX: 00000003

      [   92.152799] ESI: c1e9fba0 EDI: c1e8117c EBP: c0093f24 ESP: c0093f0c

      [   92.152799]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068

      [   92.152799] CR0: 8005003b CR2: d27d35ed CR3: 01f11000 CR4: 00100030

      [   92.152799] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000

      [   92.152799] DR6: ffff0ff0 DR7: 00000400

      [   92.152799] Process gadgetfs-test (pid: 243, ti=c0092000 task=c1d9f440 task.ti=c1ca6000)

      [   92.152799] Stack:

      [   92.152799]  000000ac 00000004 00000096 c1e9fba0 c1e8117c 00000000 c0093f44 d2727ac9

      [   92.152799]  000000ac d2727c6c 00000001 c1e8117c c1e9fbe0 c1e811b8 c0093f6c d2728724

      [   92.152799]  c1e8117c 00000000 c0093f6c d2727df1 c1e81000 00000400 c1e8117c c1e81000

      [   92.152799] Call Trace:

      [   92.152799]  [<d2727ac9>] complete_req+0xd9/0x190 [pch_udc]

      [   92.152799]  [<d2727c6c>] ? pch_udc_ep_clear_nak+0x1c/0x130 [pch_udc]

      [   92.152799]  [<d2728724>] pch_udc_complete_transfer+0x64/0x150 [pch_udc]

      [   92.152799]  [<d2727df1>] ? pch_udc_postsvc_epinters+0x71/0x80 [pch_udc]

      [   92.152799]  [<d272afca>] pch_udc_isr+0xf9a/0x111d [pch_udc]

      [   92.152799]  [<c11e74aa>] ? dw8250_handle_irq+0x1a/0x60

      [   92.152799]  [<c106a040>] handle_irq_event_percpu+0x20/0x120

      [   92.152799]  [<c12ce883>] ? printk+0x38/0x3a

      [   92.152799]  [<c106bca0>] ? handle_simple_irq+0x60/0x60

      [   92.152799]  [<c106a15c>] handle_irq_event+0x1c/0x30

      [   92.152799]  [<c106bcf6>] handle_edge_irq+0x56/0xf0

      [   92.152799]  <IRQ>

      [   92.152799]  [<c1003f24>] ? do_IRQ+0x34/0xa0

      [   92.152799]  [<c12d35ec>] ? common_interrupt+0x2c/0x31

      [   92.152799]  [<d27d3000>] ? 0xd27d2fff

      [   92.152799]  [<c1160000>] ? vsscanf+0x2c0/0x5f0

      [   92.152799]  [<c10b5291>] ? do_sys_poll+0x281/0x480

      [   92.152799]  [<c1149975>] ? submit_bio+0x45/0x100

      [   92.152799]  [<c104b7a5>] ? __enqueue_entity+0x65/0x70

      [   92.152799]  [<c104c439>] ? enqueue_task_fair+0x159/0x220

      [   92.152799]  [<c104951c>] ? check_preempt_curr+0x6c/0x80

      [   92.152799]  [<c104967b>] ? default_wake_function+0xb/0x10

      [   92.152799]  [<c104874f>] ? __wake_up_common+0x3f/0x70

      [   92.152799]  [<c10487ca>] ? __wake_up_locked+0x1a/0x20

      [   92.152799]  [<c10b4050>] ? poll_initwait+0x40/0x40

      [   92.152799]  [<c10b4260>] ? poll_select_copy_remaining+0x100/0x100

      [   92.152799]  [<c104b7a5>] ? __enqueue_entity+0x65/0x70

      [   92.152799]  [<c102605e>] ? kmap_atomic_prot+0x3e/0xd0

      [   92.152799]  [<c1026104>] ? kmap_atomic+0x14/0x20

      [   92.152799]  [<c1080481>] ? get_page_from_freelist+0x261/0x510

      [   92.152799]  [<c1080481>] ? get_page_from_freelist+0x261/0x510

      [   92.152799]  [<c1080865>] ? __alloc_pages_nodemask+0x135/0x650

      [   92.152799]  [<c115cafa>] ? radix_tree_lookup+0xa/0x10

      [   92.152799]  [<c106998f>] ? irq_to_desc+0xf/0x20

      [   92.152799]  [<c102f173>] ? irq_exit+0x53/0x90

      [   92.152799]  [<c11dfdb3>] ? __uart_start+0x43/0x50

      [   92.152799]  [<c11e07c5>] ? uart_write+0xa5/0xd0

      [   92.152799]  [<c11dfdb3>] ? __uart_start+0x43/0x50

      [   92.152799]  [<d2727c6c>] ? pch_udc_ep_clear_nak+0x1c/0x130 [pch_udc]

      [   92.152799]  [<d2727648>] ? pch_udc_wait_ep_stall+0x38/0x80 [pch_udc]

      [   92.152799]  [<c1007422>] ? nommu_map_page+0x32/0x60

      [   92.152799]  [<c10d34c7>] ? fsnotify+0x1f7/0x2d0

      [   92.152799]  [<c10a5f4f>] ? vfs_write+0xef/0x130

      [   92.152799]  [<c10b552f>] ? sys_poll+0x4f/0xb0

      [   92.152799]  [<c12d2a28>] ? syscall_call+0x7/0xb

      [   92.152799] Code: c4 0c 5b 5e 5f 5d c3 8d b4 26 00 00 00 00 8b 52 2c 85 d2 0f 95 c2 83 e0 ef c1 e2 04 09 d0 ba 03 00 00 00 89 c1 83 c8 08 830

      [   92.152799] EIP: [<d27d400d>] ep0_complete+0x7d/0xc0 [gadgetfs] SS:ESP 0068:c0093f0c

      [   92.152799] CR2: 00000000d27d35ed

      [   92.152799] ---[ end trace 4fcb16f6d8f6fd6c ]---

      [   92.152799] Kernel panic - not syncing: Fatal exception in interrupt

      ed

      SETUP 80.06 v0300 i0000 255

       

      Can anyone pls provide the possible solution