Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3119181rwb; Mon, 15 Aug 2022 18:35:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR6D+fdQ/S4PX9my4epzpiU1kcnJV6Jekg2jFQeNA0Q7pfcbGvyWmwsSsCxd2n4KGLdp73uY X-Received: by 2002:a17:902:d48d:b0:16f:5ce:1d08 with SMTP id c13-20020a170902d48d00b0016f05ce1d08mr19450824plg.49.1660613718595; Mon, 15 Aug 2022 18:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613718; cv=none; d=google.com; s=arc-20160816; b=yFMTubodUVFuXjPBsn/OTR33Xap1X3LXODymkobdyAG69xkdNzTeZ1HdLXSbTcETQJ bNHS+7mGNh6LJHUPU72uC85sxIeXFql+NA6DRinGdGLbGPhAjBMhvhp3httxDqZzgmQg +UloMDXzk8wi4xv02mYrY0UB1JIh+HguH0JvxjFg70cm+MsYatqUHRFuTn6K1kgyvOKq AuQOfbdfj1q0nZ2ddFdvS5tTpPJKW/jzyi+ZrCs6hivuboePGsOd235Qgn4ZVeBrnzTA t2GJqqLHfM2W8l+z3Nn4JE3knOcH+5WJjFCJBsKm0UMhu5u9MWLPVcwLay0Ql4KM7nHz NsgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KrlUYPPxg2xgkmSwTfNBcRLuWJWpi2URpRbyD8AyTlw=; b=iEd4YbyIfTpLyMSaio7Ii15SJ7qDpQpfYsTy/tebCkAWyD5OwY9VsSdUjXK9CJWWto 5fb864DX2oeB8+wSWJaHbCJN31l+sEWF9ZSKv+TehS75ZPpF1wLSARv3Zfwn+TAF/TAn xVkHpeK3Lg5dYdzv9Y9DBpxPb/TOd8YI+k+5v5UbsEqLDvxypFBykVKT7A3bStCwwnnd tF2jkg9GZspmlwzpFIUfFh/B430issWviA8AJTDrKauVtDqz3IxxVnAnvobgRVErw88R +GiEWWCP2kY23vgQj45aMBY9ot5lU7OEiLCCNkCL7UpvAwwFCVBbRszF+mBg/4gtcdHO V8Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ca3yoNnR; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g67-20020a636b46000000b0041cea4daf7dsi12012365pgc.774.2022.08.15.18.35.07; Mon, 15 Aug 2022 18:35:18 -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=@linuxfoundation.org header.s=korg header.b=ca3yoNnR; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344519AbiHPAsN (ORCPT + 99 others); Mon, 15 Aug 2022 20:48:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231464AbiHPApk (ORCPT ); Mon, 15 Aug 2022 20:45:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1906193560; Mon, 15 Aug 2022 13:41:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 80599B80EAD; Mon, 15 Aug 2022 20:41:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D63EDC433C1; Mon, 15 Aug 2022 20:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596085; bh=s4A1Jy/S8LXvZAeUlaIQ8UiQ7aw0H0x3aKCk6dSoVOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ca3yoNnRiBg/W63cH50b0wS5v7loVNyajbRxoKAorThCeRrSiyJbnImapQXwBj0iV +10k3dbPDynMUKaPkXHevvPnbXSHYomgi3I7Wc9ykx0C5wMBuWn6KnHtXxse2ICAHC MLJ8CKopIYAfJ2ulVkLdS91o4rty5Y2QsmoW7iPY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Siddharth Gupta , Sibi Sankar , Konrad Dybcio , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.19 0967/1157] remoteproc: qcom: pas: Check if coredump is enabled Date: Mon, 15 Aug 2022 20:05:23 +0200 Message-Id: <20220815180518.356773031@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Siddharth Gupta [ Upstream commit 7b6ece968fca4ec9e42d34caff7e06dc84c45717 ] Client drivers need to check if coredump is enabled for the rproc before continuing with coredump generation. This change adds a check in the PAS driver. Fixes: 8ed8485c4f05 ("remoteproc: qcom: Add capability to collect minidumps") Signed-off-by: Siddharth Gupta Signed-off-by: Sibi Sankar Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/1657022900-2049-5-git-send-email-quic_sibis@quicinc.com Signed-off-by: Sasha Levin --- drivers/remoteproc/qcom_q6v5_pas.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 6ae39c5653b1..1c170d278b29 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -87,6 +87,9 @@ static void adsp_minidump(struct rproc *rproc) { struct qcom_adsp *adsp = rproc->priv; + if (rproc->dump_conf == RPROC_COREDUMP_DISABLED) + return; + qcom_minidump(rproc, adsp->minidump_id); } -- 2.35.1