Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760162AbZGIJzt (ORCPT ); Thu, 9 Jul 2009 05:55:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759263AbZGIJzo (ORCPT ); Thu, 9 Jul 2009 05:55:44 -0400 Received: from sh.osrg.net ([192.16.179.4]:54412 "EHLO sh.osrg.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751953AbZGIJzn (ORCPT ); Thu, 9 Jul 2009 05:55:43 -0400 Date: Thu, 9 Jul 2009 18:55:30 +0900 To: davem@davemloft.net Cc: arnd@arndb.de, fujita.tomonori@lab.ntt.co.jp, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, reif@earthlink.net Subject: Re: [PATCH 2/5] sparc: use asm-generic/dma-mapping-common.h From: FUJITA Tomonori In-Reply-To: <20090706.181131.92078657.davem@davemloft.net> References: <1246860820-20629-3-git-send-email-fujita.tomonori@lab.ntt.co.jp> <200907061026.28878.arnd@arndb.de> <20090706.181131.92078657.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20090709185505X.fujita.tomonori@lab.ntt.co.jp> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (sh.osrg.net [192.16.179.4]); Thu, 09 Jul 2009 18:55:31 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1790 Lines: 43 On Mon, 06 Jul 2009 18:11:31 -0700 (PDT) David Miller wrote: > From: Arnd Bergmann > Date: Mon, 6 Jul 2009 10:26:28 +0200 > > > On Monday 06 July 2009, FUJITA Tomonori wrote: > >> +static inline struct dma_map_ops *get_dma_ops(struct device *dev) > >> +{ > >> + return dma_ops; > >> +} > >> + > >> +#define flush_write_buffers() > >> + > >> +#include > > > > I still think the flush_write_buffers() x86-ism should not be required > > to use dma-mapping-common.h and only be used in arch/x86/kernel/pci-nommu.c > > so you don't have to add dummy definitions to all architectures. > > > > See http://lkml.org/lkml/2009/6/30/134 > > > > Otherwise, your series looks good! > > Since we have until the 2.6.32 merge window to merge this, why > don't we take care of this flush_write_buffers() thing first? > > I'm completely fine with these changes otherwise, thanks! The logic to move flush_write_buffers() from dma-mapping-common.h to arch/x86/kernel/pci-nommu.c makes sense and it doesn't break anything. However, I'd like to see the confirmation from a person who added flush_write_buffers() long ago. I thought that we might overlook something subtle. I'll put Arnd's patch in the next submission if you like. btw, Robert asked me about the dma-debug feature so I uploaded the new version (I also found and fixed one bug wrt dma_{alloc|free}_coherent for pci devices on SPARC32): git://git.kernel.org/pub/scm/linux/kernel/git/tomo/linux-2.6-misc.git sparc -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/