I am using a EC25 on a "lantiq xrx200" CPU.
I have added another USB-WWAN device (PLS8e from gemalto) which is
working.
I have also added a USB-FLASH device which is also working fine.
I do not know what the Problem is! I have looked into the code and
as seen in the traceback the function "dwc2_hc_chhltd_intr_dma" is
called.
As mentioned by "Amr Bekhit" if I enable verbose logging the error does
not appear.
The logging will change the timing!
Is the EC25 to fast and so the driver to slow?
Or vice versa?
I have done further testing this is a kernel traceback I get.
Maybe this is usefully.
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.389636] dwc2
1e106000.usb: dwc2_hc_chhltd_intr_dma: Channel 0 - ChHltd set, but reasn
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.389669] dwc2
1e106000.usb: hcint 0x00000002, intsts 0x04200029
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.389723] dwc2
1e106000.usb: dwc2_hc_chhltd_intr_dma: Channel 1 - ChHltd set, but reasn
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.389747] dwc2
1e106000.usb: hcint 0x00000002, intsts 0x04200021
Wed Jan 30 15:53:32 2019 kern.warn kernel: [ 974.389767] dwc2
1e106000.usb: dwc2_update_urb_state_abn(): trimming xfer length
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.389821] dwc2
1e106000.usb: dwc2_hc_chhltd_intr_dma: Channel 10 - ChHltd set, but rean
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.389845] dwc2
1e106000.usb: hcint 0x00000002, intsts 0x04200021
Wed Jan 30 15:53:32 2019 kern.warn kernel: [ 974.389865] dwc2
1e106000.usb: dwc2_update_urb_state_abn(): trimming xfer length
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.389918] dwc2
1e106000.usb: dwc2_hc_chhltd_intr_dma: Channel 8 - ChHltd set, but reasn
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.389942] dwc2
1e106000.usb: hcint 0x00000002, intsts 0x04200021
Wed Jan 30 15:53:32 2019 kern.warn kernel: [ 974.389961] dwc2
1e106000.usb: dwc2_update_urb_state_abn(): trimming xfer length
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.390026] dwc2
1e106000.usb: dwc2_hc_chhltd_intr_dma: Channel 7 - ChHltd set, but reasn
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.390051] dwc2
1e106000.usb: hcint 0x00000002, intsts 0x04200021
Wed Jan 30 15:53:32 2019 kern.warn kernel: [ 974.390071] dwc2
1e106000.usb: dwc2_update_urb_state_abn(): trimming xfer length
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.390126] dwc2
1e106000.usb: dwc2_hc_chhltd_intr_dma: Channel 14 - ChHltd set, but rean
Wed Jan 30 15:53:32 2019 kern.err kernel: [ 974.390152] dwc2
1e106000.usb: hcint 0x00000002, intsts 0x04200029
Wed Jan 30 15:53:32 2019 kern.warn kernel: [ 974.390172] dwc2
1e106000.usb: dwc2_update_urb_state_abn(): trimming xfer length
Wed Jan 30 15:53:32 2019 kern.warn kernel: [ 974.390217] dwc2
1e106000.usb: dwc2_update_urb_state(): trimming xfer length
[ 974.669971] Unhandled kernel unaligned access[#1]:
[ 974.673324] CPU: 1 PID: 6159 Comm: wget Not tainted 4.14.95 #0
[ 974.679159] task: 87d1f920 task.stack: 86656000
[ 974.683675] $ 0 : 00000000 00000001 00000001 864aa580
[ 974.688905] $ 4 : d37b2572 00000001 00000000 00000000
[ 974.694122] $ 8 : 00000000 00000000 1dcd6500 00000000
[ 974.699342] $12 : 00000000 00000000 02496acb 00000001
[ 974.704565] $16 : 00000000 85310a8c 85310a60 8704a3c0
[ 974.709784] $20 : 806b3ca0 00010000 00000000 00000000
[ 974.715011] $24 : 00000001 00000000
[ 974.720232] $28 : 86656000 86657d10 000003db 803cff14
[ 974.725456] Hi : 00884d95
[ 974.728323] Lo : 00000001
[ 974.731218] epc : 803d0f28 skb_release_data+0xb4/0x250
[ 974.736547] ra : 803cff14 __kfree_skb+0x14/0x28
[ 974.741291] Status: 1100c303 KERNEL EXL IE
[ 974.745471] Cause : 00800010 (ExcCode 04)
[ 974.749474] BadVA : d37b2586
[ 974.752338] PrId : 00019556 (MIPS 34Kc)
[ 974.756263] Modules linked in: option ath10k_pci ath10k_core ath
usb_wwan pppoe nf_nat_pptp nf_conntrack_pptp nf_conntrack_ipv6 maw
[ 974.827024] nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4
nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip
nf_conntrack_rtcachep
[ 974.898226] ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip
ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_lo7
[ 974.968904] cdc_wdm cdc_acm i2c_gpio i2c_algo_bit dwc2 i2c_dev
tpm_i2c_infineon sd_mod scsi_mod pinctrl_mcp23s08 regmap_i2c i2c_cc
[ 974.987714] Process wget (pid: 6159, threadinfo=86656000,
task=87d1f920, tls=77f3bda8)
[ 974.995618] Stack : 3b9a0000 8009ac74 864aa580 00000000 8704a3c0
8704a3c0 864aa580 00000000
[ 975.003972] 00000390 864aa954 00000c45 803cff14 864aa954
8704a3c0 864aa580 00000000
[ 975.012342] 8704a3c0 80446dd0 851142a4 86657e80 85187b40
77eb0c68 00000004 7fd11090
[ 975.020690] 86657db8 00000000 00000001 80670000 806b0000
00000001 80670000 00000000
[ 975.029040] 805b70c4 80673514 02496acb 3567a123 86657db8
86657dbc 7fffffff 86657dc4
[ 975.037395] ...
[ 975.039828] Call Trace:
[ 975.042295] [<803d0f28>] skb_release_data+0xb4/0x250
[ 975.047284] [<803cff14>] __kfree_skb+0x14/0x28
[ 975.051707] [<80446dd0>] tcp_recvmsg+0x6d8/0x91c
[ 975.056315] [<804786bc>] inet_recvmsg+0xa8/0xc4
[ 975.060861] [<803c14a0>] sock_read_iter+0xac/0xf4
[ 975.065559] [<8015b0d4>] __vfs_read+0x120/0x158
[ 975.070069] [<8015b1dc>] vfs_read+0xd0/0x17c
[ 975.074335] [<8015b75c>] SyS_read+0x58/0xc4
[ 975.078511] [<8001bf58>] syscall_common+0x34/0x58
[ 975.083197] Code: 10000061 8fbf002c 8e240000 <8c820014> 30430001
10600002 00000000 2444ffff 8e820014
[ 975.092933]
[ 975.094733] ---[ end trace 475631e2bd796f88 ]---
[ 975.104548] Kernel panic - not syncing: Fatal exception
[ 975.111830] Rebooting in 3 seconds..
Thanks for help
Flo