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: [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: [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: 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