Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3239737ybi; Mon, 29 Jul 2019 03:18:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1Ndomb0/bZEuBbqgjtZVsjljlQJUBs4zPAyQARRM0OYfy4swwciEGkH9QZnrU4m0zdZhA X-Received: by 2002:a62:8643:: with SMTP id x64mr36871410pfd.7.1564395483099; Mon, 29 Jul 2019 03:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564395483; cv=none; d=google.com; s=arc-20160816; b=xoncQTEIUE0Au6/t6Le9UYa8jTgHhFuEKjz1FLH1o84A7kYzzKXWMIGvVkN/Rem+MZ bEb8ohQ3qJtwSZAEm2xj6hzvNq24ELFgF/cbEg68Ma5JN9u9xlBZqt39HKJrqqR4l+pz zAjXIU5VCjxp3GDQopZCi8iJg6pk6iZg3IcUeP3+FQlZRFdSyirx6z3Yal4mZ+f84pwQ d+hR2nE2sTUFb6i0qZuJz397Gn20mb5iCBJF12z7CT18AIaRx4wNSvQ4mJR5XDZim/kx 4ofPx9HcL2U/XhJju/9xQjcFLd+FKF7bHUccXtzztQzG+sSDTSH8x8fSN+OHO4NvKSg8 6zqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=nAOqsxTyQ4gYltZdfhxaj3SXIvjncVO2sE1nkzwLk4E=; b=wYEo8qD2MscAYKEUKlFSMb+SLLdZPgeba7UK18bPuTrX5w1TW0oUwWqvj/vTHIq7O+ TqBgHqe5Mo/rJQjzXaJzlHKJvC5ft0ONSTDJ7ph/3lKFCnVHf9tM9zKfURJH/2WFhbG/ xP5xPgGYlrzr/uIf2M49/YDJdwdLQSfIKDRkO2N43/1y6s7yYm9PvAqe1xgZX0/b00+Y dg4zQVjX8bBAhEWZ9KrUlr+HTRoCzOyqCiD5QmxKebJM1XlDYyaTkL4KRbTBm8KFO9TA 4+KqAu6RmucR6FwhvhQfRiGqYZdUsVwVJt4PxMl0wgvNdcR2LKkRsXt6Ji6VYZ+XcFPH D/HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=tFKJc9Yt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10si24497565plb.314.2019.07.29.03.17.47; Mon, 29 Jul 2019 03:18:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=tFKJc9Yt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387419AbfG2KRE (ORCPT + 99 others); Mon, 29 Jul 2019 06:17:04 -0400 Received: from mail.kapsi.fi ([91.232.154.25]:41637 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbfG2KRE (ORCPT ); Mon, 29 Jul 2019 06:17:04 -0400 X-Greylist: delayed 1870 seconds by postgrey-1.27 at vger.kernel.org; Mon, 29 Jul 2019 06:17:03 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nAOqsxTyQ4gYltZdfhxaj3SXIvjncVO2sE1nkzwLk4E=; b=tFKJc9Yt/mc9zFIxobPi3ypDnT FuFFk4dfGUY/bNKduZtIu8/UzABRB1Mha/OY/Ka8bOZirm+sTiODILWjX4eI+TPKltxOPPiQlbBWf lcHn1Z0FzpIT4jJpnngoKPRCpZkJSiAYOKF0inIIvZbjXYs/JEN1xIMWhsW+oqqxsCRG8jjpVYtwH xIu5UVDbY4tj1Vq8rYyxrZzG8FuW5l7NvTl6UJXLmzrim4oCDDlYgIVT73gKTNknPKxmV2BKUwywp /lusWQQUCCBhcY3HRSvCHguQ35UYGPRHyFfrjCxbM/1CiWrqTaSa0O7WpHNTzhkMPxg/krGIShmVI 9u4ITH2A==; Received: from [193.209.96.43] (helo=[10.21.26.179]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hs2Dn-0007rJ-W0; Mon, 29 Jul 2019 12:45:36 +0300 Subject: Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool To: Jon Hunter , Jose Abreu , Lars Persson , Ilias Apalodimas Cc: Joao Pinto , Alexandre Torgue , Maxime Ripard , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , Chen-Yu Tsai , Maxime Coquelin , linux-tegra , Giuseppe Cavallaro , "David S . Miller" , "linux-arm-kernel@lists.infradead.org" References: <20190722101830.GA24948@apalos> <11557fe0-0cba-cb49-0fb6-ad24792d4a53@nvidia.com> <2ad7bf21-1f1f-db0f-2358-4901b7988b7d@nvidia.com> <8093e352-d992-e17f-7168-5afbd9d3fb3f@nvidia.com> From: Mikko Perttunen Message-ID: <299d1803-fc5c-9298-3d10-582e76b47a9e@kapsi.fi> Date: Mon, 29 Jul 2019 12:45:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 193.209.96.43 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org My understanding is that Tegra186 does not have DMA coherency, but Tegra194 does. Mikko On 23.7.2019 16.34, Jon Hunter wrote: > > On 23/07/2019 13:51, Jose Abreu wrote: >> From: Jon Hunter >> Date: Jul/23/2019, 12:58:55 (UTC+00:00) >> >>> >>> On 23/07/2019 11:49, Jose Abreu wrote: >>>> From: Jon Hunter >>>> Date: Jul/23/2019, 11:38:33 (UTC+00:00) >>>> >>>>> >>>>> On 23/07/2019 11:07, Jose Abreu wrote: >>>>>> From: Jon Hunter >>>>>> Date: Jul/23/2019, 11:01:24 (UTC+00:00) >>>>>> >>>>>>> This appears to be a winner and by disabling the SMMU for the ethernet >>>>>>> controller and reverting commit 954a03be033c7cef80ddc232e7cbdb17df735663 >>>>>>> this worked! So yes appears to be related to the SMMU being enabled. We >>>>>>> had to enable the SMMU for ethernet recently due to commit >>>>>>> 954a03be033c7cef80ddc232e7cbdb17df735663. >>>>>> >>>>>> Finally :) >>>>>> >>>>>> However, from "git show 954a03be033c7cef80ddc232e7cbdb17df735663": >>>>>> >>>>>> + There are few reasons to allow unmatched stream bypass, and >>>>>> + even fewer good ones. If saying YES here breaks your board >>>>>> + you should work on fixing your board. >>>>>> >>>>>> So, how can we fix this ? Is your ethernet DT node marked as >>>>>> "dma-coherent;" ? >>>>> >>>>> TBH I have no idea. I can't say I fully understand your change or how it >>>>> is breaking things for us. >>>>> >>>>> Currently, the Tegra DT binding does not have 'dma-coherent' set. I see >>>>> this is optional, but I am not sure how you determine whether or not >>>>> this should be set. >>>> >>>> From my understanding it means that your device / IP DMA accesses are coherent regarding the CPU point of view. I think it will be the case if GMAC is not behind any kind of IOMMU in the HW arch. >>> >>> I understand what coherency is, I just don't know how you tell if this >>> implementation of the ethernet controller is coherent or not. >> >> Do you have any detailed diagram of your HW ? Such as blocks / IPs >> connection, address space wiring , ... > > Yes, this can be found in the Tegra X2 Technical Reference Manual [0]. > Unfortunately, you need to create an account to download it. > > Jon > > [0] https://developer.nvidia.com/embedded/dlc/parker-series-trm >