Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2486264pxb; Mon, 18 Jan 2021 20:52:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2AQwVP//r5t4lFyZYPURqvCfZM0i4N/l4Dyc+PmxW29IZL0gc+ge5PgVrvQVlBhZt3A+y X-Received: by 2002:a17:906:dbe7:: with SMTP id yd7mr1849494ejb.71.1611031935953; Mon, 18 Jan 2021 20:52:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611031935; cv=none; d=google.com; s=arc-20160816; b=W0zwgLueYru6lnbqsmx96bejY9h4O3nRDxUj6JVws7IN08esjCySW2fLO5wicNtq4p hRzxJkfvxYUKM4Ap94CR8L/4/rUCMwn4GZoOakIQmDib5SXgrK43j3ZIG4qyLzLpkx6v 5bkKOsBcDfZuFsmxZE59wKnrxhVLxBGxKlMDZ3LNC/TKNxGolAcLCcIQ1ASHVRELheho bIuMdjkVaPomoNHOAbT49LmTGpUbHxoJdGoUD9ehk7YlyUq8XYo7CrkqeNNh8Pf9lHiL TPQYxjqQdQp5t+ckOgZUU0QzwSxvlDyZqVlhDVQ27T+R8XNDyT4FRtw7El811ftdFJgC xb/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=rtEV+yO5hUryVrfLNZRshRF3BazYXZlOEOzIhM8uokE=; b=LJpSicsx6hw3fWp7fZPPebuvjUTK9iW2iPuOy5uM6fJUsMFmWSwxVFuRyyfiHcZfSB DV3voEECa3xckcOz9gpACY9ie81PaJkU4HUv6Lj6sjWZJ5znaa71BFLnI1eWMDvkofr/ H/dp+P5hiMdBIqXIly79BaiOV1noEXzINu2PSVg8yyrm80ZIHDJkKLHk0SdqE88kjuSm Bkb0vEEyiDwf4dsLvoNswBHDzXfvu6hiKGJ+HMcZg1Pn7zk9Jnzi1BPPoRAlV81qAbSz KsbY6ijrKN+mSk7Jx6GVi8HYSUWeeljDVR2NXPCQoKw5GsxtHHuMSKQ3MMkYr+Z+9rYp h51g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=guRYV35X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si4362798eji.91.2021.01.18.20.51.52; Mon, 18 Jan 2021 20:52:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=guRYV35X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436658AbhARRnh (ORCPT + 99 others); Mon, 18 Jan 2021 12:43:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407154AbhARRkj (ORCPT ); Mon, 18 Jan 2021 12:40:39 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBE74C061573; Mon, 18 Jan 2021 09:39:58 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id e7so19092354ljg.10; Mon, 18 Jan 2021 09:39:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rtEV+yO5hUryVrfLNZRshRF3BazYXZlOEOzIhM8uokE=; b=guRYV35XTWl9ld5O144nAB/ZYsmBXhpzubFy8YZfybThYsmCspvbj5MNr8LyolLa2V /+ywk5PzIoM4GIo8GDaeFN+y6yK6pNIoWwrcErfN9p3o4wqR7LBZ5yRjOAmXNf09T4yO IfzJ2/cXyJRrQsykgn35+vZHR+r2PbebhBg8xYChgm8M3w+eYslmYHFuSJHgx7+YkQfn CP6jD9p41btVW45GCZEM/VbFDI+31FhII17Zj94LpFT8JdphP9LFL+kSms2RMLJeEBGD tXsFYWtTuPJzgbl57QUrfbSVFC74Oz81bNaE/78nK1peanmB1jCcrZNf39aWgT8DPcKC dSyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rtEV+yO5hUryVrfLNZRshRF3BazYXZlOEOzIhM8uokE=; b=YQVrxWKPIlc46G4szKic/0pZ+tlOfrJWdyKQAle4lZZEo5jj+Wz75qAlH0yuI5+k4u pez95dyxnlUEPqsYFZTXZ/3SXfqS/P5hSpXHnm6689mNvGDUiUjBRlmLN/5fObz8qcYX myYKeB06nnTftab1VadKmMjQRRNrlTGQyCb1T/5esrlv0ZbnCe8P7PFpidFLIqk31h8L UMIhMY5f3kblS5z7sLJT0W+ca7sOQv7hz4PzeCAZ1JMXRgszRtI2aVv2QVSfLuJ9GG1g t4dX4OWbv4NFSw7oReSW08qEkpyNJjdGOFujklg7d+03XwLHRNCYb2lXS03qAJ4HNHPx EUbQ== X-Gm-Message-State: AOAM533yJ5LAYppxehT63kxuTR0AXFVEI1S7/u8A09OjNsZ76LskJIiU qPaG7r9wUj8jJMLPo7d1EPfO+/DXZWV/erJDkE6yf5SXW0zpAg== X-Received: by 2002:a05:651c:3ca:: with SMTP id f10mr305984ljp.508.1610991597284; Mon, 18 Jan 2021 09:39:57 -0800 (PST) MIME-Version: 1.0 From: Paul Thomas Date: Mon, 18 Jan 2021 12:39:45 -0500 Message-ID: Subject: watchdog: watchdog_stop_on_reboot() To: Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org, linux-kernel , Michal Simek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I'm going through our out-of-tree commits, and was wondering if there is anything to be done with this one. Basically we remove both watchdog_stop_on_reboot() calls (not sure why there are two to begin with): --- a/drivers/watchdog/cadence_wdt.c +++ b/drivers/watchdog/cadence_wdt.c @@ -330,7 +330,6 @@ static int cdns_wdt_probe(struct platform_device *pdev) watchdog_init_timeout(cdns_wdt_device, wdt_timeout, dev); watchdog_set_nowayout(cdns_wdt_device, nowayout); - watchdog_stop_on_reboot(cdns_wdt_device); watchdog_set_drvdata(cdns_wdt_device, wdt); wdt->clk = devm_clk_get(dev, NULL); @@ -359,7 +358,6 @@ static int cdns_wdt_probe(struct platform_device *pdev) spin_lock_init(&wdt->io_lock); - watchdog_stop_on_reboot(cdns_wdt_device); watchdog_stop_on_unregister(cdns_wdt_device); ret = devm_watchdog_register_device(dev, cdns_wdt_device); if (ret) This seems to save us in certain conditions where the Software System Reset fails[1]. I'm not sure if there's other use cases where you really do want the watchdog to stop on reboot? This is on an arm64 Zyny Ultrascale+ platform. -Paul [1] The one reproducible example of the Software System Reset failing I have for our system is after a kernel oops from removing the xilinx_dma module. https://lore.kernel.org/lkml/CAD56B7d_9+0XuOBysxW=CADLTG_7RybBTM8hCYKSigB8ie8E_g@mail.gmail.com/