From: andrew@lunn.ch (Andrew Lunn) Date: Sat, 19 Jan 2013 17:24:29 +0100 Subject: [PATCH v2] mm: dmapool: use provided gfp flags for all dma_alloc_coherent() calls In-Reply-To: <201301172026.45514.arnd@arndb.de> References: <20121119144826.f59667b2.akpm@linux-foundation.org> <201301171049.30415.arnd@arndb.de> <50F800EB.6040104@web.de> <201301172026.45514.arnd@arndb.de> Message-ID: <20130119162429.GB27825@lunn.ch> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Jan 17, 2013 at 08:26:45PM +0000, Arnd Bergmann wrote: > On Thursday 17 January 2013, Soeren Moch wrote: > > On 17.01.2013 11:49, Arnd Bergmann wrote: > > > On Wednesday 16 January 2013, Soeren Moch wrote: > > >>>> I will see what I can do here. Is there an easy way to track the buffer > > >>>> usage without having to wait for complete exhaustion? > > >>> > > >>> DMA_API_DEBUG > > >> > > >> OK, maybe I can try this. I tried this. Not what i expected. We have at least one problem with the ethernet driver: WARNING: at lib/dma-debug.c:933 check_unmap+0x4b8/0x8a8() mv643xx_eth_port mv643xx_eth_port.0: DMA-API: device driver failed to check map error[device address=0x000000001f22be00] [size=1536 bytes] [mapped as single] Modules linked in: [] (unwind_backtrace+0x0/0xf4) from [] (warn_slowpath_common+0x4c/0x64) [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_fmt+0x30/0x40) [] (warn_slowpath_fmt+0x30/0x40) from [] (check_unmap+0x4b8/0x8a8) [] (check_unmap+0x4b8/0x8a8) from [] (debug_dma_unmap_page+0x8c/0x98) [] (debug_dma_unmap_page+0x8c/0x98) from [] (mv643xx_eth_poll+0x630/0x800) [] (mv643xx_eth_poll+0x630/0x800) from [] (net_rx_action+0xcc/0x1d4) [] (net_rx_action+0xcc/0x1d4) from [] (__do_softirq+0xa8/0x170) [] (__do_softirq+0xa8/0x170) from [] (do_softirq+0x5c/0x6c) [] (do_softirq+0x5c/0x6c) from [] (local_bh_enable+0xcc/0xdc) [] (local_bh_enable+0xcc/0xdc) from [] (ip_finish_output+0x1c8/0x39c) [] (ip_finish_output+0x1c8/0x39c) from [] (ip_local_out+0x28/0x2c) [] (ip_local_out+0x28/0x2c) from [] (ip_queue_xmit+0x118/0x338) [] (ip_queue_xmit+0x118/0x338) from [] (tcp_transmit_skb+0x3fc/0x8e4) [] (tcp_transmit_skb+0x3fc/0x8e4) from [] (tcp_write_xmit+0x228/0xb08) [] (tcp_write_xmit+0x228/0xb08) from [] (__tcp_push_pending_frames+0x30/0x9c) [] (__tcp_push_pending_frames+0x30/0x9c) from [] (tcp_sendmsg+0x158/0xdc4) [] (tcp_sendmsg+0x158/0xdc4) from [] (inet_sendmsg+0x38/0x74) [] (inet_sendmsg+0x38/0x74) from [] (sock_aio_write+0x12c/0x138) [] (sock_aio_write+0x12c/0x138) from [] (do_sync_write+0xa0/0xd0) [] (do_sync_write+0xa0/0xd0) from [] (vfs_write+0x13c/0x144) [] (vfs_write+0x13c/0x144) from [] (sys_write+0x44/0x70) [] (sys_write+0x44/0x70) from [] (ret_fast_syscall+0x0/0x2c) ---[ end trace b75faa8779652e63 ]--- I'm getting about 4 errors reported a second from the ethernet driver. Before i look at issues with em28xx i will first try to get the noise from the ethernet driver sorted out. Andrew