Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1490136pxb; Wed, 30 Mar 2022 04:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgPg21fpCaRNjRE+5sSh5kdUTT9SHkJZs1gfEiR+giZ+v9xEk+bF7h2EI42Ybur4LRNKt2 X-Received: by 2002:a17:907:3e25:b0:6e1:40ec:29d7 with SMTP id hp37-20020a1709073e2500b006e140ec29d7mr7650352ejc.119.1648641371161; Wed, 30 Mar 2022 04:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648641371; cv=none; d=google.com; s=arc-20160816; b=GKFhckJtvtRaA4KKz8p+EZ14UuqwRA7Sd68kiPBCKsUy09TzPapp9SEWGnjSSF+AFM QxwwaHNzqBIp0psIqsd2HeshiWYv+FyTBtefmxqde8bjDUOmAER4qIajichTNHH49pzD 8vDvrRM6ppKNkVQ4v0ao4YyZgoEmf9bWkJfn2sVcI982Pl1qdD7k33PDdJsiroaOj5Ln o+m97la8gEZZHqMVithGXXJ6qOssdl6ffOHS87+xa5iwHIGJ8E9pozs0GUdwNuW1M1vI Z44kjKlQMZ2hHkseNy3DgXawDUOCA2RBQVbRF24YFdNy7/tYfVg6HT8QDfRgiahodwZy +dpA== 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=YuuKP4rRcPukk8scsc9n4Uae7HZk/W51FINFkUARyBE=; b=tHRsZa3BNHwQmFlMnbpBtErl/bo9tFpSVns9QroACyjsg7EcZ5ov5IWK9VuZVT1oSo yJmDSz+iXJpmRh6hvJaaj38cBBSZcx0VaSXynOJIm2PLUAlIEPHfhf71ELfWegtoUwNT 9jFm6LouTc4mw6VvxWERVmnV3HjY/Qje7TYTMJgle8+3hAYBFUZJ3krjLLJMvCkkJHLW hMHI8W57PigSK2Dsyfsywep4w8e/Scdlvi9tZDVPaLRIyOVAoV1OFQhLzEORht5KEQ/2 ouPSpZQgFored1bpwdpBgh/wZGoTXyrA8wsjwlFLVPdepNj9xfJgKpEYP9QgKQuprBcd mQqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=RrlST6Ra; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh26-20020a170906eb9a00b006e0a2593e94si2449975ejb.842.2022.03.30.04.55.45; Wed, 30 Mar 2022 04:56:11 -0700 (PDT) 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=@collabora.com header.s=mail header.b=RrlST6Ra; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245297AbiC3KVW (ORCPT + 99 others); Wed, 30 Mar 2022 06:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235280AbiC3KVT (ORCPT ); Wed, 30 Mar 2022 06:21:19 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D08FD1C16EA; Wed, 30 Mar 2022 03:19:31 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id A68D41F44516 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1648635569; bh=StyztVffLbw1AQ6XJEFjXEnbu7ei/fKPsvU3Dkfn4Bs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RrlST6RaEO6QMgKmX1jwEuDALibTtEYsPZq0s2XWGVXsfxwc3ac5pzNnRlW4vGWtO CmBh6HyoScUsvqsk0/6lNRBLF2bvqHDMKvphI9+gLbIoyn+HQEbDXqK0HQ1omCjGOy GGujG4IVICN5t2dNxBd2dfqsYkVe4Jn9ME1S9Sy991rKt2e4ss4o4rroTmAbipl/CL duzN+7mWx5o65wP1yGhUioncnQeN/6erj2M+YQEmGOykJn0bC2Q3h1HKHwTuySva/R SpT2Lj4qBQH2mktk6YBY8LAtEh24rx9aAsCPOaEIAqkEFI7HMHaLWF0bvFoI04Cow0 yU2jaHAgonQjA== Message-ID: <2ba661b5-a59b-89f4-7ad7-5eee4da4ce96@collabora.com> Date: Wed, 30 Mar 2022 13:19:25 +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 , krzysztof.kozlowski@canonical.com, robh+dt@kernel.org, thierry.reding@gmail.com, digetx@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> <04bb5ef2-15c3-d561-3572-76dc803275ef@collabora.com> From: Dmitry Osipenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 3/30/22 12:03, Ashish Mhetre wrote: > > > On 3/30/2022 5:36 AM, Dmitry Osipenko wrote: >> External email: Use caution opening links or attachments >> >> >> On 3/16/22 12:25, Ashish Mhetre wrote: >>> Add new function 'get_int_channel' in tegra_mc_soc struture which is >>> implemented by tegra SOCs which support multiple MC channels. This >>> function returns the channel which should be used to get the information >>> of interrupts. >>> Remove static from tegra30_mc_handle_irq and use it as interrupt handler >>> for MC interrupts on tegra186, tegra194 and tegra234 to log the errors. >>> Add error specific MC status and address register bits and use them on >>> tegra186, tegra194 and tegra234. >>> Add error logging for generalized carveout interrupt on tegra186, >>> tegra194 >>> and tegra234. >>> Add error logging for route sanity interrupt on tegra194 an tegra234. >>> Add register for higher bits of error address which is available on >>> tegra194 and tegra234. >>> Add a boolean variable 'has_addr_hi_reg' in tegra_mc_soc struture which >>> will be true if soc has register for higher bits of memory controller >>> error address. Set it true for tegra194 and tegra234. >>> >>> Signed-off-by: Ashish Mhetre >> >>> Reported-by: kernel test robot >>> Reported-by: Dan Carpenter >> >> Reported what? You should add this tag only if patch addresses reported >> problem. This patch doesn't address anything, hence the tag is >> inappropriate, you should remove it. > > Okay, smatch warning was reported on v4 of this patch which is fixed in > v5. Then I understand that we don't need to add Reported-by if we fix > bug in subsequent versions, right? Right, if the report was made to the in-progress patch, then you shouldn't add the tag. If report was made to the patch that was already merged, then you should create a new patch that fixes the reported problem and add the reported-by to this patch.