Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753609AbZGJBMC (ORCPT ); Thu, 9 Jul 2009 21:12:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751215AbZGJBJX (ORCPT ); Thu, 9 Jul 2009 21:09:23 -0400 Received: from sh.osrg.net ([192.16.179.4]:55370 "EHLO sh.osrg.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbZGJBJS (ORCPT ); Thu, 9 Jul 2009 21:09:18 -0400 From: FUJITA Tomonori To: linux-kernel@vger.kernel.org Cc: linux-ia64@vger.kernel.org, linuxppc-dev@ozlabs.org, benh@kernel.crashing.org, tony.luck@intel.com, x86@kernel.org, fujita.tomonori@lab.ntt.co.jp, beckyb@kernel.crashing.org Subject: [00/15] swiotlb cleanup Date: Fri, 10 Jul 2009 10:04:49 +0900 Message-Id: <1247187904-31999-1-git-send-email-fujita.tomonori@lab.ntt.co.jp> X-Mailer: git-send-email 1.6.0.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (sh.osrg.net [192.16.179.4]); Fri, 10 Jul 2009 10:07:58 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1527 Lines: 32 - removes unused (and unnecessary) hooks in swiotlb. - adds dma_capable() and converts swiotlb to use it. It can be used to know if a memory area is dma capable or not. I added is_buffer_dma_capable() for the same purpose long ago but it turned out that the function doesn't work on POWERPC. This can be applied cleanly to linux-next, -mm, and mainline. This patchset touches multiple architectures (ia64, powerpc, x86) so I guess that -mm is appropriate for this patchset (I don't care much what tree would merge this though). This is tested on x86 but only compile tested on POWERPC and IA64. Thanks, = arch/ia64/include/asm/dma-mapping.h | 18 ++++++ arch/powerpc/include/asm/dma-mapping.h | 23 +++++++ arch/powerpc/kernel/dma-swiotlb.c | 48 +--------------- arch/x86/include/asm/dma-mapping.h | 18 ++++++ arch/x86/kernel/pci-dma.c | 2 +- arch/x86/kernel/pci-gart_64.c | 5 +- arch/x86/kernel/pci-nommu.c | 2 +- arch/x86/kernel/pci-swiotlb.c | 25 -------- include/linux/dma-mapping.h | 5 -- include/linux/swiotlb.h | 11 ---- lib/swiotlb.c | 102 +++++++++----------------------- 11 files changed, 92 insertions(+), 167 deletions(-) -- 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/