lkml.org 
[lkml]   [2018]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/4] watchdog: hpwdt: Claim NMI from iLO
    Date
    The hwpdt driver is overloaded for handling both the iLO
    watchdog and the explicit "Generate NMI to System" virutal
    button.

    Claim the iLO NMI virtual button even if we are not claiming
    the iLO watchdog pretimeout.

    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 369022d..8a85ddd 100644
    --- a/drivers/watchdog/hpwdt.c
    +++ b/drivers/watchdog/hpwdt.c
    @@ -162,7 +162,7 @@ static int hpwdt_pretimeout(unsigned int ulReason, struct pt_regs *regs)
    if (ilo5 && ulReason == NMI_UNKNOWN && !mynmi)
    return NMI_DONE;

    - if (ilo5 && !pretimeout)
    + if (ilo5 && !pretimeout && !(mynmi & 0x4))
    return NMI_DONE;

    hpwdt_stop();
    --
    1.8.3.1
    \
     
     \ /
      Last update: 2018-08-02 23:25    [W:2.898 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site