Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329AbZJWBWu (ORCPT ); Thu, 22 Oct 2009 21:22:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751268AbZJWBWr (ORCPT ); Thu, 22 Oct 2009 21:22:47 -0400 Received: from sous-sol.org ([216.99.217.87]:52776 "EHLO sequoia.sous-sol.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750863AbZJWBWn (ORCPT ); Thu, 22 Oct 2009 21:22:43 -0400 Message-Id: <20091023012158.177308035@sequoia.sous-sol.org> User-Agent: quilt/0.47-1 Date: Thu, 22 Oct 2009 18:21:58 -0700 From: Chris Wright To: David Woodhouse Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/3] allow fallback to swiotlb on hw iommu init failures Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1024 Lines: 25 This short series gives us the ability to allocate the swiotlb and then conditionally free it if we discover it isn't needed. This allows us to put swiotlb to use when the hw iommu fails to initialize properly. This needs some changes to the bootmem allocator to give the ability to free reserved bootmem directly to the page allocator after bootmem is torn down. arch/x86/include/asm/swiotlb.h | 4 ++ arch/x86/kernel/pci-dma.c | 4 +- arch/x86/kernel/pci-swiotlb.c | 27 +++++++++--- include/linux/bootmem.h | 1 + include/linux/swiotlb.h | 3 + lib/swiotlb.c | 10 ++++ mm/bootmem.c | 98 +++++++++++++++++++++++++++++++--------- 7 files changed, 118 insertions(+), 29 deletions(-) thanks, -chris -- 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/