Re: [PATCH 2/3] net: macb: fix dropped RX frames due to a race

2018-12-05 Thread Claudiu.Beznea
On 30.11.2018 20:21, Anssi Hannula wrote: > Bit RX_USED set to 0 in the address field allows the controller to write > data to the receive buffer descriptor. > > The driver does not ensure the ctrl field is ready (cleared) when the > controller sees the RX_USED=0 written by the driver. The ctrl

Re: [PATCH 2/3] net: macb: fix dropped RX frames due to a race

2018-12-03 Thread Harini Katakam
Hi Anssi, On Mon, Dec 3, 2018 at 4:02 PM Anssi Hannula wrote: > > Hi, > > On 3.12.2018 6:52, Harini Katakam wrote: > > Hi Anssi, > > On Fri, Nov 30, 2018 at 11:53 PM Anssi Hannula > > wrote: > >> Bit RX_USED set to 0 in the address field allows the controller to write > >> data to the receive bu

Re: [PATCH 2/3] net: macb: fix dropped RX frames due to a race

2018-12-03 Thread Anssi Hannula
Hi, On 3.12.2018 6:52, Harini Katakam wrote: > Hi Anssi, > On Fri, Nov 30, 2018 at 11:53 PM Anssi Hannula > wrote: >> Bit RX_USED set to 0 in the address field allows the controller to write >> data to the receive buffer descriptor. >> >> The driver does not ensure the ctrl field is ready (clear

Re: [PATCH 2/3] net: macb: fix dropped RX frames due to a race

2018-12-02 Thread Harini Katakam
Hi Anssi, On Fri, Nov 30, 2018 at 11:53 PM Anssi Hannula wrote: > > Bit RX_USED set to 0 in the address field allows the controller to write > data to the receive buffer descriptor. > > The driver does not ensure the ctrl field is ready (cleared) when the > controller sees the RX_USED=0 written by

[PATCH 2/3] net: macb: fix dropped RX frames due to a race

2018-11-30 Thread Anssi Hannula
Bit RX_USED set to 0 in the address field allows the controller to write data to the receive buffer descriptor. The driver does not ensure the ctrl field is ready (cleared) when the controller sees the RX_USED=0 written by the driver. The ctrl field might only be cleared after the controller has a