From patchwork Mon Dec 12 12:33:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 32364 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2216499wrr; Mon, 12 Dec 2022 04:36:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mQb+ZnQZKbCXvwBBCXlrr8ocfjZbwt1conzNnYUGWctIv7pK485EDrwL8QuMifEne0KTH X-Received: by 2002:aa7:d694:0:b0:46d:543:b4c7 with SMTP id d20-20020aa7d694000000b0046d0543b4c7mr14027626edr.17.1670848600963; Mon, 12 Dec 2022 04:36:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670848600; cv=none; d=google.com; s=arc-20160816; b=HQ3a54x6U/qV1+LFOo8sCZ5EN8S+nDtaKfROYph5M78fBys2I+Vh5uXa9Bv68kpiea kqJ/g7jAvMn+6k15cBr8PmMBlnZvh5bYiHIhsnUaSQjizko7TDXiEBQHP9yWNBvFET8H h7+YUDxd32PRwmZib/I8VNw8ZEi6jfQK6dyf4xssrO8yuceqmOQZM/UTG3JD3Ptsokhx BhP7Sb7vMcNLFrK71L6Bkf/689FFEj6w9iOt3KU83k6F3cTNVQgQPuubGGX7ERTxZzXA k3IXDx9nOkf8VrS44oIn0/LnLjPhFGGe+p/BOTChlqI4lJOKiVpM6yyves4wTswjIMZp C5tw== 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=apPGFedAv3uAmQAp6xD4tNC7N1DZdKzki801rLgGfFs=; b=0cXWm1BYuNb780UHFJzeYiMjgqGApjFiPeqTpfj/66bmPt7m+g4bp5b5MPAdRIlKz4 KMJ9lluhvAkp2/m0pSBdUTAei2vi9dk+O0dXxRnKCldPLC/oTJzrJz42mAVFYhUhTQNZ rmWG/K57Ze3Jo+LfZRHjI7yfdCvPTa6cBTy/kgzI974xmPiNvMXFiEsgKC7aNlt3QUjY pjBwqlu+OvxjXea/grKsoePVfUcv/A4jWWPezKtO5r0ZjZy0RQmFhE0g1lH8dSQULMdj K1t77xzc2e8qav9ZUiGKHKEbpqmyfj0otrXZwt7/p8H2mW8kkrpOCaOh3ITVG7DrNJIq tszQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rvpNc8D4; 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 g13-20020a056402090d00b00451e0d930dfsi7439701edz.497.2022.12.12.04.36.17; Mon, 12 Dec 2022 04:36:40 -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=rvpNc8D4; 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 S231795AbiLLMf5 (ORCPT + 99 others); Mon, 12 Dec 2022 07:35:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232283AbiLLMfQ (ORCPT ); Mon, 12 Dec 2022 07:35:16 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E8AC12609 for ; Mon, 12 Dec 2022 04:34:39 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id 3-20020a17090a098300b00219041dcbe9so12041925pjo.3 for ; Mon, 12 Dec 2022 04:34:39 -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=apPGFedAv3uAmQAp6xD4tNC7N1DZdKzki801rLgGfFs=; b=rvpNc8D4tUlWJjtdcx6r2kqPUvDpcCZXEVp8rHRZOdG2ZylbdXSlA8X1WBvN3Dcze+ AqowEJ/9OFPO3NuyEVu89W2Orgo1iLJY3jmbYAXE6QvpdTh4I4ctkJMUq90CF/BX7lfL wad84Nmgs7J6W8BRaaSM5GcgN8dmrcwRN9QPNACcBPyZOqhO7pziTJPcx+ht4ft6YBwc i/BcTPWVq4YlLIw/zLf4Ilk/vQEByu5A9DwIWXQ8PkZpSs4Yqg7HOBoJl9OGUjgEvTPj Bcxhyv2FEGNfVvupN4jXpr/eQVVFIgLWmSC16XdVCZQXba6uXFWN1upJfaCW4yOhXL4Q v8WQ== 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=apPGFedAv3uAmQAp6xD4tNC7N1DZdKzki801rLgGfFs=; b=aKbByw7sW9CgGK4NAkIVmz1Q+1noOxfnMk6JMKjfb1NVXOCYOrFCWk+k9v5JWHLY0i QWBRNdahRUAX1MyXk/4KNU8sUgzySIxnPdJrulWsVb2AEK1ZTespnTpa4/7lH7Fubgqk QnbG99q8aApJpq3J6pN3F8RngB49zEZhc74Y1f95lPs5AuFQs+cisMYEjbsfH9tbPJQJ cD8h/fpEwbQNNC4PeAIaVGYFcHuippZ47d2YL5EnclMqZly6TTgww5i+GvLRft1yJt0u 9y/HcRUVwjRvsS0RxhnhXHgR8Y+P1xE02sJuAponWlzCHLHV6mMkPgzd5C7Z8CO6Ibl2 +VJw== X-Gm-Message-State: ANoB5plGNnPvnvFCPLW8mziJ88NCSHTZE7BGgTLtFfIULuGpAEvJYOLA PkOXy+odxbJplBBBUmxb7ZyS X-Received: by 2002:a17:902:a70b:b0:187:ede:e014 with SMTP id w11-20020a170902a70b00b001870edee014mr15848859plq.44.1670848456668; Mon, 12 Dec 2022 04:34:16 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 04:34:15 -0800 (PST) From: Manivannan Sadhasivam 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 , stable@vger.kernel.org Subject: [PATCH v2 09/13] arm64: dts: qcom: sm8350: Fix the base addresses of LLCC banks Date: Mon, 12 Dec 2022 18:03:07 +0530 Message-Id: <20221212123311.146261-10-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 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=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?1752011742320947971?= X-GMAIL-MSGID: =?utf-8?q?1752011742320947971?= 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: # 5.17 Fixes: 9ac8999e8d6c ("arm64: dts: qcom: sm8350: Add LLCC node") Reported-by: Parikshit Pareek Signed-off-by: Manivannan Sadhasivam Reviewed-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 245dce24ec59..7f76778e1bc8 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2513,8 +2513,9 @@ gem_noc: interconnect@9100000 { system-cache-controller@9200000 { compatible = "qcom,sm8350-llcc"; - reg = <0 0x09200000 0 0x1d0000>, <0 0x09600000 0 0x50000>; - reg-names = "llcc_base", "llcc_broadcast_base"; + reg = <0 0x09200000 0 0x58000>, <0 0x09280000 0 0x58000>, + <0 0x09300000 0 0x58000>, <0 0x09380000 0 0x58000>, + <0 0x09600000 0 0x58000>; }; usb_1: usb@a6f8800 {