Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3087571rwb; Mon, 15 Aug 2022 17:49:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR5E+Efn4XOIvxEiD8GP4v0G6GOqhwDFRsVUKAgP/D0RadCp0+VcJ12AcwWh3z5+UXLds057 X-Received: by 2002:a05:6402:14b:b0:43d:a7dd:4376 with SMTP id s11-20020a056402014b00b0043da7dd4376mr16430690edu.89.1660610975885; Mon, 15 Aug 2022 17:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610975; cv=none; d=google.com; s=arc-20160816; b=DfD02G8Cn+yMTn7NJblrvsu2AbHQgfwn9Gu8+MBbeQt7B+qmlz47kVPEnhCkxoyS0o n8mMmjezGOIGHN9zK4/FmbnI8cICehkHOk5OQ3i8fF21QYbdYkiAWrm53520DOmZG0mM IH2sXILckBEXlZsutLiByc3b6TLNat/o93+UBxjvtfQJ0ETEIllP2RxphJ40I2AtteBy RLO4mmMgrHBz1lPYfNGz5Z+dtDKNYmtyUUTLddWwKU1uW0b+98kh1dvVEnNoqFQ/Jk3d hqNtdLFXRe1uvWWXOlCL8S75D2YVGd1SYRZFY/fZtHFPYPB+oPIpigA8z51u6O+JWKuU 1lGw== 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=GG4cfEh+vuDYVpf0KI91uK+LOPQbbSbdpilMbQIc3wc=; b=vsOLqaHJvvx+NjQUkQ9AjfcJaEMiZo/LmzpipDzk1rNyG6I3Ij/zWz0EdQU8iHFleQ yL6TCYMERQA2UDnTTpKkk9PDrMxWhf9RkXL0SQLdixLiwdumO/JxidxFdlgkKM1WZU1a 52lfE7xC3iWxkN/36cdsBvXp7o2eV7loVVv15rFAMoPNYq/0a/7M7xQUOZ9RTRnqUoAE jQ1DAKLwuqEIKn/j7q9iBOAZDgKR6kR2Eobkyai4I/ZbmCkCapfV5y4XZQrRSkzbB3Kb HEmDxGDQG5Zm1oJSMkkGw63ahLlpzzbLgbifKQjn1onpsyBd8wEpcy48tVUNazJqZf0L 4rZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RX5YVGWX; 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 he7-20020a1709073d8700b007309e8c4538si10030741ejc.920.2022.08.15.17.49.10; Mon, 15 Aug 2022 17:49: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=@linuxfoundation.org header.s=korg header.b=RX5YVGWX; 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 S1351059AbiHOWo4 (ORCPT + 99 others); Mon, 15 Aug 2022 18:44:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350625AbiHOWkE (ORCPT ); Mon, 15 Aug 2022 18:40:04 -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 3F51438B8; Mon, 15 Aug 2022 12:51:43 -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 E95A6B8106C; Mon, 15 Aug 2022 19:51:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45CA6C433D6; Mon, 15 Aug 2022 19:51:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593100; bh=LoJSHb0qrQT8UqNWxvAx8oeRvfZkHYrRPDuDsS5KUgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RX5YVGWXbTbmGI9olyTuCRACteaVrY14bH5lF5dY4l5WpuutSEtpV9VTTpKUKTgSY deCOleJTjZzK6RQC0HBuSJhzhwwtwMTg4qAL0Mkp6NmdHuk1zgQesKQeBzdIe/ZW9D JMpK4G0d6fIib0wycPBpRo5/dH7iCReg/d7Qm24c= 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.18 0891/1095] remoteproc: qcom: pas: Check if coredump is enabled Date: Mon, 15 Aug 2022 20:04:50 +0200 Message-Id: <20220815180506.184300424@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 1ae47cc153e5..e7765bbe17a0 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