Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2109016lqt; Mon, 22 Apr 2024 01:24:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqfp8Y3JCFzM8DxQuc07nmOESC3cj3nwErIdbrC6pAaSI6ZkJxpLKVKj+CrA20eVcbZGd2nMQp9g8oon0oatPoC2DutmogK00snlbqrw== X-Google-Smtp-Source: AGHT+IHn6KVmTBwYiAFfq2zzDbTK0IervmyqBVKDwbjbhEvNroSUqvJ8SVeHT+9HjhlRKV2YPfQW X-Received: by 2002:a05:6a21:3406:b0:1a3:64a9:11e5 with SMTP id yn6-20020a056a21340600b001a364a911e5mr8207574pzb.50.1713774259442; Mon, 22 Apr 2024 01:24:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713774259; cv=pass; d=google.com; s=arc-20160816; b=yEJbrIaZojkRHdi2oVXypsiag5OctbYJRbHZtn2I1l7RbYSJOUuDvDnIhGkrCKliQs NoM1VvFhvtkifCbublISDzvrnJSr1Bw5tgfGRISPnKMR++QOe3/KyjOODaDVgONO0dKb 1WbjIuE1gCF+O5HeD7Y0RGyHG6r55g55BuKX5rmeqoBwLLafAjMheAf2BzXFL6n9lGc2 msn8EJ/d9T1kdk82JJfz7WapsNVhl3Dvygh7Cyh3bbVV66n9J3G+p3mMN4vk08wNYyTj xszgrx4n7QV6EFqlzihlIHICD7p5eAX5PsPIsy+T0SX48zJnvlLkunKCG9N2jbLh1VOs azog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:references:in-reply-to :user-agent:subject:cc:to:from:date:dkim-signature; bh=qcmpMXK24ToMCaNq6MaE9YPrg0kGschS1HfQkrEgdi8=; fh=s7xC5EljxYQln++Q+0ys9xAidpGNHnxmnzhRVLrfhCo=; b=Ybd0/SyfENlouxauIKm+1S/ZCnK9ILdS5AQe0FxxamcC186OD4q34CmgR6hkOiifxh PbIfg8g4pDb4+7+X6MvY/rNTb3xfDg+sLwdDRJ5eZBcaAr6kQj8llZgMqR8YTc/mAY+z ZKoyNBykOkYrcBrTboBNQViMoABZIYEmSRCG6ANJKnDstgMFx5Jf4L66asVyu+WZ92zK XxystGsdiKXM5paZbeQFm7Nuq90C2Xdq+NJGu36YcKnzPipy4ysfIsB9HpenEOpDo79S Ri2m/9+o/boGXbtoPKh1B/7R7McF8ATjdzkXM5lXkylg7V1uY+WWJWH6Y5e7eFCQUGHk JUJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=lYJOwzDq; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-152968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o21-20020a637e55000000b005f059e58ea8si7655618pgn.466.2024.04.22.01.24.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 01:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=lYJOwzDq; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-152968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 99767B20397 for ; Mon, 22 Apr 2024 08:24:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68BD55027B; Mon, 22 Apr 2024 08:24:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="lYJOwzDq" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAE31482CA; Mon, 22 Apr 2024 08:23:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713774240; cv=none; b=IzYy6dSRrtCwJqbi4AvQjyUAWM6j2DFr9bfXD38d/CKBRrvpO5HVpC/yEqb7fccEboNIdrKHILTZKc6qipCrjblmic6dUtUCkChdyMzosNNAaE9G0Ye29e/B5D0MuTgJHMVgDGtjWlfCE6lALURZDdn830f2PFYPVNyLuhb+oig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713774240; c=relaxed/simple; bh=qcmpMXK24ToMCaNq6MaE9YPrg0kGschS1HfQkrEgdi8=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=MTrLBl3IZGJrzZEyr9ViA3ODfXQwo54S7gbmeJJk6SSZANEfK2+imKUXruqmwNAJion1FxK7Iq0Vkq870xbV41vEiYTsPq54uzMhS/oLHvN2h9CYX9Vvo2xikh/YLR82kyL14ZNO/hKVRPFn43xcfKKzJr/hjW9hCiQbLrTCkf8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=lYJOwzDq; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from [127.0.0.1] (unknown [62.19.35.7]) by mail11.truemail.it (Postfix) with ESMTPA id 2C01D1FE18; Mon, 22 Apr 2024 10:23:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1713774235; bh=qcmpMXK24ToMCaNq6MaE9YPrg0kGschS1HfQkrEgdi8=; h=From:To:Subject; b=lYJOwzDqzaxEPaanJFTj8sna7+BpYkC0D7BjQlXwjl3F6yBl0lm3Pgwsm5VxYudag RTTD33B256Ukwk04d9S2iJ/4tkVHL2ddazR9Iq8M9a9b1tFkQU9Ii6X0Whca4lu8+s ktVJ6Jh3U8BReiGXXTgDqbfnW0bMABQy+SU+b3GMbgIDnKm1ml56W964AnCAtUPrFb gG3ZQQ08Una8GIky9B5ZqbCzZi94zPyIcX79AvqE6Sp/Cic52iMOBdK7hTMaqXMCq+ NKlTboC3TC1t+mv7YP2bJFzkzcTlXcV0RRDbCfXvDaog6HBz/mwn2zp1Qg4DkKVYmJ /RdVYlBkVxVMg== Date: Mon, 22 Apr 2024 10:23:50 +0200 From: Francesco Dolcini To: Jan Kiszka CC: Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org, Linux Kernel Mailing List , Tero Kristo , "Su, Bao Cheng (RC-CN DF FA R&D)" Subject: =?US-ASCII?Q?Re=3A_=5BRFC=5D=5BPATCH=5D_watchdo?= =?US-ASCII?Q?g=3A_rti-wdt=3A_Provide_set=5F?= =?US-ASCII?Q?timeout_handler_to_make_existing_userspace_happy?= User-Agent: K-9 Mail for Android In-Reply-To: <3571B71C-5748-4F1C-9186-E7F687ABF198@dolcini.it> References: <4d82b8ce-bc34-e4b2-c5fe-9e883b0db59d@siemens.com> <20240421084916.GA4208@francesco-nb> <9ed68e05-5761-4dc9-b81c-fc847ec6d043@siemens.com> <3571B71C-5748-4F1C-9186-E7F687ABF198@dolcini.it> Message-ID: <92887F20-B0E7-41FD-A5BC-ED9A28804F2B@dolcini.it> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Il 22 aprile 2024 10:20:07 CEST, Francesco Dolcini ha scritto: > > >Il 22 aprile 2024 07:35:52 CEST, Jan Kiszka = ha scritto: >>On 21=2E04=2E24 10:49, Francesco Dolcini wrote: >>> On Mon, Sep 13, 2021 at 01:41:43PM +0200, Jan Kiszka wrote: >>>> From: Jan Kiszka >>>> >>>> Prominent userspace - systemd - cannot handle watchdogs without >>>> WDIOF_SETTIMEOUT, even if it was configured to the same time as the >>>> driver selected or was used by firmware to start the watchdog=2E To a= void >>>> failing in this case, implement a handler that only fails if a deviat= ing >>>> set_timeout is requested=2E >>>> >>>> Signed-off-by: Jan Kiszka >>>=20 >>> Are you aware of this patch https://lore=2Ekernel=2Eorg/all/2024041720= 5700=2E3947408-1-jm@ti=2Ecom/ ? >>>=20 >> >>Thanks for the heads-up, we will surely try to test things on our setups >>as well=2E But commenting on this dead and not directly related thread m= ay >>have caused some confusion=2E=2E=2E > >I was too terse=2E And I did not realize your patch was from 2021=2E Sorry for the confusion= =2E Francesco=20