Re: [EXT] Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-19 Thread Kegl Rohit
On Sun, Nov 15, 2020 at 8:48 AM Andy Duan wrote: > > From: Kegl Rohit Sent: Sunday, November 15, 2020 1:37 AM > > On Sat, Nov 14, 2020 at 2:58 AM Andy Duan wrote: > > > > > > From: Kegl Rohit Sent: Friday, November 13, 2020 > > > 8:21 PM > > > > On Fri, Nov 13, 2020 at 8:33 AM Kegl Rohit wrote

RE: [EXT] Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-14 Thread Andy Duan
From: Kegl Rohit Sent: Sunday, November 15, 2020 1:37 AM > On Sat, Nov 14, 2020 at 2:58 AM Andy Duan wrote: > > > > From: Kegl Rohit Sent: Friday, November 13, 2020 > > 8:21 PM > > > On Fri, Nov 13, 2020 at 8:33 AM Kegl Rohit wrote: > > > > > > > > > What are the addresses of the ring entries?

Re: [EXT] Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-14 Thread Kegl Rohit
On Sat, Nov 14, 2020 at 2:58 AM Andy Duan wrote: > > From: Kegl Rohit Sent: Friday, November 13, 2020 8:21 PM > > On Fri, Nov 13, 2020 at 8:33 AM Kegl Rohit wrote: > > > > > > > What are the addresses of the ring entries? > > > > I bet there is something wrong with the cache coherency and/or > >

RE: [EXT] Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-13 Thread Andy Duan
From: Kegl Rohit Sent: Friday, November 13, 2020 8:21 PM > On Fri, Nov 13, 2020 at 8:33 AM Kegl Rohit wrote: > > > > > What are the addresses of the ring entries? > > > I bet there is something wrong with the cache coherency and/or > > > flushing. > > > > > > So the MAC hardware has done the writ

Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-13 Thread Kegl Rohit
On Fri, Nov 13, 2020 at 8:33 AM Kegl Rohit wrote: > > > What are the addresses of the ring entries? > > I bet there is something wrong with the cache coherency and/or > > flushing. > > > > So the MAC hardware has done the write but (somewhere) it > > isn't visible to the cpu for ages. > > CMA memo

Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-12 Thread Kegl Rohit
> What are the addresses of the ring entries? > I bet there is something wrong with the cache coherency and/or > flushing. > > So the MAC hardware has done the write but (somewhere) it > isn't visible to the cpu for ages. CMA memory is disabled in our kernel config. So the descriptors allocated wi

Re: net: fec: rx descriptor ring out of order

2020-11-12 Thread Fabio Estevam
On Thu, Nov 12, 2020 at 8:56 AM Kegl Rohit wrote: > Not so easily possible because there are custom drivers and some > kernel modifications in the mix. imx6 is a well supported SoC in mainline. You should try a mainline kernel, otherwise we cannot help you.

Re: net: fec: rx descriptor ring out of order

2020-11-12 Thread Eric Dumazet
On 11/12/20 12:56 PM, Kegl Rohit wrote: > Our kernel already has some patches like the wmb() for the rx path and > the rmb() for the tx path applied. Well, please do not claim you use 3.10.108 then. :/ Really, there is no point for us trying to guess if one of your local change went wrong. I

Re: net: fec: rx descriptor ring out of order

2020-11-12 Thread Kegl Rohit
On Thu, Nov 12, 2020 at 12:10 PM David Laight wrote: > > From: Eric Dumazet > > Sent: 12 November 2020 10:42 > > > > On 11/12/20 7:52 AM, Kegl Rohit wrote: > > > On Wed, Nov 11, 2020 at 11:18 PM Fabio Estevam wrote: > > >> > > >> On Wed, Nov 11, 2020 at 11:27 AM Kegl Rohit wrote: > > >>> > > >>>

RE: net: fec: rx descriptor ring out of order

2020-11-12 Thread David Laight
From: Eric Dumazet > Sent: 12 November 2020 10:42 > > On 11/12/20 7:52 AM, Kegl Rohit wrote: > > On Wed, Nov 11, 2020 at 11:18 PM Fabio Estevam wrote: > >> > >> On Wed, Nov 11, 2020 at 11:27 AM Kegl Rohit wrote: > >>> > >>> Hello! > >>> > >>> We are using a imx6q platform. > >>> The fec interfac

Re: net: fec: rx descriptor ring out of order

2020-11-12 Thread Eric Dumazet
On 11/12/20 7:52 AM, Kegl Rohit wrote: > On Wed, Nov 11, 2020 at 11:18 PM Fabio Estevam wrote: >> >> On Wed, Nov 11, 2020 at 11:27 AM Kegl Rohit wrote: >>> >>> Hello! >>> >>> We are using a imx6q platform. >>> The fec interface is used to receive a continuous stream of custom / >>> raw etherne

Re: [EXT] Fwd: net: fec: rx descriptor ring out of order

2020-11-11 Thread Kegl Rohit
On Thu, Nov 12, 2020 at 2:29 AM Andy Duan wrote: > > From: Kegl Rohit Sent: Wednesday, November 11, 2020 > 10:27 PM > > Hello! > > > > We are using a imx6q platform. > > The fec interface is used to receive a continuous stream of custom / raw > > ethernet packets. The packet size is fixed ~132 b

Re: net: fec: rx descriptor ring out of order

2020-11-11 Thread Kegl Rohit
On Wed, Nov 11, 2020 at 11:18 PM Fabio Estevam wrote: > > On Wed, Nov 11, 2020 at 11:27 AM Kegl Rohit wrote: > > > > Hello! > > > > We are using a imx6q platform. > > The fec interface is used to receive a continuous stream of custom / > > raw ethernet packets. The packet size is fixed ~132 bytes

RE: [EXT] Fwd: net: fec: rx descriptor ring out of order

2020-11-11 Thread Andy Duan
From: Kegl Rohit Sent: Wednesday, November 11, 2020 10:27 PM > Hello! > > We are using a imx6q platform. > The fec interface is used to receive a continuous stream of custom / raw > ethernet packets. The packet size is fixed ~132 bytes and they get sent every > 250µs. > > While testing I observ

Re: net: fec: rx descriptor ring out of order

2020-11-11 Thread Fabio Estevam
On Wed, Nov 11, 2020 at 11:27 AM Kegl Rohit wrote: > > Hello! > > We are using a imx6q platform. > The fec interface is used to receive a continuous stream of custom / > raw ethernet packets. The packet size is fixed ~132 bytes and they get > sent every 250µs. > > While testing I observed spontane

Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-11 Thread Kegl Rohit
On Wed, Nov 11, 2020 at 6:52 PM David Laight wrote: > > > On 11/11/20 3:27 PM, Kegl Rohit wrote: > > > Hello! > > > > > > We are using a imx6q platform. > > > The fec interface is used to receive a continuous stream of custom / > > > raw ethernet packets. The packet size is fixed ~132 bytes and th

Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-11 Thread Fabio Estevam
Hi David, On Wed, Nov 11, 2020 at 2:52 PM David Laight wrote: > I've seen a 'fec' ethernet block in a freescale DSP. > IIRC it is a fairly simple block - won't be doing out-of-order writes. > > The imx6q seems to be arm based. This is correct. > I'm guessing that means it doesn't do cache cohe

RE: Fwd: net: fec: rx descriptor ring out of order

2020-11-11 Thread David Laight
> On 11/11/20 3:27 PM, Kegl Rohit wrote: > > Hello! > > > > We are using a imx6q platform. > > The fec interface is used to receive a continuous stream of custom / > > raw ethernet packets. The packet size is fixed ~132 bytes and they get > > sent every 250µs. > > > > While testing I observed spont

Re: Fwd: net: fec: rx descriptor ring out of order

2020-11-11 Thread Eric Dumazet
On 11/11/20 3:27 PM, Kegl Rohit wrote: > Hello! > > We are using a imx6q platform. > The fec interface is used to receive a continuous stream of custom / > raw ethernet packets. The packet size is fixed ~132 bytes and they get > sent every 250µs. > > While testing I observed spontaneous packet

Fwd: net: fec: rx descriptor ring out of order

2020-11-11 Thread Kegl Rohit
Hello! We are using a imx6q platform. The fec interface is used to receive a continuous stream of custom / raw ethernet packets. The packet size is fixed ~132 bytes and they get sent every 250µs. While testing I observed spontaneous packet delays from time to time. After digging down deeper I thi