Kernel logging causes USB instability

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kernel logging causes USB instability

825 Views
dogisfat
Contributor IV

We have a handful of kernel modules that can log a fair amount of data to the kernel logs. We have noticed that this can cause instability of the USB Camera we have plugged in. So far we have been struggling to come up with ideas on why kernel logging would cause this and possible remedy action besides reducing the amount of kernel logging.

Some ideas so far (keep in mind these may be very ignorant):

Kernel logging maybe gets written to disk and that freezes the system? Maybe DMA for the SD card takes over the memory bus and causes issues?

Kernel logging is higher priority than USB driver maintenance?

Any additional ideas or experiments would be appreciated.

Labels (4)
Tags (2)
0 Kudos
3 Replies

687 Views
igorpadykov
NXP Employee
NXP Employee

Hi ALLEN

in general logging (seems handled by uart) consumes some processor

time, internal buses and memory bandwidth which may affect usb module

operations. One can try to disable uart dma, use polling option. Another very general

way is to increase usb module priority with NIC-301 settings (sect.4.6 Network

Interconnect Bus System (NIC-301) i.MX7D Reference Manual), similar to

sect.45.3.3.1 QoS registers' address look-up example, sect.45.3.4 NIC-specific parameters

i.MX6DQ Reference Manual.

http://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf

Unfortunately for i.MX7 such detailed NIC-301 description is not available.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

687 Views
dogisfat
Contributor IV

Is it possible to get a description of the NIC parameters and locations as in table 45-5 of the IMX6DQRM? Without that it is impossible to guess at the location and offset of the NIC configuration registers. We are also experiencing some issues with the M4 accessing DDR memory during high USB and Ethernet usage and would like to explore the NIC qos as a potential solution for that as well.

0 Kudos

687 Views
igorpadykov
NXP Employee
NXP Employee

for i.MX7 such detailed NIC-301 description is not available for customers,

suggest to work with nxp local marketing office if you have special need for it.

Best regards
igor

0 Kudos