Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1470896rdb; Tue, 30 Jan 2024 22:17:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbQ8lCfndOzp0M+YyRUZsAMI+YWFMtG1+28nQ/fzLdy6KXn2l+4L4yayFuhlmTeihxqhGS X-Received: by 2002:a05:6808:2095:b0:3be:a295:6383 with SMTP id s21-20020a056808209500b003bea2956383mr887884oiw.1.1706681848308; Tue, 30 Jan 2024 22:17:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706681848; cv=pass; d=google.com; s=arc-20160816; b=IyzyXlyqtGytiIkmkcQ9lja7knclEagPRZygCCEr1icxkx6EpNC0xxD1SVoA8md4ZW ixZ7Tb+kzgNvr1+NLH2O+0caE/7dZSY60EmIqxvXJdkDiDuBexe0XQjiFYdyGTSJy7p8 /5di4Mki+8mDh4Y47rOeWSlVV+hN1qlybKHuZovUipuPHQtxqM1ixHm2DTxhP5teAjFe SqA7f9n172gZrIzeo1SftJPEnAKEdcpCwK4ae/e6PL9ThXSm6trn4WxlZ5B4qEpJvYt4 mNjhBAT/qTOrRJ3+nXegN1zKBinUpXQXZEB6U4nTn7bXQTMopDvUhE5LQu3JrKuXqRl9 WbXA== 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=yKSfpvugHf+JQ0J3LtbX8a2Mm8cLaRBEPpgaXA2yC/k=; fh=xU/hF/zAs4C9tlTdqunvJlZAe6rB/t2qK9qxkvKbRx0=; b=q0v2/YGfuQhmCsDKl48JJb/ePDhN/h/cNKKaFbIDS4IfgQvLeYZlzA2h+klDESNsBT DBLAqtRV5CY5j89drX4VXBW+tuGgcW34Sso3xx1xdH9DWJbZxPtyPJuDTOY6mkKszBc2 6itxvt6RrPkQ6FCkzpbkH+1s0bShZtezU1K1YMeoZ8eMDtkvUroig5FkfMJ/ntsk+kcn O3sq9MHvpsQMvo0A+l50s2mJdX8W6RZTO1hmAjb8ebYFzmCwKtMEQKMm7dWU6OK+r2/f DD4ZfArIZ/zJjBrtzZSEmV1JbyXXDcZ3DUVfyBkXcPeDPXq2bXvkmOBEQXZy/iWkkHu4 ZKzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hqeI0xKU; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-45809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCWb6vLRDhnVSLQYHFM0kO/Gfay0kofLCrZ9pnqfGs8UGoDer9FFVbtxMk2aXfmPVhQ8PT5YXnpUeG7z7KYT7dto52OSAD8X6QiSUEWX9w== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q6-20020aa79826000000b006dd9213a323si8949411pfl.333.2024.01.30.22.17.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 22:17:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hqeI0xKU; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-45809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 302D2B2524E for ; Wed, 31 Jan 2024 06:17:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAC4A3E495; Wed, 31 Jan 2024 06:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hqeI0xKU" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43D423E479; Wed, 31 Jan 2024 06:17:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706681837; cv=none; b=m4kPcDjVvj7Ybx9SoRj3th9Jmsy7wHCTmOAzdKCDxEyi6nZ525pBkumG/qahZda6oGq/3yO7OnmwFO6a5hJzTZQPVqvPjfWe1CIniUlHFU2+0D+clsiUJ3Op0NjmaeSk3tlIo9YNjruolAh+vlskM5A2e+TTxh3+6es6FMGJOSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706681837; c=relaxed/simple; bh=6u0A0dodxOKmius8q/eiQ7I4KMI7Wv44bJDRdBK0674=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XKNqTYKTTWyTnNJzd87uJ4haD7+DRWs04XdRBkck/dFmPOoFBpOpjivUyA0TKjvzQlnx6XsBHR9eMmq7sutqrxWv4/0pp5o9L7/dBor+JVQD3Oc4BUPHrv6doXeHDu2L7xTS4BkDfDpTgiPpcabSqjpv1dVrdrwkC6h7dr/BPTg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=hqeI0xKU; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40V2hwRW005740; Wed, 31 Jan 2024 06:16:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=yKSfpvugHf+JQ0J3LtbX8 a2Mm8cLaRBEPpgaXA2yC/k=; b=hqeI0xKU5L2CCU2zGqda38OUGugldQayqHHpe lQ/yZHeOrXtJlL23LOq58ItjZJP3fHMluWty0EdWucP55wVV/LihyrZ6Tt1uc4ra rLjtcrKzosMVhbr+gHlIj50Qqn4y3lAMYTZwXBOoNP2X6z9/NUCLaCBfT1E0BtQJ FF0fGEa6aldv1DG/swXY1See8wQrSdLOC9XoJuFLQN51mF3xEHqz2kxE6W4BmbyD bFD7mM7J+1tNURO7B0RFxgGiI75tg2C8i5Vi0WAe05bqyEbWf8+d3C/rlgPHLbaO sW8XP9DH/eNPxd4b3bdq3h/teAQ8YOKrP+Fa29llUVLuNcRkQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vy9nk8v67-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jan 2024 06:16:51 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40V6GouX028711 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jan 2024 06:16:50 GMT Received: from hu-pkondeti-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 30 Jan 2024 22:16:47 -0800 Date: Wed, 31 Jan 2024 11:46:44 +0530 From: Pavan Kondeti To: Guenter Roeck CC: Pavankumar Kondeti , Bjorn Andersson , Konrad Dybcio , "Wim Van Sebroeck" , , , , Mukesh Ojha Subject: Re: [PATCH] watchdog: qcom: Start the watchdog in probe Message-ID: References: <20240131-qcom-wdt-start-probe-v1-1-bee0a86e2bba@quicinc.com> <1a996038-bcc7-4c0f-8f27-ca36a2eb9d3d@roeck-us.net> 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: <1a996038-bcc7-4c0f-8f27-ca36a2eb9d3d@roeck-us.net> X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: IK2kdITIGZ0pKDu6r-2FdvMqQkk6KcDI X-Proofpoint-ORIG-GUID: IK2kdITIGZ0pKDu6r-2FdvMqQkk6KcDI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-31_02,2024-01-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401310046 On Tue, Jan 30, 2024 at 10:01:15PM -0800, Guenter Roeck wrote: > On 1/30/24 20:15, Pavankumar Kondeti wrote: > > When CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED is enabled, kernel can pet the > > watchdog until user space takes over. Make use of this feature and > > start the watchdog in probe. > > > > Signed-off-by: Pavankumar Kondeti > > --- > > drivers/watchdog/qcom-wdt.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/watchdog/qcom-wdt.c b/drivers/watchdog/qcom-wdt.c > > index 9e790f0c2096..4fb5dbf5faee 100644 > > --- a/drivers/watchdog/qcom-wdt.c > > +++ b/drivers/watchdog/qcom-wdt.c > > @@ -276,12 +276,16 @@ static int qcom_wdt_probe(struct platform_device *pdev) > > watchdog_init_timeout(&wdt->wdd, 0, dev); > > /* > > + * Kernel can pet the watchdog until user space takes over. > > + * Start the watchdog here to make use of this feature. > > + > > No, that is not what CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED is about. > Please see its description. > > NACK. > Thanks for taking a look Guenter. I thought of using WATCHDOG_HANDLE_BOOT_ENABLED and infiniite open timeout as a hint to start the watchdog in probe. After seeing your NACK for this patch, I guess that would also would have been rejected. Do you think we can revive this [1] to add support for watchdog pet from the kernel? It would be helpful in cases where the user space has no support for watchdog pet (say minimal ramdisk). [1] https://lore.kernel.org/linux-watchdog/20210924133509.3454834-1-f.suligoi@asem.it/#t