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

2016-08-10 Thread Jarkko Sakkinen
On Tue, Aug 09, 2016 at 08:18:00AM -0700, Dmitry Torokhov wrote: >On Tue, Aug 9, 2016 at 8:01 AM, Jarkko Sakkinen > wrote: > > On Tue, Aug 09, 2016 at 12:46:10PM +0300, Jarkko Sakkinen wrote: > > On Fri, Jul 29, 2016 at 10:30:22AM -0700, Dmitry Torokhov wrote: > > >    On

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

2016-08-09 Thread Jason Gunthorpe
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 a

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

2016-08-09 Thread Jarkko Sakkinen
On Tue, Aug 09, 2016 at 12:46:10PM +0300, Jarkko Sakkinen wrote: > On Fri, Jul 29, 2016 at 10:30:22AM -0700, Dmitry Torokhov wrote: > >On Fri, Jul 29, 2016 at 10:27 AM, Jason Gunthorpe > > wrote: > > > > On Thu, Jul 28, 2016 at 07:59:13PM -0700, Andrey Pronin wrote: > > > Annotat