Delegating printk work to UART interrupt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
When i checked how kernel printing works, i mentioned that it takes messages
from log_buffer in console_unlock and gives it to call_console_drivers -> ...
-> some uart bsp function. Basically, as i see this BSP realization tries
to flush all message chars in busyloop ... so it waits until FIFO_NOT_FULL bit will 
be dropped by UART and it will be able to push the next byte.
Basically, as i see userspace printing do something different. It puts N_FIFO_BYTES
and exits, next, when FIFO will be freed - interrupt will be generated, and
other characters will be put into UART FIFO.
Can we do something similar for kernel printing? i.e. do not busyloop sending char
after char, but put N_FIFO chars and flush  other in interrupt. When panic will occur
we can do busyloop printing again. Is it reliable? Suppose we have several cores.
Thank you.

-- 
Alexander <alexhoppus111@xxxxxxxxx>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux