Message ID | 20221212123311.146261-6-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 q4csp2216283wrr; Mon, 12 Dec 2022 04:36:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sCmgPHz7GDzEhbfoUH5jYj8u67VQLX7ZNowBbkP3Y4ANN4gTXZW49ciyCSiM0Wvjn5SGV X-Received: by 2002:a17:906:d92:b0:7c0:fa2d:9af3 with SMTP id m18-20020a1709060d9200b007c0fa2d9af3mr12282784eji.45.1670848571762; Mon, 12 Dec 2022 04:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670848571; cv=none; d=google.com; s=arc-20160816; b=Yg98zEgbfGkofMLQCPordbwR24K0Pn67085O/5BVZYV+ipvysV5Zwcewuaj4m3S2IA kOErvjvkEiul8ohgAgzUJiuV5QIHvi/TydDIiqyulhFH5wKce5N1kS6wEEdywi0hsFuX 6y4UXa0j1TD76HrmFUGW7aVLlkkdOSfchL2Yw1UjmF/ZfY8xkQnZqKK1bG4Oa9IgRaCw ZPVsIP9MNoL18yObh3VnosHRFnghpCJxVITwuDHXX+JEp1UlKyDKOCuHw9K/e66HWWf/ pKOt3YC6tM/vEVM2o7zLNReOW7F3vZmEErdoPypjrUorOEgdmbBSN5EbGyZ9tNgGBsfh IxHA== 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=26Q/WBAWFA3UhuhgRAc8FiDDi9U9JvKaLU8PlXNH5WA=; b=UcKgQw0D3huWDCCno2q1q/XfnD8kRd8cKSJgMYNj++HqSSjtJ3SOKAoF8w4hm97U4e 6yodY1bFWdF/UT3h/6s0qItGj61LZQOoPrH0R5Md0yctJx7yhonRGjc+eeEXATuUW4Tv Vb3NopQYSq4JK2Fn50OmVu5cX/730jxnWA8yF7PdGyPklLaa/AhHpOxi7gdsY3wkp2yT 59WyzKncxlZP/wzWiqNtL80b+R13sDaetmve02YBIf2WTRsRz8+pE2MJMNp8W/sVZeen KVm5Zj9yTubaBgsIOigRfqRKtOmegQCx2RUhYSb/kYcZILcBmQn1uKzIQq/SU/toQrfx eZRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cmoELRfD; 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 ji7-20020a170907980700b0078df1c345dcsi7539936ejc.535.2022.12.12.04.35.48; Mon, 12 Dec 2022 04:36:11 -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=cmoELRfD; 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 S232237AbiLLMfA (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Mon, 12 Dec 2022 07:35:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232307AbiLLMeZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Dec 2022 07:34:25 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8287D49 for <linux-kernel@vger.kernel.org>; Mon, 12 Dec 2022 04:33:53 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id t17so11872339pjo.3 for <linux-kernel@vger.kernel.org>; Mon, 12 Dec 2022 04:33:53 -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=26Q/WBAWFA3UhuhgRAc8FiDDi9U9JvKaLU8PlXNH5WA=; b=cmoELRfDJVkrewKkchK8Em88WWVknErid1uisKdEezigW0Dxn9Ge+SBHmjwBtQ2+E6 YxtuMsyHyxJodHk+b2wox/kY7OCLlbQ4xGpkdViVW0wO/0iKNyLEyBNvUfiDjQtR7IMk HvbBVXEETnyxk2AF22e+0l2ydtor+Lqow9QD7Kg82ZStryQDb7I94QnZBNfp0Jwu5+OO Lw+mClb/FD8uDwx+jfrK7+VrkLzIPl3WZX6DkHEld470Qh7pvK3c5cfrTyKB1XpdSYdk QrymkULlx0ur9VoOLp10l7FJ1BaTvi180PS7epFyTkIz9mmdI7C2sng3kJY/+L+or9NI Isyg== 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=26Q/WBAWFA3UhuhgRAc8FiDDi9U9JvKaLU8PlXNH5WA=; b=kTAe7gh4iJ2/BBcQhdAdW4Nhf9agqRX3HTKgHWhq3xewRT5ojBAZGmdaAU0DKwLwMQ XrzZEIKfZvfTtE6TRKnBuIryJ24/9QJhXCor8mG/ekwRVLVO/6rIJs2MVA/5Uz7vUSAv cCd7l+FQ03v2X90F/c0/clQUhvdvH+hQ4BHv4BPd9vRNDoXOzkqPdy1TdGv7ADcThlzW KXueS9ReM+s8Ssiuy6AzWTxvLpow7z5NNAFf7kV/q9+wHlJhZPktDi25+ZZkfKG5+6c3 vnF0u//sjBjaZG8CD9R07Gk9ZANSUdVD/DclEYF2b+ILZHRL11w/OQZMkaOuIsNUChEu FW+g== X-Gm-Message-State: ANoB5pmxuW5oPXgr90W9UKwGhcwzt8M+z960kYhldjmZE0Moml4gO+qU jLJMlXftscz6GmaUnboQW9ia X-Received: by 2002:a17:902:aa91:b0:189:b8a2:27ed with SMTP id d17-20020a170902aa9100b00189b8a227edmr14858454plr.57.1670848430595; Mon, 12 Dec 2022 04:33:50 -0800 (PST) Received: from localhost.localdomain ([220.158.159.33]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b00189c93ce5easm6252557plx.166.2022.12.12.04.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 04:33:49 -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 05/13] arm64: dts: qcom: sc7280: Fix the base addresses of LLCC banks Date: Mon, 12 Dec 2022 18:03:03 +0530 Message-Id: <20221212123311.146261-6-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?1752011711677262992?= X-GMAIL-MSGID: =?utf-8?q?1752011711677262992?= |
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.
While at it, let's also fix the size of the llcc_broadcast_base to cover
the whole region.
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.13
Fixes: 0392968dbe09 ("arm64: dts: qcom: sc7280: Add device tree node for LLCC")
Reported-by: Parikshit Pareek <quic_ppareek@quicinc.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
arch/arm64/boot/dts/qcom/sc7280.dtsi | 4 ++--
1 file changed, 2 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. > > While at it, let's also fix the size of the llcc_broadcast_base to cover > the whole region. > > 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.13 > Fixes: 0392968dbe09 ("arm64: dts: qcom: sc7280: Add device tree node for LLCC") > Reported-by: Parikshit Pareek <quic_ppareek@quicinc.com> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 0adf13399e64..90e11cbbaf88 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -3579,8 +3579,8 @@ 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>; > interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>; > }; > Reviewed-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
On 12/12/2022 13:33, 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. > > While at it, let's also fix the size of the llcc_broadcast_base to cover > the whole region. > > 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.13 > Fixes: 0392968dbe09 ("arm64: dts: qcom: sc7280: Add device tree node for LLCC") > Reported-by: Parikshit Pareek <quic_ppareek@quicinc.com> Same comments here and in all further patches. Best regards, Krzysztof
diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 0adf13399e64..90e11cbbaf88 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -3579,8 +3579,8 @@ 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>; interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>; };