Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3423869ioa; Tue, 26 Apr 2022 03:29:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRNXsuN3XDM5dLELaTGJGCsZUFo9Ersj/MoHOatLoxem68LLDd0OVr/AE8jG4csEAEOKxD X-Received: by 2002:a17:906:c156:b0:6f3:9e3c:5cc8 with SMTP id dp22-20020a170906c15600b006f39e3c5cc8mr6936113ejc.17.1650968948144; Tue, 26 Apr 2022 03:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650968948; cv=none; d=google.com; s=arc-20160816; b=ulKVtimlBN4O4Le0EwvcNx7sMNqoXF5xVDvAVf7tFfhvcrWt2/kdXYNvf89FKiEiOP A0YIddvR4+Sg6N9Kh+wnUJ2gN6IY/2WBJFf6KcS5rqIK/9+nPAmrdlRuYJ+89pjxnNUs tBDN1jCNMUVmpCJYYWiUyB5/3hEID1NpjIbAqCV85hPvhc/KcUCKMDWlhgfSsI1fneym ieD5l5BPgNFtJ11GTX+fq5i1R2ZVEPMzp4AWLB4CB3sr7Ye10wK+141XRwm5m8o9cAOd GGAlvrZUEjSV72xCp5q0gA27hV6NmV+YLSgHXYG8joPwG0uus4KoWxCO7KNbyS/MeKqU hi6A== 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=GSbflpnfcjInX7LUO4pc+szDburVCvRLSv3RVWAza6M=; b=nQ1qEuJNC+Lm0hlkB3ODTrcIUqw4N6ZeySyYwMQBySQZwdz8TlOtmHz61g0h07Ys/1 2nA9VGbdVT7U9CdlW/9LoUewYBP6K5O7y9R5/jyW/vCDo+pD88WfNMz58WAsn5x23eoH QtO0ycIlzFo9spb1WdjmtkovfCQVDWnJBFTmG7SP5ueVrq+ncAe/ujm6hfZvzKxE0tGT HFCBZukmHKmzXTRR8NvfoTR8HbIyY9BjDzHt4Wbb10HjmEZhpoVWM5+LtVxv+WluMzcP bUj967hZri262pkODsKwluB5swIVBpV09uoFif46q5/egj1+AcC2w8H2kNBxxuIOHKsU SQlQ== 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 j11-20020a50ed0b000000b00425d43b058csi7221246eds.368.2022.04.26.03.28.44; Tue, 26 Apr 2022 03:29:08 -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 S1343643AbiDZHGw (ORCPT + 99 others); Tue, 26 Apr 2022 03:06:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343616AbiDZHGi (ORCPT ); Tue, 26 Apr 2022 03:06:38 -0400 Received: from chinatelecom.cn (prt-mail.chinatelecom.cn [42.123.76.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E994A6D4C0; Tue, 26 Apr 2022 00:03:30 -0700 (PDT) HMM_SOURCE_IP: 172.18.0.48:51254.2065698957 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-202.80.192.38 (unknown [172.18.0.48]) by chinatelecom.cn (HERMES) with SMTP id ED99028008F; Tue, 26 Apr 2022 15:03:27 +0800 (CST) X-189-SAVE-TO-SEND: +liuxp11@chinatelecom.cn Received: from ([172.18.0.48]) by app0024 with ESMTP id 01340970e1564cc285c864ea13158509 for wim@linux-watchdog.org; Tue, 26 Apr 2022 15:03:29 CST X-Transaction-ID: 01340970e1564cc285c864ea13158509 X-Real-From: liuxp11@chinatelecom.cn X-Receive-IP: 172.18.0.48 X-MEDUSA-Status: 0 Sender: liuxp11@chinatelecom.cn From: Liu Xinpeng To: wim@linux-watchdog.org, linux@roeck-us.net, tzungbi@kernel.org Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Liu Xinpeng Subject: [PATCH v4 2/4] watchdog: wdat_wdg: Stop watchdog when rebooting the system Date: Tue, 26 Apr 2022 15:03:06 +0800 Message-Id: <1650956588-795-3-git-send-email-liuxp11@chinatelecom.cn> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1650956588-795-1-git-send-email-liuxp11@chinatelecom.cn> References: <1650956588-795-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 9db01d165310..0ef2b918364a 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