Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp444336iog; Mon, 13 Jun 2022 06:07:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNDhhvHbo4H7AcWoOo1IjHLlFk+fcuTLj8SKnYyRtoaXWPTdNeFB7VVYt3S4yweRFURnlH X-Received: by 2002:a17:902:b909:b0:167:8c44:9bc1 with SMTP id bf9-20020a170902b90900b001678c449bc1mr35861097plb.47.1655125646879; Mon, 13 Jun 2022 06:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125646; cv=none; d=google.com; s=arc-20160816; b=A4ZhsIiGxiqbPnhdDVAAJ66QnPOMmQXa0rmjNRtcjFKWwQrIbrEp0TYIfTJFC3jg86 JORU3rmZMce70YXe4u905uaX475gtnLLGPVa8gDWobpwmZ6Dx+9+nCG7A7t+b4h0Wzqm TNTgHA4d3BUKVtkXs9+OTxi8qWNWZ6okUaWmtg8m1+ZL0xXPAHQHAZfJOREuklAOTyHl LinV0AbgUgxUy1WoKO/B7B/nR0uT05Zkozoktc/UmcEMtR66QpHK/f5fDgXHxpAfVNbv Jywo3E0qo805pgi12xqNzdwd8eiHSPZr+LcPzlsuRIcBZBXCpfsRbaxLuF3T4+JG9tY0 +krQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=b/Nr6LETG+HCJjGgFNH9jZTB70OmFcxWI3aG4DgGHIQ=; b=XR9a2054bvfKvPztiFjXbCazKkwCpCkihnQIXcZeegRdYzRGgyKsix33DGfEmkYaiv Upeo7krkb1RQXWH85i1E9mKbeIeYhelwS6FbxzAk8eLVLGvtD4ra0E/PXc++D3rbnlax 4it7IwjCYgj69GkJEj4cmMKDRWLm32R3x41SYvcg777p06a3+jUZ9bxQrAhz63Nw8MaB EHVPy/nPOnAMWYgC6SAX7Avv8Pv3eHpLve4PjC2WWrxdZrWA4vdhPTOd0aMDlDrsVLLD J31PZa0QpSaI1p6DKHdbPH2mDSOVhuqqJf6jxYGdVVZOkMvxRhDiEPwQOwn5tCjunR6l 03aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u6Kjwg1v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a170902d4c300b001640bf93e63si11164444plg.206.2022.06.13.06.07.11; Mon, 13 Jun 2022 06:07:26 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u6Kjwg1v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356526AbiFMLul (ORCPT + 99 others); Mon, 13 Jun 2022 07:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356828AbiFMLpF (ORCPT ); Mon, 13 Jun 2022 07:45:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABA6848E40; Mon, 13 Jun 2022 03:51:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0A79FB80EA7; Mon, 13 Jun 2022 10:51:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AF26C3411E; Mon, 13 Jun 2022 10:51:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117476; bh=Qr/a7JxWet4zrfzFhaoHyLcEpfD+S1KNXH/SrrqH+gw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u6Kjwg1v6AYlsKOgscrwAlk7zesnDXX2ev3d14h9hM5tzZWjdezfyphgRaYziuXGK e0pZGhVvl2hODBe06Ws+q8GZr/enThTUke8bHwZkabFLMOJ0Qzsw+728KyhoCq89u3 1UUAip0cRaPokbJsBzP1qSsS8bZbC9ugpfBELtGg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liu Xinpeng , Guenter Roeck , Wim Van Sebroeck , Sasha Levin Subject: [PATCH 5.4 384/411] watchdog: wdat_wdt: Stop watchdog when rebooting the system Date: Mon, 13 Jun 2022 12:10:57 +0200 Message-Id: <20220613094940.182400517@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Liu Xinpeng [ Upstream commit 27fdf84510a1374748904db43f6755f912736d92 ] 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 Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/1650984810-6247-3-git-send-email-liuxp11@chinatelecom.cn Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Sasha Levin --- 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 88c5e6361aa0..fddbb39433be 100644 --- a/drivers/watchdog/wdat_wdt.c +++ b/drivers/watchdog/wdat_wdt.c @@ -462,6 +462,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.35.1