Other Parts Discussed in Thread: TPS65910
使用4.1.18版本 内核
拔插U盘报cppi41_stop_chan警告,后续再插入u盘无法生成/dev/sda*节点
7.465741] usb 2-1.2: new high-speed USB device number 8 using musb-hdrc [ 47.586802] usb 2-1.2: New USB device found, idVendor=14cd, idProduct=2536 [ 47.593746] usb 2-1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2 [ 47.601383] usb 2-1.2: Product: Mass Storage Device [ 47.606319] usb 2-1.2: Manufacturer: Generic USB Device [ 47.612034] usb 2-1.2: SerialNumber: 2536201609180000 [ 47.624742] usb-storage 2-1.2:1.0: USB Mass Storage device detected [ 47.640044] scsi host5: usb-storage 2-1.2:1.0 [ 48.646522] scsi 5:0:0:0: Direct-Access Mass Storage Device 1.00 PQ: 0 ANSI: 0 CCS [ 48.661282] sd 5:0:0:0: [sda] 15630336 512-byte logical blocks: (8.00 GB/7.45 GiB) [ 48.676750] sd 5:0:0:0: [sda] Write Protect is off [ 48.681596] sd 5:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 48.690803] sd 5:0:0:0: [sda] No Caching mode page found [ 48.696291] sd 5:0:0:0: [sda] Assuming drive cache: write through [ 48.707835] sda: sda1 [ 48.716875] sd 5:0:0:0: [sda] Attached SCSI removable disk [ 48.733075] pm_runtime_get [ 48.815747] usb 2-1.2: reset high-speed USB device number 8 using musb-hdrc [ 49.946034] usb 2-1.2: USB disconnect, device number 8 [ 49.951493] pm_runtime_get [ 49.954048] ------------[ cut here ]------------ [ 49.958894] WARNING: CPU: 0 PID: 37 at drivers/dma/cppi41.c:611 cppi41_stop_chan+0x230/0x32c() [ 49.967539] Modules linked in: spi_printer(O+) bc_example(O) pvrsrvkm(O) [ 49.974300] CPU: 0 PID: 37 Comm: kworker/0:2 Tainted: G D O 4.1.18 #334 [ 49.981898] Hardware name: Generic AM33XX (Flattened Device Tree) [ 49.988028] Workqueue: usb_hub_wq hub_event [ 49.992229] Backtrace: [ 49.994711] [<c0012b18>] (dump_backtrace) from [<c0012d38>] (show_stack+0x18/0x1c) [ 50.002310] r7:c08110b4 r6:00000263 r5:00000009 r4:00000000 [ 50.008030] [<c0012d20>] (show_stack) from [<c065f804>] (dump_stack+0x20/0x28) [ 50.015289] [<c065f7e4>] (dump_stack) from [<c0035cf0>] (warn_slowpath_common+0x7c/0xb4) [ 50.023415] [<c0035c74>] (warn_slowpath_common) from [<c0035dcc>] (warn_slowpath_null+0x24/0x2c) [ 50.032234] r8:00000010 r7:ddb45410 r6:ddb45410 r5:ddb45490 r4:ddb46f80 [ 50.038997] [<c0035da8>] (warn_slowpath_null) from [<c037394c>] (cppi41_stop_chan+0x230/0x32c) [ 50.047659] [<c037371c>] (cppi41_stop_chan) from [<c04d7a28>] (cppi41_dma_channel_abort+0xf4/0x214) [ 50.056741] r10:c0941e80 r9:c0941e8c r8:e09a4c10 r7:ddc0a010 r6:00000004 r5:00000000 [ 50.064631] r4:dd81d05c r3:c037371c [ 50.068235] [<c04d7934>] (cppi41_dma_channel_abort) from [<c04d4cd8>] (musb_cleanup_urb+0x64/0x13c) [ 50.077315] r10:00000001 r9:dd81d05c r8:e09a4c10 r7:c0008880 r6:dcaa3a00 r5:00000080 [ 50.085203] r4:ddc0a460 [ 50.087753] [<c04d4c74>] (musb_cleanup_urb) from [<c04d5468>] (musb_urb_dequeue+0x150/0x160) [ 50.096222] r10:00000001 r9:ddff2800 r8:dcaa3a00 r7:c0008880 r6:ddc0a010 r5:a00b0193 [ 50.104111] r4:00000000 r3:ddff2800 [ 50.107715] [<c04d5318>] (musb_urb_dequeue) from [<c049ee10>] (unlink1+0x38/0x158) [ 50.115313] r10:00000002 r9:ddccd800 r8:ddbe2e00 r7:ffffff94 r6:ddbe2e00 r5:ddb92000 [ 50.123201] r4:dcaa3a00 r3:c04d5318 [ 50.126804] [<c049edd8>] (unlink1) from [<c04a024c>] (usb_hcd_flush_endpoint+0x144/0x184) [ 50.135012] r8:ddbe2e00 r7:dcaa3480 r6:dcaa3490 r5:ddb92000 r4:dcaa3a00 [ 50.141775] [<c04a0108>] (usb_hcd_flush_endpoint) from [<c04a2f7c>] (usb_disable_endpoint+0x50/0x98) [ 50.150944] r9:ddccd800 r8:00000000 r7:ddd1a000 r6:dca7c088 r5:ddd1a000 r4:dcaa3480 [ 50.158755] [<c04a2f2c>] (usb_disable_endpoint) from [<c04a3008>] (usb_disable_interface+0x44/0x5c) [ 50.167836] r5:00000000 r4:00000000 [ 50.171440] [<c04a2fc4>] (usb_disable_interface) from [<c04a58b4>] (usb_unbind_interface+0x1e0/0x280) [ 50.180695] r9:ddccd800 r8:ddccd600 r7:c08ffccc r6:ddccd620 r5:ddd1a068 r4:ddd1a000 [ 50.188507] [<c04a56d4>] (usb_unbind_interface) from [<c03f0508>] (__device_release_driver+0x78/0xec) [ 50.197762] r10:00000002 r9:ddccd800 r8:c0940f7c r7:ddd1a068 r6:c08fef94 r5:c08ffccc [ 50.205650] r4:ddccd620 [ 50.208198] [<c03f0490>] (__device_release_driver) from [<c03f05a0>] (device_release_driver+0x24/0x30) [ 50.217540] r5:ddccd620 r4:ddccd654 [ 50.221142] [<c03f057c>] (device_release_driver) from [<c03effc4>] (bus_remove_device+0xdc/0x10c) [ 50.230047] r5:ddccd620 r4:dd922f2c [ 50.233657] [<c03efee8>] (bus_remove_device) from [<c03ecd94>] (device_del+0x110/0x218) [ 50.241691] r7:ddd1a068 r6:ddccd628 r5:ddccd620 r4:ddd1a000 [ 50.247398] [<c03ecc84>] (device_del) from [<c04a30c8>] (usb_disable_device+0xa8/0x1ec) [ 50.255433] r8:ddccd600 r7:ddbe2e00 r6:00000000 r5:00000001 r4:ddd1a000 [ 50.262194] [<c04a3020>] (usb_disable_device) from [<c0499ef8>] (usb_disconnect+0x70/0x258) [ 50.270577] r9:ddccd800 r8:ddbe7e00 r7:ddd1a068 r6:ddd1a09c r5:ddd1a000 r4:00000000 [ 50.278388] [<c0499e88>] (usb_disconnect) from [<c049ba6c>] (hub_event+0x554/0x1120) [ 50.286160] r10:00000002 r9:00000100 r8:ddc19b04 r7:ddc04c00 r6:00000002 r5:00000004 [ 50.294052] r4:00000000 [ 50.296610] [<c049b518>] (hub_event) from [<c004a39c>] (process_one_work+0x12c/0x374) [ 50.304470] r10:ddb6df80 r9:00000000 r8:c08dd158 r7:de347800 r6:00000000 r5:ddc19b04 [ 50.312359] r4:ddb6df80 [ 50.314909] [<c004a270>] (process_one_work) from [<c004a644>] (worker_thread+0x60/0x5cc) [ 50.323031] r10:ddb6df80 r9:00000000 r8:c08dd158 r7:c08dd168 r6:00000008 r5:ddb6df98 [ 50.330919] r4:c08dd158 [ 50.333469] [<c004a5e4>] (worker_thread) from [<c004fa14>] (kthread+0xd4/0xf0) [ 50.340718] r10:00000000 r9:00000000 r8:00000000 r7:c004a5e4 r6:ddb6df80 r5:ddb730c0 [ 50.348607] r4:00000000 [ 50.351156] [<c004f940>] (kthread) from [<c000f928>] (ret_from_fork+0x14/0x2c) [ 50.358406] r7:00000000 r6:00000000 r5:c004f940 r4:ddb730c0 [ 50.364111] ---[ end trace e169cfd9255a0258 ]--- [ 50.376305] scsi 5:0:0:0: rejecting I/O to offline device [ 50.381763] scsi 5:0:0:0: [sda] killing request [ 50.386325] scsi 5:0:0:0: rejecting I/O to offline device [ 50.391749] scsi 5:0:0:0: [sda] killing request [ 50.396301] scsi 5:0:0:0: rejecting I/O to dead device [ 50.401508] scsi 5:0:0:0: rejecting I/O to dead device [ 50.406692] scsi 5:0:0:0: rejecting I/O to dead device [ 50.411990] scsi 5:0:0:0: [sda] UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=0x00 [ 50.419888] scsi 5:0:0:0: [sda] CDB: opcode=0x28 28 00 00 00 00 20 00 00 18 00 [ 50.427165] blk_update_request: I/O error, dev sda, sector 32 [ 50.432973] scsi 5:0:0:0: [sda] UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=0x00 [ 50.440860] scsi 5:0:0:0: [sda] CDB: opcode=0x28 28 00 00 00 00 10 00 00 08 00 [ 50.448126] blk_update_request: I/O error, dev sda, sector 16 [ 50.454516] Buffer I/O error on dev sda, logical block 2, async page read [ 50.462111] Buffer I/O error on dev sda, logical block 2, async page read
后更换SDK版本9.01.00 内核版本6.1.45在官方开发板上复现
root@am335x-evm:/proc/sys/kernel# [ 3012.816671] usb 2-1: USB disconnect, device number 24 [ 3012.822727] ------------[ cut here ]------------ [ 3012.827401] WARNING: CPU: 0 PID: 1273 at drivers/dma/ti/cppi41.c:720 cppi41_stop_chan+0x1c8/0x3f8 [cppi41] [ 3012.837202] Modules linked in: uas irq_pruss_intc pru_rproc 8250_pruss sha256_generic libsha256 sha256_arm ti_am335x_tsc cfg80211 snd_soc_simple_card snd_soc_simple_card_utils pvrsrvkm(O) pruss tilc dc drm_dma_helper pwm_tiecap snd_soc_davinci_mcasp snd_soc_ti_udma snd_soc_ti_edma snd_soc_ti_sdma musb_dsps musb_hdrc phy_am335x phy_am335x_control rtc_omap cppi41 omap_wdt snd_soc_tlv320aic3x_i2c snd _soc_tlv320aic3x snd_soc_core rtc_tps65910 snd_pcm_dmaengine ac97_bus snd_pcm snd_timer snd ti_am335x_tscadc soundcore cryptodev(O) [ 3012.884408] CPU: 0 PID: 1273 Comm: kworker/0:1 Tainted: G O 6.1.46-g1d4b5da681 #1 [ 3012.893357] Hardware name: Generic AM33XX (Flattened Device Tree) [ 3012.899501] Workqueue: usb_hub_wq hub_event [ 3012.903807] unwind_backtrace from show_stack+0x10/0x14 [ 3012.909123] show_stack from dump_stack_lvl+0x24/0x2c [ 3012.914262] dump_stack_lvl from __warn+0x7c/0x130 [ 3012.919157] __warn from warn_slowpath_fmt+0x9c/0x178 [ 3012.924304] warn_slowpath_fmt from cppi41_stop_chan+0x1c8/0x3f8 [cppi41] [ 3012.931221] cppi41_stop_chan [cppi41] from cppi41_dma_channel_abort+0x134/0x2e0 [musb_hdrc] [ 3012.939895] cppi41_dma_channel_abort [musb_hdrc] from musb_cleanup_urb+0x58/0x200 [musb_hdrc] [ 3012.948733] musb_cleanup_urb [musb_hdrc] from musb_urb_dequeue+0x114/0x1a0 [musb_hdrc] [ 3012.956960] musb_urb_dequeue [musb_hdrc] from usb_hcd_flush_endpoint+0x11c/0x158 [ 3012.964599] usb_hcd_flush_endpoint from usb_disable_interface+0x54/0xd4 [ 3012.971385] usb_disable_interface from usb_unbind_interface+0x110/0x268 [ 3012.978172] usb_unbind_interface from device_release_driver_internal+0x194/0x21c [ 3012.985753] device_release_driver_internal from bus_remove_device+0xcc/0xf8 [ 3012.992883] bus_remove_device from device_del+0x16c/0x468 [ 3012.998461] device_del from usb_disable_device+0xcc/0x178 [ 3013.004029] usb_disable_device from usb_disconnect+0xb4/0x224 [ 3013.009953] usb_disconnect from hub_event+0x984/0x16a8 [ 3013.015271] hub_event from process_one_work+0x1c0/0x4bc [ 3013.020694] process_one_work from worker_thread+0x58/0x584 [ 3013.026361] worker_thread from kthread+0xd8/0x108 [ 3013.031249] kthread from ret_from_fork+0x14/0x2c [ 3013.036024] Exception stack(0xd040dfb0 to 0xd040dff8) [ 3013.041127] dfa0: 00000000 00000000 00000000 00000000 [ 3013.049372] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 3013.057613] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 3013.064276] ---[ end trace 0000000000000000 ]--- [ 3013.069483] BUG: scheduling while atomic: kworker/0:1/1273/0x00000002 [ 3013.076084] Modules linked in: uas irq_pruss_intc pru_rproc 8250_pruss sha256_generic libsha256 sha256_arm ti_am335x_tsc cfg80211 snd_soc_simple_card snd_soc_simple_card_utils pvrsrvkm(O) pruss tilc dc drm_dma_helper pwm_tiecap snd_soc_davinci_mcasp snd_soc_ti_udma snd_soc_ti_edma snd_soc_ti_sdma musb_dsps musb_hdrc phy_am335x phy_am335x_control rtc_omap cppi41 omap_wdt snd_soc_tlv320aic3x_i2c snd _soc_tlv320aic3x snd_soc_core rtc_tps65910 snd_pcm_dmaengine ac97_bus snd_pcm snd_timer snd ti_am335x_tscadc soundcore cryptodev(O) [ 3013.123342] Preemption disabled at: [ 3013.123359] [<bf0dbf74>] musb_urb_dequeue+0x40/0x1a0 [musb_hdrc] [ 3013.133115] CPU: 0 PID: 1273 Comm: kworker/0:1 Tainted: G W O 6.1.46-g1d4b5da681 #1 [ 3013.142066] Hardware name: Generic AM33XX (Flattened Device Tree) [ 3013.148208] Workqueue: usb_hub_wq hub_event [ 3013.152482] unwind_backtrace from show_stack+0x10/0x14 [ 3013.157788] show_stack from dump_stack_lvl+0x24/0x2c [ 3013.162917] dump_stack_lvl from __schedule_bug+0x88/0x9c [ 3013.168391] __schedule_bug from __schedule+0x52c/0x6bc [ 3013.173679] __schedule from schedule+0x54/0xf0 [ 3013.178266] schedule from schedule_timeout+0xb0/0x140 [ 3013.183476] schedule_timeout from __wait_for_common+0x88/0x1d0 [ 3013.189467] __wait_for_common from devtmpfs_submit_req+0x70/0x94 [ 3013.195655] devtmpfs_submit_req from devtmpfs_delete_node+0x70/0x94 [ 3013.202099] devtmpfs_delete_node from device_del+0x3d0/0x468 [ 3013.207942] device_del from cdev_device_del+0x14/0x44 [ 3013.213163] cdev_device_del from bsg_unregister_queue+0x38/0x44 [ 3013.219249] bsg_unregister_queue from __scsi_remove_device+0xfc/0x158 [ 3013.225875] __scsi_remove_device from scsi_forget_host+0x94/0xac [ 3013.232053] scsi_forget_host from scsi_remove_host+0x7c/0x1dc [ 3013.237983] scsi_remove_host from usb_stor_disconnect+0x44/0xe4 [ 3013.244102] usb_stor_disconnect from usb_unbind_interface+0x78/0x268 [ 3013.250642] usb_unbind_interface from device_release_driver_internal+0x194/0x21c [ 3013.258214] device_release_driver_internal from bus_remove_device+0xcc/0xf8 [ 3013.265340] bus_remove_device from device_del+0x16c/0x468 [ 3013.270906] device_del from usb_disable_device+0xcc/0x178 [ 3013.276472] usb_disable_device from usb_disconnect+0xb4/0x224 [ 3013.282397] usb_disconnect from hub_event+0x984/0x16a8 [ 3013.287714] hub_event from process_one_work+0x1c0/0x4bc [ 3013.293132] process_one_work from worker_thread+0x58/0x584 [ 3013.298800] worker_thread from kthread+0xd8/0x108 [ 3013.303678] kthread from ret_from_fork+0x14/0x2c [ 3013.308450] Exception stack(0xd040dfb0 to 0xd040dff8) [ 3013.313552] dfa0: 00000000 00000000 00000000 00000000 [ 3013.321796] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 3013.330037] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 3013.336957] sd 0:0:0:0: [sda] Unaligned partial completion (resid=2, sector_sz=512) [ 3013.358079] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 ee 7f f8 00 00 01 00 [ 3013.374451] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=14s [ 3013.394427] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 ee 7f f8 00 00 01 00 [ 3013.407657] I/O error, dev sda, sector 15630328 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2 [ 3013.417846] device offline error, dev sda, sector 15630328 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 [ 3013.429302] buffer_io_error: 6 callbacks suppressed [ 3013.429324] Buffer I/O error on dev sda, logical block 1953791, async page read