Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7231000rwb; Mon, 12 Dec 2022 11:48:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5NQJxzNfdboCAhOHWoWEWyXsp4XMFOpWIdIZSFnLx/CJQyh66dbOXxn2bAWMqQh3RVEANE X-Received: by 2002:a05:6a20:1010:b0:a2:ed21:d820 with SMTP id a16-20020a056a20101000b000a2ed21d820mr27378488pzd.42.1670874527833; Mon, 12 Dec 2022 11:48:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670874527; cv=none; d=google.com; s=arc-20160816; b=UuVl2H6IAxgIoeMEpiUjDtQfW91YfojCR0HZX89CcaFSti8K0G4xUK8ykG5B1bKPzg kJmrTrfu2asnBoi51mRZSMZfGCyxK0q2EbSuakvOruz0noYnMrjstQGt37IEBH7jF1WU gBUx0dQp6FQDVjO2QlZWF5F+8L2DIyGDH5NO3we9l5aftlG6BjvwZBXBA9O5gnsaZGm4 UzUCympxLq4rasMY9TYJvWQFJeE1ICIAVpRVmyzFhy9pdlCAMJCPCdQEiI/hVtNEz2Ai /sGk4DnE3kL78Sc6tqNNTnNwWjy75IJnlZIf1oITAJglt9hvebQ+YP94t6W8GCsKHHSW 1I/g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SSEx9zUYoMm/9QCrusKtxhc2laYdTSkOtFlDg6lImBo=; b=hDpAkokZvQszlyzKGY8zmSq5wkGLeQsU7EbWEin22wioSzdgkApKsdfIMeCGYl2jEV GIk14vqMAkaT22uirPI/m2je4TYzns0bcCakm0H8rtZYxMqnz6lUuf/xN/JfeSknfv1r hcbfhOzl0WBqOSioY4QDsGfwN0mk+ELUCn9O+5b/nz5uOReZkDy/ankI3NFIQgXKcYmA NwKwnt7ZUzH7Nz0PLG2Ocf+p8I63kPKeywVd2n/1OvCFkNsU1lKSQPew64QJ2QOeVbiB chqfpYGmiBZfCpTUDxP7C7GRxZS/RsWKeRvh0lUhn6oZA4941RzZftPDwVdLzNpxmA1o Pujw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iadYs5B2; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a62e713000000b005767cb3a67fsi10071090pfh.270.2022.12.12.11.48.38; Mon, 12 Dec 2022 11:48:47 -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=@redhat.com header.s=mimecast20190719 header.b=iadYs5B2; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233062AbiLLTYl (ORCPT + 74 others); Mon, 12 Dec 2022 14:24:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbiLLTYi (ORCPT ); Mon, 12 Dec 2022 14:24:38 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAF8238B9 for ; Mon, 12 Dec 2022 11:23:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670873025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SSEx9zUYoMm/9QCrusKtxhc2laYdTSkOtFlDg6lImBo=; b=iadYs5B2fWWnMStMMXIXH9XoQw0yMsjVMsK/LbFVZMByufR0t1Iemuiyna7G78EwNzR0Tq iUuAxGXk/4x2LtFd3inLw2jB4VtJAeIdjo4jqp1TP4kF9W9pUKnBrblfV031JdKIXik/vu mHhNHGr5HJQKGng1uVZPBAaP4BCW/WE= Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-155-nh-TKxkyNe2nX2X4JDtxtQ-1; Mon, 12 Dec 2022 14:23:44 -0500 X-MC-Unique: nh-TKxkyNe2nX2X4JDtxtQ-1 Received: by mail-oo1-f72.google.com with SMTP id w18-20020a4a6d52000000b0049f209d84bbso3995932oof.7 for ; Mon, 12 Dec 2022 11:23:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to: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=SSEx9zUYoMm/9QCrusKtxhc2laYdTSkOtFlDg6lImBo=; b=J0f4g81lmGmjV1hRY+TdaHPRBl7Uk2AV5xo58Bw0n0CIL2ta/8yQ2OBkPQpUOaEkss 4vD9PJqjQo0GBGckc+Er9B8Wdj7EHhqRUF7VPk6J35u9He9+VgbCifWwxXU4N8xoyom7 kfhgTMytWlgctWdvNICCplFR7R1rzIE4BFIlGP2QyiPg1y7QLDoY5kBSyzqLTW82ZxOA AuJkmirSUVlnd8yS1LhvoJqVjIMDMS/CcBWAJ8QyHbKElBSbdKBIk9CTGM7fkKUIdndi VNagBMm2ES/YQKJjAG9oQG4Rom/U1hUXLFRN0ohADl4SQBDiEh4bRRMbagQLJajHiqlv wk9A== X-Gm-Message-State: ANoB5pmvgQ8cBLnE6cXAkX4Eq7MIeOPSV33MtCGrSPojwlixn6zShudK QwsTL4WOHV0ILTUSMfHLVVV44akXy2gr1XLRFge6V9bAPQy6b/w9DfpqzuxowpRZcuABKSLueWD D8ASLetE/F2IWdKmq1OjK+s3K X-Received: by 2002:a05:6808:14c4:b0:35a:b52:7989 with SMTP id f4-20020a05680814c400b0035a0b527989mr9510081oiw.59.1670873023995; Mon, 12 Dec 2022 11:23:43 -0800 (PST) X-Received: by 2002:a05:6808:14c4:b0:35a:b52:7989 with SMTP id f4-20020a05680814c400b0035a0b527989mr9510068oiw.59.1670873023727; Mon, 12 Dec 2022 11:23:43 -0800 (PST) Received: from halaney-x13s ([2600:1700:1ff0:d0e0::21]) by smtp.gmail.com with ESMTPSA id bh4-20020a056808180400b0035a81480ffcsm3861982oib.38.2022.12.12.11.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 11:23:43 -0800 (PST) Date: Mon, 12 Dec 2022 13:23:40 -0600 From: Andrew Halaney To: Manivannan Sadhasivam 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: <20221212192340.evgtbpzmw7hcdolb@halaney-x13s> References: <20221212123311.146261-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221212123311.146261-1-manivannan.sadhasivam@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 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 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