Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3384413ioa; Tue, 26 Apr 2022 02:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfp+7jyLIBfCuaK3BM4hEosL9dd62zoDKYriTUYDWznt9WEDqVYyrKcObEXIALAv1IWgnw X-Received: by 2002:a17:90b:3445:b0:1d6:91a5:29fe with SMTP id lj5-20020a17090b344500b001d691a529femr28664097pjb.138.1650965450526; Tue, 26 Apr 2022 02:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650965450; cv=none; d=google.com; s=arc-20160816; b=JVOt0djY3Hut95MfrfYzhWUmPdWO3feB721T9bOzX+F4CSkDOFgIS5IrbY2FW+pAwn fNpnFP5nydUmugaWptdzTXxZQ5IqNiIcv/qsthFSp+zfT8frSZ/3pQz5QE8mA47H8ehU g0ugnNuc2yy7QnT3/Oa0X+2XS9Vikz+7pmhfym7K5eTLvuqloosiNauHRREqBLx1aQEV 7SS8p6O6szy2p/4kFIMn4IS4seH3+tGEjfUNt5XgiQwKO/msHmGE+lW/dSKlaicru9Gw yXwk3O05u5D+gj1T0n7iDgxf1Q8YcpL3V4NXcnAhkxSDq/JTB5lhWYtp8JxvhnCfHOr2 ygBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:sender:hmm_source_type:hmm_attache_num:hmm_source_ip; bh=WFZR0Qxr+CNXKvErlF8/UElacCPfAYxXRf8JlaBy9aE=; b=WuiTbuUMnKchZK1C8lLhWkLso4XlmcIdSAJoQ4/l8InWsLmQun3dmlOLBvA2zab22G v9oip8gZoqYMU6b85Rgaw8IhcN4I3FwSld4y0XtA18daeXwQL5PIj0csvEfncnrUS+QW KpgTZQimuoD2YpDL3lmVQqJ5HUfYrLjURuL3Ik38lfuAtzKegh372AdGGXXKnSZSbovU Xzt4/secI4ACCg8JvVJWotUGkT+Om3EG1CLg2yZfCuVioAviaFfW7g69Uf+Z/8elQrwZ VC286gzkQLVkEFomeWpGahTdAUQYXfKlPBT29x4nB8CetG1SKeQstb8TDDiWuVb+HFqh PuzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f29-20020a631f1d000000b0039d20aca3f3si18888474pgf.431.2022.04.26.02.30.33; Tue, 26 Apr 2022 02:30:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243475AbiDZDjL (ORCPT + 99 others); Mon, 25 Apr 2022 23:39:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243408AbiDZDiz (ORCPT ); Mon, 25 Apr 2022 23:38:55 -0400 Received: from chinatelecom.cn (prt-mail.chinatelecom.cn [42.123.76.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8004D3A182; Mon, 25 Apr 2022 20:35:45 -0700 (PDT) HMM_SOURCE_IP: 172.18.0.188:49938.983364622 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-202.80.192.39 (unknown [172.18.0.188]) by chinatelecom.cn (HERMES) with SMTP id B34B62800DC; Tue, 26 Apr 2022 11:35:42 +0800 (CST) X-189-SAVE-TO-SEND: +liuxp11@chinatelecom.cn Received: from ([172.18.0.188]) by app0023 with ESMTP id 20f56f595bf9421ea7f1d4939b6d8979 for wim@linux-watchdog.org; Tue, 26 Apr 2022 11:35:44 CST X-Transaction-ID: 20f56f595bf9421ea7f1d4939b6d8979 X-Real-From: liuxp11@chinatelecom.cn X-Receive-IP: 172.18.0.188 X-MEDUSA-Status: 0 Sender: liuxp11@chinatelecom.cn From: Liu Xinpeng To: wim@linux-watchdog.org, linux@roeck-us.net Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Liu Xinpeng Subject: [PATCH v3 2/4] watchdog: wdat_wdg: Stop watchdog when rebooting the system Date: Tue, 26 Apr 2022 11:35:18 +0800 Message-Id: <1650944120-30954-3-git-send-email-liuxp11@chinatelecom.cn> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1650944120-30954-1-git-send-email-liuxp11@chinatelecom.cn> References: <1650944120-30954-1-git-send-email-liuxp11@chinatelecom.cn> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Executing reboot command several times on the machine "Dell PowerEdge R740", UEFI security detection stopped machine with the following prompt: UEFI0082: The system was reset due to a timeout from the watchdog timer. Check the System Event Log (SEL) or crash dumps from Operating Sysstem to identify the source that triggered the watchdog timer reset. Update the firmware or driver for the identified device. iDRAC has warning event: "The watchdog timer reset the system". This patch fixes this issue by adding the reboot notifier. Signed-off-by: Liu Xinpeng --- drivers/watchdog/wdat_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/wdat_wdt.c b/drivers/watchdog/wdat_wdt.c index 3040a0554055..609922ed4744 100644 --- a/drivers/watchdog/wdat_wdt.c +++ b/drivers/watchdog/wdat_wdt.c @@ -463,6 +463,7 @@ static int wdat_wdt_probe(struct platform_device *pdev) return ret; watchdog_set_nowayout(&wdat->wdd, nowayout); + watchdog_stop_on_reboot(&wdat->wdd); return devm_watchdog_register_device(dev, &wdat->wdd); } -- 2.23.0