Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-17 Thread Sumit Garg
On Mon, 17 Aug 2020 at 14:58, Daniel Thompson wrote: > > On Mon, Aug 17, 2020 at 10:42:43AM +0530, Sumit Garg wrote: > > On Fri, 14 Aug 2020 at 19:48, Daniel Thompson > > wrote: > > > > > > On Fri, Aug 14, 2020 at 05:36:36PM +0530, Sumit Garg wrote: > > > > On Thu, 13 Aug 2020 at 15:47, Daniel

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-17 Thread Daniel Thompson
On Mon, Aug 17, 2020 at 10:42:43AM +0530, Sumit Garg wrote: > On Fri, 14 Aug 2020 at 19:48, Daniel Thompson > wrote: > > > > On Fri, Aug 14, 2020 at 05:36:36PM +0530, Sumit Garg wrote: > > > On Thu, 13 Aug 2020 at 15:47, Daniel Thompson > > > wrote: > > > > > > > > On Thu, Aug 13, 2020 at

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-16 Thread Sumit Garg
On Fri, 14 Aug 2020 at 19:48, Daniel Thompson wrote: > > On Fri, Aug 14, 2020 at 05:36:36PM +0530, Sumit Garg wrote: > > On Thu, 13 Aug 2020 at 15:47, Daniel Thompson > > wrote: > > > > > > On Thu, Aug 13, 2020 at 02:55:12PM +0530, Sumit Garg wrote: > > > > On Thu, 13 Aug 2020 at 05:38, Doug

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-14 Thread Daniel Thompson
On Fri, Aug 14, 2020 at 05:36:36PM +0530, Sumit Garg wrote: > On Thu, 13 Aug 2020 at 15:47, Daniel Thompson > wrote: > > > > On Thu, Aug 13, 2020 at 02:55:12PM +0530, Sumit Garg wrote: > > > On Thu, 13 Aug 2020 at 05:38, Doug Anderson wrote: > > > > On Wed, Aug 12, 2020 at 8:27 AM Doug Anderson

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-14 Thread Sumit Garg
On Thu, 13 Aug 2020 at 20:56, Doug Anderson wrote: > > Hi, > > On Thu, Aug 13, 2020 at 2:25 AM Sumit Garg wrote: > > > > > One other idea occurred to me that's maybe simpler. You could in > > > theory just poll the serial port periodically to accomplish. It would > > > actually probably even

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-14 Thread Sumit Garg
On Thu, 13 Aug 2020 at 15:47, Daniel Thompson wrote: > > On Thu, Aug 13, 2020 at 02:55:12PM +0530, Sumit Garg wrote: > > On Thu, 13 Aug 2020 at 05:38, Doug Anderson wrote: > > > On Wed, Aug 12, 2020 at 8:27 AM Doug Anderson > > > wrote: > > > > One > > > > last worry is that I assume that most

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-13 Thread Doug Anderson
Hi, On Thu, Aug 13, 2020 at 2:25 AM Sumit Garg wrote: > > > One other idea occurred to me that's maybe simpler. You could in > > theory just poll the serial port periodically to accomplish. It would > > actually probably even work to call the normal serial port interrupt > > routine from any

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-13 Thread Daniel Thompson
On Thu, Aug 13, 2020 at 02:55:12PM +0530, Sumit Garg wrote: > On Thu, 13 Aug 2020 at 05:38, Doug Anderson wrote: > > On Wed, Aug 12, 2020 at 8:27 AM Doug Anderson wrote: > > > One > > > last worry is that I assume that most people testing (and even > > > automated testing labs) will either

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-13 Thread Sumit Garg
On Thu, 13 Aug 2020 at 05:38, Doug Anderson wrote: > > Hi, > > > On Wed, Aug 12, 2020 at 8:27 AM Doug Anderson wrote: > > > > Hi, > > > > On Wed, Aug 12, 2020 at 7:53 AM Sumit Garg wrote: > > > > > > Hi Doug, > > > > > > On Tue, 11 Aug 2020 at 22:46, Doug Anderson wrote: > > > > > > > > Hi, >

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-12 Thread Doug Anderson
Hi, On Wed, Aug 12, 2020 at 8:27 AM Doug Anderson wrote: > > Hi, > > On Wed, Aug 12, 2020 at 7:53 AM Sumit Garg wrote: > > > > Hi Doug, > > > > On Tue, 11 Aug 2020 at 22:46, Doug Anderson wrote: > > > > > > Hi, > > > > > > On Tue, Aug 11, 2020 at 7:58 AM Greg Kroah-Hartman > > > wrote: > > >

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-12 Thread Doug Anderson
Hi, On Wed, Aug 12, 2020 at 7:53 AM Sumit Garg wrote: > > Hi Doug, > > On Tue, 11 Aug 2020 at 22:46, Doug Anderson wrote: > > > > Hi, > > > > On Tue, Aug 11, 2020 at 7:58 AM Greg Kroah-Hartman > > wrote: > > > > > > On Tue, Aug 11, 2020 at 07:59:24PM +0530, Sumit Garg wrote: > > > > Hi Greg, >

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-12 Thread Sumit Garg
Hi Doug, On Tue, 11 Aug 2020 at 22:46, Doug Anderson wrote: > > Hi, > > On Tue, Aug 11, 2020 at 7:58 AM Greg Kroah-Hartman > wrote: > > > > On Tue, Aug 11, 2020 at 07:59:24PM +0530, Sumit Garg wrote: > > > Hi Greg, > > > > > > Thanks for your comments. > > > > > > On Tue, 11 Aug 2020 at 19:27,

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-11 Thread Sumit Garg
On Tue, 11 Aug 2020 at 20:28, Greg Kroah-Hartman wrote: > > On Tue, Aug 11, 2020 at 07:59:24PM +0530, Sumit Garg wrote: > > Hi Greg, > > > > Thanks for your comments. > > > > On Tue, 11 Aug 2020 at 19:27, Greg Kroah-Hartman > > wrote: > > > > > > On Tue, Aug 11, 2020 at 07:20:26PM +0530, Sumit

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-11 Thread Doug Anderson
Hi, On Tue, Aug 11, 2020 at 7:58 AM Greg Kroah-Hartman wrote: > > On Tue, Aug 11, 2020 at 07:59:24PM +0530, Sumit Garg wrote: > > Hi Greg, > > > > Thanks for your comments. > > > > On Tue, 11 Aug 2020 at 19:27, Greg Kroah-Hartman > > wrote: > > > > > > On Tue, Aug 11, 2020 at 07:20:26PM +0530,

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-11 Thread Greg Kroah-Hartman
On Tue, Aug 11, 2020 at 07:59:24PM +0530, Sumit Garg wrote: > Hi Greg, > > Thanks for your comments. > > On Tue, 11 Aug 2020 at 19:27, Greg Kroah-Hartman > wrote: > > > > On Tue, Aug 11, 2020 at 07:20:26PM +0530, Sumit Garg wrote: > > > On Tue, 21 Jul 2020 at 17:40, Sumit Garg wrote: > > > > >

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-11 Thread Sumit Garg
Hi Greg, Thanks for your comments. On Tue, 11 Aug 2020 at 19:27, Greg Kroah-Hartman wrote: > > On Tue, Aug 11, 2020 at 07:20:26PM +0530, Sumit Garg wrote: > > On Tue, 21 Jul 2020 at 17:40, Sumit Garg wrote: > > > > > > Make it possible for UARTs to trigger magic sysrq from an NMI. With the > >

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-11 Thread Greg Kroah-Hartman
On Tue, Aug 11, 2020 at 07:20:26PM +0530, Sumit Garg wrote: > On Tue, 21 Jul 2020 at 17:40, Sumit Garg wrote: > > > > Make it possible for UARTs to trigger magic sysrq from an NMI. With the > > advent of pseudo NMIs on arm64 it became quite generic to request serial > > device interrupt as an NMI

Re: [RFC 0/5] Introduce NMI aware serial drivers

2020-08-11 Thread Sumit Garg
On Tue, 21 Jul 2020 at 17:40, Sumit Garg wrote: > > Make it possible for UARTs to trigger magic sysrq from an NMI. With the > advent of pseudo NMIs on arm64 it became quite generic to request serial > device interrupt as an NMI rather than IRQ. And having NMI driven serial > RX will allow us to

[RFC 0/5] Introduce NMI aware serial drivers

2020-07-21 Thread Sumit Garg
Make it possible for UARTs to trigger magic sysrq from an NMI. With the advent of pseudo NMIs on arm64 it became quite generic to request serial device interrupt as an NMI rather than IRQ. And having NMI driven serial RX will allow us to trigger magic sysrq as an NMI and hence drop into kernel