Re: [PATCH RESEND 0/2] two serial_core suspend/resume fixes

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

 



Jason Wang wrote:

> > suspend:
> > - save hardware state
> >   
> How about move this part to driver specific level(i.e. pxa.c)
> > - but not physically stop it

Yes, I was thinking about it as well. It would be far the cleanest
solution that would prevent all ugly hacks in serial_core.c.

In addition to the standard suspend and resume there could be save_state
(and keep running) and resume_state (from save_state mode).

> Maybe stop it can save power on some platforms, moreover,
> it can prevent some unreadable chars

No, no_console_suspend is a special mode, required for suspend debugging
and not intended for production kernels. If you are debugging a kernel
that does not resume at all, you have no other way to collect debug
messages than keeping console in running state as long as possible.

This behavior of no_console_suspend should be kept even at cost of
higher power consumption during suspend in this mode, otherwise some
suspend failures may become undebugable.

I see just another "by design" problem: no_console_suspend keeps console
in running state. After the resume, kernel still thinks, that the
console is not suspended and it is possible to write to the console.
That is why early resume messages may be lost.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec@xxxxxxx
Lihovarská 1060/12           tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9                                  fax: +420 284 028 951
Czech Republic                                    http://www.suse.cz/

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux