Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262942AbTKEQ1B (ORCPT ); Wed, 5 Nov 2003 11:27:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262973AbTKEQ1B (ORCPT ); Wed, 5 Nov 2003 11:27:01 -0500 Received: from dp.samba.org ([66.70.73.150]:27615 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id S262942AbTKEQ07 (ORCPT ); Wed, 5 Nov 2003 11:26:59 -0500 Date: Thu, 6 Nov 2003 03:23:31 +1100 From: Anton Blanchard To: James Bottomley Cc: Jes Sorensen , Jamie Wellnitz , Linux Kernel Subject: Re: virt_to_page/pci_map_page vs. pci_map_single Message-ID: <20031105162331.GA19104@krispykreme> References: <1067885332.2076.13.camel@mulgrave> <1067964220.1792.106.camel@mulgrave> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1067964220.1792.106.camel@mulgrave> User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 728 Lines: 16 > I really don't see what's to be gained by doing this. map_page is for > mapping one page or a fragment of it. It's designed for small zero copy > stuff, like networking. To get it to map more than one page, really we > should pass in an array of struct pages. As an aside it would be nice if networking used the map_sg infrastructure for zero copy. Some architectures need to do things to make the DMA mapping visible to IO and at the moment we do it for each map_page. Anton - 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/