Re: [PATCH v2 4/4] dma debug: introduce debug_dma_assert_idle()

2014-01-10 Thread Dan Williams
On Thu, Jan 9, 2014 at 4:38 PM, Andrew Morton wrote: > On Thu, 09 Jan 2014 12:17:26 -0800 Dan Williams > wrote: > >> Record actively mapped pages and provide an api for asserting a given >> page is dma inactive before execution proceeds. Placing >> debug_dma_assert_idle() in cow_user_page() fla

Re: [PATCH v2 4/4] dma debug: introduce debug_dma_assert_idle()

2014-01-09 Thread Andrew Morton
On Thu, 09 Jan 2014 12:17:26 -0800 Dan Williams wrote: > Record actively mapped pages and provide an api for asserting a given > page is dma inactive before execution proceeds. Placing > debug_dma_assert_idle() in cow_user_page() flagged the violation of the > dma-api in the NET_DMA implementat

[PATCH v2 4/4] dma debug: introduce debug_dma_assert_idle()

2014-01-09 Thread Dan Williams
Record actively mapped pages and provide an api for asserting a given page is dma inactive before execution proceeds. Placing debug_dma_assert_idle() in cow_user_page() flagged the violation of the dma-api in the NET_DMA implementation (see commit 77873803363c "net_dma: mark broken"). Cc: Joerg R