From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752279AbcG2DBJ (ORCPT ); Thu, 28 Jul 2016 23:01:09 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:33096 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751472AbcG2DBH (ORCPT ); Thu, 28 Jul 2016 23:01:07 -0400 Date: Thu, 28 Jul 2016 20:01:03 -0700 From: Andrey Pronin To: Jason Gunthorpe Cc: Dmitry Torokhov , Jarkko Sakkinen , Peter Huewe , Marcel Selhorst , tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Christophe Ricard , smbarber@chromium.org, dianders@chromium.org Subject: Re: [PATCH v3 2/2] tpm: add driver for cr50 on SPI Message-ID: <20160729030103.GA85623@apronin> References: <1468549218-19215-1-git-send-email-apronin@chromium.org> <1469679917-120240-3-git-send-email-apronin@chromium.org> <20160728230141.GC28623@dtor-ws> <20160728231706.GA22087@obsidianresearch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160728231706.GA22087@obsidianresearch.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 28, 2016 at 05:17:06PM -0600, Jason Gunthorpe wrote: > On Thu, Jul 28, 2016 at 04:01:41PM -0700, Dmitry Torokhov wrote: > > > > + u8 tx_buf[MAX_SPI_FRAMESIZE]; > > > + u8 rx_buf[MAX_SPI_FRAMESIZE]; > > > > Both of these need to be annotated as "____cacheline_aligned" since we > > eye them for use in DMA transfers. > > Huh. That sure looks true to me.. > > We make that same mistake in all other tpm SPI drivers. > > Can someone send a patch please? > Just did. Thanks, Andrey