Enable Wifi or disabling delays(breaks) CAN messages

Hello

We are using CAN0 module Jetson Tx2 in one of our projects. We realized when we enable or disable the wifi
the can message are delayed and then ten or more are sent together

i.e. we are sending through can 0x708 every 20ms are reading with candump -l can0, when the wifi is enabled this message stops for 200-300ms and then sends ten 0x708 all together.

is there a way to seg the network to prioritize the can over wifi, so when we enable the wifi or other setting does not affect the time stamps for the CAN?

Thank you

it could highly be due to wifi interrupts hogging CPU0 and thus delaying CAN interrupts.
May be we can move CAN interrupts using IRQ BALANCING to another CPU.
Can you post the output of
cat /proc/interrupts
and
tegrastats

when the issue is seen

Hello this is the
cat /proc/interrupts (when no issue is seen)
CPU0 CPU3 CPU4 CPU5
2: 0 0 0 0 GICv2 30 Level arch_timer
5: 44320 0 0 0 GICv2 32 Level tegra186_timer0
6: 0 0 0 0 GICv2 33 Level tegra186_timer1
7: 0 0 0 0 GICv2 34 Level tegra186_timer2
8: 0 58033 0 0 GICv2 35 Level tegra186_timer3
9: 0 0 55707 0 GICv2 36 Level tegra186_timer4
10: 0 0 0 57658 GICv2 37 Level tegra186_timer5
11: 25243 0 0 0 GICv2 208 Level hsp
12: 0 0 0 0 GICv2 202 Level arm-smmu global fault
13: 0 0 0 0 GICv2 203 Level arm-smmu global fault
21: 17551 0 0 0 GICv2 97 Level mmc0
22: 11792 0 0 0 GICv2 96 Level mmc1
23: 0 0 0 0 GICv2 229 Level tegra-ahci[3507000.ahci-sata]
24: 9 0 0 0 GICv2 57 Level 3160000.i2c
25: 1 0 0 0 GICv2 58 Level c240000.i2c
26: 0 0 0 0 GICv2 59 Level 3180000.i2c
27: 0 0 0 0 GICv2 60 Level 3190000.i2c
28: 0 0 0 0 GICv2 62 Level 31b0000.i2c
29: 0 0 0 0 GICv2 63 Level 31c0000.i2c
30: 33 0 0 0 GICv2 64 Level c250000.i2c
31: 0 0 0 0 GICv2 65 Level 31e0000.i2c
32: 1909 0 0 0 GICv2 68 Level 3210000.spi
33: 0 0 0 0 GICv2 69 Level c260000.spi
34: 0 0 0 0 GICv2 70 Level 3230000.spi
35: 82 0 0 0 GICv2 71 Level 3240000.spi
36: 23 0 0 0 GICv2 144 Level serial
39: 9672 0 0 0 GICv2 147 Level 3130000.serial
41: 109 0 0 0 GICv2 226 Level ether_qos.common_irq
43: 473 0 0 0 GICv2 222 Level 2490000.ether_qos.rx0
44: 490 0 0 0 GICv2 218 Level 2490000.ether_qos.tx0
51: 0 0 0 0 GICv2 48 Level b000000.rtcpu
52: 119 0 0 0 GICv2 242 Level d230000.actmon
53: 340 0 0 0 GICv2 297 Level host_syncpt
54: 0 0 0 0 GICv2 295 Level host_status
56: 0 0 0 0 GICv2 233 Level 15700000.vi
59: 0 0 0 0 GICv2 237 Level tegra-isp-isr
60: 0 0 0 0 GICv2 186 Level 15210000.nvdisplay
61: 0 0 0 0 GICv2 238 Level vic
65: 0 0 0 0 PM 42 Level tegra_rtc
66: 0 0 0 0 GICv2 255 Level mc_status
70: 79 0 0 0 PM 195 Level xhci-hcd:usb1
71: 2 0 0 0 PM 196 Level 3530000.xhci
72: 0 0 0 0 PM 199 Level 3530000.xhci
73: 0 0 0 0 GICv2 198 Level 3550000.xudc
74: 34 0 0 0 GICv2 102 Level gk20a_stall
75: 0 0 0 0 GICv2 103 Level gk20a_nonstall
77: 0 0 0 0 GICv2 315 Level 3ad0000.se_elp
78: 32 0 0 0 GICv2 173 Level b150000.tegra-hsp, b150000.tegra-hsp, b150000.tegra-hsp
82: 0 0 0 0 GICv2 165 Level c150000.tegra-hsp
93: 0 0 0 0 GICv2 107 Level gpcdma.0
94: 0 0 0 0 GICv2 108 Level gpcdma.1
95: 0 0 0 0 GICv2 109 Level gpcdma.2
96: 0 0 0 0 GICv2 110 Level gpcdma.3
97: 0 0 0 0 GICv2 111 Level gpcdma.4
98: 0 0 0 0 GICv2 112 Level gpcdma.5
99: 0 0 0 0 GICv2 113 Level gpcdma.6
100: 0 0 0 0 GICv2 114 Level gpcdma.7
101: 1193 0 0 0 GICv2 115 Level gpcdma.8
102: 0 0 0 0 GICv2 116 Level gpcdma.9
103: 0 0 0 0 GICv2 117 Level gpcdma.10
104: 0 0 0 0 GICv2 118 Level gpcdma.11
105: 0 0 0 0 GICv2 119 Level gpcdma.12
106: 0 0 0 0 GICv2 120 Level gpcdma.13
107: 0 0 0 0 GICv2 121 Level gpcdma.14
108: 0 0 0 0 GICv2 122 Level gpcdma.15
109: 0 0 0 0 GICv2 123 Level gpcdma.16
110: 0 0 0 0 GICv2 124 Level gpcdma.17
111: 0 0 0 0 GICv2 125 Level gpcdma.18
112: 0 0 0 0 GICv2 126 Level gpcdma.19
113: 0 0 0 0 GICv2 127 Level gpcdma.20
114: 0 0 0 0 GICv2 128 Level gpcdma.21
115: 0 0 0 0 GICv2 129 Level gpcdma.22
116: 0 0 0 0 GICv2 130 Level gpcdma.23
117: 0 0 0 0 GICv2 131 Level gpcdma.24
118: 0 0 0 0 GICv2 132 Level gpcdma.25
119: 0 0 0 0 GICv2 133 Level gpcdma.26
120: 0 0 0 0 GICv2 134 Level gpcdma.27
121: 0 0 0 0 GICv2 135 Level gpcdma.28
122: 0 0 0 0 GICv2 136 Level gpcdma.29
123: 0 0 0 0 GICv2 137 Level gpcdma.30
124: 0 0 0 0 GICv2 138 Level gpcdma.31
233: 9 0 0 0 tegra-gpio 101 Level phy_interrupt
253: 0 0 0 0 tegra-gpio 121 Edge 15210000.nvdisplay
291: 0 0 0 0 tegra-gpio 159 Edge external-connection:extcon@1
333: 0 0 0 0 tegra-gpio-aon 16 Level tmp451
373: 0 0 0 0 tegra-gpio-aon 56 Edge Power
374: 0 0 0 0 tegra-gpio-aon 57 Edge Volume Up
375: 0 0 0 0 tegra-gpio-aon 58 Edge Volume Down
376: 700 0 0 0 tegra-gpio-aon 59 Level bcmsdh_sdmmc
377: 1 0 0 0 tegra-gpio-aon 60 Edge bluetooth hostwake
381: 27 0 0 0 GICv2 104 Level PCIE, PCIe PME, aerdrv
382: 0 0 0 0 GICv2 105 Level Tegra PCIe MSI
383: 226 0 0 0 GICv2 193 Level snd_hda_tegra
384: 3 0 0 0 GICv2 39 Level 30c0000.watchdog
387: 109205 0 0 0 GICv2 72 Level can0
390: 0 0 0 0 PM 241 Edge max77620-top
394: 0 0 0 0 max77620-top 3 Edge max77620-gpio
395: 0 0 0 0 max77620-top 4 Edge max77686-rtc
399: 0 0 0 0 max77620-top 8 Edge max77620-thermal
400: 0 0 0 0 max77620-top 9 Edge max77620-thermal
401: 0 0 0 0 max77620-gpio 0 Edge external-connection:extcon@1
443: 0 0 0 0 max77686-rtc 1 Edge rtc-alarm1
IPI0: 28198 40404 54114 32224 Rescheduling interrupts
IPI1: 169 654 630 586 Function call interrupts
IPI2: 0 0 0 0 CPU stop interrupts
IPI3: 0 0 0 0 Timer broadcast interrupts
IPI4: 1589 1143 1878 1043 IRQ work interrupts
IPI5: 0 0 0 0 CPU wake-up interrupts
Err: 0

This is the cat /proc/interrupt after the issue

       CPU0       CPU3       CPU4       CPU5

2: 0 0 0 0 GICv2 30 Level arch_timer
5: 74580 0 0 0 GICv2 32 Level tegra186_timer0
6: 0 0 0 0 GICv2 33 Level tegra186_timer1
7: 0 0 0 0 GICv2 34 Level tegra186_timer2
8: 0 99681 0 0 GICv2 35 Level tegra186_timer3
9: 0 0 95174 0 GICv2 36 Level tegra186_timer4
10: 0 0 0 96557 GICv2 37 Level tegra186_timer5
11: 31240 0 0 0 GICv2 208 Level hsp
12: 0 0 0 0 GICv2 202 Level arm-smmu global fault
13: 0 0 0 0 GICv2 203 Level arm-smmu global fault
21: 17781 0 0 0 GICv2 97 Level mmc0
22: 13081 0 0 0 GICv2 96 Level mmc1
23: 0 0 0 0 GICv2 229 Level tegra-ahci[3507000.ahci-sata]
24: 9 0 0 0 GICv2 57 Level 3160000.i2c
25: 1 0 0 0 GICv2 58 Level c240000.i2c
26: 0 0 0 0 GICv2 59 Level 3180000.i2c
27: 0 0 0 0 GICv2 60 Level 3190000.i2c
28: 0 0 0 0 GICv2 62 Level 31b0000.i2c
29: 0 0 0 0 GICv2 63 Level 31c0000.i2c
30: 33 0 0 0 GICv2 64 Level c250000.i2c
31: 0 0 0 0 GICv2 65 Level 31e0000.i2c
32: 3085 0 0 0 GICv2 68 Level 3210000.spi
33: 0 0 0 0 GICv2 69 Level c260000.spi
34: 0 0 0 0 GICv2 70 Level 3230000.spi
35: 82 0 0 0 GICv2 71 Level 3240000.spi
36: 23 0 0 0 GICv2 144 Level serial
39: 15416 0 0 0 GICv2 147 Level 3130000.serial
41: 219 0 0 0 GICv2 226 Level ether_qos.common_irq
43: 492 0 0 0 GICv2 222 Level 2490000.ether_qos.rx0
44: 554 0 0 0 GICv2 218 Level 2490000.ether_qos.tx0
51: 0 0 0 0 GICv2 48 Level b000000.rtcpu
52: 119 0 0 0 GICv2 242 Level d230000.actmon
53: 340 0 0 0 GICv2 297 Level host_syncpt
54: 0 0 0 0 GICv2 295 Level host_status
56: 0 0 0 0 GICv2 233 Level 15700000.vi
59: 0 0 0 0 GICv2 237 Level tegra-isp-isr
60: 0 0 0 0 GICv2 186 Level 15210000.nvdisplay
61: 0 0 0 0 GICv2 238 Level vic
65: 0 0 0 0 PM 42 Level tegra_rtc
66: 0 0 0 0 GICv2 255 Level mc_status
70: 79 0 0 0 PM 195 Level xhci-hcd:usb1
71: 2 0 0 0 PM 196 Level 3530000.xhci
72: 0 0 0 0 PM 199 Level 3530000.xhci
73: 0 0 0 0 GICv2 198 Level 3550000.xudc
74: 34 0 0 0 GICv2 102 Level gk20a_stall
75: 0 0 0 0 GICv2 103 Level gk20a_nonstall
77: 0 0 0 0 GICv2 315 Level 3ad0000.se_elp
78: 32 0 0 0 GICv2 173 Level b150000.tegra-hsp, b150000.tegra-hsp, b150000.tegra-hsp
82: 0 0 0 0 GICv2 165 Level c150000.tegra-hsp
93: 0 0 0 0 GICv2 107 Level gpcdma.0
94: 0 0 0 0 GICv2 108 Level gpcdma.1
95: 0 0 0 0 GICv2 109 Level gpcdma.2
96: 0 0 0 0 GICv2 110 Level gpcdma.3
97: 0 0 0 0 GICv2 111 Level gpcdma.4
98: 0 0 0 0 GICv2 112 Level gpcdma.5
99: 0 0 0 0 GICv2 113 Level gpcdma.6
100: 0 0 0 0 GICv2 114 Level gpcdma.7
101: 1909 0 0 0 GICv2 115 Level gpcdma.8
102: 0 0 0 0 GICv2 116 Level gpcdma.9
103: 0 0 0 0 GICv2 117 Level gpcdma.10
104: 0 0 0 0 GICv2 118 Level gpcdma.11
105: 0 0 0 0 GICv2 119 Level gpcdma.12
106: 0 0 0 0 GICv2 120 Level gpcdma.13
107: 0 0 0 0 GICv2 121 Level gpcdma.14
108: 0 0 0 0 GICv2 122 Level gpcdma.15
109: 0 0 0 0 GICv2 123 Level gpcdma.16
110: 0 0 0 0 GICv2 124 Level gpcdma.17
111: 0 0 0 0 GICv2 125 Level gpcdma.18
112: 0 0 0 0 GICv2 126 Level gpcdma.19
113: 0 0 0 0 GICv2 127 Level gpcdma.20
114: 0 0 0 0 GICv2 128 Level gpcdma.21
115: 0 0 0 0 GICv2 129 Level gpcdma.22
116: 0 0 0 0 GICv2 130 Level gpcdma.23
117: 0 0 0 0 GICv2 131 Level gpcdma.24
118: 0 0 0 0 GICv2 132 Level gpcdma.25
119: 0 0 0 0 GICv2 133 Level gpcdma.26
120: 0 0 0 0 GICv2 134 Level gpcdma.27
121: 0 0 0 0 GICv2 135 Level gpcdma.28
122: 0 0 0 0 GICv2 136 Level gpcdma.29
123: 0 0 0 0 GICv2 137 Level gpcdma.30
124: 0 0 0 0 GICv2 138 Level gpcdma.31
233: 9 0 0 0 tegra-gpio 101 Level phy_interrupt
253: 0 0 0 0 tegra-gpio 121 Edge 15210000.nvdisplay
291: 0 0 0 0 tegra-gpio 159 Edge external-connection:extcon@1
333: 0 0 0 0 tegra-gpio-aon 16 Level tmp451
373: 0 0 0 0 tegra-gpio-aon 56 Edge Power
374: 0 0 0 0 tegra-gpio-aon 57 Edge Volume Up
375: 0 0 0 0 tegra-gpio-aon 58 Edge Volume Down
376: 883 0 0 0 tegra-gpio-aon 59 Level bcmsdh_sdmmc
377: 1 0 0 0 tegra-gpio-aon 60 Edge bluetooth hostwake
381: 27 0 0 0 GICv2 104 Level PCIE, PCIe PME, aerdrv
382: 0 0 0 0 GICv2 105 Level Tegra PCIe MSI
383: 226 0 0 0 GICv2 193 Level snd_hda_tegra
384: 6 0 0 0 GICv2 39 Level 30c0000.watchdog
387: 174193 0 0 0 GICv2 72 Level can0
390: 0 0 0 0 PM 241 Edge max77620-top
394: 0 0 0 0 max77620-top 3 Edge max77620-gpio
395: 0 0 0 0 max77620-top 4 Edge max77686-rtc
399: 0 0 0 0 max77620-top 8 Edge max77620-thermal
400: 0 0 0 0 max77620-top 9 Edge max77620-thermal
401: 0 0 0 0 max77620-gpio 0 Edge external-connection:extcon@1
443: 0 0 0 0 max77686-rtc 1 Edge rtc-alarm1
IPI0: 36817 53886 67897 43344 Rescheduling interrupts
IPI1: 169 654 630 586 Function call interrupts
IPI2: 0 0 0 0 CPU stop interrupts
IPI3: 0 0 0 0 Timer broadcast interrupts
IPI4: 1861 1346 2181 1227 IRQ work interrupts
IPI5: 0 0 0 0 CPU wake-up interrupts
Err: 0

and this is the tegrasta when the issue is happening (I recorded in a log while is working ok then I make happen while recording)
ireng@tegra-ubuntu:~$ cat foo.log
RAM 645/7861MB (lfb 1669x4MB) CPU [21%@345,off,off,7%@345,9%@345,6%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@41C MCPU@41C PMIC@100C Tboard@38C GPU@38.5C BCPU@41C thermal@39.7C Tdiode@39C VDD_SYS_GPU 72/72 VDD_SYS_SOC 400/400 VDD_4V0_WIFI 0/0 VDD_IN 2112/2112 VDD_SYS_CPU 109/109 VDD_SYS_DDR 230/230
RAM 645/7861MB (lfb 1669x4MB) CPU [20%@345,off,off,9%@345,10%@345,8%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@40.5C MCPU@40.5C PMIC@100C Tboard@38C GPU@38.5C BCPU@40.5C thermal@39.7C Tdiode@39.25C VDD_SYS_GPU 72/72 VDD_SYS_SOC 400/400 VDD_4V0_WIFI 0/0 VDD_IN 2112/2112 VDD_SYS_CPU 109/109 VDD_SYS_DDR 230/230
RAM 645/7861MB (lfb 1669x4MB) CPU [22%@345,off,off,12%@345,10%@345,6%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@41C MCPU@41C PMIC@100C Tboard@38C GPU@38.5C BCPU@41C thermal@40C Tdiode@39.25C VDD_SYS_GPU 72/72 VDD_SYS_SOC 400/400 VDD_4V0_WIFI 0/0 VDD_IN 2093/2105 VDD_SYS_CPU 109/109 VDD_SYS_DDR 230/230
RAM 645/7861MB (lfb 1669x4MB) CPU [23%@345,off,off,7%@345,9%@345,11%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@40.5C MCPU@40.5C PMIC@100C Tboard@38C GPU@38.5C BCPU@40.5C thermal@39.7C Tdiode@39.25C VDD_SYS_GPU 72/72 VDD_SYS_SOC 400/400 VDD_4V0_WIFI 19/4 VDD_IN 2112/2107 VDD_SYS_CPU 109/109 VDD_SYS_DDR 230/230
RAM 645/7861MB (lfb 1669x4MB) CPU [21%@345,off,off,6%@345,9%@345,6%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@40.5C MCPU@40.5C PMIC@100C Tboard@38C GPU@38.5C BCPU@40.5C thermal@39.7C Tdiode@39.25C VDD_SYS_GPU 72/72 VDD_SYS_SOC 400/400 VDD_4V0_WIFI 114/26 VDD_IN 2221/2130 VDD_SYS_CPU 109/109 VDD_SYS_DDR 230/230
RAM 645/7861MB (lfb 1666x4MB) CPU [25%@345,off,off,10%@345,12%@345,7%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@40.5C MCPU@40.5C PMIC@100C Tboard@38C GPU@38.5C BCPU@40.5C thermal@39.7C Tdiode@39C VDD_SYS_GPU 72/72 VDD_SYS_SOC 400/400 VDD_4V0_WIFI 0/0 VDD_IN 2112/2112 VDD_SYS_CPU 109/109 VDD_SYS_DDR 230/230
RAM 645/7861MB (lfb 1666x4MB) CPU [26%@345,off,off,11%@345,8%@345,12%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@40.5C MCPU@40.5C PMIC@100C Tboard@38C GPU@38.5C BCPU@40.5C thermal@39.7C Tdiode@39C VDD_SYS_GPU 72/72 VDD_SYS_SOC 400/400 VDD_4V0_WIFI 19/9 VDD_IN 2112/2112 VDD_SYS_CPU 109/109 VDD_SYS_DDR 230/230
RAM 645/7861MB (lfb 1666x4MB) CPU [33%@2035,off,off,24%@2035,18%@2035,26%@2035] EMC_FREQ 0% GR3D_FREQ 0% PLL@40.5C MCPU@40.5C PMIC@100C Tboard@38C GPU@38.5C BCPU@40.5C thermal@40C Tdiode@39C VDD_SYS_GPU 72/72 VDD_SYS_SOC 472/424 VDD_4V0_WIFI 401/140 VDD_IN 3295/2506 VDD_SYS_CPU 436/218 VDD_SYS_DDR 498/319
RAM 646/7861MB (lfb 1666x4MB) CPU [42%@345,off,off,29%@345,37%@345,27%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@40.5C MCPU@40.5C PMIC@100C Tboard@38C GPU@38.5C BCPU@40.5C thermal@39.7C Tdiode@39.25C VDD_SYS_GPU 72/72 VDD_SYS_SOC 473/436 VDD_4V0_WIFI 57/119 VDD_IN 2986/2626 VDD_SYS_CPU 472/281 VDD_SYS_DDR 517/368
RAM 646/7861MB (lfb 1666x4MB) CPU [22%@345,off,off,10%@345,8%@345,10%@345] EMC_FREQ 0% GR3D_FREQ 0% PLL@40.5C MCPU@40.5C PMIC@100C Tboard@38C GPU@38.5C BCPU@40.5C thermal@39.7C Tdiode@39C VDD_SYS_GPU 72/72 VDD_SYS_SOC 400/429 VDD_4V0_WIFI 0/95 VDD_IN 2166/2534 VDD_SYS_CPU 145/254 VDD_SYS_DDR 249/344

Hello
Any Idea? why the CAN message delays when enable/disable WiFi?
Thank you