Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-26 Thread Shuah Khan
On 09/26/2018 02:03 PM, Jerry Hoemann wrote: > On Wed, Sep 26, 2018 at 01:47:25PM -0600, Shuah Khan wrote: >> On 09/26/2018 10:29 AM, Jerry Hoemann wrote: >>> On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote: Hi Jerry, The rest looks good to me. >> >> I spoke too

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-26 Thread Shuah Khan
On 09/26/2018 02:03 PM, Jerry Hoemann wrote: > On Wed, Sep 26, 2018 at 01:47:25PM -0600, Shuah Khan wrote: >> On 09/26/2018 10:29 AM, Jerry Hoemann wrote: >>> On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote: Hi Jerry, The rest looks good to me. >> >> I spoke too

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-26 Thread Jerry Hoemann
On Wed, Sep 26, 2018 at 01:47:25PM -0600, Shuah Khan wrote: > On 09/26/2018 10:29 AM, Jerry Hoemann wrote: > > On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote: > >> Hi Jerry, > >> > >> > >> The rest looks good to me. > > I spoke too soon. I ran your patch on softdog and error messages

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-26 Thread Jerry Hoemann
On Wed, Sep 26, 2018 at 01:47:25PM -0600, Shuah Khan wrote: > On 09/26/2018 10:29 AM, Jerry Hoemann wrote: > > On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote: > >> Hi Jerry, > >> > >> > >> The rest looks good to me. > > I spoke too soon. I ran your patch on softdog and error messages

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-26 Thread Shuah Khan
On 09/26/2018 10:29 AM, Jerry Hoemann wrote: > On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote: >> Hi Jerry, >> >> On 09/24/2018 01:36 PM, Jerry Hoemann wrote: >>> {"disable", no_argument, NULL, 'd'}, >>> @@ -27,6 +27,9 @@ >>> {"help",no_argument,

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-26 Thread Shuah Khan
On 09/26/2018 10:29 AM, Jerry Hoemann wrote: > On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote: >> Hi Jerry, >> >> On 09/24/2018 01:36 PM, Jerry Hoemann wrote: >>> {"disable", no_argument, NULL, 'd'}, >>> @@ -27,6 +27,9 @@ >>> {"help",no_argument,

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-26 Thread Jerry Hoemann
On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote: > Hi Jerry, > > On 09/24/2018 01:36 PM, Jerry Hoemann wrote: > > {"disable", no_argument, NULL, 'd'}, > > @@ -27,6 +27,9 @@ > > {"help",no_argument, NULL, 'h'}, > > {"pingrate",

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-26 Thread Jerry Hoemann
On Tue, Sep 25, 2018 at 02:51:15PM -0600, Shuah Khan wrote: > Hi Jerry, > > On 09/24/2018 01:36 PM, Jerry Hoemann wrote: > > {"disable", no_argument, NULL, 'd'}, > > @@ -27,6 +27,9 @@ > > {"help",no_argument, NULL, 'h'}, > > {"pingrate",

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-25 Thread Shuah Khan
Hi Jerry, On 09/24/2018 01:36 PM, Jerry Hoemann wrote: > Add command line arguments to call ioctl WDIOC_GETTIMEOUT, > WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. > > Signed-off-by: Jerry Hoemann > --- > tools/testing/selftests/watchdog/watchdog-test.c | 33 > +++- > 1

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-25 Thread Shuah Khan
Hi Jerry, On 09/24/2018 01:36 PM, Jerry Hoemann wrote: > Add command line arguments to call ioctl WDIOC_GETTIMEOUT, > WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. > > Signed-off-by: Jerry Hoemann > --- > tools/testing/selftests/watchdog/watchdog-test.c | 33 > +++- > 1

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-25 Thread Jerry Hoemann
Shuah, Wrote this yesterday, and wanted to proof it before sending. I got your other email earlier and replied to specific point on permission of /dev/watchdog, so some of this is now redundant. - With the potential exception of error path, I think my v2 of the patch

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-25 Thread Jerry Hoemann
Shuah, Wrote this yesterday, and wanted to proof it before sending. I got your other email earlier and replied to specific point on permission of /dev/watchdog, so some of this is now redundant. - With the potential exception of error path, I think my v2 of the patch

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-25 Thread Jerry Hoemann
On Tue, Sep 25, 2018 at 09:50:18AM -0600, Shuah Khan wrote: > >>> Also can you run this test as normal user? > >> > >> No. Must be run as root to open /dev/watchdog. When /dev/watchdog is > >> opened, the > >> WD is started and if not updated properly, the system will crash. > > > > Hmm. I

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-25 Thread Jerry Hoemann
On Tue, Sep 25, 2018 at 09:50:18AM -0600, Shuah Khan wrote: > >>> Also can you run this test as normal user? > >> > >> No. Must be run as root to open /dev/watchdog. When /dev/watchdog is > >> opened, the > >> WD is started and if not updated properly, the system will crash. > > > > Hmm. I

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-25 Thread Shuah Khan
On 09/24/2018 02:42 PM, Shuah Khan wrote: > On 09/23/2018 07:47 PM, Jerry Hoemann wrote: >> On Fri, Sep 21, 2018 at 05:42:00PM -0600, Shuah Khan wrote: >>> Hi Jerry, >>> >>> Thanks for the patch. A few comments below: >> >> Replies inline. >> >>> >>> On 09/21/2018 04:55 PM, Jerry Hoemann wrote:

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-25 Thread Shuah Khan
On 09/24/2018 02:42 PM, Shuah Khan wrote: > On 09/23/2018 07:47 PM, Jerry Hoemann wrote: >> On Fri, Sep 21, 2018 at 05:42:00PM -0600, Shuah Khan wrote: >>> Hi Jerry, >>> >>> Thanks for the patch. A few comments below: >> >> Replies inline. >> >>> >>> On 09/21/2018 04:55 PM, Jerry Hoemann wrote:

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-24 Thread Shuah Khan
On 09/23/2018 07:47 PM, Jerry Hoemann wrote: > On Fri, Sep 21, 2018 at 05:42:00PM -0600, Shuah Khan wrote: >> Hi Jerry, >> >> Thanks for the patch. A few comments below: > > Replies inline. > >> >> On 09/21/2018 04:55 PM, Jerry Hoemann wrote: >>> Add command line arguments to call ioctl

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-24 Thread Shuah Khan
On 09/23/2018 07:47 PM, Jerry Hoemann wrote: > On Fri, Sep 21, 2018 at 05:42:00PM -0600, Shuah Khan wrote: >> Hi Jerry, >> >> Thanks for the patch. A few comments below: > > Replies inline. > >> >> On 09/21/2018 04:55 PM, Jerry Hoemann wrote: >>> Add command line arguments to call ioctl

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-24 Thread Shuah Khan
On 09/24/2018 01:36 PM, Jerry Hoemann wrote: > Add command line arguments to call ioctl WDIOC_GETTIMEOUT, > WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. > > Changes v2 > 1) Update usage to include argument > 2) Update usage to give example. > 3) Made printf of WDIOC_GETTIMEOUT distinct from

Re: [V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-24 Thread Shuah Khan
On 09/24/2018 01:36 PM, Jerry Hoemann wrote: > Add command line arguments to call ioctl WDIOC_GETTIMEOUT, > WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. > > Changes v2 > 1) Update usage to include argument > 2) Update usage to give example. > 3) Made printf of WDIOC_GETTIMEOUT distinct from

[V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-24 Thread Jerry Hoemann
Add command line arguments to call ioctl WDIOC_GETTIMEOUT, WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. Signed-off-by: Jerry Hoemann --- tools/testing/selftests/watchdog/watchdog-test.c | 33 +++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git

[V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-24 Thread Jerry Hoemann
Add command line arguments to call ioctl WDIOC_GETTIMEOUT, WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. Signed-off-by: Jerry Hoemann --- tools/testing/selftests/watchdog/watchdog-test.c | 33 +++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git

[V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-24 Thread Jerry Hoemann
Add command line arguments to call ioctl WDIOC_GETTIMEOUT, WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. Changes v2 1) Update usage to include argument 2) Update usage to give example. 3) Made printf of WDIOC_GETTIMEOUT distinct from WDIOC_SETTIMEOUT 4) Made WDIOC_GETTIMEOUT a "one shot" 5)

[V2 PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-24 Thread Jerry Hoemann
Add command line arguments to call ioctl WDIOC_GETTIMEOUT, WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. Changes v2 1) Update usage to include argument 2) Update usage to give example. 3) Made printf of WDIOC_GETTIMEOUT distinct from WDIOC_SETTIMEOUT 4) Made WDIOC_GETTIMEOUT a "one shot" 5)

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-23 Thread Jerry Hoemann
On Fri, Sep 21, 2018 at 05:42:00PM -0600, Shuah Khan wrote: > Hi Jerry, > > Thanks for the patch. A few comments below: Replies inline. > > On 09/21/2018 04:55 PM, Jerry Hoemann wrote: > > Add command line arguments to call ioctl WDIOC_GETTIMEOUT, > > WDIOC_GETPRETIMEOUT and

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-23 Thread Jerry Hoemann
On Fri, Sep 21, 2018 at 05:42:00PM -0600, Shuah Khan wrote: > Hi Jerry, > > Thanks for the patch. A few comments below: Replies inline. > > On 09/21/2018 04:55 PM, Jerry Hoemann wrote: > > Add command line arguments to call ioctl WDIOC_GETTIMEOUT, > > WDIOC_GETPRETIMEOUT and

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-21 Thread Shuah Khan
Hi Jerry, Thanks for the patch. A few comments below: On 09/21/2018 04:55 PM, Jerry Hoemann wrote: > Add command line arguments to call ioctl WDIOC_GETTIMEOUT, > WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. > > Signed-off-by: Jerry Hoemann > --- >

Re: [PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-21 Thread Shuah Khan
Hi Jerry, Thanks for the patch. A few comments below: On 09/21/2018 04:55 PM, Jerry Hoemann wrote: > Add command line arguments to call ioctl WDIOC_GETTIMEOUT, > WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. > > Signed-off-by: Jerry Hoemann > --- >

[PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-21 Thread Jerry Hoemann
Add command line arguments to call ioctl WDIOC_GETTIMEOUT, WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. Signed-off-by: Jerry Hoemann --- tools/testing/selftests/watchdog/watchdog-test.c | 30 +++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git

[PATCH] selftests: watchdog: Add gettimeout and get|set pretimeout

2018-09-21 Thread Jerry Hoemann
Add command line arguments to call ioctl WDIOC_GETTIMEOUT, WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT. Signed-off-by: Jerry Hoemann --- tools/testing/selftests/watchdog/watchdog-test.c | 30 +++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git