From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755027AbZEUQPn (ORCPT ); Thu, 21 May 2009 12:15:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754257AbZEUQPe (ORCPT ); Thu, 21 May 2009 12:15:34 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:26689 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754247AbZEUQPd (ORCPT ); Thu, 21 May 2009 12:15:33 -0400 X-IronPort-AV: E=Sophos;i="4.41,228,1241409600"; d="scan'208";a="52100748" From: Ian Campbell To: ian.campbell@citrix.com Cc: FUJITA Tomonori , Jeremy Fitzhardinge , Becky Bruce , Olaf Kirch , Ingo Molnar , Greg KH , xen-devel , x86 maintainers , lkml Subject: swiotlb: remove __weak hooks in favour of architecture-specific functions Date: Thu, 21 May 2009 17:15:21 +0100 Message-Id: <1242922528-5982-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1242906335.22654.188.camel@zakaz.uk.xensource.com> References: <1242906335.22654.188.camel@zakaz.uk.xensource.com> X-OriginalArrivalTime: 21 May 2009 16:15:34.0125 (UTC) FILETIME=[5E8AE9D0:01C9DA2F] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At the end of this series there are no more __weak functions in lib/swiotlb.c The series adds several hook functions to the x86 architecture. Would they be preferred as a struct x86_swiotlb_ops or as individual hooks? I was unsure what to do about powerpc in most places since the existing support seems to in-progress so it wasn't always clear where to put the implementation. If there is a tree somewhere with more complete support I'll be happy to provide additional patches. Boot tested on x86 under xen but not even compiled for ia64 or powerpc. If someone can point me to a decent source of cross compilers I can sort that out. (http://www.kernel.org/pub/tools/crosstool/ seems to be out-of-date and only has ia64 in any case) Signed-off-by: Ian Campbell Cc: FUJITA Tomonori Cc: Jeremy Fitzhardinge Cc: Becky Bruce Cc: Olaf Kirch Cc: Ingo Molnar Cc: Greg KH Cc: xen-devel Cc: x86 maintainers Cc: lkml --- arch/ia64/include/asm/dma-mapping.h | 29 ++++++++++++++ arch/ia64/kernel/pci-swiotlb.c | 11 +++++ arch/powerpc/include/asm/dma-mapping.h | 5 ++ arch/x86/include/asm/agp.h | 4 +- arch/x86/include/asm/dma-mapping.h | 34 +++++++++++++++++ arch/x86/include/asm/xen/iommu.h | 4 ++ arch/x86/kernel/pci-dma.c | 6 ++- arch/x86/kernel/pci-gart_64.c | 4 +- arch/x86/kernel/pci-nommu.c | 3 +- arch/x86/kernel/pci-swiotlb.c | 32 ++++++++++++++++ arch/x86/xen/Makefile | 3 +- arch/x86/xen/pci-swiotlb.c | 53 -------------------------- drivers/pci/xen-iommu.c | 20 ++++++++-- include/linux/dma-mapping.h | 5 -- include/linux/swiotlb.h | 10 ----- include/xen/swiotlb.h | 5 -- lib/swiotlb.c | 64 +++++++------------------------- 17 files changed, 156 insertions(+), 136 deletions(-)