Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp205561lfu; Wed, 30 Mar 2022 20:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOC/KLWw+AYxmst459pQe8p79optnCTlwAM49B6hjC6TqiWt2NDB02zE/af6BpTiKv+WWL X-Received: by 2002:a17:902:c652:b0:154:2920:df6d with SMTP id s18-20020a170902c65200b001542920df6dmr38638009pls.146.1648698888059; Wed, 30 Mar 2022 20:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648698888; cv=none; d=google.com; s=arc-20160816; b=te/TL7g/nVnXt/NaUPUiWQpk0jsJZxfS80e52B2AwyG8bIJFj6ByoX2P0EYLPVBzES +7eETnhAUtTfcSvy0EHvFR+jgELFO2VWfBnY4jp7+4Zn5PXZMM/cjVesXR+4BBlqSM3N nAw7MjIVOOgyYUmSy/vlP3snx92NYPz97anD9JmsJrr6o8bsz3LZ0rCNmHcsejmcOaMF iNlgMb1fTiYMW0YqQUcZ1lQVIdoX7wQ2idS6tVv0zK0mq+gWDD0Afqna+5qPprqFeeQ3 1CaySjRJNH51kHtztgagIDX0daRBqWhRiJzeqgn3p0uBOjGooVbdHxRUjxsK2WqOvrqQ 06yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3j5mFf3fD9kmojd1RrFfb69mgdLIyPS+yruxiGgX4vY=; b=rqHHpmeZJzyy0zxgExEclAmLCLeCBsOcgu9GabAvrAX0wJjVZtMUmPy5aKF8C9LC0g 0q3eQMIRl4rX8BZ8L20djmyqq9KOTDEoUdfs5LL0cWd+t0LSDmyH/fn4i3XyJctOpw0n dcJLPSx3+kCuTb0GaVfzqZVfMHPqkgxIvJzZBIQZP7XuMiErKIan32gOd4XZVolgoQMR 5tMmJG2PwV1ruU66e8EV5JMR6nnL8iXaS1PkgWD0rarc7IYqBr2L0xzRGC/+PW+ZeSYH AnhCwzEJMwNLDifvt8OpoZXUPLTFHNRZzaoFRRH4ue7uGVC767YIZCFvdW/MMFCYDf4j 90RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="eU/CXz4o"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 19-20020a170902c15300b0015489a6595dsi21625797plj.334.2022.03.30.20.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 20:54:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="eU/CXz4o"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9CA421637DB; Wed, 30 Mar 2022 20:07:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241248AbiC2XyE (ORCPT + 99 others); Tue, 29 Mar 2022 19:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241307AbiC2Xxl (ORCPT ); Tue, 29 Mar 2022 19:53:41 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3D2622321A; Tue, 29 Mar 2022 16:51:48 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id 6ED681F4422B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1648597907; bh=et/XZn08cRQRjlbxlsEMHOWSiI9trad+rRAwptS/tho=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eU/CXz4oCKEM4/AAl48PB10SdUxcEOaB3Blt+zaWn43GTSWZJrgDJ8Ybev+Blw9Tv IT92GcGSNbrHHuAYrrXJz8AMihjNPjUbWhEvGrhP8IA3sQSQXoIfykLEPPiDaGdW26 O/pR1/c8HSh8NGHxPi5s33YDLQniat0vBgAsfJoZk6pQi9qCEsalSag5lKUFfT9p6u qqiv2XAnhdKHMAPNgvcrn45clwjCCtd+0N9GtdTeC+pj2gvFa67dJPf3cnyr7OmVVw hMSS+WBHsd90sFoqVzrWJtAlhX8+phvoQu7GPqIlZGXpjNB5ISerbaZNWO3yK59M0s T55aaXozmguDA== Message-ID: Date: Wed, 30 Mar 2022 02:51:43 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [Patch v5 2/4] memory: tegra: Add MC error logging on tegra186 onward Content-Language: en-US To: Ashish Mhetre , Dmitry Osipenko , krzysztof.kozlowski@canonical.com, robh+dt@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org Cc: vdumpa@nvidia.com, Snikam@nvidia.com References: <20220316092525.4554-1-amhetre@nvidia.com> <20220316092525.4554-3-amhetre@nvidia.com> <168cf065-bc17-1ffc-8cc0-75775c7f3bcb@gmail.com> From: Dmitry Osipenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 3/22/22 20:23, Ashish Mhetre wrote: > > > On 3/19/2022 9:29 PM, Dmitry Osipenko wrote: >> External email: Use caution opening links or attachments >> >> >> 16.03.2022 12:25, Ashish Mhetre пишет: >>> diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h >>> index 92f810c55b43..6f115436e344 100644 >>> --- a/include/soc/tegra/mc.h >>> +++ b/include/soc/tegra/mc.h >>> @@ -203,6 +203,8 @@ struct tegra_mc_soc { >>>        const struct tegra_smmu_soc *smmu; >>> >>>        u32 intmask; >>> +     u32 int_channel_mask; >> >> ch_intmask >> > Okay, I will update, > >>> +     bool has_addr_hi_reg; >>> >>>        const struct tegra_mc_reset_ops *reset_ops; >>>        const struct tegra_mc_reset *resets; >>> @@ -210,6 +212,8 @@ struct tegra_mc_soc { >>> >>>        const struct tegra_mc_icc_ops *icc_ops; >>>        const struct tegra_mc_ops *ops; >>> + >>> +     int (*get_int_channel)(const struct tegra_mc *mc, int >>> *mc_channel); >> >> This should be a part of tegra_mc_ops. > > tegra_mc_ops is common for T186, T194 and T234 i.e. all of them use > tegra186_mc_ops. get_int_channel function has to be differently > implemented for all of these SOCs. So I had put it in tegra_mc_soc. Then tegra_mc_ops shouldn't be common anymore?