Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1406630imu; Thu, 13 Dec 2018 14:45:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/VGXlJ50MSkIWGIKQrjFn5WYimzLCLippqEfk2Ajp0vstbBgcaP4PnSPEgYJvsJWvfGoSkS X-Received: by 2002:a62:2547:: with SMTP id l68mr538258pfl.131.1544741101237; Thu, 13 Dec 2018 14:45:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544741101; cv=none; d=google.com; s=arc-20160816; b=ip+1NMX+7KMAsooQE699/EBVbPmaXoyWZYhOJRktNOO1w61Kz4w73Vph/izQRoGbP6 yDEZNUj0q1+XuyHdRgDaSzgLHXRtxW5uy+KWXR+WPwB4wNUkOSsBMo3GOz691GiDOtq9 VqMb4zuxxaF1XiIdHiNxCwqM6B4clrJy7ueOQPd8ONXXebauZwP397AMh2HNB0pqNZW/ HTozSUQu0qOgEZgrZqvO0NqW138x0F/amguLupS+65HCT9NLdg7YsNoylHkgYaFxWtPR ebNllt2oaLfQpuS9xMN6sBrUH/CmuHFgG1uFqRAn6SgOJ8zH50BACKUHQyOpjKEcw6lk WcZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=N7r7NeAH11tgTi6pAYTDluoF0IpN13W5qu7aZs6wnYU=; b=VrtuCfxKzycuOLEc/yjHZU8QtdGHTHr2aHOyc+n/pTcM23md+Fe9ZB/ZNQWd5ZdAfi tIZM1hdq4iPhFVscDalQLXqSXM0xd9aLVkM59cjk9JOsnuUWmijS2ycr0m9xLDvuKwc7 bdFhcc1Q946zLf3A2nLY0BqYuuwgsbAsSq7FXSg2hh+0+vYQbqF11iHT3cs/TQaS1Wr6 th4y4V93eUl/dSW2oy4mEzbT3lNlT8/tA2gxwsxjb5H8krqCoDgb31bCiWwcFbG3T/of d5STOZi0mtuGI6bgAGdYPgD2b/sEFSg+aKLWoKtW3M9uybfr6RLLd9Ll9IrRw63hIeSg naSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=MwdYCzjq; dkim=pass header.i=@codeaurora.org header.s=default header.b=MwdYCzjq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g71si2426954pgc.419.2018.12.13.14.44.45; Thu, 13 Dec 2018 14:45:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=MwdYCzjq; dkim=pass header.i=@codeaurora.org header.s=default header.b=MwdYCzjq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728130AbeLMWnw (ORCPT + 99 others); Thu, 13 Dec 2018 17:43:52 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:51626 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbeLMWnv (ORCPT ); Thu, 13 Dec 2018 17:43:51 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id BC14060722; Thu, 13 Dec 2018 22:43:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1544741030; bh=of37OIEc3PKbJqChP1sgAFxoQhy8JH7vSRgSXYq4uus=; h=From:To:Cc:Subject:Date:From; b=MwdYCzjqfgvqom/B/hOqiVtHFvMsdtkwjl/ov0q3S83mw12Oab0QP3eMAn+kGx501 FO1EARwnbIsV+TFcNkCYOTorPk3Td5gSLP2YcQ520YExPho/zqnzldLzWzklKGzx1Q 8XCrqq6fSL/+Mb4+B8yhQ12dxX73Mx6ZcUfEpXuY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from jhugo-perf-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 597CE601D7; Thu, 13 Dec 2018 22:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1544741030; bh=of37OIEc3PKbJqChP1sgAFxoQhy8JH7vSRgSXYq4uus=; h=From:To:Cc:Subject:Date:From; b=MwdYCzjqfgvqom/B/hOqiVtHFvMsdtkwjl/ov0q3S83mw12Oab0QP3eMAn+kGx501 FO1EARwnbIsV+TFcNkCYOTorPk3Td5gSLP2YcQ520YExPho/zqnzldLzWzklKGzx1Q 8XCrqq6fSL/+Mb4+B8yhQ12dxX73Mx6ZcUfEpXuY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 597CE601D7 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org From: Jeffrey Hugo To: sboyd@kernel.org, andy.gross@linaro.org, david.brown@linaro.org, mturquette@baylibre.com Cc: bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, marc.w.gonzalez@free.fr, Jeffrey Hugo Subject: [PATCH v2] clk: qcom: Leave mmss noc on for 8998 Date: Thu, 13 Dec 2018 15:43:40 -0700 Message-Id: <1544741020-8261-1-git-send-email-jhugo@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Similar to other qcom targets, gcc_mmss_noc_cfg_ahb_clk should not be disabled. Any mmss access depends on this clock, and its been observed that enabling mmssnoc_axi_rpm_clk with rpmcc results in an implicit access to mmss and will crash the system if gcc_mmss_noc_cfg_ahb_clk is disabled. Signed-off-by: Jeffrey Hugo --- v2: -Switch to CLK_IS_CRITICAL and add comment per Stephen drivers/clk/qcom/gcc-msm8998.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index f3c2ab4..b0c4b38 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -2027,6 +2027,12 @@ enum { .hw.init = &(struct clk_init_data){ .name = "gcc_mmss_noc_cfg_ahb_clk", .ops = &clk_branch2_ops, + /* + * Any access to mmss depends on this clock. + * Gating this clock has been shown to crash the system + * when mmssnoc_axi_rpm_clk is inited in rpmcc. + */ + .flags = CLK_IS_CRITICAL, }, }, }; -- Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.