From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263994AbTKDImy (ORCPT ); Tue, 4 Nov 2003 03:42:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263996AbTKDImy (ORCPT ); Tue, 4 Nov 2003 03:42:54 -0500 Received: from natsmtp00.rzone.de ([81.169.145.165]:37536 "EHLO natsmtp00.webmailer.de") by vger.kernel.org with ESMTP id S263994AbTKDImw (ORCPT ); Tue, 4 Nov 2003 03:42:52 -0500 Message-ID: <3FA7663D.7060509@softhome.net> Date: Tue, 04 Nov 2003 09:41:33 +0100 From: "Ihar 'Philips' Filipau" Organization: Home Sweet Home User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030927 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "David S. Miller" CC: Linux Kernel Mailing List , David Mosberger , Jes Sorensen Subject: Re: virt_to_page/pci_map_page vs. pci_map_single References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! Can any-one draw a conclusion? Which function should be used in which case? So this will be at least reflected in lkml archives ;-) David S. Miller wrote: > On Mon, 3 Nov 2003 14:02:57 -0800 > David Mosberger wrote: > > >>>>>>>On 03 Nov 2003 09:17:59 -0500, Jes Sorensen said: >> >> 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. > > > That's correct and it'll break on sparc64 for similar reasons. > > It's also not safe to do virt_to_page() on kernel stack addresses > either. > -- Ihar 'Philips' Filipau / with best regards from Saarbruecken. -- _ _ _ "... and for $64000 question, could you get yourself |_|*|_| vaguely familiar with the notion of on-topic posting?" |_|_|*| -- Al Viro @ LKML |*|*|*|