rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #02261
Back to rohc_comp_set_periodic_refreshes_time
-
To:
ROHC Library <rohc@xxxxxxxxxxxxxxxxxxx>
-
From:
Yakir Matusovsky <yakir.matusovsky@xxxxxxxxxxx>
-
Date:
Sun, 10 Jun 2018 22:59:40 +0000
-
Accept-language:
en-NZ, en-US
-
Authentication-results:
spf=none (sender IP is ) smtp.mailfrom=yakir.matusovsky@xxxxxxxxxxx;
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
Thread-index:
AQHUAQ6286548nxA5ku+i6DtxB/CvQ==
-
Thread-topic:
Back to rohc_comp_set_periodic_refreshes_time
Hi
Tried now to use the time refreshes for my broadcast ROHC_U_MODE pairs. Here is how I init it,
+ if (ROHC_U_MODE == mode) /* for broadcast contexts */
+ {
+ if (!rohc_comp_set_features(*comp, ROHC_COMP_FEATURE_TIME_BASED_REFRESHES))
+ {
+ debug_print_err(ROHC_CMS_DEBUG_STR, debug_cms, "Failed to set compressor features!\n");
+ goto destroy_comp;
+ }
+
+ if (!rohc_comp_set_periodic_refreshes_time(*comp, ROHC_REFRESH_TO_IR_MS, ROHC_REFRESH_TO_FO_MS))
+ {
+ debug_print_err(ROHC_CMS_DEBUG_STR, debug_cms, "Failed to refresh time configuration!\n");
+ goto destroy_comp;
+ }
+ }
Looks that when I enable this feature, it clashes with my kernel (in particular, crying about TI switch driver function).
[ 116.474858] Unable to handle kernel NULL pointer dereference at virtual address 00000014
[ 116.483445] pgd = cb05c000
[ 116.486319] [00000014] *pgd=8b04e831, *pte=00000000, *ppte=00000000
[ 116.492977] Internal error: Oops: 17 [#1] ARM
[ 116.497561] Modules linked in: mdl_driver(O) rohc(O) fpga_driver(O)
[ 116.504181] CPU: 0 PID: 1126 Comm: lighttpd Tainted: G O 4.4.32 #7
[ 116.511873] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 116.518290] task: cc6d3b80 ti: cb056000 task.ti: cb056000
[ 116.523991] PC is at cpsw_rx_handler+0x1bc/0x268
[ 116.528852] LR is at 0xcb1d7200
[ 116.532156] pc : [<c02856a8>] lr : [<cb1d7200>] psr: 80070013
[ 116.532156] sp : cb057a38 ip : 00001515 fp : cb057a64
[ 116.544237] r10: c0017e78 r9 : 000001c4 r8 : cb0ac540
[ 116.549734] r7 : 00012024 r6 : cc376e10 r5 : cc1b2800 r4 : cb13cd80
[ 116.556604] r3 : 00000000 r2 : 00000024 r1 : 00000006 r0 : c06727bc
[ 116.563476] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 116.570985] Control: 10c5387d Table: 8b05c019 DAC: 00000051
[ 116.577033] Process lighttpd (pid: 1126, stack limit = 0xcb056208)
[ 116.583532] Stack: (0xcb057a38 to 0xcb058000)
[ 116.588117] 7a20: cb057a64 cb057a48
[ 116.596734] 7a40: d08e0060 cc370790 cc3da610 cb13cd80 000001c4 10020000 cb057a9c cb057a68
[ 116.605346] 7a60: c027f160 c02854f8 00000000 c0638e90 00000000 cc370790 10020000 80070013
[ 116.613984] 7a80: d08e0060 000001c4 cc3da610 4a102060 cb057ad4 cb057aa0 c027f2a0 c027f0cc
[ 116.622616] 7aa0: cc575000 d08e0000 00000000 00000001 cc370790 00000040 cb057b30 cc376e40
[ 116.631250] 7ac0: 0000012c 00000040 cb057af4 cb057ad8 c027f2e8 c027f178 cc376e40 c0286ec0
[ 116.639882] 7ae0: 00000040 cb057b30 cb057b14 cb057af8 c0286edc c027f2c0 c0641980 c0286ec0
[ 116.648508] 7b00: cb057b28 cb057b30 cb057b64 cb057b18 c031d728 c0286ecc cb057b7c c0613b40
[ 116.657146] 7b20: fffd331d c06067d0 cb057b28 cb057b28 cb057b30 cb057b30 cc1b2800 40000001
[ 116.665773] 7b40: 00000002 c0643280 ffffe000 c06432cc 00000101 c06432c0 cb057bbc cb057b68
[ 116.674412] 7b60: c002f284 c031d664 cb057bac cb057b78 c00174bc 00000003 c06432c8 c0613b40
[ 116.683032] 7b80: 00000002 fffd331d 0000000a 00400040 00000242 60070013 00000000 cc575000
[ 116.691663] 7ba0: cb0ac3c0 c067a370 cb1c0cb8 cc3ecf00 cb057bd4 cb057bc0 c002f45c c002f1bc
[ 116.700295] 7bc0: ffffe000 00000000 cb057bec cb057bd8 c002f508 c002f420 cc4240d8 00000000
[ 116.708930] 7be0: cb057c5c cb057bf0 c03b8af8 c002f478 c027f088 c0018db4 cc42400c 00000001
[ 116.717561] 7c00: cc424040 00000001 c0312c00 cb0ac300 cc1b2800 c0638e90 00000000 cc575000
[ 116.726191] 7c20: 00000000 00000014 00000003 cb050002 c0285720 cb057c9c cb057cc4 c063929c
[ 116.734817] 7c40: cb0ac3c0 c03ba408 cb0d4700 c0613b40 cb057c6c cb057c60 c03ba45c c03b8724
[ 116.743440] 7c60: cb057c94 cb057c70 c035df58 c03ba414 c0638e90 cb0ac3c0 cb057cc4 cb057c9c
[ 116.752070] 7c80: c0638e90 cb0d4700 cb057cbc cb057c98 c035dfac c035df08 c027f2a0 cc3ecfc4
[ 116.760709] 7ca0: c0638e90 cb0ac3c0 cc72ec00 00000000 cb057d04 cb057cc0 c0376934 c035df80
[ 116.769334] 7cc0: 0000012c 00000003 80000000 cb057c02 00000000 cc575000 cc72ec00 c0638e90
[ 116.777970] 7ce0: c063929c c0374c90 cb057d14 cb0ac3c0 c0638e90 cc72ec00 cb057d24 cb057d08
[ 116.786599] 7d00: c037695c c03768a4 cc72ec00 cc72ee30 cb0ac3c0 00000000 cb057d64 cb057d28
[ 116.795228] 7d20: c0376e10 c037694c cb057d44 cb057d38 c039106c c0391000 cc72ec00 cc72ec00
[ 116.803862] 7d40: cb0ac3c0 00000014 cb1c0ccc 00038be0 0002b80b c0613b40 cb057db4 cb057d68
[ 116.812493] 7d60: c038c6cc c0376b30 c006b3d4 00000000 00000000 00000000 00000000 00000000
[ 116.821124] 7d80: 00000000 00000000 cc4e5cc0 cb0ac3c0 cc72ec00 e286fd9c 0000000d 00000000
[ 116.829763] 7da0: 02080020 c0613b40 cb057de4 cb057db8 c038dfe4 c038be64 00000001 cc72ec00
[ 116.838395] 7dc0: 00000001 cc4e5cc0 00000000 0000103f cc72ef60 00000000 cb057e04 cb057de8
[ 116.847031] 7de0: c037df80 c038de8c cc4e5cc0 00000000 cc72ec00 0000103f cb057e64 cb057e08
[ 116.855656] 7e00: c037eb10 c037de68 00000004 40000001 00000002 c0643280 00000000 cc72f028
[ 116.864293] 7e20: 00000001 00000000 cb057eac 00000000 c002f338 00000000 00000030 cb057eac
[ 116.872927] 7e40: c037e454 cb0c56c0 cb95e480 c000f0c4 cb056000 00000000 cb057e8c cb057e68
[ 116.881560] 7e60: c03a59fc c037e460 00000000 cb057e74 c0638e90 00000000 c03a59bc cb057f20
[ 116.890183] 7e80: cb057ea4 cb057e90 c0305eb4 c03a59c8 cb057f0c cb057f20 cb057ef4 cb057ea8
[ 116.898812] 7ea0: c0305f44 c0305ea8 00006380 00000000 00000000 00000000 00000000 00000000
[ 116.907445] 7ec0: cb057f0c 00000000 00000000 00000000 00000040 cb057f20 cb0c56c0 00000000
[ 116.916081] 7ee0: cb057f80 0000103f cb057f5c cb057ef8 c00d1f08 c0305ec4 0000103f cc6d3b80
[ 116.924711] 7f00: c06121b8 0008b218 0000103f 00000000 00000000 0000103f cb057f04 00000001
[ 116.933336] 7f20: cb0c56c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 116.941972] 7f40: cb0c56c0 0008b218 cb057f80 0000103f cb057f7c cb057f60 c00d24a4 c00d1e64
[ 116.950601] 7f60: cb0c56c0 cb0c56c0 0008b218 0000103f cb057fa4 cb057f80 c00d2a90 c00d2438
[ 116.959240] 7f80: 00000000 00000000 00000b96 0004a338 00000000 00000003 00000000 cb057fa8
[ 116.967869] 7fa0: c000ef00 c00d2a4c 00000b96 0004a338 00000005 0008b218 0000103f 00000005
[ 116.976501] 7fc0: 00000b96 0004a338 00000000 00000003 00000000 00000000 b6f03000 00000000
[ 116.985130] 7fe0: 00000000 bedb76b4 0001a151 b6d184d6 40070030 00000005 8cfe6861 8cfe6c61
[ 116.993746] Backtrace:
[ 116.996349] [<c02854ec>] (cpsw_rx_handler) from [<c027f160>] (__cpdma_chan_free+0xa0/0xac)
[ 117.005062] r9:10020000 r8:000001c4 r7:cb13cd80 r6:cc3da610 r5:cc370790 r4:d08e0060
[ 117.013263] [<c027f0c0>] (__cpdma_chan_free) from [<c027f2a0>] (__cpdma_chan_process+0x134/0x148)
[ 117.022618] r10:4a102060 r9:cc3da610 r8:000001c4 r7:d08e0060 r6:80070013 r5:10020000
[ 117.030893] r4:cc370790
[ 117.033572] [<c027f16c>] (__cpdma_chan_process) from [<c027f2e8>] (cpdma_chan_process+0x34/0x54)
[ 117.042835] r10:00000040 r9:0000012c r8:cc376e40 r7:cb057b30 r6:00000040 r5:cc370790
[ 117.051112] r4:00000001
[ 117.053793] [<c027f2b4>] (cpdma_chan_process) from [<c0286edc>] (cpsw_rx_poll+0x1c/0x78)
[ 117.062329] r7:cb057b30 r6:00000040 r5:c0286ec0 r4:cc376e40
[ 117.068320] [<c0286ec0>] (cpsw_rx_poll) from [<c031d728>] (net_rx_action+0xd0/0x270)
[ 117.076493] r7:cb057b30 r6:cb057b28 r5:c0286ec0 r4:c0641980
[ 117.082488] [<c031d658>] (net_rx_action) from [<c002f284>] (__do_softirq+0xd4/0x220)
[ 117.090652] r10:c06432c0 r9:00000101 r8:c06432cc r7:ffffe000 r6:c0643280 r5:00000002
[ 117.098931] r4:40000001
[ 117.101612] [<c002f1b0>] (__do_softirq) from [<c002f45c>] (do_softirq+0x48/0x58)
[ 117.109421] r10:cc3ecf00 r9:cb1c0cb8 r8:c067a370 r7:cb0ac3c0 r6:cc575000 r5:00000000
[ 117.117700] r4:60070013
[ 117.120382] [<c002f414>] (do_softirq) from [<c002f508>] (__local_bh_enable_ip+0x9c/0xc8)
[ 117.128918] r5:00000000 r4:ffffe000
[ 117.132705] [<c002f46c>] (__local_bh_enable_ip) from [<c03b8af8>] (ipt_do_table+0x3e0/0x408)
[ 117.141606] r5:00000000 r4:cc4240d8
[ 117.145386] [<c03b8718>] (ipt_do_table) from [<c03ba45c>] (iptable_raw_hook+0x54/0x60)
[ 117.153739] r10:c0613b40 r9:cb0d4700 r8:c03ba408 r7:cb0ac3c0 r6:c063929c r5:cb057cc4
[ 117.162015] r4:cb057c9c
[ 117.164693] [<c03ba408>] (iptable_raw_hook) from [<c035df58>] (nf_iterate+0x5c/0x78)
[ 117.172866] [<c035defc>] (nf_iterate) from [<c035dfac>] (nf_hook_slow+0x38/0xb4)
[ 117.180668] r9:cb0d4700 r8:c0638e90 r7:cb057c9c r6:cb057cc4 r5:cb0ac3c0 r4:c0638e90
[ 117.188870] [<c035df74>] (nf_hook_slow) from [<c0376934>] (__ip_local_out+0x9c/0xa8)
[ 117.197032] r7:00000000 r6:cc72ec00 r5:cb0ac3c0 r4:c0638e90
[ 117.203017] [<c0376898>] (__ip_local_out) from [<c037695c>] (ip_local_out+0x1c/0x44)
[ 117.211189] r6:cc72ec00 r5:c0638e90 r4:cb0ac3c0
[ 117.216073] [<c0376940>] (ip_local_out) from [<c0376e10>] (ip_queue_xmit+0x2ec/0x344)
[ 117.224329] r7:00000000 r6:cb0ac3c0 r5:cc72ee30 r4:cc72ec00
[ 117.230327] [<c0376b24>] (ip_queue_xmit) from [<c038c6cc>] (tcp_transmit_skb+0x874/0x8bc)
[ 117.238946] r10:c0613b40 r9:0002b80b r8:00038be0 r7:cb1c0ccc r6:00000014 r5:cb0ac3c0
[ 117.247237] r4:cc72ec00
[ 117.249915] [<c038be58>] (tcp_transmit_skb) from [<c038dfe4>] (tcp_send_ack+0x164/0x178)
[ 117.258444] r10:c0613b40 r9:02080020 r8:00000000 r7:0000000d r6:e286fd9c r5:cc72ec00
[ 117.266721] r4:cb0ac3c0
[ 117.269402] [<c038de80>] (tcp_send_ack) from [<c037df80>] (tcp_cleanup_rbuf+0x124/0x160)
[ 117.277933] r10:00000000 r9:cc72ef60 r8:0000103f r7:00000000 r6:cc4e5cc0 r5:00000001
[ 117.286206] r4:cc72ec00 r3:00000001
[ 117.289987] [<c037de5c>] (tcp_cleanup_rbuf) from [<c037eb10>] (tcp_recvmsg+0x6bc/0x9dc)
[ 117.298424] r5:0000103f r4:cc72ec00
[ 117.302207] [<c037e454>] (tcp_recvmsg) from [<c03a59fc>] (inet_recvmsg+0x40/0x54)
[ 117.310090] r10:00000000 r9:cb056000 r8:c000f0c4 r7:cb95e480 r6:cb0c56c0 r5:c037e454
[ 117.318375] r4:cb057eac
[ 117.321061] [<c03a59bc>] (inet_recvmsg) from [<c0305eb4>] (sock_recvmsg+0x18/0x1c)
[ 117.329041] r5:cb057f20 r4:c03a59bc
[ 117.332825] [<c0305e9c>] (sock_recvmsg) from [<c0305f44>] (sock_read_iter+0x8c/0xb4)
[ 117.340992] r5:cb057f20 r4:cb057f0c
[ 117.344783] [<c0305eb8>] (sock_read_iter) from [<c00d1f08>] (__vfs_read+0xb0/0xd8)
[ 117.352766] r7:0000103f r6:cb057f80 r5:00000000 r4:cb0c56c0
[ 117.358749] [<c00d1e58>] (__vfs_read) from [<c00d24a4>] (vfs_read+0x78/0x9c)
[ 117.366172] r7:0000103f r6:cb057f80 r5:0008b218 r4:cb0c56c0
[ 117.372154] [<c00d242c>] (vfs_read) from [<c00d2a90>] (SyS_read+0x50/0x90)
[ 117.379401] r7:0000103f r6:0008b218 r5:cb0c56c0 r4:cb0c56c0
[ 117.385394] [<c00d2a40>] (SyS_read) from [<c000ef00>] (ret_fast_syscall+0x0/0x3c)
[ 117.393292] r7:00000003 r6:00000000 r5:0004a338 r4:00000b96
[ 117.399276] Code: e3a02024 e5963130 e0070792 e7933007 (e5932014)
[ 117.405777] ---[ end trace 12280a8a4d3d4897 ]---
There is something about how this one works that my solution doesn’t like…
Regards,
Yakir
Follow ups