Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1603758lqt; Sun, 21 Apr 2024 01:49:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIlAGPlzf+tN6ZXKN9eqhsDvsUwMpONpaoy0t/SKHsymdnqDgLbrkw+kkIzVhKWAEAQfJsR41wvyDvXFj73R9uRUahQfOdEUL0VVKMWQ== X-Google-Smtp-Source: AGHT+IFBabC8ccelSufnzrIBxrYzPkorywy/vloWs3TcbJBzkBJwz7H72Vp5JVKjJndkTdcYQp+k X-Received: by 2002:ac8:7f02:0:b0:437:b3f2:b333 with SMTP id f2-20020ac87f02000000b00437b3f2b333mr7430487qtk.10.1713689380032; Sun, 21 Apr 2024 01:49:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713689380; cv=pass; d=google.com; s=arc-20160816; b=MZ64+I9Ti3F0yT1dFusoxCMxLzzlx6+A2+pLC1AK+FX2oOn2kUseXREjX85BnKI0Uy Mcl5r+MiHfuCZLdk5C7sJvJzEmK7RydB1HDZvBa8INOhU2FAzDYeQUABRnb4AwwEt+x7 suZ7rbIIl98OBknd4VoBkl8MftqLRaf0cm8Tmt4OmsbQMHE1v7PvfSIVmhL836/8wdsa Y8oFHbsz1Bf6cU9XscqlbP5jDwqfm/i32/fyLEJNWcIWVen+gsQLuwtfnUrXzjjcR+qr zocs/0dLOXSNPTxZkTixadjwukwaDNYJhYXkJXLZH2OrUBukvDnxu+khwtSEvOh5+lMg HaRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BpFulAQbCdhJzSEsRhzIqEy0hJxoSMYEZcUkUy44sng=; fh=s7xC5EljxYQln++Q+0ys9xAidpGNHnxmnzhRVLrfhCo=; b=o6om8qvsy8j2NIOqZjLL4ScZpQYuXi1Bgp1a7aC2EcGe1WXioTXtHwsQJYR3LIv+w6 j6hRrCyi9TBfqME1QVzTJq+yHNMCGqyJCnjMK1mRVkV33Oxdxd+ZqnL2dLr11RZJEOes gF87fFEGhRYS7KH19bcx5ShuZpWWZUel00w0mGlP/aICny2LLzsy0sdFaGl33rKOBO+s I0pOEWjAgG4Bj2wpRnamJAjg+9PZfBr1iyf7yheDkIk/s+/0h7Zv706YavE1Ukf3EwLZ +1qvz9B8YmhAwWDYDyVPAVkol1OfJH2anckvFVII7MjtwRtegRMPVbp/WEffaA4Fxt5a LT9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=ELKYdL7k; 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-152461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m16-20020a05622a055000b00436a4002263si8266140qtx.45.2024.04.21.01.49.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 01:49:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=ELKYdL7k; 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-152461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152461-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A2E461C20891 for ; Sun, 21 Apr 2024 08:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBC63DF51; Sun, 21 Apr 2024 08:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="ELKYdL7k" 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 4277D33D5; Sun, 21 Apr 2024 08:49:28 +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=1713689373; cv=none; b=GNJSM7XXIgMajyaBvZzFMfDTOpfbIyKovNifRClj0kkuG9Ur97FyE1dV/PsBZdQvsLON6l61R+UfRI5RFCqQIi/6MLVdXRDBjscXiQe0arpswC8u6Sa8aHW+G64VukFTlKWv7/famBRDY9uuQLzXjjRg6+ohZUQlFNWCIGhh1ig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713689373; c=relaxed/simple; bh=IzOFxcvABLw7okAaODhaFqzHvAqBYKY/wpPe2vbfCpw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=drvzZMcbs8rjiVO7jPhHtywHCCsn3kIHji29Q4d4IuGE7mQght45DN4DgN+BxfyAmx6VotBKVGpjlh6QZ/cek48KyUn/6dGenU4fQVbj7Xkgvxs98x/mc7G7DTI6XbLOsLe9wb9Gxl3jT03FmbDeGErkGNP2hufe6BWYqgfahGI= 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=ELKYdL7k; 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 francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 093881F92F; Sun, 21 Apr 2024 10:49:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1713689360; bh=BpFulAQbCdhJzSEsRhzIqEy0hJxoSMYEZcUkUy44sng=; h=From:To:Subject; b=ELKYdL7kDycfV2btm/G2tfgdGzxdq3yTKBM8fryRcLmWRvSfpJwGJi7cqLzWWpRxg zekP2xABKZOouiZfCYNFXkQmednQ3hsIS8gpEfbAh86/gdoqvc5J7DoVW5e+zHnXVJ fFYE4eDcUt9TKn5e5ZYoSdSekf3tkYS57mv8dtMHFG7kCegH98IEfDMbl9x86b/eHy +YqXh+5cdPCudL9ZSXRSVla7J0qK58ZbXNW34APtWPF9WJVAD8YApOXNGNLKiZBpoe Cv/08ugo+vxITYpi+Dj5KIwCRBuyDRNKIQcL1FxKzmxRe4zUfjPj7okaNWdOAp3rY2 4zfmL9CLbA1+Q== Date: Sun, 21 Apr 2024 10:49:16 +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: Re: [RFC][PATCH] watchdog: rti-wdt: Provide set_timeout handler to make existing userspace happy Message-ID: <20240421084916.GA4208@francesco-nb> References: <4d82b8ce-bc34-e4b2-c5fe-9e883b0db59d@siemens.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <4d82b8ce-bc34-e4b2-c5fe-9e883b0db59d@siemens.com> Hello Jan, 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. To avoid > failing in this case, implement a handler that only fails if a deviating > set_timeout is requested. > > Signed-off-by: Jan Kiszka Are you aware of this patch https://lore.kernel.org/all/20240417205700.3947408-1-jm@ti.com/ ? Francesco