Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263423AbTKCWDB (ORCPT ); Mon, 3 Nov 2003 17:03:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263432AbTKCWDB (ORCPT ); Mon, 3 Nov 2003 17:03:01 -0500 Received: from palrel13.hp.com ([156.153.255.238]:20138 "EHLO palrel13.hp.com") by vger.kernel.org with ESMTP id S263423AbTKCWDA (ORCPT ); Mon, 3 Nov 2003 17:03:00 -0500 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16294.53393.763572.291298@napali.hpl.hp.com> Date: Mon, 3 Nov 2003 14:02:57 -0800 To: Jes Sorensen Cc: Jamie Wellnitz , linux-kernel@vger.kernel.org Subject: Re: virt_to_page/pci_map_page vs. pci_map_single In-Reply-To: References: <20031102181224.GD2149@ma.emulex.com> <20031103125259.GC16690@ma.emulex.com> X-Mailer: VM 7.07 under Emacs 21.2.1 Reply-To: davidm@hpl.hp.com X-URL: http://www.hpl.hp.com/personal/David_Mosberger/ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1089 Lines: 24 >>>>> On 03 Nov 2003 09:17:59 -0500, Jes Sorensen said: >>>>> "Jamie" == Jamie Wellnitz writes: Jamie> On Mon, Nov 03, 2003 at 03:10:46AM -0500, Jes Sorensen wrote: >>> virt_to_page() can handle any page in the standard kernel region Jamie> What is the "standard kernel region"? ZONE_NORMAL? Jes> Hmmm, my brain has gotten ia64ified ;-) It's basically the normal Jes> mappings of the kernel, ie. the kernel text/data/bss segments as well Jes> as anything you do not get back as a dynamic mapping such as Jes> ioremap/vmalloc/kmap. I don't think it's safe to use virt_to_page() on static kernel addresses (text, data, and bss). For example, ia64 linux nowadays uses a virtual mapping for the static kernel memory, so it's not part of the identity-mapped segment. --david - 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/