Re: [PATCH] xhci: use dma_alloc_coherent with fully cleared pages

2015-02-19 Thread Tim Chen
On Thu, 2015-02-19 at 17:05 +0200, Mathias Nyman wrote: > On 19.02.2015 02:34, Tim Chen wrote: > > > > Commit d92ef66c4f8f ("x86: make dma_alloc_coherent() return zeroed memory > > if CMA is enabled") changed the dma_alloc_coherent page clearance from > > using an __GFP_ZERO in page allocation to

Re: [PATCH] xhci: use dma_alloc_coherent with fully cleared pages

2015-02-19 Thread Andi Kleen
> Great. Thanks for fixing this. Not great. This still leaves all the other drivers which may be affected by similar problems. IMHO Tim's original patch is still needed. -Andi -- a...@linux.intel.com -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux

Re: [PATCH] xhci: use dma_alloc_coherent with fully cleared pages

2015-02-19 Thread Tim Chen
On Thu, 2015-02-19 at 17:05 +0200, Mathias Nyman wrote: > On 19.02.2015 02:34, Tim Chen wrote: > > > > Commit d92ef66c4f8f ("x86: make dma_alloc_coherent() return zeroed memory > > if CMA is enabled") changed the dma_alloc_coherent page clearance from > > using an __GFP_ZERO in page allocation to

Re: [PATCH] xhci: use dma_alloc_coherent with fully cleared pages

2015-02-19 Thread Mathias Nyman
On 19.02.2015 02:34, Tim Chen wrote: > > Commit d92ef66c4f8f ("x86: make dma_alloc_coherent() return zeroed memory > if CMA is enabled") changed the dma_alloc_coherent page clearance from > using an __GFP_ZERO in page allocation to not setting the flag but doing > an explicit memory clear at the e

[PATCH] xhci: use dma_alloc_coherent with fully cleared pages

2015-02-18 Thread Tim Chen
Commit d92ef66c4f8f ("x86: make dma_alloc_coherent() return zeroed memory if CMA is enabled") changed the dma_alloc_coherent page clearance from using an __GFP_ZERO in page allocation to not setting the flag but doing an explicit memory clear at the end. However the memory clear only covered the