Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2482470rwb; Fri, 5 Aug 2022 23:14:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR5jSs7ZEcbxp9PfRWB4CrUy0/zU0Zte9toxtoreP8ERUWyKq9q+nIjzSmOqcMo3vZECCmeN X-Received: by 2002:a17:907:60c8:b0:730:9efe:ecbd with SMTP id hv8-20020a17090760c800b007309efeecbdmr7180537ejc.90.1659766480877; Fri, 05 Aug 2022 23:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659766480; cv=none; d=google.com; s=arc-20160816; b=RD/PaMs9glMDwyHLXpUX9HvuqUddfAEphDz5mnGTWoUqyHz8BKInJsGGxPaqWCqv6J b1g01CcljWJWaIbzQgJqzW7/OOFwtcLZbuydp09ywha66Wqfu7kHEoipmln4oo7ZV/aS ru0nZEdE4bV+cPcbBqv9E128w/oYAx2i2llYtkCJyE8cTPLOKgUZhNOxshGPD0h4vKxm 5yOEq2QzQS/JVU5sGQ/W2ph8zK9phoOBatpKvBDcpjKOQo6skkdMdqDj0//rzBlQD794 nmjEpB8OY8V6kgce5NbMOE7K9i9n6BoOljN7+f5Y8sz19zPiNGesEbnGVMiGS/uKK1eD XdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fNqxlGvzsIIjzZL+pIHGfZD5CZ1QyiWALK+Hker/N40=; b=09RjHVYrWxcaCK0Vwql5x86qs227zAte6trQ4wafxsUXtwJkQ08Ko1R5PWnTqLxQ+M EMcYnQBrFKCwQ2pYTUgBSO+7IeZTW8ulfH1fucFf1IKIn2EkXjdD0sZdgll4+ezUpl4n v4sMxi7M+FU6WGUypIqZzISU3HXftZkFgHgCaaYe5Zl6LcwOGAPQHyK+jesSLEkIB3bZ 9GrkVr55H2QaYE3vCv0wI8zxlIRfhBayN8HtuwlBLPS5rMmHJffuDx2Jy0O7dWgRKJq8 5W0JUPdXHEb6bnJwB0/txp8qWEbWZ91LOCkEBnILCaL5crho+SOQ22zcMwi3noVczVRq B2gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UD6JeEYg; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a056402120c00b0043d71e04b1dsi1309560edw.233.2022.08.05.23.14.15; Fri, 05 Aug 2022 23:14:40 -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=@intel.com header.s=Intel header.b=UD6JeEYg; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238445AbiHFGBd (ORCPT + 99 others); Sat, 6 Aug 2022 02:01:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbiHFGBa (ORCPT ); Sat, 6 Aug 2022 02:01:30 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEF1412ADA; Fri, 5 Aug 2022 23:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659765687; x=1691301687; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=U/SwseuymD6gqKnxn8AIA5OHSAkfqCq30LwXPcgnVr0=; b=UD6JeEYgK8JulKX9f+B+M1QAnoibwa2zqqjM86yYq7clu88yLlsEE9Ky PaVipmKlLLKHNyJwuobV22ztx3TCeOjFs+Q2CUDW/TPFD11WmiGK0xdci 3bB37ff43E6u0whxXy28Sz6LKNiBHpDgYscb0prBehZ1nytj2n3G9XqSl UujcVACttCciYoBCjZF1P0mtTTbOEibz1sjv1VEI1gkpO3Mf9wXijiAYs P64rmQF0uBRLO+tISN0u79zQI6edZTQVNV++PpIw820tMCOUnHLSs0Gym 1vkXObZ5UaYzL2glxiUpVT1LfQQR6PIg/rIHh2QuwYqubJCYcCGSjzdQD w==; X-IronPort-AV: E=McAfee;i="6400,9594,10430"; a="290351812" X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="290351812" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2022 23:01:27 -0700 X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="663266524" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.162]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2022 23:01:24 -0700 Received: by lahna (sSMTP sendmail emulation); Sat, 06 Aug 2022 09:01:22 +0300 Date: Sat, 6 Aug 2022 09:01:22 +0300 From: Mika Westerberg To: Jean Delvare Cc: linux-watchdog@vger.kernel.org, LKML , Wim Van Sebroeck , Guenter Roeck , "Rafael J. Wysocki" Subject: Re: [PATCH] watchdog: wdat_wdt: Set the min and max timeout values properly Message-ID: References: <20220806000706.3eeafc9c@endymion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220806000706.3eeafc9c@endymion.delvare> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,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 On Sat, Aug 06, 2022 at 12:07:06AM +0200, Jean Delvare wrote: > The wdat_wdt driver is misusing the min_hw_heartbeat_ms field. This > field should only be used when the hardware watchdog device should not > be pinged more frequently than a specific period. The ACPI WDAT > "Minimum Count" field, on the other hand, specifies the minimum > timeout value that can be set. This corresponds to the min_timeout > field in Linux's watchdog infrastructure. > > Setting min_hw_heartbeat_ms instead can cause pings to the hardware > to be delayed when there is no reason for that, eventually leading to > unexpected firing of the watchdog timer (and thus unexpected reboot). > > I'm also changing max_hw_heartbeat_ms to max_timeout for symmetry, > although the use of this one isn't fundamentally wrong, but there is > also no reason to enable the software-driven ping mechanism for the > wdat_wdt driver. > > Signed-off-by: Jean Delvare > Fixes: 058dfc767008 ("ACPI / watchdog: Add support for WDAT hardware watchdog") > Cc: Wim Van Sebroeck > Cc: Guenter Roeck > Cc! Mika Westerberg Reviewed-by: Mika Westerberg