All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robin Murphy <robin.murphy@arm.com>
To: Jose Abreu <Jose.Abreu@synopsys.com>,
	Jon Hunter <jonathanh@nvidia.com>, Lars Persson <lists@bofh.nu>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Joao Pinto <Joao.Pinto@synopsys.com>,
	Alexandre Torgue <alexandre.torgue@st.com>,
	Maxime Ripard <maxime.ripard@bootlin.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-stm32@st-md-mailman.stormreply.com"
	<linux-stm32@st-md-mailman.stormreply.com>,
	Chen-Yu Tsai <wens@csie.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	linux-tegra <linux-tegra@vger.kernel.org>,
	Giuseppe Cavallaro <peppe.cavallaro@st.com>,
	"David S . Miller" <davem@davemloft.net>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool
Date: Tue, 23 Jul 2019 11:29:28 +0100	[thread overview]
Message-ID: <6c769226-bdd9-6fe0-b96b-5a0d800fed24@arm.com> (raw)
In-Reply-To: <BYAPR12MB32692AF2BA127C5DA5B74804D3C70@BYAPR12MB3269.namprd12.prod.outlook.com>

On 23/07/2019 11:07, Jose Abreu wrote:
> From: Jon Hunter <jonathanh@nvidia.com>
> 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.

WARNING: multiple messages have this Message-ID (diff)
From: Robin Murphy <robin.murphy@arm.com>
To: Jose Abreu <Jose.Abreu@synopsys.com>,
	Jon Hunter <jonathanh@nvidia.com>, Lars Persson <lists@bofh.nu>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Joao Pinto <Joao.Pinto@synopsys.com>,
	Alexandre Torgue <alexandre.torgue@st.com>,
	Maxime Ripard <maxime.ripard@bootlin.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"David S . Miller" <davem@davemloft.net>,
	Chen-Yu Tsai <wens@csie.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	linux-tegra <linux-tegra@vger.kernel.org>,
	Giuseppe Cavallaro <peppe.cavallaro@st.com>,
	"linux-stm32@st-md-mailman.stormreply.com"
	<linux-stm32@st-md-mailman.stormreply.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool
Date: Tue, 23 Jul 2019 11:29:28 +0100	[thread overview]
Message-ID: <6c769226-bdd9-6fe0-b96b-5a0d800fed24@arm.com> (raw)
In-Reply-To: <BYAPR12MB32692AF2BA127C5DA5B74804D3C70@BYAPR12MB3269.namprd12.prod.outlook.com>

On 23/07/2019 11:07, Jose Abreu wrote:
> From: Jon Hunter <jonathanh@nvidia.com>
> 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.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-07-23 10:29 UTC|newest]

Thread overview: 236+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-03 10:37 [PATCH net-next 0/3] net: stmmac: Some performance improvements and a fix Jose Abreu
2019-07-03 10:37 ` Jose Abreu
2019-07-03 10:37 ` [PATCH net-next 1/3] net: stmmac: Implement RX Coalesce Frames setting Jose Abreu
2019-07-03 10:37   ` Jose Abreu
2019-07-03 20:41   ` Jakub Kicinski
2019-07-03 20:41     ` Jakub Kicinski
2019-07-03 10:37 ` [PATCH net-next 2/3] net: stmmac: Fix descriptors address being in > 32 bits address space Jose Abreu
2019-07-03 10:37   ` Jose Abreu
2019-07-03 10:37 ` [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool Jose Abreu
2019-07-03 10:37   ` Jose Abreu
2019-07-03 10:40   ` Jose Abreu
2019-07-03 10:40     ` Jose Abreu
2019-07-04  9:39   ` Jesper Dangaard Brouer
2019-07-04  9:39     ` Jesper Dangaard Brouer
2019-07-04 14:45     ` Jose Abreu
2019-07-04 14:45       ` Jose Abreu
2019-07-04 15:09       ` Jesper Dangaard Brouer
2019-07-04 15:09         ` Jesper Dangaard Brouer
2019-07-04 15:18         ` Jose Abreu
2019-07-04 15:18           ` Jose Abreu
2019-07-04 15:33           ` Jesper Dangaard Brouer
2019-07-04 15:33             ` Jesper Dangaard Brouer
2019-07-04  9:48   ` Jesper Dangaard Brouer
2019-07-04  9:48     ` Jesper Dangaard Brouer
2019-07-04 10:00   ` Jesper Dangaard Brouer
2019-07-04 10:00     ` Jesper Dangaard Brouer
2019-07-04 10:13     ` Jose Abreu
2019-07-04 10:13       ` Jose Abreu
2019-07-04 11:11       ` Ilias Apalodimas
2019-07-04 11:11         ` Ilias Apalodimas
2019-07-04 11:54       ` Jesper Dangaard Brouer
2019-07-04 11:54         ` Jesper Dangaard Brouer
2019-07-04 12:04         ` Ilias Apalodimas
2019-07-04 12:04           ` Ilias Apalodimas
2019-07-04 12:59           ` Jose Abreu
2019-07-04 12:59             ` Jose Abreu
2019-07-04 13:06             ` Ilias Apalodimas
2019-07-04 13:06               ` Ilias Apalodimas
2019-07-04 10:30     ` Ilias Apalodimas
2019-07-04 10:30       ` Ilias Apalodimas
2019-07-04 12:14       ` Arnd Bergmann
2019-07-04 12:14         ` Arnd Bergmann
2019-07-04 12:49         ` Ilias Apalodimas
2019-07-04 12:49           ` Ilias Apalodimas
2019-07-17 18:58   ` Jon Hunter
2019-07-17 18:58     ` Jon Hunter
2019-07-17 18:58     ` Jon Hunter
2019-07-18  7:29     ` Jose Abreu
2019-07-18  7:29       ` Jose Abreu
2019-07-18  7:29       ` Jose Abreu
2019-07-18  7:48     ` Jose Abreu
2019-07-18  7:48       ` Jose Abreu
2019-07-18  7:48       ` Jose Abreu
2019-07-18  9:16       ` Jon Hunter
2019-07-18  9:16         ` Jon Hunter
2019-07-18  9:16         ` Jon Hunter
2019-07-19  7:51         ` Jose Abreu
2019-07-19  7:51           ` Jose Abreu
2019-07-19  7:51           ` Jose Abreu
2019-07-19  8:37           ` Jon Hunter
2019-07-19  8:37             ` Jon Hunter
2019-07-19  8:37             ` Jon Hunter
2019-07-19  8:44             ` Jose Abreu
2019-07-19  8:44               ` Jose Abreu
2019-07-19  8:44               ` Jose Abreu
2019-07-19  8:49               ` Jon Hunter
2019-07-19  8:49                 ` Jon Hunter
2019-07-19  8:49                 ` Jon Hunter
2019-07-19 10:25                 ` Jose Abreu
2019-07-19 10:25                   ` Jose Abreu
2019-07-19 10:25                   ` Jose Abreu
2019-07-19 12:28                   ` Jose Abreu
2019-07-19 12:28                     ` Jose Abreu
2019-07-19 12:28                     ` Jose Abreu
2019-07-19 13:33                     ` Jon Hunter
2019-07-19 13:33                       ` Jon Hunter
2019-07-19 13:33                       ` Jon Hunter
2019-07-19 12:30                   ` Jon Hunter
2019-07-19 12:30                     ` Jon Hunter
2019-07-19 12:30                     ` Jon Hunter
2019-07-19 12:32                     ` Jose Abreu
2019-07-19 12:32                       ` Jose Abreu
2019-07-19 12:32                       ` Jose Abreu
2019-07-19 13:35                       ` Jon Hunter
2019-07-19 13:35                         ` Jon Hunter
2019-07-22  7:23                         ` Jose Abreu
2019-07-22  7:23                           ` Jose Abreu
2019-07-22  7:23                           ` Jose Abreu
2019-07-22  9:37                           ` Jon Hunter
2019-07-22  9:37                             ` Jon Hunter
2019-07-22  9:37                             ` Jon Hunter
2019-07-22  9:47                             ` Jose Abreu
2019-07-22  9:47                               ` Jose Abreu
2019-07-22  9:47                               ` Jose Abreu
2019-07-22  9:57                               ` Jose Abreu
2019-07-22  9:57                                 ` Jose Abreu
2019-07-22  9:57                                 ` Jose Abreu
2019-07-22 10:27                                 ` Jon Hunter
2019-07-22 10:27                                   ` Jon Hunter
2019-07-22 10:27                                   ` Jon Hunter
2019-07-22 10:18       ` Ilias Apalodimas
2019-07-22 10:18         ` Ilias Apalodimas
2019-07-22 10:18         ` Ilias Apalodimas
2019-07-22 11:11         ` Lars Persson
2019-07-22 11:11           ` Lars Persson
2019-07-22 11:11           ` Lars Persson
2019-07-22 11:39           ` Jose Abreu
2019-07-22 11:39             ` Jose Abreu
2019-07-22 11:39             ` Jose Abreu
2019-07-22 12:05             ` Jon Hunter
2019-07-22 12:05               ` Jon Hunter
2019-07-22 12:05               ` Jon Hunter
2019-07-22 14:04               ` Jose Abreu
2019-07-22 14:04                 ` Jose Abreu
2019-07-22 14:04                 ` Jose Abreu
2019-07-23  8:14                 ` Jose Abreu
2019-07-23  8:14                   ` Jose Abreu
2019-07-23  8:14                   ` Jose Abreu
2019-07-23 10:01                   ` Jon Hunter
2019-07-23 10:01                     ` Jon Hunter
2019-07-23 10:01                     ` Jon Hunter
2019-07-23 10:07                     ` Jose Abreu
2019-07-23 10:07                       ` Jose Abreu
2019-07-23 10:07                       ` Jose Abreu
2019-07-23 10:29                       ` Robin Murphy [this message]
2019-07-23 10:29                         ` Robin Murphy
2019-07-23 10:29                         ` Robin Murphy
2019-07-23 11:22                         ` Jose Abreu
2019-07-23 11:22                           ` Jose Abreu
2019-07-23 11:22                           ` Jose Abreu
2019-07-23 12:09                         ` Jon Hunter
2019-07-23 12:09                           ` Jon Hunter
2019-07-23 12:09                           ` Jon Hunter
2019-07-23 13:19                           ` Robin Murphy
2019-07-23 13:19                             ` Robin Murphy
2019-07-23 13:19                             ` Robin Murphy
2019-07-23 21:39                             ` Jon Hunter
2019-07-23 21:39                               ` Jon Hunter
2019-07-23 21:39                               ` Jon Hunter
2019-07-24 10:03                               ` Robin Murphy
2019-07-24 10:03                                 ` Robin Murphy
2019-07-24 10:03                                 ` Robin Murphy
2019-07-23 18:51                           ` David Miller
2019-07-23 18:51                             ` David Miller
2019-07-24  8:54                             ` Ilias Apalodimas
2019-07-24  8:54                               ` Ilias Apalodimas
2019-07-24  9:43                               ` Jose Abreu
2019-07-24  9:43                                 ` Jose Abreu
2019-07-24  9:43                                 ` Jose Abreu
2019-07-24  9:53                                 ` Ilias Apalodimas
2019-07-24  9:53                                   ` Ilias Apalodimas
2019-07-24  9:53                                   ` Ilias Apalodimas
2019-07-24 10:04                                   ` Jose Abreu
2019-07-24 10:04                                     ` Jose Abreu
2019-07-24 10:04                                     ` Jose Abreu
2019-07-24 11:10                                     ` Jon Hunter
2019-07-24 11:10                                       ` Jon Hunter
2019-07-24 11:10                                       ` Jon Hunter
2019-07-24 11:34                                       ` Jose Abreu
2019-07-24 11:34                                         ` Jose Abreu
2019-07-24 11:34                                         ` Jose Abreu
2019-07-24 11:58                                         ` Jon Hunter
2019-07-24 11:58                                           ` Jon Hunter
2019-07-24 11:58                                           ` Jon Hunter
2019-07-25  7:44                                           ` Jose Abreu
2019-07-25  7:44                                             ` Jose Abreu
2019-07-25  7:44                                             ` Jose Abreu
2019-07-25  9:45                                             ` Jon Hunter
2019-07-25  9:45                                               ` Jon Hunter
2019-07-25  9:45                                               ` Jon Hunter
2019-07-25 11:39                                               ` Ilias Apalodimas
2019-07-25 11:39                                                 ` Ilias Apalodimas
2019-07-25 11:39                                                 ` Ilias Apalodimas
2019-07-23 10:38                       ` Jon Hunter
2019-07-23 10:38                         ` Jon Hunter
2019-07-23 10:38                         ` Jon Hunter
2019-07-23 10:49                         ` Jose Abreu
2019-07-23 10:49                           ` Jose Abreu
2019-07-23 10:49                           ` Jose Abreu
2019-07-23 11:58                           ` Jon Hunter
2019-07-23 11:58                             ` Jon Hunter
2019-07-23 11:58                             ` Jon Hunter
2019-07-23 12:51                             ` Jose Abreu
2019-07-23 12:51                               ` Jose Abreu
2019-07-23 12:51                               ` Jose Abreu
2019-07-23 13:34                               ` Jon Hunter
2019-07-23 13:34                                 ` Jon Hunter
2019-07-23 13:34                                 ` Jon Hunter
2019-07-29  9:45                                 ` Mikko Perttunen
2019-07-29  9:45                                   ` Mikko Perttunen
2019-07-29  9:45                                   ` Mikko Perttunen
2019-07-25 13:20   ` Jon Hunter
2019-07-25 13:20     ` Jon Hunter
2019-07-25 13:20     ` Jon Hunter
2019-07-25 13:26     ` Jose Abreu
2019-07-25 13:26       ` Jose Abreu
2019-07-25 13:26       ` Jose Abreu
2019-07-25 14:25       ` Jon Hunter
2019-07-25 14:25         ` Jon Hunter
2019-07-25 14:25         ` Jon Hunter
2019-07-25 15:12         ` Jose Abreu
2019-07-25 15:12           ` Jose Abreu
2019-07-25 15:12           ` Jose Abreu
2019-07-26 14:11           ` Jon Hunter
2019-07-26 14:11             ` Jon Hunter
2019-07-26 14:11             ` Jon Hunter
2019-07-27 15:56             ` Jose Abreu
2019-07-27 15:56               ` Jose Abreu
2019-07-27 15:56               ` Jose Abreu
2019-07-29  8:16               ` Jose Abreu
2019-07-29  8:16                 ` Jose Abreu
2019-07-29  8:16                 ` Jose Abreu
2019-07-29 10:55                 ` Jon Hunter
2019-07-29 10:55                   ` Jon Hunter
2019-07-29 10:55                   ` Jon Hunter
2019-07-29 11:29                   ` Jose Abreu
2019-07-29 11:29                     ` Jose Abreu
2019-07-29 11:29                     ` Jose Abreu
2019-07-29 11:52                     ` Robin Murphy
2019-07-29 11:52                       ` Robin Murphy
2019-07-29 11:52                       ` Robin Murphy
2019-07-29 14:08                       ` Jose Abreu
2019-07-29 14:08                         ` Jose Abreu
2019-07-29 14:08                         ` Jose Abreu
2019-07-29 21:33                         ` Jon Hunter
2019-07-29 21:33                           ` Jon Hunter
2019-07-29 21:33                           ` Jon Hunter
2019-07-30  9:39                           ` Jose Abreu
2019-07-30  9:39                             ` Jose Abreu
2019-07-30  9:39                             ` Jose Abreu
2019-07-30 13:36                             ` Jon Hunter
2019-07-30 13:36                               ` Jon Hunter
2019-07-30 13:36                               ` Jon Hunter
2019-07-30 13:58                               ` Jose Abreu
2019-07-30 13:58                                 ` Jose Abreu
2019-07-30 13:58                                 ` Jose Abreu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c769226-bdd9-6fe0-b96b-5a0d800fed24@arm.com \
    --to=robin.murphy@arm.com \
    --cc=Joao.Pinto@synopsys.com \
    --cc=Jose.Abreu@synopsys.com \
    --cc=alexandre.torgue@st.com \
    --cc=davem@davemloft.net \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jonathanh@nvidia.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=linux-tegra@vger.kernel.org \
    --cc=lists@bofh.nu \
    --cc=maxime.ripard@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.