From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx169.postini.com [74.125.245.169]) by kanga.kvack.org (Postfix) with SMTP id CF4A86B0006 for ; Sat, 19 Jan 2013 11:25:40 -0500 (EST) Date: Sat, 19 Jan 2013 17:24:29 +0100 From: Andrew Lunn Subject: Re: [PATCH v2] mm: dmapool: use provided gfp flags for all dma_alloc_coherent() calls Message-ID: <20130119162429.GB27825@lunn.ch> References: <20121119144826.f59667b2.akpm@linux-foundation.org> <201301171049.30415.arnd@arndb.de> <50F800EB.6040104@web.de> <201301172026.45514.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201301172026.45514.arnd@arndb.de> Sender: owner-linux-mm@kvack.org List-ID: To: Arnd Bergmann Cc: Soeren Moch , Jason Cooper , Greg KH , Thomas Petazzoni , Andrew Lunn , KAMEZAWA Hiroyuki , linux-kernel@vger.kernel.org, Michal Hocko , linux-mm@kvack.org, Kyungmin Park , Mel Gorman , Andrew Morton , Marek Szyprowski , linaro-mm-sig@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org