Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp890744rwb; Wed, 7 Dec 2022 06:18:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qfd3gAzXFftAZV16Qt/+vqHoPQKYVz5bPPgJeMJHbDFMgjvLCiHCYWdGp2HWsIbwJzHGN X-Received: by 2002:a17:907:766b:b0:7c1:10b6:3ea0 with SMTP id kk11-20020a170907766b00b007c110b63ea0mr5355767ejc.132.1670422695790; Wed, 07 Dec 2022 06:18:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670422695; cv=none; d=google.com; s=arc-20160816; b=pjX6lDopIACbOjjGzpTI/KQFEMaExsAA1PNTRBKILNZoQH8OVdwDz0Umhk/eVE28fo yjFPzuubIJWXICfi9IYrx+nxQX3XaXYrIH4D7xoV74LbpL4y5JLx4pUa7gl3EfY3BuCJ b7zMP7tL6bQWu2tPeNzWRjJgQqdauSnhujPdF6rUcc8qnR4D2w58BncAGalX5lZ06tcp Z+k4AaJEIrKa43XUHAmO8w3ethBKtA0rWk6XvcHWgFLFReAh7E71XVJ/P20WQv45wXXm hrHMidApSAnzDGmtgRUzHLs8nPDgcwsRIwT2qYNz5X7Ml+0FX3r/FGPJ89k6lDDJU/zY Dfdg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=9qzjJqhRbd7WQ4NJO5tO8jZvOkII4hk1EVHsUTMW3vw=; b=vLZ2QmKdiAG+NGei97YeWLo97boiY62+M/o8URzczzvuYZAMF06PY0HLBoZKIABQXF 5OgQm4TD5o3sdneenm2q/2Qm6U7na7Prl4R2sVz9LT/DfESTh1cXnEuvVUGGbP+n1FxX Mg70mJ+HoARCC3b9f2OufGVpNbDKjGRBaKTChXNrIeJvp2doB0IHjEhrq9UIqyKk14mw ii2HHpvYp/1TnhnObTPv/g5VGrX2PwetLoHyJf0NcbYYTifLEC3WCkpBY2cYUppBirzY v0+0whkNdUHTHh7vRaEFcfsvxW4IPwEO6LljLw+FLtrzUMPl9TAdupdf2E1RCSU972bw mqXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LL2DHlQE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz17-20020a0564021d5100b0045cfb63a033si5264634edb.551.2022.12.07.06.17.57; Wed, 07 Dec 2022 06:18:15 -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=LL2DHlQE; 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 S229931AbiLGOAE (ORCPT + 75 others); Wed, 7 Dec 2022 09:00:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbiLGN7i (ORCPT ); Wed, 7 Dec 2022 08:59:38 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 487DEA452 for ; Wed, 7 Dec 2022 05:59:36 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id 65so4850215pfx.9 for ; Wed, 07 Dec 2022 05:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9qzjJqhRbd7WQ4NJO5tO8jZvOkII4hk1EVHsUTMW3vw=; b=LL2DHlQERrB8h3H6WtB4mA+079B71Iz3/+GN4SxQn4vKfgHGxTOJ+lMTsePmtgdGJq XAE+aDM+uTO8IpudWEGKSIPnYOCBQdI+KOiks6CLrV+Y1a/XCHqP3HDZWd0k1jlBO/xX lVeXXNyUv3yrSkbqyyD0XkbQCOre9Z9m13kHcGLQgxsF4emkgI46vFY0EPqPsZmVCNK/ qhdodfFhQvW2dzyEf9OyiL8v8n+sAP6QEpit1rySYfFdoJGFDdEWonVYjT75M+yXccbU DIZGYa6rZrZFfHj4U7nA0/hJUWIMCLRFYtQ7JgUdzZ34C0+frCkQHP2zwKeB9T2I5jbT G2+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9qzjJqhRbd7WQ4NJO5tO8jZvOkII4hk1EVHsUTMW3vw=; b=qLH1/O9b+29n+AF7RBQcdQrMERSiM1pFCCnPs9J0Yc12ghm1AdIiLJhmo4qx7af8Ig ja810VYbQkTDImgKNQqvTFbCdNqdF+0l59gJJlWNiHYWNix/1yemLsKy9VkD5dHKfK5J wiYpTVU46uHVmJ8B2NZVlt1GBDvsZpPt5Vu7k1AdVvovzzaRxHL4QdSYQXMqzcxg/ZQ5 Qw4ejKpRx3Pc3GY+d2fuV3rpps0ddAZ5ZkGythOISUWQiLahJ4/fi4zCyhVv3vTIE/qW mdS89nrJ2ci160kOygxT9q4MJi3QeBbhc9HZGxfDcLoOxGOjLzRS6Hg+ssG7TB1DqEVq svdA== X-Gm-Message-State: ANoB5pkhDS/bqa08rP2eWf/YNILvRpbkCuC3wWOf9iOp+lsSUgE2UBKM SM0sabhvk0ZxeWYrPB0HtiTn X-Received: by 2002:a63:2154:0:b0:477:b650:494b with SMTP id s20-20020a632154000000b00477b650494bmr62341263pgm.434.1670421575614; Wed, 07 Dec 2022 05:59:35 -0800 (PST) Received: from localhost.localdomain ([117.216.123.5]) by smtp.gmail.com with ESMTPSA id c18-20020a170902d49200b00186b69157ecsm14720160plg.202.2022.12.07.05.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 05:59:34 -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, Manivannan Sadhasivam Subject: [PATCH 00/12] Qcom: LLCC/EDAC: Fix base address used for LLCC banks Date: Wed, 7 Dec 2022 19:29:09 +0530 Message-Id: <20221207135922.314827-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 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=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 The Qualcomm LLCC/EDAC drivers were using a fixed register stride for accessing the (Control and Status Regsiters) CSRs of each LLCC bank. This offset only works for some SoCs like SDM845 for which driver support was initially added. But the later SoCs use different register stride that vary between the banks with holes in-between. So it is not possible to use a single register stride for accessing the CSRs of each bank. By doing so could result in a crash with the current drivers. So far this crash is not reported since EDAC_QCOM driver is not enabled in ARM64 defconfig and no one tested the driver extensively by triggering the EDAC IRQ (that's where each bank CSRs are accessed). For fixing this issue, let's obtain the base address of each LLCC bank from devicetree and get rid of the fixed stride. This series affects multiple platforms but I have only tested this on SM8250 and SM8450. Testing on other platforms is welcomed. Thanks, Mani Manivannan Sadhasivam (12): dt-bindings: arm: msm: Update the maintainers for LLCC dt-bindings: arm: msm: Fix register regions used for LLCC banks arm64: dts: qcom: sdm845: Fix the base addresses of LLCC banks arm64: dts: qcom: sc7180: Fix the base addresses of LLCC banks arm64: dts: qcom: sc7280: Fix the base addresses of LLCC banks arm64: dts: qcom: sc8280xp: Fix the base addresses of LLCC banks arm64: dts: qcom: sm8150: Fix the base addresses of LLCC banks arm64: dts: qcom: sm8250: Fix the base addresses of LLCC banks arm64: dts: qcom: sm8350: Fix the base addresses of LLCC banks arm64: dts: qcom: sm8450: Fix the base addresses of LLCC banks arm64: dts: qcom: sm6350: Fix the base addresses of LLCC banks qcom: llcc/edac: Fix the base address used for accessing LLCC banks .../bindings/arm/msm/qcom,llcc.yaml | 128 ++++++++++++++++-- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- arch/arm64/boot/dts/qcom/sc7280.dtsi | 5 +- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 10 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 7 +- arch/arm64/boot/dts/qcom/sm6350.dtsi | 2 +- arch/arm64/boot/dts/qcom/sm8150.dtsi | 7 +- arch/arm64/boot/dts/qcom/sm8250.dtsi | 7 +- arch/arm64/boot/dts/qcom/sm8350.dtsi | 7 +- arch/arm64/boot/dts/qcom/sm8450.dtsi | 7 +- drivers/edac/qcom_edac.c | 14 +- drivers/soc/qcom/llcc-qcom.c | 64 +++++---- include/linux/soc/qcom/llcc-qcom.h | 4 +- 13 files changed, 197 insertions(+), 67 deletions(-) -- 2.25.1