All of lore.kernel.org
 help / color / mirror / Atom feed
* [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
@ 2016-05-20 13:19 matwey-TTlVxmypnbovJsYlp49lxw
       [not found] ` <1463750386-6259-1-git-send-email-matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: matwey-TTlVxmypnbovJsYlp49lxw @ 2016-05-20 13:19 UTC (permalink / raw)
  To: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

Hello,

I am running 4.6-rc3 on BealgeBone Black and when I try to interract with pwc webcam attached to usb port the following kernel panic happening.

Please also find used kernel config here:
http://kernel.opensuse.org/cgit/kernel-source/plain/config/armv7hl/default?id=43f1ed415e2227af11856fc120821c791d51494d

[ 4587.746169] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 4587.754333] pgd = c0204000
[ 4587.757055] [00000000] *pgd=00000000
[ 4587.760667] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[ 4587.766095] Modules linked in: af_packet bridge stp llc nls_iso8859_1 nls_cp437 vfat fat snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq_device snd_pcm snd_timer snd soundcore pwc videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media smsc musb_dsps musb_hdrc udc_core davinci_mdio phy_am335x usbcore phy_am335x_control phy_generic cppi41 usb_common wkup_m3_rproc remoteproc virtio_ring virtio pps_gpio ti_cpsw pps_core cpsw_ale cpsw_common omap_aes davinci_cpdma omap_sham crypto_engine omap_rng omap_mailbox musb_am335x omap_wdt at24 nvmem_core leds_gpio cpufreq_dt mmc_block tps65217_regulator omap_hsmmc omap_dma mmc_core tps65217 sg
[ 4587.825879] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.6.0-rc3-2.gcfd5095-default #1
[ 4587.833745] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 4587.839867] task: c15081c0 ti: c1500000 task.ti: c1500000
[ 4587.845453] PC is at cppi41_dma_channel_program+0x20/0x2f0 [musb_hdrc]
[ 4587.852063] LR is at musb_host_rx+0xc54/0xdd4 [musb_hdrc]
[ 4587.857490] pc : [<bf29f210>]    lr : [<bf297570>]    psr: 000e0193
[ 4587.857490] sp : c1501c48  ip : c1501cb8  fp : c1501cb4
[ 4587.869021] r10: 9b8443c0  r9 : d92baf48  r8 : e0c72c10
[ 4587.874270] r7 : 00000000  r6 : 000003c0  r5 : d9c8e900  r4 : d92ba010
[ 4587.880827] r3 : 9b8443c0  r2 : 00000000  r1 : 000003c0  r0 : 00000000
[ 4587.887385] Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[ 4587.894815] Control: 10c5387d  Table: 9b4fc019  DAC: 00000055
[ 4587.900587] Process swapper/0 (pid: 0, stack limit = 0xc1500220)
[ 4587.906621] Stack: (0xc1501c48 to 0xc1502000)
[ 4587.911002] 1c40:                   00000001 00000000 c1501ca4 c1501c60 df926740 c1501c68
[ 4587.919221] 1c60: c03efed0 c0344ec8 8065dcc6 00000000 c153c490 df926740 df926740 20000193
[ 4587.927440] 1c80: 00000000 df926740 c1504920 d92ba010 d9c8e900 000003c0 00000000 e0c72c10
[ 4587.935659] 1ca0: d92baf48 bf2a55cc c1501d2c c1501cb8 bf297570 bf29f1fc 000003c0 df926740
[ 4587.943877] 1cc0: c1501cf4 c1501cd0 c038ffac c038fef0 00000000 9b8443c0 00000c40 d92ba308
[ 4587.952096] 1ce0: d9dcc000 bf2a55c4 db50f800 0000000e 00000000 bf2a4838 e0c72c10 db50f814
[ 4587.960315] 1d00: c1501d44 d9dcc3bc d92baf48 d92baf48 d92ba010 d92ba010 e0c72c10 00000000
[ 4587.968533] 1d20: c1501d3c c1501d30 bf28ffb4 bf296928 c1501d94 c1501d40 bf29eb10 bf28ff28
[ 4587.976751] 1d40: c0392284 c0391db8 c1501d8c c1501d58 c03abc14 c0392274 c03e77e8 00000000
[ 4587.984970] 1d60: c03c73f0 db4f9bf0 db4f9bec d9dcc3bc 00000000 d92baf48 bf2a5348 d92ba010
[ 4587.993188] 1d80: 200e0193 00000000 c1501de4 c1501d98 bf29ec1c bf29e990 c1501dc4 c1501da8
[ 4588.001406] 1da0: c03ac91c c0c39b04 d9c8e900 00000002 00000002 000003c0 c03e4a18 00000000
[ 4588.009625] 1dc0: db30ac10 00000000 00000001 00000080 00000004 000000a0 c1501e1c c1501de8
[ 4588.017843] 1de0: bf16ff38 bf29eb68 c150d8c0 c03e4a18 c1501e3c d9d4fd80 db40b2a0 db40b250
[ 4588.026062] 1e00: 00000001 000000b8 00000000 c1500020 c1501e6c c1501e20 c03c7260 bf16fe48
[ 4588.034281] 1e20: 0000042c 00000000 00000000 c162b1a4 c162b1c0 db40b240 c15035ac 00000000
[ 4588.042499] 1e40: c1501e7c db40b240 db40b2a0 db40b250 00000001 db02e000 c150361c 00000000
[ 4588.050718] 1e60: c1501e8c c1501e70 c03c74a0 c03c71a8 db40b240 db40b2a0 db40b250 00000001
[ 4588.058936] 1e80: c1501eac c1501e90 c03cabf0 c03c7464 c143b77c 00000000 00000000 00000001
[ 4588.067154] 1ea0: c1501ebc c1501eb0 c03c676c c03cab40 c1501ee4 c1501ec0 c03c6abc c03c6744
[ 4588.075373] 1ec0: c16f981c 600e0013 ffffffff c1501f34 c162b9a0 c150361c c1501efc c1501ee8
[ 4588.083592] 1ee0: c0301770 c03c6a5c c0315568 600e0013 c1501f5c c1501f00 c0c3a280 c0301738
[ 4588.091810] 1f00: 00000001 00000000 00000000 c032c5c0 c1500000 c1503614 00000000 c15035ac
[ 4588.100029] 1f20: c162b9a0 c150361c 00000000 c1501f5c c1501f60 c1501f50 c0315560 c0315568
[ 4588.108247] 1f40: 600e0013 ffffffff c03d5acc c03acc04 c1501f6c c1501f60 c03acc04 c0315524
[ 4588.116466] 1f60: c1501f94 c1501f70 c03acf24 c03acbe0 00000002 c162ad8b c143d988 c1501f70
[ 4588.124685] 1f80: c0c35e64 c1503500 c1501fac c1501f98 c0c33f18 c03acc24 c163f040 00000001
[ 4588.132904] 1fa0: c1501ff4 c1501fb0 c1300db8 c0c33e90 ffffffff ffffffff 00000000 c1300714
[ 4588.141122] 1fc0: 00000000 c13b4a28 00000000 c163f5d4 c1503588 c13b4a24 c150973c 80204059
[ 4588.149340] 1fe0: 413fc082 00000000 00000000 c1501ff8 8020807c c13009c0 00000000 00000000
[ 4588.157705] [<bf29f210>] (cppi41_dma_channel_program [musb_hdrc]) from [<bf297570>] (musb_host_rx+0xc54/0xdd4 [musb_hdrc])
[ 4588.168901] [<bf297570>] (musb_host_rx [musb_hdrc]) from [<bf28ffb4>] (musb_dma_completion+0x98/0x9c [musb_hdrc])
[ 4588.179310] [<bf28ffb4>] (musb_dma_completion [musb_hdrc]) from [<bf29eb10>] (cppi41_trans_done+0x18c/0x1d8 [musb_hdrc])
[ 4588.190329] [<bf29eb10>] (cppi41_trans_done [musb_hdrc]) from [<bf29ec1c>] (cppi41_dma_callback+0xc0/0x288 [musb_hdrc])
[ 4588.201224] [<bf29ec1c>] (cppi41_dma_callback [musb_hdrc]) from [<bf16ff38>] (cppi41_irq+0xfc/0x198 [cppi41])
[ 4588.211214] [<bf16ff38>] (cppi41_irq [cppi41]) from [<c03c7260>] (handle_irq_event_percpu+0xc4/0x2bc)
[ 4588.220486] [<c03c7260>] (handle_irq_event_percpu) from [<c03c74a0>] (handle_irq_event+0x48/0x70)
[ 4588.229410] [<c03c74a0>] (handle_irq_event) from [<c03cabf0>] (handle_level_irq+0xbc/0x150)
[ 4588.237807] [<c03cabf0>] (handle_level_irq) from [<c03c676c>] (generic_handle_irq+0x34/0x48)
[ 4588.246290] [<c03c676c>] (generic_handle_irq) from [<c03c6abc>] (__handle_domain_irq+0x6c/0xc8)
[ 4588.255038] [<c03c6abc>] (__handle_domain_irq) from [<c0301770>] (omap_intc_handle_irq+0x44/0xa8)
[ 4588.263965] [<c0301770>] (omap_intc_handle_irq) from [<c0c3a280>] (__irq_svc+0x40/0x74)
[ 4588.272006] Exception stack(0xc1501f00 to 0xc1501f48)
[ 4588.277085] 1f00: 00000001 00000000 00000000 c032c5c0 c1500000 c1503614 00000000 c15035ac
[ 4588.285304] 1f20: c162b9a0 c150361c 00000000 c1501f5c c1501f60 c1501f50 c0315560 c0315568
[ 4588.293518] 1f40: 600e0013 ffffffff
[ 4588.297035] [<c0c3a280>] (__irq_svc) from [<c0315568>] (arch_cpu_idle+0x50/0x54)
[ 4588.304485] [<c0315568>] (arch_cpu_idle) from [<c03acc04>] (default_idle_call+0x30/0x44)
[ 4588.312623] [<c03acc04>] (default_idle_call) from [<c03acf24>] (cpu_startup_entry+0x30c/0x370)
[ 4588.321292] [<c03acf24>] (cpu_startup_entry) from [<c0c33f18>] (rest_init+0x94/0x98)
[ 4588.329082] [<c0c33f18>] (rest_init) from [<c1300db8>] (start_kernel+0x404/0x410)
[ 4588.336606] Code: e52de004 e8bd4000 e1a06001 e1a0a003 (e5904000) 
[ 4588.349648] ---[ end trace 603f1cfffd4f1ec2 ]---
[ 4588.354298] Kernel panic - not syncing: Fatal exception in interrupt
[ 4588.360689] Rebooting in 90 seconds..
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found] ` <1463750386-6259-1-git-send-email-matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>
@ 2016-05-20 13:32   ` Matwey V. Kornilov
       [not found]     ` <CAJs94EZjWi0KGn_siyXNGvjO2DTh2aXtYqKzy7Km7mA_bYTeKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-20 13:32 UTC (permalink / raw)
  To: Linux OMAP List, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

2016-05-20 16:19 GMT+03:00  <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
> Hello,
>
> I am running 4.6-rc3 on BealgeBone Black and when I try to interract with pwc webcam attached to usb port the following kernel panic happening.

Please note, that the same is happening with 4.6.0 release.

>
> Please also find used kernel config here:
> http://kernel.opensuse.org/cgit/kernel-source/plain/config/armv7hl/default?id=43f1ed415e2227af11856fc120821c791d51494d
>
> [ 4587.746169] Unable to handle kernel NULL pointer dereference at virtual address 00000000
> [ 4587.754333] pgd = c0204000
> [ 4587.757055] [00000000] *pgd=00000000
> [ 4587.760667] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
> [ 4587.766095] Modules linked in: af_packet bridge stp llc nls_iso8859_1 nls_cp437 vfat fat snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq_device snd_pcm snd_timer snd soundcore pwc videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media smsc musb_dsps musb_hdrc udc_core davinci_mdio phy_am335x usbcore phy_am335x_control phy_generic cppi41 usb_common wkup_m3_rproc remoteproc virtio_ring virtio pps_gpio ti_cpsw pps_core cpsw_ale cpsw_common omap_aes davinci_cpdma omap_sham crypto_engine omap_rng omap_mailbox musb_am335x omap_wdt at24 nvmem_core leds_gpio cpufreq_dt mmc_block tps65217_regulator omap_hsmmc omap_dma mmc_core tps65217 sg
> [ 4587.825879] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.6.0-rc3-2.gcfd5095-default #1
> [ 4587.833745] Hardware name: Generic AM33XX (Flattened Device Tree)
> [ 4587.839867] task: c15081c0 ti: c1500000 task.ti: c1500000
> [ 4587.845453] PC is at cppi41_dma_channel_program+0x20/0x2f0 [musb_hdrc]
> [ 4587.852063] LR is at musb_host_rx+0xc54/0xdd4 [musb_hdrc]
> [ 4587.857490] pc : [<bf29f210>]    lr : [<bf297570>]    psr: 000e0193
> [ 4587.857490] sp : c1501c48  ip : c1501cb8  fp : c1501cb4
> [ 4587.869021] r10: 9b8443c0  r9 : d92baf48  r8 : e0c72c10
> [ 4587.874270] r7 : 00000000  r6 : 000003c0  r5 : d9c8e900  r4 : d92ba010
> [ 4587.880827] r3 : 9b8443c0  r2 : 00000000  r1 : 000003c0  r0 : 00000000
> [ 4587.887385] Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
> [ 4587.894815] Control: 10c5387d  Table: 9b4fc019  DAC: 00000055
> [ 4587.900587] Process swapper/0 (pid: 0, stack limit = 0xc1500220)
> [ 4587.906621] Stack: (0xc1501c48 to 0xc1502000)
> [ 4587.911002] 1c40:                   00000001 00000000 c1501ca4 c1501c60 df926740 c1501c68
> [ 4587.919221] 1c60: c03efed0 c0344ec8 8065dcc6 00000000 c153c490 df926740 df926740 20000193
> [ 4587.927440] 1c80: 00000000 df926740 c1504920 d92ba010 d9c8e900 000003c0 00000000 e0c72c10
> [ 4587.935659] 1ca0: d92baf48 bf2a55cc c1501d2c c1501cb8 bf297570 bf29f1fc 000003c0 df926740
> [ 4587.943877] 1cc0: c1501cf4 c1501cd0 c038ffac c038fef0 00000000 9b8443c0 00000c40 d92ba308
> [ 4587.952096] 1ce0: d9dcc000 bf2a55c4 db50f800 0000000e 00000000 bf2a4838 e0c72c10 db50f814
> [ 4587.960315] 1d00: c1501d44 d9dcc3bc d92baf48 d92baf48 d92ba010 d92ba010 e0c72c10 00000000
> [ 4587.968533] 1d20: c1501d3c c1501d30 bf28ffb4 bf296928 c1501d94 c1501d40 bf29eb10 bf28ff28
> [ 4587.976751] 1d40: c0392284 c0391db8 c1501d8c c1501d58 c03abc14 c0392274 c03e77e8 00000000
> [ 4587.984970] 1d60: c03c73f0 db4f9bf0 db4f9bec d9dcc3bc 00000000 d92baf48 bf2a5348 d92ba010
> [ 4587.993188] 1d80: 200e0193 00000000 c1501de4 c1501d98 bf29ec1c bf29e990 c1501dc4 c1501da8
> [ 4588.001406] 1da0: c03ac91c c0c39b04 d9c8e900 00000002 00000002 000003c0 c03e4a18 00000000
> [ 4588.009625] 1dc0: db30ac10 00000000 00000001 00000080 00000004 000000a0 c1501e1c c1501de8
> [ 4588.017843] 1de0: bf16ff38 bf29eb68 c150d8c0 c03e4a18 c1501e3c d9d4fd80 db40b2a0 db40b250
> [ 4588.026062] 1e00: 00000001 000000b8 00000000 c1500020 c1501e6c c1501e20 c03c7260 bf16fe48
> [ 4588.034281] 1e20: 0000042c 00000000 00000000 c162b1a4 c162b1c0 db40b240 c15035ac 00000000
> [ 4588.042499] 1e40: c1501e7c db40b240 db40b2a0 db40b250 00000001 db02e000 c150361c 00000000
> [ 4588.050718] 1e60: c1501e8c c1501e70 c03c74a0 c03c71a8 db40b240 db40b2a0 db40b250 00000001
> [ 4588.058936] 1e80: c1501eac c1501e90 c03cabf0 c03c7464 c143b77c 00000000 00000000 00000001
> [ 4588.067154] 1ea0: c1501ebc c1501eb0 c03c676c c03cab40 c1501ee4 c1501ec0 c03c6abc c03c6744
> [ 4588.075373] 1ec0: c16f981c 600e0013 ffffffff c1501f34 c162b9a0 c150361c c1501efc c1501ee8
> [ 4588.083592] 1ee0: c0301770 c03c6a5c c0315568 600e0013 c1501f5c c1501f00 c0c3a280 c0301738
> [ 4588.091810] 1f00: 00000001 00000000 00000000 c032c5c0 c1500000 c1503614 00000000 c15035ac
> [ 4588.100029] 1f20: c162b9a0 c150361c 00000000 c1501f5c c1501f60 c1501f50 c0315560 c0315568
> [ 4588.108247] 1f40: 600e0013 ffffffff c03d5acc c03acc04 c1501f6c c1501f60 c03acc04 c0315524
> [ 4588.116466] 1f60: c1501f94 c1501f70 c03acf24 c03acbe0 00000002 c162ad8b c143d988 c1501f70
> [ 4588.124685] 1f80: c0c35e64 c1503500 c1501fac c1501f98 c0c33f18 c03acc24 c163f040 00000001
> [ 4588.132904] 1fa0: c1501ff4 c1501fb0 c1300db8 c0c33e90 ffffffff ffffffff 00000000 c1300714
> [ 4588.141122] 1fc0: 00000000 c13b4a28 00000000 c163f5d4 c1503588 c13b4a24 c150973c 80204059
> [ 4588.149340] 1fe0: 413fc082 00000000 00000000 c1501ff8 8020807c c13009c0 00000000 00000000
> [ 4588.157705] [<bf29f210>] (cppi41_dma_channel_program [musb_hdrc]) from [<bf297570>] (musb_host_rx+0xc54/0xdd4 [musb_hdrc])
> [ 4588.168901] [<bf297570>] (musb_host_rx [musb_hdrc]) from [<bf28ffb4>] (musb_dma_completion+0x98/0x9c [musb_hdrc])
> [ 4588.179310] [<bf28ffb4>] (musb_dma_completion [musb_hdrc]) from [<bf29eb10>] (cppi41_trans_done+0x18c/0x1d8 [musb_hdrc])
> [ 4588.190329] [<bf29eb10>] (cppi41_trans_done [musb_hdrc]) from [<bf29ec1c>] (cppi41_dma_callback+0xc0/0x288 [musb_hdrc])
> [ 4588.201224] [<bf29ec1c>] (cppi41_dma_callback [musb_hdrc]) from [<bf16ff38>] (cppi41_irq+0xfc/0x198 [cppi41])
> [ 4588.211214] [<bf16ff38>] (cppi41_irq [cppi41]) from [<c03c7260>] (handle_irq_event_percpu+0xc4/0x2bc)
> [ 4588.220486] [<c03c7260>] (handle_irq_event_percpu) from [<c03c74a0>] (handle_irq_event+0x48/0x70)
> [ 4588.229410] [<c03c74a0>] (handle_irq_event) from [<c03cabf0>] (handle_level_irq+0xbc/0x150)
> [ 4588.237807] [<c03cabf0>] (handle_level_irq) from [<c03c676c>] (generic_handle_irq+0x34/0x48)
> [ 4588.246290] [<c03c676c>] (generic_handle_irq) from [<c03c6abc>] (__handle_domain_irq+0x6c/0xc8)
> [ 4588.255038] [<c03c6abc>] (__handle_domain_irq) from [<c0301770>] (omap_intc_handle_irq+0x44/0xa8)
> [ 4588.263965] [<c0301770>] (omap_intc_handle_irq) from [<c0c3a280>] (__irq_svc+0x40/0x74)
> [ 4588.272006] Exception stack(0xc1501f00 to 0xc1501f48)
> [ 4588.277085] 1f00: 00000001 00000000 00000000 c032c5c0 c1500000 c1503614 00000000 c15035ac
> [ 4588.285304] 1f20: c162b9a0 c150361c 00000000 c1501f5c c1501f60 c1501f50 c0315560 c0315568
> [ 4588.293518] 1f40: 600e0013 ffffffff
> [ 4588.297035] [<c0c3a280>] (__irq_svc) from [<c0315568>] (arch_cpu_idle+0x50/0x54)
> [ 4588.304485] [<c0315568>] (arch_cpu_idle) from [<c03acc04>] (default_idle_call+0x30/0x44)
> [ 4588.312623] [<c03acc04>] (default_idle_call) from [<c03acf24>] (cpu_startup_entry+0x30c/0x370)
> [ 4588.321292] [<c03acf24>] (cpu_startup_entry) from [<c0c33f18>] (rest_init+0x94/0x98)
> [ 4588.329082] [<c0c33f18>] (rest_init) from [<c1300db8>] (start_kernel+0x404/0x410)
> [ 4588.336606] Code: e52de004 e8bd4000 e1a06001 e1a0a003 (e5904000)
> [ 4588.349648] ---[ end trace 603f1cfffd4f1ec2 ]---
> [ 4588.354298] Kernel panic - not syncing: Fatal exception in interrupt
> [ 4588.360689] Rebooting in 90 seconds..



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]     ` <CAJs94EZjWi0KGn_siyXNGvjO2DTh2aXtYqKzy7Km7mA_bYTeKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-20 20:10       ` Bin Liu
  2016-05-20 20:55         ` Matwey V. Kornilov
  0 siblings, 1 reply; 17+ messages in thread
From: Bin Liu @ 2016-05-20 20:10 UTC (permalink / raw)
  To: Matwey V. Kornilov
  Cc: Linux OMAP List, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

Hi,

On Fri, May 20, 2016 at 04:32:06PM +0300, Matwey V. Kornilov wrote:
> 2016-05-20 16:19 GMT+03:00  <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
> > Hello,
> >
> > I am running 4.6-rc3 on BealgeBone Black and when I try to interract
> > with pwc webcam attached to usb port the following kernel panic
> > happening.
> 
> Please note, that the same is happening with 4.6.0 release.

Please apply the following patch and reproduce the oops, I'd like to
check if the oops is caused by NULL of hw_ep->in_qh.

Regards,
-Bin.

---8<-------
diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c
index e499b86..3492c6e 100644
--- a/drivers/usb/musb/musb_cppi41.c
+++ b/drivers/usb/musb/musb_cppi41.c
@@ -489,8 +489,11 @@ static int cppi41_dma_channel_program(struct dma_channel *channel,
        if (is_host_active(cppi41_channel->controller->musb)) {
                if (cppi41_channel->is_tx)
                        hb_mult = cppi41_channel->hw_ep->out_qh->hb_mult;
-               else
+               else {
+                       if (!cppi41_channel->hw_ep->in_qh)
+                               dev_err(NULL, "->in_qh is NULL\n");
                        hb_mult = cppi41_channel->hw_ep->in_qh->hb_mult;
+               }
        }
 
        channel->status = MUSB_DMA_STATUS_BUSY;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
  2016-05-20 20:10       ` Bin Liu
@ 2016-05-20 20:55         ` Matwey V. Kornilov
       [not found]           ` <CAJs94EZSwJ=sJv6NtR6RNdiugiSQQpam-TFRTn0uZZJ4MLsr5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-20 20:55 UTC (permalink / raw)
  To: Bin Liu, Matwey V. Kornilov, Linux OMAP List,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

I used kgdb. Is it ok?
channel appeared to be 0x0:

(gdb) continue
Continuing.
[Switching to Thread 315]

Breakpoint 1, cppi41_dma_channel_program (channel=0x0, packet_sz=960,
mode=0 '\000', dma_addr=2609136576, len=960)
    at ../drivers/usb/musb/musb_cppi41.c:481
481     {
(gdb) bt
#0  cppi41_dma_channel_program (channel=0x0, packet_sz=960, mode=0
'\000', dma_addr=2609136576, len=960)
    at ../drivers/usb/musb/musb_cppi41.c:481
#1  0xbf251570 in musb_rx_dma_iso_cppi41 (len=<optimized out>,
urb=<optimized out>, qh=<optimized out>, hw_ep=<optimized out>,
    dma=<optimized out>) at ../drivers/usb/musb/musb_host.c:1569
#2  musb_rx_dma_inventra_cppi41 (len=<optimized out>, urb=<optimized
out>, qh=<optimized out>, hw_ep=<optimized out>,
    dma=<optimized out>) at ../drivers/usb/musb/musb_host.c:1652
#3  musb_host_rx (musb=0xdb3e0010, epnum=<optimized out>) at
../drivers/usb/musb/musb_host.c:1969
#4  0xbf249fb4 in musb_dma_completion (musb=<optimized out>,
epnum=<optimized out>, transmit=<optimized out>)
    at ../drivers/usb/musb/musb_core.c:1693
#5  0xbf258b10 in cppi41_trans_done (cppi41_channel=0xd914c3bc) at
../drivers/usb/musb/musb_cppi41.c:148
#6  0xbf258c1c in cppi41_dma_callback (private_data=<optimized out>)
at ../drivers/usb/musb/musb_cppi41.c:286
#7  0xbf229f38 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


2016-05-20 23:10 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
> Hi,
>
> On Fri, May 20, 2016 at 04:32:06PM +0300, Matwey V. Kornilov wrote:
>> 2016-05-20 16:19 GMT+03:00  <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
>> > Hello,
>> >
>> > I am running 4.6-rc3 on BealgeBone Black and when I try to interract
>> > with pwc webcam attached to usb port the following kernel panic
>> > happening.
>>
>> Please note, that the same is happening with 4.6.0 release.
>
> Please apply the following patch and reproduce the oops, I'd like to
> check if the oops is caused by NULL of hw_ep->in_qh.
>
> Regards,
> -Bin.
>
> ---8<-------
> diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c
> index e499b86..3492c6e 100644
> --- a/drivers/usb/musb/musb_cppi41.c
> +++ b/drivers/usb/musb/musb_cppi41.c
> @@ -489,8 +489,11 @@ static int cppi41_dma_channel_program(struct dma_channel *channel,
>         if (is_host_active(cppi41_channel->controller->musb)) {
>                 if (cppi41_channel->is_tx)
>                         hb_mult = cppi41_channel->hw_ep->out_qh->hb_mult;
> -               else
> +               else {
> +                       if (!cppi41_channel->hw_ep->in_qh)
> +                               dev_err(NULL, "->in_qh is NULL\n");
>                         hb_mult = cppi41_channel->hw_ep->in_qh->hb_mult;
> +               }
>         }
>
>         channel->status = MUSB_DMA_STATUS_BUSY;
>



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]           ` <CAJs94EZSwJ=sJv6NtR6RNdiugiSQQpam-TFRTn0uZZJ4MLsr5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-20 20:58             ` Matwey V. Kornilov
       [not found]               ` <CAJs94EY3BfQjkk+0hKR5WfKggvmtgV0yz77awiX8Lt_pLYs3ug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-20 20:58 UTC (permalink / raw)
  To: Bin Liu, Matwey V. Kornilov, Linux OMAP List,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

(gdb) frame 3
#3  musb_host_rx (musb=0xdb3e0010, epnum=<optimized out>) at
../drivers/usb/musb/musb_host.c:1969
1969                                done =
musb_rx_dma_inventra_cppi41(c, hw_ep, qh, urb, xfer_len);
(gdb) info locals
hw_ep = 0xdb3e0f48
c = <optimized out>
epio = <optimized out>
qh = 0xd9cb2000
xfer_len = <optimized out>
mbase = <optimized out>
iso_err = <optimized out>
done = <optimized out>
status = <optimized out>
dma = <optimized out>
__func__ = <error reading variable __func__ (Cannot access memory at
address 0x3e8)>
(gdb) print hw_ep
$21 = (struct musb_hw_ep *) 0xdb3e0f48
(gdb) print *hw_ep
$22 = {musb = 0xdb3e0010, fifo = 0xe0bf6c58, regs = 0xe0bf6c10, epnum
= 14 '\016', is_shared_fifo = true, tx_double_buffered = false,
  rx_double_buffered = false, max_packet_sz_tx = 1024,
max_packet_sz_rx = 1024, tx_channel = 0x0, rx_channel = 0xd914c3bc,
  in_qh = 0xd9cb2000, out_qh = 0xd9cb2000, rx_reinit = 0 '\000',
tx_reinit = 1 '\001', ep_in = {end_point = {driver_data = 0x0,
      name = 0x0, ops = 0x0, ep_list = {next = 0x0, prev = 0x0}, caps
= {type_control = 0, type_iso = 0, type_bulk = 0, type_int = 0,
        dir_in = 0, dir_out = 0}, claimed = false, enabled = false,
maxpacket = 0, maxpacket_limit = 0, max_streams = 0, mult = 0,
      maxburst = 0, address = 0 '\000', desc = 0x0, comp_desc = 0x0},
name = '\000' <repeats 11 times>, hw_ep = 0x0, musb = 0x0,
    current_epnum = 0 '\000', type = 0 '\000', is_in = 0 '\000',
packet_sz = 0, desc = 0x0, dma = 0x0, req_list = {next = 0x0,
      prev = 0x0}, wedged = 0 '\000', busy = 0 '\000', hb_mult = 0
'\000'}, ep_out = {end_point = {driver_data = 0x0, name = 0x0,
      ops = 0x0, ep_list = {next = 0x0, prev = 0x0}, caps =
{type_control = 0, type_iso = 0, type_bulk = 0, type_int = 0, dir_in =
0,
        dir_out = 0}, claimed = false, enabled = false, maxpacket = 0,
maxpacket_limit = 0, max_streams = 0, mult = 0, maxburst = 0,
      address = 0 '\000', desc = 0x0, comp_desc = 0x0}, name = '\000'
<repeats 11 times>, hw_ep = 0x0, musb = 0x0,
    current_epnum = 0 '\000', type = 0 '\000', is_in = 0 '\000',
packet_sz = 0, desc = 0x0, dma = 0x0, req_list = {next = 0x0,
      prev = 0x0}, wedged = 0 '\000', busy = 0 '\000', hb_mult = 0 '\000'}}

2016-05-20 23:55 GMT+03:00 Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
> I used kgdb. Is it ok?
> channel appeared to be 0x0:
>
> (gdb) continue
> Continuing.
> [Switching to Thread 315]
>
> Breakpoint 1, cppi41_dma_channel_program (channel=0x0, packet_sz=960,
> mode=0 '\000', dma_addr=2609136576, len=960)
>     at ../drivers/usb/musb/musb_cppi41.c:481
> 481     {
> (gdb) bt
> #0  cppi41_dma_channel_program (channel=0x0, packet_sz=960, mode=0
> '\000', dma_addr=2609136576, len=960)
>     at ../drivers/usb/musb/musb_cppi41.c:481
> #1  0xbf251570 in musb_rx_dma_iso_cppi41 (len=<optimized out>,
> urb=<optimized out>, qh=<optimized out>, hw_ep=<optimized out>,
>     dma=<optimized out>) at ../drivers/usb/musb/musb_host.c:1569
> #2  musb_rx_dma_inventra_cppi41 (len=<optimized out>, urb=<optimized
> out>, qh=<optimized out>, hw_ep=<optimized out>,
>     dma=<optimized out>) at ../drivers/usb/musb/musb_host.c:1652
> #3  musb_host_rx (musb=0xdb3e0010, epnum=<optimized out>) at
> ../drivers/usb/musb/musb_host.c:1969
> #4  0xbf249fb4 in musb_dma_completion (musb=<optimized out>,
> epnum=<optimized out>, transmit=<optimized out>)
>     at ../drivers/usb/musb/musb_core.c:1693
> #5  0xbf258b10 in cppi41_trans_done (cppi41_channel=0xd914c3bc) at
> ../drivers/usb/musb/musb_cppi41.c:148
> #6  0xbf258c1c in cppi41_dma_callback (private_data=<optimized out>)
> at ../drivers/usb/musb/musb_cppi41.c:286
> #7  0xbf229f38 in ?? ()
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>
>
> 2016-05-20 23:10 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
>> Hi,
>>
>> On Fri, May 20, 2016 at 04:32:06PM +0300, Matwey V. Kornilov wrote:
>>> 2016-05-20 16:19 GMT+03:00  <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
>>> > Hello,
>>> >
>>> > I am running 4.6-rc3 on BealgeBone Black and when I try to interract
>>> > with pwc webcam attached to usb port the following kernel panic
>>> > happening.
>>>
>>> Please note, that the same is happening with 4.6.0 release.
>>
>> Please apply the following patch and reproduce the oops, I'd like to
>> check if the oops is caused by NULL of hw_ep->in_qh.
>>
>> Regards,
>> -Bin.
>>
>> ---8<-------
>> diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c
>> index e499b86..3492c6e 100644
>> --- a/drivers/usb/musb/musb_cppi41.c
>> +++ b/drivers/usb/musb/musb_cppi41.c
>> @@ -489,8 +489,11 @@ static int cppi41_dma_channel_program(struct dma_channel *channel,
>>         if (is_host_active(cppi41_channel->controller->musb)) {
>>                 if (cppi41_channel->is_tx)
>>                         hb_mult = cppi41_channel->hw_ep->out_qh->hb_mult;
>> -               else
>> +               else {
>> +                       if (!cppi41_channel->hw_ep->in_qh)
>> +                               dev_err(NULL, "->in_qh is NULL\n");
>>                         hb_mult = cppi41_channel->hw_ep->in_qh->hb_mult;
>> +               }
>>         }
>>
>>         channel->status = MUSB_DMA_STATUS_BUSY;
>>
>
>
>
> --
> With best regards,
> Matwey V. Kornilov.
> Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
> 119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]               ` <CAJs94EY3BfQjkk+0hKR5WfKggvmtgV0yz77awiX8Lt_pLYs3ug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-20 21:05                 ` Matwey V. Kornilov
       [not found]                   ` <CAJs94EZm3aV23x3hGHLpM4dAC+C9rH-ro3JbWU=se_QWv9jRmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-20 21:05 UTC (permalink / raw)
  To: Bin Liu, Matwey V. Kornilov, Linux OMAP List,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
hw_ep->tx_channel? I would suppose that it should use rx_channel
instead.


2016-05-20 23:58 GMT+03:00 Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
> (gdb) frame 3
> #3  musb_host_rx (musb=0xdb3e0010, epnum=<optimized out>) at
> ../drivers/usb/musb/musb_host.c:1969
> 1969                                done =
> musb_rx_dma_inventra_cppi41(c, hw_ep, qh, urb, xfer_len);
> (gdb) info locals
> hw_ep = 0xdb3e0f48
> c = <optimized out>
> epio = <optimized out>
> qh = 0xd9cb2000
> xfer_len = <optimized out>
> mbase = <optimized out>
> iso_err = <optimized out>
> done = <optimized out>
> status = <optimized out>
> dma = <optimized out>
> __func__ = <error reading variable __func__ (Cannot access memory at
> address 0x3e8)>
> (gdb) print hw_ep
> $21 = (struct musb_hw_ep *) 0xdb3e0f48
> (gdb) print *hw_ep
> $22 = {musb = 0xdb3e0010, fifo = 0xe0bf6c58, regs = 0xe0bf6c10, epnum
> = 14 '\016', is_shared_fifo = true, tx_double_buffered = false,
>   rx_double_buffered = false, max_packet_sz_tx = 1024,
> max_packet_sz_rx = 1024, tx_channel = 0x0, rx_channel = 0xd914c3bc,
>   in_qh = 0xd9cb2000, out_qh = 0xd9cb2000, rx_reinit = 0 '\000',
> tx_reinit = 1 '\001', ep_in = {end_point = {driver_data = 0x0,
>       name = 0x0, ops = 0x0, ep_list = {next = 0x0, prev = 0x0}, caps
> = {type_control = 0, type_iso = 0, type_bulk = 0, type_int = 0,
>         dir_in = 0, dir_out = 0}, claimed = false, enabled = false,
> maxpacket = 0, maxpacket_limit = 0, max_streams = 0, mult = 0,
>       maxburst = 0, address = 0 '\000', desc = 0x0, comp_desc = 0x0},
> name = '\000' <repeats 11 times>, hw_ep = 0x0, musb = 0x0,
>     current_epnum = 0 '\000', type = 0 '\000', is_in = 0 '\000',
> packet_sz = 0, desc = 0x0, dma = 0x0, req_list = {next = 0x0,
>       prev = 0x0}, wedged = 0 '\000', busy = 0 '\000', hb_mult = 0
> '\000'}, ep_out = {end_point = {driver_data = 0x0, name = 0x0,
>       ops = 0x0, ep_list = {next = 0x0, prev = 0x0}, caps =
> {type_control = 0, type_iso = 0, type_bulk = 0, type_int = 0, dir_in =
> 0,
>         dir_out = 0}, claimed = false, enabled = false, maxpacket = 0,
> maxpacket_limit = 0, max_streams = 0, mult = 0, maxburst = 0,
>       address = 0 '\000', desc = 0x0, comp_desc = 0x0}, name = '\000'
> <repeats 11 times>, hw_ep = 0x0, musb = 0x0,
>     current_epnum = 0 '\000', type = 0 '\000', is_in = 0 '\000',
> packet_sz = 0, desc = 0x0, dma = 0x0, req_list = {next = 0x0,
>       prev = 0x0}, wedged = 0 '\000', busy = 0 '\000', hb_mult = 0 '\000'}}
>
> 2016-05-20 23:55 GMT+03:00 Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
>> I used kgdb. Is it ok?
>> channel appeared to be 0x0:
>>
>> (gdb) continue
>> Continuing.
>> [Switching to Thread 315]
>>
>> Breakpoint 1, cppi41_dma_channel_program (channel=0x0, packet_sz=960,
>> mode=0 '\000', dma_addr=2609136576, len=960)
>>     at ../drivers/usb/musb/musb_cppi41.c:481
>> 481     {
>> (gdb) bt
>> #0  cppi41_dma_channel_program (channel=0x0, packet_sz=960, mode=0
>> '\000', dma_addr=2609136576, len=960)
>>     at ../drivers/usb/musb/musb_cppi41.c:481
>> #1  0xbf251570 in musb_rx_dma_iso_cppi41 (len=<optimized out>,
>> urb=<optimized out>, qh=<optimized out>, hw_ep=<optimized out>,
>>     dma=<optimized out>) at ../drivers/usb/musb/musb_host.c:1569
>> #2  musb_rx_dma_inventra_cppi41 (len=<optimized out>, urb=<optimized
>> out>, qh=<optimized out>, hw_ep=<optimized out>,
>>     dma=<optimized out>) at ../drivers/usb/musb/musb_host.c:1652
>> #3  musb_host_rx (musb=0xdb3e0010, epnum=<optimized out>) at
>> ../drivers/usb/musb/musb_host.c:1969
>> #4  0xbf249fb4 in musb_dma_completion (musb=<optimized out>,
>> epnum=<optimized out>, transmit=<optimized out>)
>>     at ../drivers/usb/musb/musb_core.c:1693
>> #5  0xbf258b10 in cppi41_trans_done (cppi41_channel=0xd914c3bc) at
>> ../drivers/usb/musb/musb_cppi41.c:148
>> #6  0xbf258c1c in cppi41_dma_callback (private_data=<optimized out>)
>> at ../drivers/usb/musb/musb_cppi41.c:286
>> #7  0xbf229f38 in ?? ()
>> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>>
>>
>> 2016-05-20 23:10 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
>>> Hi,
>>>
>>> On Fri, May 20, 2016 at 04:32:06PM +0300, Matwey V. Kornilov wrote:
>>>> 2016-05-20 16:19 GMT+03:00  <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
>>>> > Hello,
>>>> >
>>>> > I am running 4.6-rc3 on BealgeBone Black and when I try to interract
>>>> > with pwc webcam attached to usb port the following kernel panic
>>>> > happening.
>>>>
>>>> Please note, that the same is happening with 4.6.0 release.
>>>
>>> Please apply the following patch and reproduce the oops, I'd like to
>>> check if the oops is caused by NULL of hw_ep->in_qh.
>>>
>>> Regards,
>>> -Bin.
>>>
>>> ---8<-------
>>> diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c
>>> index e499b86..3492c6e 100644
>>> --- a/drivers/usb/musb/musb_cppi41.c
>>> +++ b/drivers/usb/musb/musb_cppi41.c
>>> @@ -489,8 +489,11 @@ static int cppi41_dma_channel_program(struct dma_channel *channel,
>>>         if (is_host_active(cppi41_channel->controller->musb)) {
>>>                 if (cppi41_channel->is_tx)
>>>                         hb_mult = cppi41_channel->hw_ep->out_qh->hb_mult;
>>> -               else
>>> +               else {
>>> +                       if (!cppi41_channel->hw_ep->in_qh)
>>> +                               dev_err(NULL, "->in_qh is NULL\n");
>>>                         hb_mult = cppi41_channel->hw_ep->in_qh->hb_mult;
>>> +               }
>>>         }
>>>
>>>         channel->status = MUSB_DMA_STATUS_BUSY;
>>>
>>
>>
>>
>> --
>> With best regards,
>> Matwey V. Kornilov.
>> Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
>> 119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
>
>
>
> --
> With best regards,
> Matwey V. Kornilov.
> Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
> 119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]                   ` <CAJs94EZm3aV23x3hGHLpM4dAC+C9rH-ro3JbWU=se_QWv9jRmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-20 21:12                     ` Bin Liu
  2016-05-20 21:20                       ` Matwey V. Kornilov
  0 siblings, 1 reply; 17+ messages in thread
From: Bin Liu @ 2016-05-20 21:12 UTC (permalink / raw)
  To: Matwey V. Kornilov
  Cc: Linux OMAP List, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

Hi,

On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
> hw_ep->tx_channel? I would suppose that it should use rx_channel
> instead.

I just got here, and am wondering the same. But the question is why just
your case hit the problem. I will try to look at it more next week.

I had an impression the linux-usb@ has a discussion before about
rx/tx-channel messing up, will have to look it up.

Regards,
-Bin.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
  2016-05-20 21:12                     ` Bin Liu
@ 2016-05-20 21:20                       ` Matwey V. Kornilov
       [not found]                         ` <CAJs94Eb6tfJHV7YeAA0UATF2A5oNrCDTSqTAdHbacmrm4Qw=8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-20 21:20 UTC (permalink / raw)
  To: Bin Liu, Matwey V. Kornilov, Linux OMAP List,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
> Hi,
>
> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
>> hw_ep->tx_channel? I would suppose that it should use rx_channel
>> instead.
>
> I just got here, and am wondering the same. But the question is why just
> your case hit the problem. I will try to look at it more next week.
>
> I had an impression the linux-usb@ has a discussion before about
> rx/tx-channel messing up, will have to look it up.
>

Thank you.
If you need additional info, I can use kgdb with this issue.

> Regards,
> -Bin.
>



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]                         ` <CAJs94Eb6tfJHV7YeAA0UATF2A5oNrCDTSqTAdHbacmrm4Qw=8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-21  3:13                           ` Bin Liu
       [not found]                             ` <CADYTM3bcTWSBf9HXKpsud6i--_04tsKZX1J3p9_6TqL1gp9YnA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Bin Liu @ 2016-05-21  3:13 UTC (permalink / raw)
  To: Matwey V. Kornilov
  Cc: Bin Liu, Linux OMAP List, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

Hi,

On Fri, May 20, 2016 at 4:20 PM, Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> wrote:
> 2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
>> Hi,
>>
>> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
>>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
>>> hw_ep->tx_channel? I would suppose that it should use rx_channel
>>> instead.
>>
>> I just got here, and am wondering the same. But the question is why just
>> your case hit the problem. I will try to look at it more next week.
>>
>> I had an impression the linux-usb@ has a discussion before about
>> rx/tx-channel messing up, will have to look it up.
>>
>
> Thank you.
> If you need additional info, I can use kgdb with this issue.

After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
in musb_host.c part1). Please test with the following patch.

Regards,
-Bin.

-----8<---------
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 2f8ad7f..9b2553c 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1551,7 +1551,7 @@ static int musb_rx_dma_iso_cppi41(struct
dma_controller *dma,
                                  struct urb *urb,
                                  size_t len)
 {
-       struct dma_channel *channel = hw_ep->tx_channel;
+       struct dma_channel *channel = hw_ep->rx_channel;
        void __iomem *epio = hw_ep->regs;
        dma_addr_t *buf;
        u32 length, res;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]                             ` <CADYTM3bcTWSBf9HXKpsud6i--_04tsKZX1J3p9_6TqL1gp9YnA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-21 17:50                               ` Matwey V. Kornilov
       [not found]                                 ` <CAJs94EYePeENwsHD--E6cGVP22-nfYcy_yTK-V2Hc1wWYb04vw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-21 17:50 UTC (permalink / raw)
  To: Bin Liu
  Cc: Bin Liu, Linux OMAP List, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

2016-05-21 6:13 GMT+03:00 Bin Liu <binmlist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Hi,
>
> On Fri, May 20, 2016 at 4:20 PM, Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> wrote:
>> 2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
>>> Hi,
>>>
>>> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
>>>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
>>>> hw_ep->tx_channel? I would suppose that it should use rx_channel
>>>> instead.
>>>
>>> I just got here, and am wondering the same. But the question is why just
>>> your case hit the problem. I will try to look at it more next week.
>>>
>>> I had an impression the linux-usb@ has a discussion before about
>>> rx/tx-channel messing up, will have to look it up.
>>>
>>
>> Thank you.
>> If you need additional info, I can use kgdb with this issue.
>
> After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
> bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
> in musb_host.c part1). Please test with the following patch.
>

I've just tested this patch. Indeed, it helps to avoid kernel panic.
Now, I can interact with my webcam and watch video-stream in  xawtv.
It would be great if the patch could become a part of 4.6.x stable tree.

> Regards,
> -Bin.
>
> -----8<---------
> diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
> index 2f8ad7f..9b2553c 100644
> --- a/drivers/usb/musb/musb_host.c
> +++ b/drivers/usb/musb/musb_host.c
> @@ -1551,7 +1551,7 @@ static int musb_rx_dma_iso_cppi41(struct
> dma_controller *dma,
>                                   struct urb *urb,
>                                   size_t len)
>  {
> -       struct dma_channel *channel = hw_ep->tx_channel;
> +       struct dma_channel *channel = hw_ep->rx_channel;
>         void __iomem *epio = hw_ep->regs;
>         dma_addr_t *buf;
>         u32 length, res;
>



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]                                 ` <CAJs94EYePeENwsHD--E6cGVP22-nfYcy_yTK-V2Hc1wWYb04vw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-21 19:04                                   ` Matwey V. Kornilov
       [not found]                                     ` <CAJs94EaxaQ4U9T48Lz-jox4VkS-ThDQ3DkSB+1SvnFzMXM_+FA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2016-05-23 13:35                                   ` Bin Liu
  1 sibling, 1 reply; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-21 19:04 UTC (permalink / raw)
  To: Bin Liu
  Cc: Bin Liu, Linux OMAP List, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

2016-05-21 20:50 GMT+03:00 Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
> 2016-05-21 6:13 GMT+03:00 Bin Liu <binmlist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>> Hi,
>>
>> On Fri, May 20, 2016 at 4:20 PM, Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> wrote:
>>> 2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
>>>> Hi,
>>>>
>>>> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
>>>>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
>>>>> hw_ep->tx_channel? I would suppose that it should use rx_channel
>>>>> instead.
>>>>
>>>> I just got here, and am wondering the same. But the question is why just
>>>> your case hit the problem. I will try to look at it more next week.
>>>>
>>>> I had an impression the linux-usb@ has a discussion before about
>>>> rx/tx-channel messing up, will have to look it up.
>>>>
>>>
>>> Thank you.
>>> If you need additional info, I can use kgdb with this issue.
>>
>> After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
>> bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
>> in musb_host.c part1). Please test with the following patch.
>>
>
> I've just tested this patch. Indeed, it helps to avoid kernel panic.
> Now, I can interact with my webcam and watch video-stream in  xawtv.
> It would be great if the patch could become a part of 4.6.x stable tree.
>

Hm, the following string appeared one time during my testing:

[  867.017179] musb_host_rx 1925: RX14 dma busy, csr 2020

>> Regards,
>> -Bin.
>>
>> -----8<---------
>> diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
>> index 2f8ad7f..9b2553c 100644
>> --- a/drivers/usb/musb/musb_host.c
>> +++ b/drivers/usb/musb/musb_host.c
>> @@ -1551,7 +1551,7 @@ static int musb_rx_dma_iso_cppi41(struct
>> dma_controller *dma,
>>                                   struct urb *urb,
>>                                   size_t len)
>>  {
>> -       struct dma_channel *channel = hw_ep->tx_channel;
>> +       struct dma_channel *channel = hw_ep->rx_channel;
>>         void __iomem *epio = hw_ep->regs;
>>         dma_addr_t *buf;
>>         u32 length, res;
>>
>
>
>
> --
> With best regards,
> Matwey V. Kornilov.
> Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
> 119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]                                 ` <CAJs94EYePeENwsHD--E6cGVP22-nfYcy_yTK-V2Hc1wWYb04vw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2016-05-21 19:04                                   ` Matwey V. Kornilov
@ 2016-05-23 13:35                                   ` Bin Liu
  2016-05-23 13:38                                     ` Matwey V. Kornilov
  1 sibling, 1 reply; 17+ messages in thread
From: Bin Liu @ 2016-05-23 13:35 UTC (permalink / raw)
  To: Matwey V. Kornilov
  Cc: Bin Liu, Linux OMAP List, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

Hi,

On Sat, May 21, 2016 at 08:50:32PM +0300, Matwey V. Kornilov wrote:
> 2016-05-21 6:13 GMT+03:00 Bin Liu <binmlist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> > Hi,
> >
> > On Fri, May 20, 2016 at 4:20 PM, Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> wrote:
> >> 2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
> >>> Hi,
> >>>
> >>> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
> >>>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
> >>>> hw_ep->tx_channel? I would suppose that it should use rx_channel
> >>>> instead.
> >>>
> >>> I just got here, and am wondering the same. But the question is why just
> >>> your case hit the problem. I will try to look at it more next week.
> >>>
> >>> I had an impression the linux-usb@ has a discussion before about
> >>> rx/tx-channel messing up, will have to look it up.
> >>>
> >>
> >> Thank you.
> >> If you need additional info, I can use kgdb with this issue.
> >
> > After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
> > bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
> > in musb_host.c part1). Please test with the following patch.
> >
> 
> I've just tested this patch. Indeed, it helps to avoid kernel panic.

Thanks for testing it.

> Now, I can interact with my webcam and watch video-stream in  xawtv.
> It would be great if the patch could become a part of 4.6.x stable tree.

Sure.

Would you mind to add your Reported-by in the patch?

Regards,
-Bin.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]                                     ` <CAJs94EaxaQ4U9T48Lz-jox4VkS-ThDQ3DkSB+1SvnFzMXM_+FA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-23 13:36                                       ` Bin Liu
  2016-05-23 13:41                                         ` Matwey V. Kornilov
  2016-05-28 13:33                                         ` Matwey V. Kornilov
  0 siblings, 2 replies; 17+ messages in thread
From: Bin Liu @ 2016-05-23 13:36 UTC (permalink / raw)
  To: Matwey V. Kornilov
  Cc: Bin Liu, Linux OMAP List, linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

Hi,

On Sat, May 21, 2016 at 10:04:48PM +0300, Matwey V. Kornilov wrote:
> 2016-05-21 20:50 GMT+03:00 Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
> > 2016-05-21 6:13 GMT+03:00 Bin Liu <binmlist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> >> Hi,
> >>
> >> On Fri, May 20, 2016 at 4:20 PM, Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> wrote:
> >>> 2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
> >>>> Hi,
> >>>>
> >>>> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
> >>>>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
> >>>>> hw_ep->tx_channel? I would suppose that it should use rx_channel
> >>>>> instead.
> >>>>
> >>>> I just got here, and am wondering the same. But the question is why just
> >>>> your case hit the problem. I will try to look at it more next week.
> >>>>
> >>>> I had an impression the linux-usb@ has a discussion before about
> >>>> rx/tx-channel messing up, will have to look it up.
> >>>>
> >>>
> >>> Thank you.
> >>> If you need additional info, I can use kgdb with this issue.
> >>
> >> After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
> >> bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
> >> in musb_host.c part1). Please test with the following patch.
> >>
> >
> > I've just tested this patch. Indeed, it helps to avoid kernel panic.
> > Now, I can interact with my webcam and watch video-stream in  xawtv.
> > It would be great if the patch could become a part of 4.6.x stable tree.
> >
> 
> Hm, the following string appeared one time during my testing:
> 
> [  867.017179] musb_host_rx 1925: RX14 dma busy, csr 2020

This seems to be a different issue. Does your webcam still functional
after the log shows up?

Regards,
-Bin.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
  2016-05-23 13:35                                   ` Bin Liu
@ 2016-05-23 13:38                                     ` Matwey V. Kornilov
       [not found]                                       ` <CAJs94EZkDGhoUmQe8LdAUwoaYJM8eGH=0nyEbUzv6YNsJPX2Qw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-23 13:38 UTC (permalink / raw)
  To: Bin Liu, Matwey V. Kornilov, Bin Liu, Linux OMAP List,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

2016-05-23 16:35 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
> Hi,
>
> On Sat, May 21, 2016 at 08:50:32PM +0300, Matwey V. Kornilov wrote:
>> 2016-05-21 6:13 GMT+03:00 Bin Liu <binmlist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>> > Hi,
>> >
>> > On Fri, May 20, 2016 at 4:20 PM, Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> wrote:
>> >> 2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
>> >>> Hi,
>> >>>
>> >>> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
>> >>>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
>> >>>> hw_ep->tx_channel? I would suppose that it should use rx_channel
>> >>>> instead.
>> >>>
>> >>> I just got here, and am wondering the same. But the question is why just
>> >>> your case hit the problem. I will try to look at it more next week.
>> >>>
>> >>> I had an impression the linux-usb@ has a discussion before about
>> >>> rx/tx-channel messing up, will have to look it up.
>> >>>
>> >>
>> >> Thank you.
>> >> If you need additional info, I can use kgdb with this issue.
>> >
>> > After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
>> > bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
>> > in musb_host.c part1). Please test with the following patch.
>> >
>>
>> I've just tested this patch. Indeed, it helps to avoid kernel panic.
>
> Thanks for testing it.
>
>> Now, I can interact with my webcam and watch video-stream in  xawtv.
>> It would be great if the patch could become a part of 4.6.x stable tree.
>
> Sure.
>
> Would you mind to add your Reported-by in the patch?

Sure, please add

Reported-by: Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>

>
> Regards,
> -Bin.
>



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
  2016-05-23 13:36                                       ` Bin Liu
@ 2016-05-23 13:41                                         ` Matwey V. Kornilov
  2016-05-28 13:33                                         ` Matwey V. Kornilov
  1 sibling, 0 replies; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-23 13:41 UTC (permalink / raw)
  To: Bin Liu, Matwey V. Kornilov, Bin Liu, Linux OMAP List,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

2016-05-23 16:36 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
> Hi,
>
> On Sat, May 21, 2016 at 10:04:48PM +0300, Matwey V. Kornilov wrote:
>> 2016-05-21 20:50 GMT+03:00 Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
>> > 2016-05-21 6:13 GMT+03:00 Bin Liu <binmlist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>> >> Hi,
>> >>
>> >> On Fri, May 20, 2016 at 4:20 PM, Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> wrote:
>> >>> 2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
>> >>>> Hi,
>> >>>>
>> >>>> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
>> >>>>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
>> >>>>> hw_ep->tx_channel? I would suppose that it should use rx_channel
>> >>>>> instead.
>> >>>>
>> >>>> I just got here, and am wondering the same. But the question is why just
>> >>>> your case hit the problem. I will try to look at it more next week.
>> >>>>
>> >>>> I had an impression the linux-usb@ has a discussion before about
>> >>>> rx/tx-channel messing up, will have to look it up.
>> >>>>
>> >>>
>> >>> Thank you.
>> >>> If you need additional info, I can use kgdb with this issue.
>> >>
>> >> After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
>> >> bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
>> >> in musb_host.c part1). Please test with the following patch.
>> >>
>> >
>> > I've just tested this patch. Indeed, it helps to avoid kernel panic.
>> > Now, I can interact with my webcam and watch video-stream in  xawtv.
>> > It would be great if the patch could become a part of 4.6.x stable tree.
>> >
>>
>> Hm, the following string appeared one time during my testing:
>>
>> [  867.017179] musb_host_rx 1925: RX14 dma busy, csr 2020
>
> This seems to be a different issue. Does your webcam still functional
> after the log shows up?

It seems so, but I am not sure completely, unfortunately this message
has stochastic origin.
So, I will try to reproduce it again and then report additional info.

>
> Regards,
> -Bin.
>



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
       [not found]                                       ` <CAJs94EZkDGhoUmQe8LdAUwoaYJM8eGH=0nyEbUzv6YNsJPX2Qw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-23 15:13                                         ` Tony Lindgren
  0 siblings, 0 replies; 17+ messages in thread
From: Tony Lindgren @ 2016-05-23 15:13 UTC (permalink / raw)
  To: Matwey V. Kornilov
  Cc: Bin Liu, Bin Liu, Linux OMAP List,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

* Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> [160523 06:41]:
> 2016-05-23 16:35 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
> > On Sat, May 21, 2016 at 08:50:32PM +0300, Matwey V. Kornilov wrote:
> >> 2016-05-21 6:13 GMT+03:00 Bin Liu <binmlist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> >> > After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
> >> > bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
> >> > in musb_host.c part1). Please test with the following patch.
> >> >
> >>
> >> I've just tested this patch. Indeed, it helps to avoid kernel panic.
> >
> > Thanks for testing it.
> >
> >> Now, I can interact with my webcam and watch video-stream in  xawtv.
> >> It would be great if the patch could become a part of 4.6.x stable tree.
> >
> > Sure.
> >
> > Would you mind to add your Reported-by in the patch?
> 
> Sure, please add
> 
> Reported-by: Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>

Looks good to me too, sorry for the nasty typo:

Acked-by: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference
  2016-05-23 13:36                                       ` Bin Liu
  2016-05-23 13:41                                         ` Matwey V. Kornilov
@ 2016-05-28 13:33                                         ` Matwey V. Kornilov
  1 sibling, 0 replies; 17+ messages in thread
From: Matwey V. Kornilov @ 2016-05-28 13:33 UTC (permalink / raw)
  To: Bin Liu, Matwey V. Kornilov, Bin Liu, Linux OMAP List,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	dmaengine-u79uwXL29TY76Z2rM5mHXA

2016-05-23 16:36 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
> Hi,
>
> On Sat, May 21, 2016 at 10:04:48PM +0300, Matwey V. Kornilov wrote:
>> 2016-05-21 20:50 GMT+03:00 Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>:
>> > 2016-05-21 6:13 GMT+03:00 Bin Liu <binmlist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>> >> Hi,
>> >>
>> >> On Fri, May 20, 2016 at 4:20 PM, Matwey V. Kornilov <matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org> wrote:
>> >>> 2016-05-21 0:12 GMT+03:00 Bin Liu <b-liu-l0cyMroinI0@public.gmane.org>:
>> >>>> Hi,
>> >>>>
>> >>>> On Sat, May 21, 2016 at 12:05:06AM +0300, Matwey V. Kornilov wrote:
>> >>>>> By the way, is it ok that function musb_rx_dma_iso_cppi41 uses
>> >>>>> hw_ep->tx_channel? I would suppose that it should use rx_channel
>> >>>>> instead.
>> >>>>
>> >>>> I just got here, and am wondering the same. But the question is why just
>> >>>> your case hit the problem. I will try to look at it more next week.
>> >>>>
>> >>>> I had an impression the linux-usb@ has a discussion before about
>> >>>> rx/tx-channel messing up, will have to look it up.
>> >>>>
>> >>>
>> >>> Thank you.
>> >>> If you need additional info, I can use kgdb with this issue.
>> >>
>> >> After reviewed the code, it must be hw_ep->rx_channel instead. It is likely a
>> >> bug caused by commit 069a3fd (usb: musb: Remove ifdefs for musb_host_rx
>> >> in musb_host.c part1). Please test with the following patch.
>> >>
>> >
>> > I've just tested this patch. Indeed, it helps to avoid kernel panic.
>> > Now, I can interact with my webcam and watch video-stream in  xawtv.
>> > It would be great if the patch could become a part of 4.6.x stable tree.
>> >
>>
>> Hm, the following string appeared one time during my testing:
>>
>> [  867.017179] musb_host_rx 1925: RX14 dma busy, csr 2020
>
> This seems to be a different issue. Does your webcam still functional
> after the log shows up?
>

I've just checked. Yes, it does. I can still obtain relevant snapshots
from the webcam.

> Regards,
> -Bin.
>



-- 
With best regards,
Matwey V. Kornilov.
Sternberg Astronomical Institute, Lomonosov Moscow State University, Russia
119991, Moscow, Universitetsky pr-k 13, +7 (495) 9392382
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-05-28 13:33 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-20 13:19 [OOPS] cppi41_dma_channel_program: Unable to handle kernel NULL pointer dereference matwey-TTlVxmypnbovJsYlp49lxw
     [not found] ` <1463750386-6259-1-git-send-email-matwey-TTlVxmypnbovJsYlp49lxw@public.gmane.org>
2016-05-20 13:32   ` Matwey V. Kornilov
     [not found]     ` <CAJs94EZjWi0KGn_siyXNGvjO2DTh2aXtYqKzy7Km7mA_bYTeKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20 20:10       ` Bin Liu
2016-05-20 20:55         ` Matwey V. Kornilov
     [not found]           ` <CAJs94EZSwJ=sJv6NtR6RNdiugiSQQpam-TFRTn0uZZJ4MLsr5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20 20:58             ` Matwey V. Kornilov
     [not found]               ` <CAJs94EY3BfQjkk+0hKR5WfKggvmtgV0yz77awiX8Lt_pLYs3ug-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20 21:05                 ` Matwey V. Kornilov
     [not found]                   ` <CAJs94EZm3aV23x3hGHLpM4dAC+C9rH-ro3JbWU=se_QWv9jRmw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-20 21:12                     ` Bin Liu
2016-05-20 21:20                       ` Matwey V. Kornilov
     [not found]                         ` <CAJs94Eb6tfJHV7YeAA0UATF2A5oNrCDTSqTAdHbacmrm4Qw=8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-21  3:13                           ` Bin Liu
     [not found]                             ` <CADYTM3bcTWSBf9HXKpsud6i--_04tsKZX1J3p9_6TqL1gp9YnA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-21 17:50                               ` Matwey V. Kornilov
     [not found]                                 ` <CAJs94EYePeENwsHD--E6cGVP22-nfYcy_yTK-V2Hc1wWYb04vw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-21 19:04                                   ` Matwey V. Kornilov
     [not found]                                     ` <CAJs94EaxaQ4U9T48Lz-jox4VkS-ThDQ3DkSB+1SvnFzMXM_+FA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-23 13:36                                       ` Bin Liu
2016-05-23 13:41                                         ` Matwey V. Kornilov
2016-05-28 13:33                                         ` Matwey V. Kornilov
2016-05-23 13:35                                   ` Bin Liu
2016-05-23 13:38                                     ` Matwey V. Kornilov
     [not found]                                       ` <CAJs94EZkDGhoUmQe8LdAUwoaYJM8eGH=0nyEbUzv6YNsJPX2Qw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-23 15:13                                         ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.