From patchwork Tue Mar 14 05:37:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 69307 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1583284wrd; Mon, 13 Mar 2023 22:54:45 -0700 (PDT) X-Google-Smtp-Source: AK7set/eVjqyPGI6vC9aD5IlAX0P5YcwIyFPSf868YoKzbb24+Ofw0C+5LZixK+0oZlcJecdADEf X-Received: by 2002:a17:902:f54a:b0:19e:6e00:4676 with SMTP id h10-20020a170902f54a00b0019e6e004676mr44270210plf.61.1678773285381; Mon, 13 Mar 2023 22:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678773285; cv=none; d=google.com; s=arc-20160816; b=bgJ6LI5ggj3fHg3k0IeURkFo00FLtbSwJhkISo4/U7cBDK7HhWvX4shTKT74jy8Rfy trTGYDFl7Ke44u6EZ8a4EIa0ivriKuaxlI+wPoye15aOynBHwAgrxOK8L3TJ6CFBsx+6 hHqDVC3DgEjhtyKp9rQMx4dPWgdhhUkQVGr6a1Blvj153ayEKq++dAX/6HFY8OgBMgki qTvqQvA3ZJw01CkDOiTf0k8B6zrFxmnX5IJ0AEIGbE+kXd9VSbzqEsQXXGNJsKZbm7Gy D9vwqNV8TZ97pnlANloCwHBZjSIYZ59vu2VDbBuhtbeYxTgWIvo/EQCoaEDWVzVyDRhp r7Tw== 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=H3jjAvyClxqCSaG5sOi6OveXFyY33UJ9o9fFaRGOIoU=; b=g4X40TeZEFgwhm7xUGVvwQcYB4nQ8Cl8YfJAKGDC3r/VZJz71L1trC48WuFQKBV1PZ wGeF1XbMhV0/ONDIO4AlfgNRPpSpdrGtQz6LSZykKA2HvASEWZoEN4ioIJH86nS0lm6L kfpYSevEuWuNKccLKJBQEc7dy6qnc7bcjIufQDjeK/UdXNk65lkkOj89qiJq2oZ+s5Hc sw2NmHDEJre2EkA31dEN7UFCk31TYDzJHH1eUe51b1VK67fQFYM7SHQyhZ3NeiQPl/XJ MLzqynhHi4kZr+TlqcRNm+UBDlJA82hsaDbSsqPcGfZW9PTyv55xqDSiQpu5ZsuAHr6K KyzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pTopKsVk; 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 kt8-20020a170903088800b0019f24ac470bsi1602011plb.559.2023.03.13.22.54.30; Mon, 13 Mar 2023 22:54:45 -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=pTopKsVk; 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 S230164AbjCNFiX (ORCPT + 99 others); Tue, 14 Mar 2023 01:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbjCNFiT (ORCPT ); Tue, 14 Mar 2023 01:38:19 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0862413531 for ; Mon, 13 Mar 2023 22:38:00 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id cn6so1698446pjb.2 for ; Mon, 13 Mar 2023 22:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678772280; 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=H3jjAvyClxqCSaG5sOi6OveXFyY33UJ9o9fFaRGOIoU=; b=pTopKsVkrmcnJWqtjzZETiBVVfzs36mxPQet1SSc4HmcKIl/9QrxEYG8b3LT4J9hxb S++6m5piyCfxh/s+J3V0YdwSE7c+YYV23iZ0mGgr/YL01LCbOCZMEo0vcy/0O/xlytSc LagXJ0g5iUX9DCWADWV+i3Zk/rk+wLcMSsytrT5KbHQvuHvToADbxLtkT7wJM4EprV58 HTOVaBE6y7rMUumLYRa/w/fNNySH2+SlPtDX3hI+f8x5aDoIBVak6k0JWY74QCeore1g 2gHtZjtXDBo0bmCMlmh4B2iQnapr2JSJss5eKGyKGfIgjDxJ3I/lxtYx4ZRTXx2zTiFk lVPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678772280; 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=H3jjAvyClxqCSaG5sOi6OveXFyY33UJ9o9fFaRGOIoU=; b=nOyzN69bCdZfuAshqjqb3KFPtxmedDAG4UjF+h6YnI1FhH6nPEyANSFmiv/Mcb4w6A 76bR8LgEk2b2T1cbjyDyW3Ndvhpj7J5pCgNgjG4VdEzFckJvx4hMA9w/t+IRq70M32Ha sN0MZIu6GIRAELXDyiGcULu7cT9QSwAJUOOHKxGb4sTUfzUGGgIbMDIV6ruB52PYurxw D3RCSVGOzWEtjzyzgQxtGjQl0QPsVz12GUddPQyvE80XMw4Elz9kRnyswcDMTw8Tvmaj OOOyeRNx3cwwL60/HvMSUG6VC6cqsM0dG0IJ7K/nzx+G3wVYl5xa1MWwFk4QVKMZw7ay lhcA== X-Gm-Message-State: AO0yUKXH6gfT6emhoaEs45byivGDcv+Mau+HinZ0aYVfXsepSfXdvULU 8wyNNvUooHKbyy3PYw26iAVp X-Received: by 2002:a05:6a20:b919:b0:cc:7f86:a804 with SMTP id fe25-20020a056a20b91900b000cc7f86a804mr32705451pzb.6.1678772280120; Mon, 13 Mar 2023 22:38:00 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 22:37:59 -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 05/13] arm64: dts: qcom: sc7280: Fix the base addresses of LLCC banks Date: Tue, 14 Mar 2023 11:07:17 +0530 Message-Id: <20230314053725.13623-6-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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760321376213964273?= X-GMAIL-MSGID: =?utf-8?q?1760321376213964273?= 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. While at it, let's also fix the size of the llcc_broadcast_base to cover the whole region. Reported-by: Parikshit Pareek Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index bdcb74925313..afe74db1f5ae 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -3582,8 +3582,9 @@ gem_noc: interconnect@9100000 { system-cache-controller@9200000 { compatible = "qcom,sc7280-llcc"; - reg = <0 0x09200000 0 0xd0000>, <0 0x09600000 0 0x50000>; - reg-names = "llcc_base", "llcc_broadcast_base"; + reg = <0 0x09200000 0 0x58000>, <0 0x09280000 0 0x58000>, + <0 0x09600000 0 0x58000>; + reg-names = "llcc0_base", "llcc1_base", "llcc_broadcast_base"; interrupts = ; };