From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932581AbcHIWIq (ORCPT ); Tue, 9 Aug 2016 18:08:46 -0400 Received: from quartz.orcorp.ca ([184.70.90.242]:33467 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932360AbcHIWIp (ORCPT ); Tue, 9 Aug 2016 18:08:45 -0400 Date: Tue, 9 Aug 2016 16:08:38 -0600 From: Jason Gunthorpe To: Dmitry Torokhov Cc: Jarkko Sakkinen , Christophe Ricard , tpmdd-devel@lists.sourceforge.net, "linux-kernel@vger.kernel.org" Subject: Re: [tpmdd-devel] [PATCH] tpm: fix cacheline alignment for DMA-able buffers Message-ID: <20160809220837.GA5535@obsidianresearch.com> References: <1469761153-85576-1-git-send-email-apronin@chromium.org> <20160729172702.GB7020@obsidianresearch.com> <20160809094610.GA13566@intel.com> <20160809150114.GA9672@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.151 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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