Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp267571rwp; Wed, 12 Jul 2023 13:01:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgKQbtZidX0uFRtLrR6ijKhx6ds/1AxA37DN2EOHjW/IM7OCY/aOQhMZRv7UHhHhtOpdDm X-Received: by 2002:a17:906:d4:b0:994:1fee:3066 with SMTP id 20-20020a17090600d400b009941fee3066mr4808390eji.15.1689192095395; Wed, 12 Jul 2023 13:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689192095; cv=none; d=google.com; s=arc-20160816; b=pkrRyM0IUp/MpoEtsUcDYGmvmxXbYrimUzyBKX1B0ZGSlZAsojsO8sDBWO3LPLzPyT JV38BTrBmjVVntug9gPFDwl0yikQcgwes10N2VEWL1EpEc+L/X1xlWvio32COOSHTO6r LA9itQverDl2cPOxSBt4jMpnmoEhwN21bT0j6VUDLQVsEErI7n9H/lo4iknFEGHMM5Xu yFrK/zh6mxPL1+eoZ0soSCDxqQnrpEYDCP9LYYmmldl1BdSqnbSZHgahxD8mbMclJe8C WNSAOmoakSNG1IrJmWPOhwo8lq9d4CvzK4uyZ10NUuRfDLP2PVr8VHoq5G3t5C9gAvL9 A5Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RAqGktah/O0GFdZ50GvGMkJOQPo1Bdaik/QUjfLnP24=; fh=yi/MxYXfacE0X+NxIrMTYJjyuHQvy4J/o6VG8eEuF48=; b=aghFUEzmmhOJ0s+ZgHHmKqbntCFxO3n1CcBog27+gE13aevX6US3kolqdAMnHYZezG mJvtaIA2uUDmXhnrQGdu8MdQ3ZbAJ+UijUh2zLCn9ubKcLxlFL0SUvsWHw7T2za0Z5Sl VSCZXjp2hBSLJwSoNWNyY1NrWQDctoG/sB4JYS92VNCedjklnBZDY+VEqOFZ3/ZUJqdS YdDcDdPCHW3kdQKqZCd+BIVf8M2olf6AIn58gsldbhTH24Ob/7AtH2BsQonNHRbcRRSg yAfxo5EhsdksAD56P9sQqCuO6xLw7XKS5lpYZ/SZLRMtzxYHLqniZR3E0oFv3I/AgfB4 0jMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WJeDPc4K; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce20-20020a170906b25400b00991e694a0a2si5424171ejb.240.2023.07.12.13.01.10; Wed, 12 Jul 2023 13:01:35 -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=@linaro.org header.s=google header.b=WJeDPc4K; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232537AbjGLTiS (ORCPT + 99 others); Wed, 12 Jul 2023 15:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232529AbjGLTiQ (ORCPT ); Wed, 12 Jul 2023 15:38:16 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E55991FE4 for ; Wed, 12 Jul 2023 12:38:15 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6687466137bso5156209b3a.0 for ; Wed, 12 Jul 2023 12:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689190695; x=1691782695; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RAqGktah/O0GFdZ50GvGMkJOQPo1Bdaik/QUjfLnP24=; b=WJeDPc4KW7qUMZDwMdPPhOaka2bROkoS7mx53G29NSbD7Ho7yYmc5DWWptBlgYfTxt zfnMq/SKO0HNNKGCdxkL8LGfDh8GBN4fT+3wlM5EicocAxeHR2tEZAF2/cm0pfSJy9FT wV8sXOdOas0qgOoZS4s634XJxtQ+bfVqhwB9hqn2W5sYFiOWciiKaBqgS0W1rs634cwy 08zTJVZyeXy5/rzp7F3HUNoTICYiFnQQettEA/0tjHc11Tjn9tHJlE9VF7TvACuuc108 qj57ut4ZCiACpGnOJ6DiE2jA2keRXkY9lDe2lxK8yeSwDdhAUENDv6WxlBOOIrcUKfrJ PAzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689190695; x=1691782695; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RAqGktah/O0GFdZ50GvGMkJOQPo1Bdaik/QUjfLnP24=; b=J9KHpvy3MHVWIevldZpaI4TI0ZY1A/3hhuI4VmVnKYyd4t4KdCaeLbnAIcwKb87r02 XtzkXws2EEfyco6FZk4uHu2qoxmNGn6KTjWv1r5WrOby2N9sNI07yfWKABSau6714uny SN+gk1hXbyGChCvlT7r7flfFeQt/3U21PlUHkOy+94R9VjlrRQWJ92oOdk4mCZnBRMis gdVWbn8DTuGIGRRp778/BagwEt4DNJ/2A06WyxxBySLQDJ7PRBLORH7T9QgysEZrrUOr ysZq0J+9Ett4nVGJGq8u7ldBAnnxod0oh0z6iHoREf8P2lzD59TKvcYyCBw2nglVKMFO co3g== X-Gm-Message-State: ABy/qLZGtwbxulyMEaQYJw2jCXX8jk//EEX7vxXDUU+VjC+WTA91Ko6d 0W8dQvhnWQgR4sRDi3OjgeEt5g== X-Received: by 2002:a05:6a00:148b:b0:681:6169:e403 with SMTP id v11-20020a056a00148b00b006816169e403mr19538672pfu.8.1689190695254; Wed, 12 Jul 2023 12:38:15 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:70ea:7145:ddf8:7208]) by smtp.gmail.com with ESMTPSA id v11-20020aa7808b000000b00669c99d05fasm3907344pff.150.2023.07.12.12.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 12:38:14 -0700 (PDT) Date: Wed, 12 Jul 2023 13:38:12 -0600 From: Mathieu Poirier To: Tinghan Shen Cc: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH v14 10/12] remoteproc: mediatek: Report watchdog crash to all cores Message-ID: References: <20230707052612.27521-1-tinghan.shen@mediatek.com> <20230707052612.27521-11-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230707052612.27521-11-tinghan.shen@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Jul 07, 2023 at 01:26:10PM +0800, Tinghan Shen wrote: > Once the SCP watchdog timeout happened, trigger the rproc recovery flow on > all cores. > You are missing the most important part... "Why" is this needed? Without it I don't know what is going on and can't review your work. > Signed-off-by: Tinghan Shen > --- > drivers/remoteproc/mtk_scp.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c > index 9fed5161f094..7e786aaf04e1 100644 > --- a/drivers/remoteproc/mtk_scp.c > +++ b/drivers/remoteproc/mtk_scp.c > @@ -80,8 +80,14 @@ EXPORT_SYMBOL_GPL(scp_put); > > static void scp_wdt_handler(struct mtk_scp *scp, u32 scp_to_host) > { > + struct mtk_scp_of_cluster *scp_cluster = platform_get_drvdata(scp->cluster_pdev); > + struct mtk_scp *scp_node; > + > dev_err(scp->dev, "SCP watchdog timeout! 0x%x", scp_to_host); > - rproc_report_crash(scp->rproc, RPROC_WATCHDOG); > + > + /* report watchdog timeout to all cores */ > + list_for_each_entry(scp_node, &scp_cluster->mtk_scp_list, elem) > + rproc_report_crash(scp_node->rproc, RPROC_WATCHDOG); > } > > static void scp_init_ipi_handler(void *data, unsigned int len, void *priv) > -- > 2.18.0 >