Re: [PATCH 1/2] printk: export pr_flush()

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

 



John Ogness <john.ogness@xxxxxxxxxxxxx> writes:

> On 2024-04-02, Esben Haabendal <esben@xxxxxxxxxx> wrote:
>> Outside prinkt users might wan't assure whatever printed has reached
>> its destination before continuing. E.g. during the shutdown-procedure,
>> where printk-buffers aren't emptied before the system goes down.
>
> This is a reposting of:
>
> https://lore.kernel.org/lkml/20231030092432.3434623-1-martin@xxxxxxxxxx
>
> As I wrote in that thread:
>
> printk() tries to print directly from the calling context. Are you
> experiencing problems where you do not see the restarting message?

Yes, that is exactly what we are seing.

> (If your answer is "yes", please explain the scenario and provide
> information about the console driver you are using.)

It is an i.MX8MP system, and console is attached to ttymxc1
(drivers/tty/serial/imx.c).

Booting up, and simply executing "reboot" command. Without these two
patches, the "reboot: Restarting system" message is not written to
ttymxc1 console. With the patches, it is.

> I assume you have tried the latest RT development version.

I have reproduced the problem with v6.6.23-rt28. I haven't upgraded to
6.7 or 6.8 yet. Do you need me to retest with 6.8?

/Esben




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux