Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2929106rwb; Mon, 15 Aug 2022 14:14:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7QhngJciex3gdQj/nRCBzT3rSWSwitxXGIU+yPEruaTt0Ln7tME4S/jdQaFlPO3EO2JNI3 X-Received: by 2002:a17:906:cc13:b0:730:97a4:8fbe with SMTP id ml19-20020a170906cc1300b0073097a48fbemr11020385ejb.412.1660597993384; Mon, 15 Aug 2022 14:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597993; cv=none; d=google.com; s=arc-20160816; b=CEPy8y1tKvwJmvx2P6gn60bINBiJmf7KG/lXiI9uYHm43hNknroshTo3KQBK0H4Rm2 FSEg+2xnqxm/i/U+6HzyEtqPiYspyDfVbcZ3HMjG7pKq9lXbVpS0yj27/0eVQdLRwKwJ zVOF6xlxwXgBd0ZfO1RHMJAOwx7fmePUf4vIk9W42avvUxQp1VMrHOC6E08RbmaCo1J5 Th2kTPWbcJN+OkBHDENU9QyG6cHhZsdNalCF/aDvCQsFaTK0yU8HFniSW+6Ul5rOoIBp tZzo1ml76c+cubwpSkP+f44aLu/ltjEXPlYVu0HbFk1doT//t6GHTneML61fHd4Pep2G fJBg== 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=QigtUUIDKiCe0mV6wXDBsr1QqctUihBFp1Zkb8ZSlMk=; b=TqiWoGTdnt8N69u4LoXdgJnVZ3QYOxYurmvrXzXXsz+njPgMOUeLuXCo9EK1sgGBdf 8Ol0SS5zI344b5CbChrE1jsAcZndVrsacIvG/R8Q3mQfvqZy5xYftRLXf9GfWZmaR3UB 4oGPq0NcADwMi5DSAxQWnp6aS9uIwZ8ZQm4HILZglZqDv3QiQTJYSd7y7XFaJGK80imF i53XlrC7+B39C0Ue/1XmVwPAlW0o5ffgflcel6oFHdVESBwUIPHQeuDibqLiVWIzeoWn ZLJrW8KEsRSKrJJBclphp8iN5jmAHtfbXC5XU6o6GwRNRHnxOpKBm/Ff0CAN1neEIgLl vLLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CR7jqsd8; 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 d14-20020a056402144e00b0043d5dd96fcfsi7369037edx.272.2022.08.15.14.12.48; Mon, 15 Aug 2022 14:13:13 -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=CR7jqsd8; 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 S1343843AbiHOTiF (ORCPT + 99 others); Mon, 15 Aug 2022 15:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344876AbiHOTbw (ORCPT ); Mon, 15 Aug 2022 15:31:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 188EA61D40; Mon, 15 Aug 2022 11:45:02 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 65C92611C1; Mon, 15 Aug 2022 18:45:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55881C433C1; Mon, 15 Aug 2022 18:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589101; bh=9cdqy1RC1yntKX06V8HA9t5CMzYLghHcz50V6NAkJA8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CR7jqsd81Sa+42LcFjpt1hGrvgiyuxZ6DzFY3coINh2hB8Ud/+JrSWnuhqXlwykSW 4nDTzuD9OJyf7wd3BRVf3VBleb2moBg7rvVvsVvqwzFJgppTjKIRbWZuQTumGNiZ56 M0naaVBiklkz4FgvnZ+0/q7O/EmtwsoJJEXC22pg= 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.15 613/779] remoteproc: qcom: pas: Check if coredump is enabled Date: Mon, 15 Aug 2022 20:04:17 +0200 Message-Id: <20220815180403.570623098@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 699eaac5b760..78d90d856e40 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