LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 0/1] watchdog/hpwdt: Claim NMIs generated by iLO5
@ 2018-05-03 21:00 Jerry Hoemann
  2018-05-03 21:00 ` [PATCH 1/1] watchdog: hpwdt: " Jerry Hoemann
  0 siblings, 1 reply; 3+ messages in thread
From: Jerry Hoemann @ 2018-05-03 21:00 UTC (permalink / raw)
  To: wim, linux; +Cc: linux-watchdog, linux-kernel, Jerry Hoemann

Guenter,

In v4 of my Febuary patch series:

	https://lkml.org/lkml/2018/2/25/201

I had a merge error in hpwdt.c that causes hpwdt to not claim
NMIs that it should on iLO5 (i.e. Gen10) systems.

The Feb patches were recently picked up for 4.17-rc2.

Not sure the appropriate action here.

The merge error ocurred on:
	https://lkml.org/lkml/2018/2/25/203
And was carried forward through out the remaining patches
in the series.

We could ask for patches to be reverted and reworked. Or,
we can apply a 1-line fix.

If the latter, here is the 1-line fix.

Jerry Hoemann (1):
  watchdog: hpwdt: Claim NMIs generated by iLO5

 drivers/watchdog/hpwdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] watchdog: hpwdt: Claim NMIs generated by iLO5
  2018-05-03 21:00 [PATCH 0/1] watchdog/hpwdt: Claim NMIs generated by iLO5 Jerry Hoemann
@ 2018-05-03 21:00 ` Jerry Hoemann
  2018-05-03 21:20   ` Guenter Roeck
  0 siblings, 1 reply; 3+ messages in thread
From: Jerry Hoemann @ 2018-05-03 21:00 UTC (permalink / raw)
  To: wim, linux; +Cc: linux-watchdog, linux-kernel, Jerry Hoemann

On iLO5 going forward we want to return and not claim the NMI, if
the NMI was NOT gnerated by the iLO as a result of the watchdog
timing out or an explicit generate NMI.

The sense of the test in is inverted and prevents hpwdt_pretimeout
from claiming NMIs when it should.

Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
---
 drivers/watchdog/hpwdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c
index a43ab2cecca2..9dc62a461451 100644
--- a/drivers/watchdog/hpwdt.c
+++ b/drivers/watchdog/hpwdt.c
@@ -159,7 +159,7 @@ static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs)
 		"3. OA Forward Progress Log\n"
 		"4. iLO Event Log";
 
-	if (ilo5 && ulReason == NMI_UNKNOWN && mynmi)
+	if (ilo5 && ulReason == NMI_UNKNOWN && !mynmi)
 		return NMI_DONE;
 
 	if (ilo5 && !pretimeout)
-- 
2.13.6

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] watchdog: hpwdt: Claim NMIs generated by iLO5
  2018-05-03 21:00 ` [PATCH 1/1] watchdog: hpwdt: " Jerry Hoemann
@ 2018-05-03 21:20   ` Guenter Roeck
  0 siblings, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2018-05-03 21:20 UTC (permalink / raw)
  To: Jerry Hoemann; +Cc: wim, linux-watchdog, linux-kernel

On Thu, May 03, 2018 at 03:00:55PM -0600, Jerry Hoemann wrote:
> On iLO5 going forward we want to return and not claim the NMI, if
> the NMI was NOT gnerated by the iLO as a result of the watchdog
> timing out or an explicit generate NMI.
> 
> The sense of the test in is inverted and prevents hpwdt_pretimeout
> from claiming NMIs when it should.
> 
> Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>

Fixes: a042229a18ac ("watchdog: hpwdt: Update nmi_panic message.")
Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> ---
>  drivers/watchdog/hpwdt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c
> index a43ab2cecca2..9dc62a461451 100644
> --- a/drivers/watchdog/hpwdt.c
> +++ b/drivers/watchdog/hpwdt.c
> @@ -159,7 +159,7 @@ static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs)
>  		"3. OA Forward Progress Log\n"
>  		"4. iLO Event Log";
>  
> -	if (ilo5 && ulReason == NMI_UNKNOWN && mynmi)
> +	if (ilo5 && ulReason == NMI_UNKNOWN && !mynmi)
>  		return NMI_DONE;
>  
>  	if (ilo5 && !pretimeout)
> -- 
> 2.13.6
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-03 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 21:00 [PATCH 0/1] watchdog/hpwdt: Claim NMIs generated by iLO5 Jerry Hoemann
2018-05-03 21:00 ` [PATCH 1/1] watchdog: hpwdt: " Jerry Hoemann
2018-05-03 21:20   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).