Re: [RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-26 Thread Sumit Garg
On Tue, 26 May 2020 at 16:40, Daniel Thompson wrote: > > On Tue, May 26, 2020 at 01:16:17PM +0530, Sumit Garg wrote: > > On Fri, 22 May 2020 at 21:33, Daniel Thompson > > wrote: > > > > > > On Fri, May 22, 2020 at 08:04:31PM +0530, Sumit Garg wrote: > > > > In kgdb NMI context, polling driver

Re: [RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-26 Thread Daniel Thompson
On Tue, May 26, 2020 at 01:16:17PM +0530, Sumit Garg wrote: > On Fri, 22 May 2020 at 21:33, Daniel Thompson > wrote: > > > > On Fri, May 22, 2020 at 08:04:31PM +0530, Sumit Garg wrote: > > > In kgdb NMI context, polling driver APIs are more safer to use instead > > > of console APIs since the

Re: [RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-26 Thread Sumit Garg
On Fri, 22 May 2020 at 21:33, Daniel Thompson wrote: > > On Fri, May 22, 2020 at 08:04:31PM +0530, Sumit Garg wrote: > > In kgdb NMI context, polling driver APIs are more safer to use instead > > of console APIs since the polling drivers know they will execute from > > all sorts of crazy places.

Re: [RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-22 Thread Daniel Thompson
On Fri, May 22, 2020 at 08:04:31PM +0530, Sumit Garg wrote: > In kgdb NMI context, polling driver APIs are more safer to use instead > of console APIs since the polling drivers know they will execute from > all sorts of crazy places. And for the most common use cases this would > also result in no

[RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-22 Thread Sumit Garg
In kgdb NMI context, polling driver APIs are more safer to use instead of console APIs since the polling drivers know they will execute from all sorts of crazy places. And for the most common use cases this would also result in no console handler ever being called. So switch to use polling driver