Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752810AbZKOMXU (ORCPT ); Sun, 15 Nov 2009 07:23:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752714AbZKOMXE (ORCPT ); Sun, 15 Nov 2009 07:23:04 -0500 Received: from sh.osrg.net ([192.16.179.4]:46551 "EHLO sh.osrg.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752632AbZKOMXD (ORCPT ); Sun, 15 Nov 2009 07:23:03 -0500 From: FUJITA Tomonori To: linux-kernel@vger.kernel.org Cc: mingo@elte.hu, fujita.tomonori@lab.ntt.co.jp, muli@il.ibm.com, joerg.roedel@amd.com Subject: [PATCH 0/3] x86: kill global bad_dma_address variable Date: Sun, 15 Nov 2009 21:19:51 +0900 Message-Id: <1258287594-8777-1-git-send-email-fujita.tomonori@lab.ntt.co.jp> X-Mailer: git-send-email 1.5.6.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (sh.osrg.net [192.16.179.4]); Sun, 15 Nov 2009 21:22:43 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 24 This is against -tip. This patchset kills bad_dma_address variable, the old mechanism to enable IOMMU drivers to make dma_mapping_error() work in IOMMU's specific way. bad_dma_address variable was introduced to enable IOMMU drivers to make dma_mapping_error() work in IOMMU's specific way. However, it can't handle systems that use both swiotlb and HW IOMMU. SO we introduced dma_map_ops->mapping_error to solve that case. Keeping those two mechanisms is pointless. Let's remove the old one. = arch/x86/include/asm/dma-mapping.h | 5 +++-- arch/x86/kernel/amd_iommu.c | 21 ++++++++++----------- arch/x86/kernel/pci-calgary_64.c | 31 +++++++++++++------------------ arch/x86/kernel/pci-dma.c | 3 --- arch/x86/kernel/pci-gart_64.c | 18 +++++++++++++----- arch/x86/kernel/pci-nommu.c | 2 +- 6 files changed, 40 insertions(+), 40 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/