Message ID | 20230531-topic-8998_mmssclk-v1-1-2b5a8fc90991@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2740911vqr; Wed, 31 May 2023 02:19:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tfk+91yI5zHSZbKVjjgtVAQTeRvRn4uOQwuD+capjUzrAdG+bK8zvEt5TaixYbShS0rxq X-Received: by 2002:a05:6a20:6a1e:b0:10b:dca4:8a3b with SMTP id p30-20020a056a206a1e00b0010bdca48a3bmr4947974pzk.31.1685524781275; Wed, 31 May 2023 02:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685524781; cv=none; d=google.com; s=arc-20160816; b=lUxgB/INruhvJcr/UFNwD1twKAHVAyxn/VbtlxG/VzJ2uQ1sujXhJK3iq+FY0lfrHj 7B+Ol87KnMlMwRfxPdYVJ/Qpqnom0uiS9sF/jjfjEKdLoKGeWqvl2YINWpP6yGQc2gfj phdzhnnG49Q6Kr8jtZC6nh1MuxVOABI6/GUGgj9+1jrX49WL3GW9LM4RW4s8w+79dJui WVJuCeX732xS+HDwogeQAM1H/oLxT0uqjfQb0fSYJcZumYgPndbY4UmnxQhWMiE01OlY VsN3Zwh7N6No0rQz3mnTKxoDUpn1MfPbFV5oUe8GQ6si122/L57BBIDKHm/bcA6T8SHj FtvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=YwKzCoB/TILHKyYpnl4R4TBT0ZP2W8fCrxJWyMABiAg=; b=fOWLYAlj0i9V7zRC5rPWAtOUwEJnII2ENBsQ11IcllYCy7Zjx2p2aNHecHVQjc13+x 1iv/3oj1m7hGe6i9TmEoMATLDCPhMCLXUIQ46zCfgUl5TBQGnkulZt31KmQKsZP8lKLc ImFyuMjNtcpa19/dm9crInBNxHRtVFvUuUazmig7LFOVywowzHShBwWYg35DlAtPlL6U JcBQ/EIRhqGtyBEULyV58lUggLSjZGBLrUELE9FNgOO7V7Ey/u8mHaKimOEza2C93NfA 020t+0QlqVCLDtT2QZ0bVH9OSk1fm3zdZxqpZSRwD+Q9F1Y9zAJXHYm9OM6BeLj8+3ew onNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VEGUj0x9; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a170902c10200b001ac91ece0dasi593231pli.7.2023.05.31.02.19.29; Wed, 31 May 2023 02:19:41 -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=VEGUj0x9; 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 S235232AbjEaJBk (ORCPT <rfc822;callmefire3@gmail.com> + 99 others); Wed, 31 May 2023 05:01:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235062AbjEaJBd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 31 May 2023 05:01:33 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A2211C for <linux-kernel@vger.kernel.org>; Wed, 31 May 2023 02:01:31 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f3edc05aa5so6247245e87.3 for <linux-kernel@vger.kernel.org>; Wed, 31 May 2023 02:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685523689; x=1688115689; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=YwKzCoB/TILHKyYpnl4R4TBT0ZP2W8fCrxJWyMABiAg=; b=VEGUj0x9Uzf8Pr5fl4WpLLIvhZBGhzK4Q4mHOJp7suaXLvfHMv8N5fPWEGjp9CdlWs Lksbh9LvBEdK8N21eKo0gl0ZiZB5wJoy/G6swWYe29TmlNq7uONg1xQFwtyxs4ctoZJl CpoaYoFdIbgVJHhku72BprC4KSqX+dQ0Z5sogbU4KEqFUtRViwGIDF8QaE3SQk2hql/5 e9Kbd90BAVc+ncYxnSRYQu0ZGTeOv7gsb6uvxPwdRPS/vtAFyCSwYrzPOP79bxmb+Pcv 9Xk53QUfhvnWZOdOGmJwZD5yRELyIq35B1DlpCoyaM4RUcR74uSQrw0Lce9hFDgDht54 upOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685523689; x=1688115689; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YwKzCoB/TILHKyYpnl4R4TBT0ZP2W8fCrxJWyMABiAg=; b=ciSkgk6zaFx/UnbJSH2jCQWoUt/WmuRlgttHKqI03zQrXL03J6TA7MLMTunpOWeQON 3do1GOC9/IDaokPYuxWekNlBwFL7h1twgVcs+Ncz1xXAiQKcKRxGEO4nfvaA68qhPkea Y3rhPXDg06RMILKoKrNCv6jLJ9fIDH/VmLzdMNIHcDWuTtGydIRQN1z8PIf1JuymyM7o EKOOgv+TkBOSp6bMGgBOqTE9UPjM+7UYDI2FUiIgqSxAQ696HK1t+Tj/4P2Jv4yZMt/r kYGs7sCXb4vM2QK011WqMLCDMIjJOTSQ5aYry0oBNkTI29zQkhhKMLz1aRgM/dYYjdKP f3iw== X-Gm-Message-State: AC+VfDzJXi3HkSIiU7CHCl8VGpppLHiJC8DVNPLMrpA8gyARBofBNzlG gA8q8iHZ+LNXBat2WXfuNtRCyA== X-Received: by 2002:a2e:2c06:0:b0:2af:18c3:8bd5 with SMTP id s6-20020a2e2c06000000b002af18c38bd5mr2308261ljs.14.1685523689448; Wed, 31 May 2023 02:01:29 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id f4-20020a2e9184000000b002adbe01cd69sm3217446ljg.9.2023.05.31.02.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 02:01:29 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Wed, 31 May 2023 11:01:20 +0200 Subject: [PATCH 1/4] arm64: dts: qcom: msm8998: Properly describe MMSS SMMU MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230531-topic-8998_mmssclk-v1-1-2b5a8fc90991@linaro.org> References: <20230531-topic-8998_mmssclk-v1-0-2b5a8fc90991@linaro.org> In-Reply-To: <20230531-topic-8998_mmssclk-v1-0-2b5a8fc90991@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Jeffrey Hugo <jeffrey.l.hugo@gmail.com>, Imran Khan <kimran@codeaurora.org>, Rajendra Nayak <quic_rjendra@quicinc.com>, Joonwoo Park <joonwoop@codeaurora.org>, Jeffrey Hugo <jhugo@codeaurora.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Jami Kettunen <jami.kettunen@somainline.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685523686; l=1326; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=i0NwJMAAnRECp+k7KcPhWAOJXSM4/4ftIM+77PjbY6U=; b=BGyufNvhaW0pxT12xw1LjSk1u+kvz6rfQ1SRXNhMYH3mgey6Icz+rTWlHdTqfAz2wnjT6t3Md MZ5/Y3eyck+A2AoAIcZW/PS3Wr7F3rDncrHYuSykoAPO3FHLjrNNxYF X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767400833301086175?= X-GMAIL-MSGID: =?utf-8?q?1767400833301086175?= |
Series |
MMCC MSM8998 fixes
|
|
Commit Message
Konrad Dybcio
May 31, 2023, 9:01 a.m. UTC
The MMSS SMMU has been abusingly consuming the exposed RPM interconnect
clock and not describing the power domain it needs. Put an end to that.
Fixes: 05ce21b54423 ("arm64: dts: qcom: msm8998: Configure the multimedia subsystem iommu")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/msm8998.dtsi | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
Comments
On Wed, May 31, 2023 at 11:01 AM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > > The MMSS SMMU has been abusingly consuming the exposed RPM interconnect > clock and not describing the power domain it needs. Put an end to that. > > Fixes: 05ce21b54423 ("arm64: dts: qcom: msm8998: Configure the multimedia subsystem iommu") > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/msm8998.dtsi | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi > index f0e943ff0046..a4016085b750 100644 > --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi > @@ -2737,10 +2737,10 @@ mmss_smmu: iommu@cd00000 { > > clocks = <&mmcc MNOC_AHB_CLK>, > <&mmcc BIMC_SMMU_AHB_CLK>, > - <&rpmcc RPM_SMD_MMAXI_CLK>, > <&mmcc BIMC_SMMU_AXI_CLK>; > - clock-names = "iface-mm", "iface-smmu", > - "bus-mm", "bus-smmu"; > + clock-names = "iface-mm", > + "iface-smmu", > + "bus-smmu"; > > #global-interrupts = <0>; > interrupts = > @@ -2764,6 +2764,8 @@ mmss_smmu: iommu@cd00000 { > <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>, > <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>, > <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>; > + > + power-domains = <&mmcc BIMC_SMMU_GDSC>; > }; > > remoteproc_adsp: remoteproc@17300000 { > > -- > 2.40.1 > I think you should split this up. This should be two patches. One to describe the power-domain and another for the removal of interconnect clocks. I guess none of the multi-media connected stuff on 8998 works ... no venus, mdp, camera - which would surely fail without the multi-media AXI clock being on.. Anyway please split this patch up !
diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index f0e943ff0046..a4016085b750 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -2737,10 +2737,10 @@ mmss_smmu: iommu@cd00000 { clocks = <&mmcc MNOC_AHB_CLK>, <&mmcc BIMC_SMMU_AHB_CLK>, - <&rpmcc RPM_SMD_MMAXI_CLK>, <&mmcc BIMC_SMMU_AXI_CLK>; - clock-names = "iface-mm", "iface-smmu", - "bus-mm", "bus-smmu"; + clock-names = "iface-mm", + "iface-smmu", + "bus-smmu"; #global-interrupts = <0>; interrupts = @@ -2764,6 +2764,8 @@ mmss_smmu: iommu@cd00000 { <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>; + + power-domains = <&mmcc BIMC_SMMU_GDSC>; }; remoteproc_adsp: remoteproc@17300000 {