Re: [tpmdd-devel] [PATCH] tpm: fix cacheline alignment for DMA-able buffers

From: Jason Gunthorpe
Date: Tue Aug 09 2016 - 18:08:49 EST


On Tue, Aug 09, 2016 at 08:18:00AM -0700, Dmitry Torokhov wrote:

> Well, the main reason was simplicity and invasiveness of the
> change.

Well, it isn't simple, because the proposed patches have had subtle
problems with DMA. Simple is to use a guaranteed dma-able allocation
for DMA memory and stop trying to over optimize.

Jason