Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2283012pxp; Mon, 21 Mar 2022 15:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxHF9LdyakoFX4dCgzUebahyz9Bq6II+/KXbtJAvPj/hn+zpebtuuw0MuBDGuIa6F42R5D X-Received: by 2002:a05:6a00:17a6:b0:4f7:d375:ac4c with SMTP id s38-20020a056a0017a600b004f7d375ac4cmr26306536pfg.19.1647903016094; Mon, 21 Mar 2022 15:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647903016; cv=none; d=google.com; s=arc-20160816; b=cV6c9RF5A2BAni6a7pr9qbXVZoyd0w/sduNe1qln0r/Xhyw944HNO1hMZuYz6h3+hg e24vzMOjXKeRoxVuYH0yX4PHDL5q7Fq0qAzu5piqIpHUSUJKouGVVhIfMoVHJwi78X0i TKGvVWBY2iR2QERpmGp4uvRjO2HlmaCDz4J8vF0nfhCRpNHUdYoL99jqQD2/qEyf+2az gsEsnC/3B+2flzs0htbbmMxLFoiiY4wg4ax5vKfgluGK1fwOgsQQvDYAs4rr8vQgQnYE P+Rqxzfon0XAGJRWSx7fZVk6wL+KLNaKKA7UaqtQxV40YC6kbLiEJhoX2Tyajpn8RPqc tx2g== 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=b/2h9Zjao6ViTWfkUi2/axXfZU/JCbLXesxyPFxXxJk=; b=Z006JVN7BWIBaEejaZ65brVTepMvEy6Ddte17nF5DKg3fpiSjTNEKLmuB5DbxFasl0 XcIYVawefbmFIsiKCH4ADkJcqvctSJ9Meq/xZRJmSvxBio+2O/3ZkKSRcjfxchfqMuho x8h6lldfwpPxCAVdh935D/KjNszinlLnL0jRmOfCVYImnc1krI5+njCWelAOAXFRQ0tR wFW7lkBi9Znjb1UaRNo32i8Bq/1vw2NOYzvRmcm5khfzE+HjZWYnMsH2N/sL21O4SX5s 97n8S7ZZgj+QWbGqDnNeIUplQBlj/71/NbD+grlw1FmA5olm9KfkNHl80Z0DwcOmbLH1 ZJ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gkNJkBBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p5-20020a170902eac500b00153b2d16424si11274828pld.44.2022.03.21.15.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gkNJkBBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 441FF3F74CF; Mon, 21 Mar 2022 14:58:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243566AbiCSQBF (ORCPT + 99 others); Sat, 19 Mar 2022 12:01:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232547AbiCSQBC (ORCPT ); Sat, 19 Mar 2022 12:01:02 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E2CF19A568; Sat, 19 Mar 2022 08:59:41 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id c15so14787741ljr.9; Sat, 19 Mar 2022 08:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=b/2h9Zjao6ViTWfkUi2/axXfZU/JCbLXesxyPFxXxJk=; b=gkNJkBBmQjhR7zJ5vwj7Reqvp1Z6uKl8FQjiVb4wMJKnajfdkswM6W1jLII2JtDzy+ lxdT8291KYrNYI4b0t2nJkxlu1ziyQ2bjKtY5mRF5gsV/i+YvzVeANE3E6GqPdyCQL70 I8jY9V8xKJl5ofrXwZ9r4yiVNH9g4+gTZw3dNRu9y4/PULX/1r81vE4458p0FJ/5AZT/ RlkUvjmJydYhl/9fYXoP1zhY+xCmqfbzahK1Y04mO0/zP/o6+G0tqSDssPf4pdctbEHu ycrl2LbSsiZ2Zr2Op7ilwVl0uUjZ7Md4EJRQz3dkFhPkegWIFCLlccHT7EMjl40WU1kQ 6Slg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=b/2h9Zjao6ViTWfkUi2/axXfZU/JCbLXesxyPFxXxJk=; b=v620xQBpeItbd8VEhXZEBjNUdEgq5Pr7mjdyb0nMekGLBw8DKB9/t39ephFbZ9XeET 7seUBy5ULO1WxtN6YyOAqtk4XOdE/yEMlr/d+IzsRj3MHWz8tieqa2GzfUVMtyfj2lQe 2fHgmhRs0/N8yL2kaA2h0fquQ0dSNiLLwx4053z9F9c9zLK3prWVNppqnDeW6FiAmi5P CasKvzE4xbhQSwx/pg2cs4B3u8fSGDbdgNrSP1sosGvEBCvRKEN4SGM0FQ7/s0j4zrJh u4Auaisx8S7yge3YNjxC9f5EPAuME3GM8mxIwWY1BcEBRyo0UP28Qn6ZW8cpGbTuv1eK dSLQ== X-Gm-Message-State: AOAM531Wg+G/3VxTcyHb2ZB0cnQYNI7FgluJ70uKmSic/63kHpZ7zSze 00B1bkAV8I9C5gYhv2b5Amo= X-Received: by 2002:a05:651c:2cb:b0:23d:3168:915b with SMTP id f11-20020a05651c02cb00b0023d3168915bmr9255945ljo.22.1647705579751; Sat, 19 Mar 2022 08:59:39 -0700 (PDT) Received: from [192.168.2.145] (109-252-136-171.dynamic.spd-mgts.ru. [109.252.136.171]) by smtp.googlemail.com with ESMTPSA id f12-20020a05651c02cc00b002495ddc58easm1330792ljo.32.2022.03.19.08.59.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Mar 2022 08:59:39 -0700 (PDT) Message-ID: <168cf065-bc17-1ffc-8cc0-75775c7f3bcb@gmail.com> Date: Sat, 19 Mar 2022 18:59:38 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [Patch v5 2/4] memory: tegra: Add MC error logging on tegra186 onward Content-Language: en-US To: Ashish Mhetre , 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> From: Dmitry Osipenko In-Reply-To: <20220316092525.4554-3-amhetre@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 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 > + 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.