Re: [PATCH] pci-dma: Fix x86 dma_alloc_coherent to fully clear all pages returned

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2015-01-30 at 11:58 -0800, Greg KH wrote:

> 
> Shouldn't this go to stable trees too?
> 

Yes. Added the stable tag in updated patch that's resent.

> Also, why is the xhci driver not asking for the memory it is going to
> need?  If it wants to use the full page, shouldn't it ask for it?
> 

I agree that xhci should have done that, but it didn't.  Commit 
d92ef66c4f8f ("x86: make dma_alloc_coherent() return zeroed memory 
if CMA is enabled") changed the behavior of dma_alloc_coherent
by clearing only the memory being asked for.

So for backward compatibility, clearing the pages 
completely to revert to dma_alloc_coherent's original
behavior is probably the safe thing to do.

Thanks.

Tim

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux