From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268948AbUHZNpm (ORCPT ); Thu, 26 Aug 2004 09:45:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268906AbUHZNnN (ORCPT ); Thu, 26 Aug 2004 09:43:13 -0400 Received: from stat16.steeleye.com ([209.192.50.48]:17559 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S268840AbUHZNmp (ORCPT ); Thu, 26 Aug 2004 09:42:45 -0400 Subject: [BK PATCH] dma_declare_coherent_memory From: James Bottomley To: Andrew Morton , Linus Torvalds Cc: Linux Kernel Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-9) Date: 26 Aug 2004 09:42:27 -0400 Message-Id: <1093527753.1948.17.camel@mulgrave> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This patch has been refined in mm for quite a while and now seems stable enough for mainline. The patch is available at: bk://linux-voyager.bkbits.net/dma-declare-coherent-memory-2.6 The short changelog is: Andrew Morton: o Fix sparc compile error in dma-mapping.h James Bottomley: o lib/bitmap.c: fix incorrect use of BITS_TO_LONGS() o dma_alloc_coherent() still needs to support a NULL device o Fix region sizing problem in dma_mark_declared_memory_occupied() o Fix bug in __get_vm_area() alignment code o Fix incorrect prototype in the dma_declare_coherent_memory API o Convert NCR_Q720 to use dma_declare_coherent_memory o Add x86 implementation of dma_declare_coherent_memory o Add vmalloc alignment constraints o Add memory region bitmap implementations o Add dma_declare_coherent_memory() API Petr Vandrovec: o nsc-ircc driver crashes on shutdown And the diffstat: Documentation/DMA-API.txt | 79 +++++++++++++++++++++++++++++ arch/i386/kernel/pci-dma.c | 111 ++++++++++++++++++++++++++++++++++++++++- drivers/scsi/NCR_Q720.c | 21 ++++++- include/asm-i386/dma-mapping.h | 12 ++++ include/linux/bitmap.h | 3 + include/linux/device.h | 3 + include/linux/dma-mapping.h | 29 ++++++++++ lib/bitmap.c | 82 ++++++++++++++++++++++++++++++ mm/vmalloc.c | 25 ++++++++- 9 files changed, 357 insertions(+), 8 deletions(-) James