Message ID | 20221212123311.146261-9-manivannan.sadhasivam@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2216490wrr; Mon, 12 Dec 2022 04:36:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+ZhGKk3cUr9GqIiTMFL4Sx4PaL+G4Ejc5sB7CMGYO0j3/eZX5ytv5hrcORLq9JQBlkpbM X-Received: by 2002:a17:906:713:b0:7c0:dcc2:e7b1 with SMTP id y19-20020a170906071300b007c0dcc2e7b1mr12992018ejb.43.1670848598682; Mon, 12 Dec 2022 04:36:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670848598; cv=none; d=google.com; s=arc-20160816; b=IUfX38/vYA2H6rb4aKTOHlMj/SCleAtuyEevFIiBuLzOZc8m27EjSX2mznhDA7WD0a eihPfZhcsekkPwH9eOL7T+oGdJExPxoTGuhJ6ZjuQF2zyCWR4p+CVxwmjK4PrsXOiyvC VeZSKv2BN4dNpfDrwmDh8UlF1ud0sNnC3BMzZgvp7eCc1fVAuw4djkt7MvqxoB2nvI08 jIV+sJ3EAH/ZCLd7+JfsLbbZF3jsoutoGuk3cA2tn2x+BQmFtLRLxzMA2lMImrF+l4Ao oTvgjTa2uwjF9vINKpSlXLJzqU5Cgck5lX8UYZO8p8IdKOpIZ1Up21IBlUVs5k4OLVPB SWCw== 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=w1T81HxDJP60aMe8zkxEbatF3LDjVT92Yb8ZgaRaQ8U=; b=DoE6I+JI4datyDL/dHFXl8QI/5y7Np9FVMjr7N2TCXAROwfs9sjUxfZp21KAnVD4hY ESlsETPPKCR1M/Q8vBzWIJYq5iCRR9POUWxoa6sUBIiIxMe6PbRAEfRd6MGqQ5eXG54I jR8aq8uzBTt6uPxsk+q3wRZNRkzxe8TWdryoqihKZ2lTF4ZRJJOIyKOjJrQZM7cs9NdU pFfxX95ky2yCk0mkNw8mGTFM91ROHbZqkxe7c0G5WHyX8kai4JndGpu/IuT4yvy5uJgL IJX3bztdDhMalclGGV943ERcUT07J17uU2XSt+ajIk7A9bzcxboWkJlzzIz9ONNUw1Ou +RXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RbZaWt4J; 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 j2-20020a508a82000000b0046194b2dd53si7321021edj.119.2022.12.12.04.36.14; Mon, 12 Dec 2022 04:36:38 -0800 (PST) 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=RbZaWt4J; 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 S232330AbiLLMfu (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Mon, 12 Dec 2022 07:35:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232277AbiLLMfN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Dec 2022 07:35:13 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50D6B12AFB for <linux-kernel@vger.kernel.org>; Mon, 12 Dec 2022 04:34:36 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id k88-20020a17090a4ce100b00219d0b857bcso12062716pjh.1 for <linux-kernel@vger.kernel.org>; Mon, 12 Dec 2022 04:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=w1T81HxDJP60aMe8zkxEbatF3LDjVT92Yb8ZgaRaQ8U=; b=RbZaWt4JjHpC7wHc8DiR0ugxsqYVlSs/Ui0Tp+KU9MJDZo0efJx78afFLwZSmZGoBC UzhPhAktJRTlz2NIBzcfKmDVZKKu11egZcWrdK4bf/M6hbtuhL44fbEzU54WhkgUFUT1 d4Z5SJwxmhrTa+17dD/7/Nt1BQkIilRDI6pY21zaQf4atZ2ybOLN9oHQr67QYa88ViaV zr7Lvt4qFgJoUjIv6bJsym10KzgGmjmFZ8vdzgF7Zv80bGeD8FUjdi+3p9e0CwmBbBW6 PoFdCBcuDZzfnlOnFzpBJzXLo2ACL8ehLJz5KvdA1k6fqk3oN7Y10U9moixr943CGIWl SOKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=w1T81HxDJP60aMe8zkxEbatF3LDjVT92Yb8ZgaRaQ8U=; b=LEId4OsBjcAR0f79fB4/tNBzvqhLQmmaptxbVXqWF63j6hL01p6ho6JdhSpDDyEy2k P57VXmRVydHaGueYzSknJD7mJh9KGI29G/b9oABU8KSO6DQCyXwAeUmIJD738bBy8bc3 j8joNI4kKSNIIUSlrt40ems4Tq29X7msM3kHL+x7FGBlodjEvST7dZiYDZjUlK6Ctp5p M9NeEgO9iSoGA7/330eH3WPlWsefte2oNn/d6K9KjTVsPctqu7FfWss9+xeVk4fcPPHT UyYlyUvUwmZWjoxwQk1GcJYGkMqWFq2jw04F6RHJk7a3ofVIuWdWE/Z57KoThvmFqG24 IUlw== X-Gm-Message-State: ANoB5pngFM7EQKW/BCstF0nBTKZf/JA0KqQEua5ZlO+m5Oie6VxuyL31 kEY7I+VllIamTWmnHItJ78aJ X-Received: by 2002:a17:902:b20c:b0:189:3308:9a2b with SMTP id t12-20020a170902b20c00b0018933089a2bmr15457836plr.7.1670848450047; Mon, 12 Dec 2022 04:34:10 -0800 (PST) Received: from localhost.localdomain ([220.158.159.33]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b00189c93ce5easm6252557plx.166.2022.12.12.04.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 04:34:09 -0800 (PST) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, bp@alien8.de, tony.luck@intel.com Cc: quic_saipraka@quicinc.com, 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, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, stable@vger.kernel.org Subject: [PATCH v2 08/13] arm64: dts: qcom: sm8250: Fix the base addresses of LLCC banks Date: Mon, 12 Dec 2022 18:03:06 +0530 Message-Id: <20221212123311.146261-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221212123311.146261-1-manivannan.sadhasivam@linaro.org> References: <20221212123311.146261-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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?1752011740245940047?= X-GMAIL-MSGID: =?utf-8?q?1752011740245940047?= |
Series |
Qcom: LLCC/EDAC: Fix base address used for LLCC banks
|
|
Commit Message
Manivannan Sadhasivam
Dec. 12, 2022, 12:33 p.m. UTC
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.
Also, let's get rid of reg-names property as it is not needed anymore.
The driver is expected to parse the reg field based on index to get the
addresses of each LLCC banks.
Cc: <stable@vger.kernel.org> # 5.12
Fixes: 0085a33a25cc ("arm64: dts: qcom: sm8250: Add support for LLCC block")
Reported-by: Parikshit Pareek <quic_ppareek@quicinc.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8250.dtsi | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Comments
On 12/12/2022 6:03 PM, Manivannan Sadhasivam wrote: > 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. > > Also, let's get rid of reg-names property as it is not needed anymore. > The driver is expected to parse the reg field based on index to get the > addresses of each LLCC banks. > > Cc: <stable@vger.kernel.org> # 5.12 > Fixes: 0085a33a25cc ("arm64: dts: qcom: sm8250: Add support for LLCC block") > Reported-by: Parikshit Pareek <quic_ppareek@quicinc.com> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi > index dab5579946f3..439ca5f6000e 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi > @@ -3545,8 +3545,9 @@ usb_1_dwc3: usb@a600000 { > > system-cache-controller@9200000 { > compatible = "qcom,sm8250-llcc"; > - reg = <0 0x09200000 0 0x1d0000>, <0 0x09600000 0 0x50000>; > - reg-names = "llcc_base", "llcc_broadcast_base"; > + reg = <0 0x09200000 0 0x50000>, <0 0x09280000 0 0x50000>, > + <0 0x09300000 0 0x50000>, <0 0x09380000 0 0x50000>, > + <0 0x09600000 0 0x50000>; > }; > > usb_2: usb@a8f8800 { Reviewed-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index dab5579946f3..439ca5f6000e 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3545,8 +3545,9 @@ usb_1_dwc3: usb@a600000 { system-cache-controller@9200000 { compatible = "qcom,sm8250-llcc"; - reg = <0 0x09200000 0 0x1d0000>, <0 0x09600000 0 0x50000>; - reg-names = "llcc_base", "llcc_broadcast_base"; + reg = <0 0x09200000 0 0x50000>, <0 0x09280000 0 0x50000>, + <0 0x09300000 0 0x50000>, <0 0x09380000 0 0x50000>, + <0 0x09600000 0 0x50000>; }; usb_2: usb@a8f8800 {