Re: [PATCH net] bnx2x: fix DMA API usage

2015-06-28 Thread David Miller
From: Michal Schmidt Date: Fri, 26 Jun 2015 17:50:00 +0200 > With CONFIG_DMA_API_DEBUG=y bnx2x triggers the error "DMA-API: device > driver frees DMA memory with wrong function". > On archs where PAGE_SIZE > SGE_PAGE_SIZE it also triggers "DMA-API: > device driver frees DMA memory with different

Re: [PATCH net] bnx2x: fix DMA API usage

2015-06-26 Thread Michal Schmidt
On 06/26/2015 05:50 PM, Michal Schmidt wrote: > With CONFIG_DMA_API_DEBUG=y bnx2x triggers the error "DMA-API: device > driver frees DMA memory with wrong function". > On archs where PAGE_SIZE > SGE_PAGE_SIZE it also triggers "DMA-API: > device driver frees DMA memory with different size". > > Fix

[PATCH net] bnx2x: fix DMA API usage

2015-06-26 Thread Michal Schmidt
With CONFIG_DMA_API_DEBUG=y bnx2x triggers the error "DMA-API: device driver frees DMA memory with wrong function". On archs where PAGE_SIZE > SGE_PAGE_SIZE it also triggers "DMA-API: device driver frees DMA memory with different size". Fix this by making the mapping and unmapping symmetric: - Do

[PATCH net] bnx2x: fix DMA API usage

2015-06-26 Thread Michal Schmidt
With CONFIG_DMA_API_DEBUG=y bnx2x triggers the error "DMA-API: device driver frees DMA memory with wrong function". On archs where PAGE_SIZE > SGE_PAGE_SIZE it also triggers "DMA-API: device driver frees DMA memory with different size". Fix this by making the mapping and unmapping symmetric: - Do