Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8684510ybi; Tue, 23 Jul 2019 13:05:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8RWJOHLfy/lxd9qSLNCGl4RXoYRm+Wet4/aZ6Su6TNX7SZivuSu8g442lHIzn4yI9+VLl X-Received: by 2002:a63:7d49:: with SMTP id m9mr68707665pgn.161.1563912355507; Tue, 23 Jul 2019 13:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563912355; cv=none; d=google.com; s=arc-20160816; b=XWK2H8zU0wABcJsoWnANdJ+OSt5H87Wkptq8jXvQntOVlJDX/CNItr16uTsojMeafm 2QGh5pB1nqMv7cMGQTrgs0GE1+FbwmPkIXHVmFQcEDze/WbwVOP5VOIRdTD82Odkvx88 8dIJWWeUtWGeRT5AayazCAMt9HUy5k+jee8FCOGEXj2xMNhWj0+CFM4pZhRuRfl4L35w MRZiSucpKg7ElPWyvNTejyNwJKsXPbxg/uqyWqky5vE3yJ6gacLVixPyg+/0FVmQ4lK9 S5k5rD40e+K3gfU3yTZmp5gMN0EYev8HvKoc9gFvFqUvltJ2vkinOCPMhUYRVYR0JPc0 Ms+w== 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; bh=NDJt4i0Cl0hD649K+y1GaP26uCE9rwKtHC1LrUiW4oQ=; b=ha4zM5z/0m6LIIJ+4G54VZV6x1z+56gxuWypavdkFidu9LEz73pLm3Q1zn7SyjmdTS 7FSvJc80hoAtp7VUFNZ+YIzT+oQgWQUfJY5631kTVHIfKXmTW+riLUtK4dSwpf/6Zc8x Dc4ijLF733WlfDj/Bme5WiOR9kSbAX+bL/06OtP+COilLrKZILWTrvyOX3zu5vzKW6rz Mb0Sj4jdb/Uzc5apuQF50T9K3gJZQp+UQEEeR5gWI1EPLV9B0p6zPzaUrQPxbbSqrLEB ImPTliVwe14lwq64hffS2sljPYVcn1uH2z2+jxwnhHLymbqJ9ARSU2WRpfOZCgl7nlu8 LoZw== ARC-Authentication-Results: i=1; mx.google.com; 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 39si11341732pla.73.2019.07.23.13.05.39; Tue, 23 Jul 2019 13:05:55 -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; 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 S2389019AbfGWK3c (ORCPT + 99 others); Tue, 23 Jul 2019 06:29:32 -0400 Received: from foss.arm.com ([217.140.110.172]:52346 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388997AbfGWK3c (ORCPT ); Tue, 23 Jul 2019 06:29:32 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 40CC0337; Tue, 23 Jul 2019 03:29:31 -0700 (PDT) Received: from [10.1.197.57] (e110467-lin.cambridge.arm.com [10.1.197.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4B15A3F71A; Tue, 23 Jul 2019 03:29:29 -0700 (PDT) Subject: Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool To: Jose Abreu , Jon Hunter , 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: <1b254bb7fc6044c5e6e2fdd9e00088d1d13a808b.1562149883.git.joabreu@synopsys.com> <29dcc161-f7c8-026e-c3cc-5adb04df128c@nvidia.com> <20190722101830.GA24948@apalos> <11557fe0-0cba-cb49-0fb6-ad24792d4a53@nvidia.com> From: Robin Murphy Message-ID: <6c769226-bdd9-6fe0-b96b-5a0d800fed24@arm.com> Date: Tue, 23 Jul 2019 11:29:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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;" ? The first thing to try would be booting the failing setup with "iommu.passthrough=1" (or using CONFIG_IOMMU_DEFAULT_PASSTHROUGH) - if that makes things seem OK, then the problem is likely related to address translation; if not, then it's probably time to start looking at nasties like coherency and ordering, although in principle I wouldn't expect the SMMU to have too much impact there. Do you know if the SMMU interrupts are working correctly? If not, it's possible that an incorrect address or mapping direction could lead to the DMA transaction just being silently terminated without any fault indication, which generally presents as inexplicable weirdness (I've certainly seen that on another platform with the mix of an unsupported interrupt controller and an 'imperfect' ethernet driver). Just to confirm, has the original patch been tested with CONFIG_DMA_API_DEBUG to rule out any high-level mishaps? Robin.