Re: [PATCH/RFC v3 net] ravb: unmap descriptors when freeing rings

2017-02-13 Thread Simon Horman
On Fri, Feb 10, 2017 at 02:52:50PM +0100, Geert Uytterhoeven wrote: > On Wed, Jan 25, 2017 at 5:18 PM, Sergei Shtylyov > wrote: > > On 01/24/2017 09:21 PM, Simon Horman wrote: > > > >> From: Kazuya Mizuguchi > >> > >> "swiotlb

Re: [PATCH/RFC v3 net] ravb: unmap descriptors when freeing rings

2017-02-10 Thread Geert Uytterhoeven
On Wed, Jan 25, 2017 at 5:18 PM, Sergei Shtylyov wrote: > On 01/24/2017 09:21 PM, Simon Horman wrote: > >> From: Kazuya Mizuguchi >> >> "swiotlb buffer is full" errors occur after repeated initialisation of a >> device - f.e.

Re: [PATCH/RFC v3 net] ravb: unmap descriptors when freeing rings

2017-01-25 Thread Simon Horman
On Wed, Jan 25, 2017 at 07:18:15PM +0300, Sergei Shtylyov wrote: > On 01/24/2017 09:21 PM, Simon Horman wrote: > > >From: Kazuya Mizuguchi > > > >"swiotlb buffer is full" errors occur after repeated initialisation of a > >device - f.e. suspend/resume or ip link

Re: [PATCH/RFC v3 net] ravb: unmap descriptors when freeing rings

2017-01-25 Thread Simon Horman
On Wed, Jan 25, 2017 at 07:05:08PM +0300, Sergei Shtylyov wrote: > Hello. > > On 01/24/2017 09:21 PM, Simon Horman wrote: > > >From: Kazuya Mizuguchi > > > >"swiotlb buffer is full" errors occur after repeated initialisation of a > >device - f.e. suspend/resume

Re: [PATCH/RFC v3 net] ravb: unmap descriptors when freeing rings

2017-01-25 Thread Sergei Shtylyov
On 01/24/2017 09:21 PM, Simon Horman wrote: From: Kazuya Mizuguchi "swiotlb buffer is full" errors occur after repeated initialisation of a device - f.e. suspend/resume or ip link set up/down. This is because memory mapped using dma_map_single() in

Re: [PATCH/RFC v3 net] ravb: unmap descriptors when freeing rings

2017-01-25 Thread Sergei Shtylyov
Hello. On 01/24/2017 09:21 PM, Simon Horman wrote: From: Kazuya Mizuguchi "swiotlb buffer is full" errors occur after repeated initialisation of a device - f.e. suspend/resume or ip link set up/down. This is because memory mapped using dma_map_single() in

[PATCH/RFC v3 net] ravb: unmap descriptors when freeing rings

2017-01-24 Thread Simon Horman
From: Kazuya Mizuguchi "swiotlb buffer is full" errors occur after repeated initialisation of a device - f.e. suspend/resume or ip link set up/down. This is because memory mapped using dma_map_single() in ravb_ring_format() and ravb_start_xmit() is not released.