From patchwork Tue Mar 14 05:37:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 69320 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1591358wrd; Mon, 13 Mar 2023 23:18:20 -0700 (PDT) X-Google-Smtp-Source: AK7set/935AA/IqiKRAitYx4zMrVgVYVWLIffaxTkt6B/6oJcQDMOYbKH0yRSfFxNLGQIXvmJlZp X-Received: by 2002:a17:902:a986:b0:19f:2332:d2ca with SMTP id bh6-20020a170902a98600b0019f2332d2camr8311895plb.52.1678774700196; Mon, 13 Mar 2023 23:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678774700; cv=none; d=google.com; s=arc-20160816; b=D9MQKE9A5gBySBcka1/u6+8ixgXp1a6B9dmNQ9RFSsLdZwi0BWTL04LODP6OYgnecO kMOJOUgf/vA2TbcURQF7kr1lx5IsEymagf1FcfhjZCu0wBfW115i0FFd3V8+PWfywmNu 1r765gOMNMzNNi7J9IVpp+1oFpEeEbGtmsq8vqLNUmmdbjWxkJVJWT1ixh06j69HGbYH Gj0DDLFB5AqIdOFVevd/2q9kKCdsexEEcnuNtDiq0fiYguc8yVRKLAgX1BG7tF/jkrWG 9htMvDlWEmHg28QjuimQ7kQpLc6gu+FAk4LA66Xqsz3XQFbZAiVQdqXFSsdBclxF8g1q ykIg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4tE4o5E5NxTGWs0FFcIpd5GaMpz3q7yKukVUL4nRPNs=; b=vCzKuz3ZYyIL44fj44nV6DHFMYq0RrDDlGQ8rlbG6qBmJDZ7SwppnyqJeEfPtmRr+G vHFn06eiAiDB62fJTBh7SrffOJHUxYLmo4cjNVCDmDOns2RA8JfSjYWpJcyqM5WkM2J8 YIp2CWkRalVxx8tVutPuW5vp9OC9eozfm+Ddidp2Eu1JyYRfYPiuWPnuutLaNb6P7nUZ 3NkVHjaqoBPGpkzec6sIL4Ey5wJNzdl+6RSWVlwo5Sjjf/TtAcx3uAt4c++213Fmw7Zl 5hb/FsThhHJiJZ+S9bpZp0VtTiTrIDxvz1oEmE77XC0F/+5AYXWcIx0fkk4PGdbN+0GW RFHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wmJqBLe3; 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 li6-20020a170903294600b001a04bd0a85dsi1545137plb.474.2023.03.13.23.18.05; Mon, 13 Mar 2023 23:18:20 -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=wmJqBLe3; 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 S230105AbjCNFiL (ORCPT + 99 others); Tue, 14 Mar 2023 01:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjCNFiG (ORCPT ); Tue, 14 Mar 2023 01:38:06 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B8637D0AB for ; Mon, 13 Mar 2023 22:37:50 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id h11-20020a17090a2ecb00b00237c740335cso14001244pjs.3 for ; Mon, 13 Mar 2023 22:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678772270; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4tE4o5E5NxTGWs0FFcIpd5GaMpz3q7yKukVUL4nRPNs=; b=wmJqBLe3PPzAtxKqvtVbRBPMaWvTNHEiPth7RWQgJ6zLBaUAo27PEc0oVrbGavD4dg AfMSFVO+t6s1kScrp/8cp6dCvU41Dckn9S83/o3f6tTMsDANGYlEevDegEjHXPgg6O6P 543ezXPnfrkENqcb+YmM1OpdXpyZw0u4EEIqjlBTpzn1IqHD7vFiHiLKMVAsLWKCOMzb w9zJOIloYL7lIkHmOuYninQuszhZ/PxkNwBArQt2KZmVxrCQgyp7Grkstfo7BiAOi0Jw Iyg9VsspxkJNc1wo64rbpjPI9UPa9wReMhvasEmnv2pSF0jvwRlvXxHTViyOtVCt4jPN xfiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678772270; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4tE4o5E5NxTGWs0FFcIpd5GaMpz3q7yKukVUL4nRPNs=; b=QQV77Ue/W6BgDPqs/8s2cDGVRe5rxYdjZgAFfDevbfh7Xl341FmE0O3sO1+o1TvbzG Xlb30/+zovXi9ZUQ5iFFohrq640lZc1t83HVylUvxb/ptgMu7ta2HPmuq3xnEstkvCH/ EYDXDtf9BJWHUdR0E1iuaEYAndyKuQ1YC2J2vG7Ws9ByQXum0SLJonIsum+vFvgGeRf6 Wnv5yw3SbPsHZ8d0F8NVO8/G7TM1pwESFy4dLvChgiAzve600q614ePr3t/KqdBIoMVa OkGyWakKR1MHnWMof2uzSOBCnfgvXjUcVbqi/TochQ1J+6quv8kNCo3SAEUVye9483Yv zgag== X-Gm-Message-State: AO0yUKWPQZmEWg6UCRylKnWDSXQ+FoKXeXP6EgteuL3oJp2sdamflB9k LzeKDEPUJw0aANUDetdq9Z/S X-Received: by 2002:a05:6a20:8f09:b0:cb:cfb1:5009 with SMTP id b9-20020a056a208f0900b000cbcfb15009mr46167648pzk.34.1678772270021; Mon, 13 Mar 2023 22:37:50 -0700 (PDT) Received: from localhost.localdomain ([117.217.177.49]) by smtp.gmail.com with ESMTPSA id n126-20020a634084000000b005034a46fbf7sm675093pga.28.2023.03.13.22.37.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 22:37:49 -0700 (PDT) From: Manivannan Sadhasivam To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, bp@alien8.de, tony.luck@intel.com Cc: konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, james.morse@arm.com, mchehab@kernel.org, rric@kernel.org, linux-edac@vger.kernel.org, quic_ppareek@quicinc.com, luca.weiss@fairphone.com, ahalaney@redhat.com, steev@kali.org, Manivannan Sadhasivam Subject: [PATCH v7 03/13] arm64: dts: qcom: sdm845: Fix the base addresses of LLCC banks Date: Tue, 14 Mar 2023 11:07:15 +0530 Message-Id: <20230314053725.13623-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230314053725.13623-1-manivannan.sadhasivam@linaro.org> References: <20230314053725.13623-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 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,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760322860204538815?= X-GMAIL-MSGID: =?utf-8?q?1760322860204538815?= The LLCC block has several banks each with a different base address and holes in between. So it is not a correct approach to cover these banks with a single offset/size. Instead, the individual bank's base address needs to be specified in devicetree with the exact size. On SDM845, the size of the LLCC bank 0 needs to be reduced to 0x4500 as there are LLCC BWMON registers located after this range. Reported-by: Parikshit Pareek Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 479859bd8ab3..3bf95a12ebb9 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2192,8 +2192,11 @@ uart15: serial@a9c000 { llcc: system-cache-controller@1100000 { compatible = "qcom,sdm845-llcc"; - reg = <0 0x01100000 0 0x31000>, <0 0x01300000 0 0x50000>; - reg-names = "llcc_base", "llcc_broadcast_base"; + reg = <0 0x01100000 0 0x45000>, <0 0x01180000 0 0x50000>, + <0 0x01200000 0 0x50000>, <0 0x01280000 0 0x50000>, + <0 0x01300000 0 0x50000>; + reg-names = "llcc0_base", "llcc1_base", "llcc2_base", + "llcc3_base", "llcc_broadcast_base"; interrupts = ; };