From patchwork Wed Oct 11 16:33:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 15227 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp666016vqb; Wed, 11 Oct 2023 09:34:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeBga3poudqHfaFX2VFqnQ4zS/1xPBtp4GhmSu2Mb+K77VlL1DQgkF0VNeeqFCY7f00ziL X-Received: by 2002:a05:6a00:1d8f:b0:692:afaf:32b4 with SMTP id z15-20020a056a001d8f00b00692afaf32b4mr23382602pfw.0.1697042048731; Wed, 11 Oct 2023 09:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697042048; cv=none; d=google.com; s=arc-20160816; b=FRaMYqG2Sqi76XRLi48J9kwqkKWINqVO2Iig2JsVtmVx/bfxaUqa5pitopkay7+mfA HgGpmSqjGVCB50OxcXKEzAd6QXHk7BvAp+wiS8RNWPmRJdT+Z+X0LLb+PRD44erOcaUr X7A4RrfoyUyVvqaXFSmkjEHpolC/vyCADq8ERX74lrzP/JqSoBcaIOoO1IbpcoNBIxDf SaifuHsnyDMthT7L47bLqDz/Aw4xf5QLnAqxe6cGzDk2Np44ahHHCd5qwQvpPaChN/6+ T5N+qCEQ7sClONaHOVYUB1jBuxKOq36c1Q4TuLxHHDNoa54mnhTmgysDhSS9EwOQss3j 3RNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=ttG3R+77Y3fDEhP0vDZdvq8jC9tBYRr9Njspu7Muwc0=; fh=AntIqxgid4h/DhDg45Gv7v9zCDfMVV0K7+NFmx/aFCY=; b=sE7w2PZXd3Y+hHKSiUEfO54B3+nX+9O8GMqPnBu4ozXhhNaFqbOWrC+worjf/gYYrl 7IJ4mYN5ZJQwex7sCpfxe5DToCaCUQgvRxyBpeETXXRs67TqESQrSYWLQZmLc5WIwnfb WCrhzeeWUE+GsxUi2/PUed4D+gTxtrP93WbDJcz05feDRVrP/mXcUYOc2ldsvocpMiFk WNbb09Av4f9KYcWpzO+M5jkVzLRIv7PcyVhTqSwDhWhXV5ShrcjsRZm1Ks2mt8s1BREq 1ztSNT6P0upb47aIsUQFpzMJRFcX+pfrNdqQa15GbqHRn4BEjajGk6kz1dBaiDpJ/8Me 2T+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=JJHjEFTh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id q4-20020a056a00088400b0068fcc3406acsi12798389pfj.141.2023.10.11.09.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 09:34:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=JJHjEFTh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 97DE78095800; Wed, 11 Oct 2023 09:34:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235114AbjJKQdp (ORCPT + 18 others); Wed, 11 Oct 2023 12:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbjJKQdf (ORCPT ); Wed, 11 Oct 2023 12:33:35 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22EBFB0; Wed, 11 Oct 2023 09:33:31 -0700 (PDT) Received: from [192.168.178.23] (k10064.upc-k.chello.nl [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id F38A6C88E9; Wed, 11 Oct 2023 16:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1697042009; bh=qhKCT4xrkgikeWF4fbn1jxq8p8MIe5Q6C2l6e3PNY5U=; h=From:Subject:Date:To:Cc; b=JJHjEFTh/7Ebx5nZwH0dWU5pvi+UQhKvL++lM41KjvgR2JTNA7Dt9EP7fgPz8qhtO WTxeRSc/x7b2HfNRiOjR4XouAQxXcY7YMz1bspN26XAcU4whLMYgi9lxaEHYWkvzS8 7bBYPqNkyZreyHfa2dk2idNQBemcQ1H282bGogSw= From: Luca Weiss Subject: [PATCH 0/3] Add watchdog nodes to msm8226 & msm8974 Date: Wed, 11 Oct 2023 18:33:12 +0200 Message-Id: <20231011-msm8226-msm8974-watchdog-v1-0-2c472818fbce@z3ntu.xyz> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEjOJmUC/x2MQQqAIBAAvxJ7TsjNyvpKdJDacg9WaFQg/j3pN MxhJkIgzxRgKCJ4ujnwsWeRZQGzNftGgpfsgBXWspJSuOA0Yvuz75R4zDXb5diE0ZpUsypCoyD np6eV3389Til9TGLaR2oAAAA= To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sai Prakash Ranjan Cc: linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1366; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=qhKCT4xrkgikeWF4fbn1jxq8p8MIe5Q6C2l6e3PNY5U=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlJs5TOneAtkZj1F5CsZKdsfrGSrlcZ3qmg2NP5 +G8AI9e782JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZSbOUwAKCRBy2EO4nU3X Vpx8D/4+FIELvM73S2A7NuOX0vSGtsp1r0yatMMV1Wch3QQ7mRCmUf/QYAUXzzHRMSndwTbSZoP 4IlopG7Mehr9CmJDXnb5UqvQtUS2y9mtuhTqSi46h6MkeOKahnFzaKgg+CIwgCNtLPPLS/dNn7e rTYWQsHj71XNTSEiMVOZa4p7bZkwHHBno0j471u+50B5OWCcsk+rjCKHZO191L0TlMgCDX9i5MT N95M5MKc+0nBXzApPjgQjpr4fBPwMeaeEOo10CqEUbkWboQhMHB9X0uDePeZDZ2h0HgqIfRpwbn sglh3bU3ZV7ylQfyn0Mx1l2TEhG5c+mNZ+d5r8FCIk2Z107FwGoPJq/JnMoHUR33sfhe9NaSO7h QsH4CEgRqA1KDD5ivFB/fuZiWwcSzrZGlmXRH/3+eS9tnrsFmlR1ZBEMawYu8W8pPdBjgI5Rw7U FML49dcMYg6wxgNFWlSOPP/b+Gz1Bjn5ggdTU3jDs8OGKb43caFM9qzFWu9B1XFYM5rQRLQ1VD8 2p4jaWaLtkMjbEfdVv5OGkuIxQsMshoak9exWbYgXAJTxDbUpkYxLFOTWNDeynfy2prxeksjtPP Xao+3N2cDUm1VqZBiXCODR/XuWfy83zk7FxoCWBSfJFooi0SgyuAc8J2HRaouZJipkhOPVLj/H6 Uv2pB34Thbld2uA== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 11 Oct 2023 09:34:05 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779477563300251017 X-GMAIL-MSGID: 1779477563300251017 Document the compatible for the watchdog found on both SoCs, and add them to the SoC dtsi file. And especially for the case where the bootloader has already enabled the watchdog we need to start petting it on time, otherwise the system gets rebooted. It's worth noting that the watchdog behaves a bit unexpectedly. It appears the watchdog counts down significantly slower when there's no load on the system and can last far longer than 30 seconds until they bark. Only when putting load on the system, e.g. with stress-ng does the watchdog interrupt fire and kill the system within an expected amount of time. This behavior has been observed on both msm8974 and msm8226 smartphones. Signed-off-by: Luca Weiss --- Matti Lehtimäki (3): dt-bindings: watchdog: qcom-wdt: Add MSM8226 and MSM8974 compatibles ARM: dts: qcom: msm8226: Add watchdog node ARM: dts: qcom: msm8974: Add watchdog node Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml | 2 ++ arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 8 ++++++++ arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 8 ++++++++ 3 files changed, 18 insertions(+) --- base-commit: 2933a1156742d8c47550493a77af8e2d81cf3c84 change-id: 20231011-msm8226-msm8974-watchdog-a88e45f4e2a4 Best regards,