Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2971582rwj; Mon, 19 Dec 2022 11:07:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4WF1NDG8/9Z1ZklnUkZTwB6TcR8TzFoz7WctzGW3IGrzJFZNQpSHiDWmIPXk5M7IqTyEwf X-Received: by 2002:a17:906:9705:b0:7c0:fd1e:972e with SMTP id k5-20020a170906970500b007c0fd1e972emr32872864ejx.46.1671476840611; Mon, 19 Dec 2022 11:07:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671476840; cv=none; d=google.com; s=arc-20160816; b=yVMneUJoAosvtF1PMu2deeJMIfUq6iX0zq79gy9od4n2AlR6h7vXu/yYgT0x/CssKR W4FMWPncUeRlVb0qOe33OWy58WfbOK8fbd7yUZ66MFAy00hlkNJRoXLs+Misa2CW/AV3 ojLtgeLWVpY56HOw9xGVJ6oH7gJITdPUNswSogI0h75zslgdsKr6I3jnsd6vNHwZ1RZ/ p9er2ojkd/ONUEEIxCRwtJlxmZDnt8PpOQtoTnGQtmfJSUwCQ9PfVom+el2sAWb/+lX1 1OEY6SR1EE0PzLbCpTCRXaG/rVL3x9csB1OkYJr8qpbzZQ7bGie5NjwAlM14hAUrXPQq anUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PVnQKP7oNdrUNmwohJQk3GAbsbyZ21YPYiaFQu000f4=; b=Yk/e4x+mzUV79ev4xflMjlSxovsFx/iEROPZ8tccMyNQ0CfTNmvg9hQGeNzdMofonW ZcpC2LwbcJh6T+yFiYxS++07JrFDihTrMPz4O8VufVtyWg2KFSg248iwVNcnWLzl7Mhm 8T31sAA/FzW6tIagGU4q7iB3ph0B3Bx5b7mJYN03svQJrNBxaB8sBBOOKhovdfkCvZTI yy09aGZQvvg/GPOyNhlkJ5VF4Np62Hgh7RtsU4hygJqfy6L/1oSyY2sHp1bP5TUS6Kub q+2PumGmcOjIhxxQXsDd4KS1IiLVe6ucDMkstzfULckAH7PgLLeH88kgfq38794gkS1E 7qlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="G/+XUPGw"; 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 by7-20020a170906a2c700b007813b1924ccsi8081755ejb.934.2022.12.19.11.07.04; Mon, 19 Dec 2022 11:07:20 -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="G/+XUPGw"; 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 S232489AbiLSSdT (ORCPT + 70 others); Mon, 19 Dec 2022 13:33:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbiLSScS (ORCPT ); Mon, 19 Dec 2022 13:32:18 -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 9132114091 for ; Mon, 19 Dec 2022 10:31:30 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id o8-20020a17090a9f8800b00223de0364beso1192023pjp.4 for ; Mon, 19 Dec 2022 10:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=PVnQKP7oNdrUNmwohJQk3GAbsbyZ21YPYiaFQu000f4=; b=G/+XUPGwLp4EY9GJTIJ8CZfZqL3jcqF3dfYYNADdbI/Z/D5n1AbUVw9Nz7xyfEbmsA IqOJ+bb/z2uKeJ16gUU3414VtvaJO3ZPASd98YyaLF9eIj/6XibZ4B1BQ3qizle5qesU HTCo7ZNPlcf0JhJlKxKiNJlEBixO+iICov0iPIwrjihQ+DLCr0mQUAiN8boV0Man8VCy DoQek06wu84yf1HO/KyUNIJg0dVWVz/i9Mw+tCuB8utNIZ8FSmgZWEGIE/S2vnQT3LrS 7d+GWoLtvDz+zNOc83SauTASVmI7ZMILygCQMSwsQKyKq9UXD8sqKQ2Gv3Q5vx5xpEih PoXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PVnQKP7oNdrUNmwohJQk3GAbsbyZ21YPYiaFQu000f4=; b=tiq/2H8TVWjTnfQxUsdy+UXSSyxoy9yCCGc+lTStAjJW+FTesABRG85zEBCnbT6ZW7 zmDKJz3zOH+S65yiYNVl2uJug+Rl7GUmcFU3hRTHIslotYQC0cGp8TsQzCorJ/pI9rnS QhTYDr2cu+sdKHgU/CPN3r2N2Bkn+xkgOOEwySnmKuAZ5SU7aaJ7cwyUegA1DfXWp9cq 84lj0pA9tzg0m9zsykPV0UIp2SUgsPmeimx0sEgqtYXtUjtXRhGsrNXyIT2v8FFJhuX5 8+ByKXX3UGt92Wd3d+76b3ibjgi1azQ3dFstCSRPMt/ZjBiJZScUBCZg/5Wq4bzOfOuA uj1A== X-Gm-Message-State: ANoB5pmYWc31VXbXBU8d2p8zj/meFcXpcV6ZAneX2V+mPu9P9zg7UvI9 rw/2JtkJnyLq8XxP0ag8muR0 X-Received: by 2002:a17:90a:ea09:b0:219:8d8a:a608 with SMTP id w9-20020a17090aea0900b002198d8aa608mr45517417pjy.43.1671474690043; Mon, 19 Dec 2022 10:31:30 -0800 (PST) Received: from thinkpad ([220.158.159.17]) by smtp.gmail.com with ESMTPSA id ds6-20020a17090b08c600b00218f9bd50c7sm6223719pjb.50.2022.12.19.10.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 10:31:29 -0800 (PST) Date: Tue, 20 Dec 2022 00:01:22 +0530 From: Manivannan Sadhasivam To: Andrew Halaney Cc: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, bp@alien8.de, tony.luck@intel.com, 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 Subject: Re: [PATCH v2 00/13] Qcom: LLCC/EDAC: Fix base address used for LLCC banks Message-ID: <20221219183122.GD126558@thinkpad> References: <20221212123311.146261-1-manivannan.sadhasivam@linaro.org> <20221212192340.evgtbpzmw7hcdolb@halaney-x13s> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221212192340.evgtbpzmw7hcdolb@halaney-x13s> 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Mon, Dec 12, 2022 at 01:23:40PM -0600, Andrew Halaney wrote: > On Mon, Dec 12, 2022 at 06:02:58PM +0530, Manivannan Sadhasivam wrote: > > 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. > > > > Tested-by: Andrew Halaney # sa8540p-ride > I dropped your tested-by tag in v3 as some of the patch content have been changed. Please test v3 and share your feedback. Thanks, Mani > I took this for a quick spin on the qdrive3 I've got access to without > any issue: > > [root@localhost ~]# modprobe qcom_edac > [root@localhost ~]# dmesg | grep -i edac > [ 0.620723] EDAC MC: Ver: 3.0.0 > [ 1.165417] ghes_edac: GHES probing device list is empty > [ 594.688103] EDAC DEVICE0: Giving out device to module qcom_llcc_edac controller llcc: DEV qcom_llcc_edac (INTERRUPT) > [root@localhost ~]# cat /proc/interrupts | grep ecc > 174: 0 0 0 0 0 0 0 0 GICv3 614 Level llcc_ecc > [root@localhost ~]# > > Potentially stupid question, but are users expected to manually load the > driver as I did? I don't see how it would be loaded automatically in the > current state, but thought it was funny that I needed to modprobe > myself. > > Please let me know if you want me to do any more further testing! > > Thanks, > Andrew > -- மணிவண்ணன் சதாசிவம்