From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 2 11:04:33 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 629FC106566C for ; Tue, 2 Mar 2010 11:04:33 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id E78BB8FC0C for ; Tue, 2 Mar 2010 11:04:32 +0000 (UTC) Received: by fxm23 with SMTP id 23so97891fxm.3 for ; Tue, 02 Mar 2010 03:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=1Zjwi4f5M7qnTB2Ku40jdWMBo6eJDLyklHMhAT3ISzQ=; b=ivuWw6+qfqb2clo4hWiZOLILS1dF5p05iiCKh5+cJ/1xwUhlJnKJ99LpWBl1honn/Y aTZsT4I4Udc5bo58vop2hEsHiE8m0wrOuUSAVymTRUcODCNhqcSYTWjmeByWeTou+DNU 5Y4GDSWA9gUIvMRyK3D3vWGguGB3lkbN+QnHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=by5wmOJ4jzHMAVVE4eByK7OXcIk7QQJ7mwM2FGAHK6VAH0ZRbvAyiSvsKRfn3Aihr6 smN1bKLQEFbHP+OLoyItHanZ+1JrLnzQf9QFkvvZzku0SKE7xWjh6B685VG9nj3iWwHU 6o2+uwVzs5STd4fzADmamLSXwvQ3RYA4MdLJA= MIME-Version: 1.0 Received: by 10.223.14.71 with SMTP id f7mr5170184faa.48.1267527866040; Tue, 02 Mar 2010 03:04:26 -0800 (PST) In-Reply-To: <1267518879.2794.14.camel@Prometheus> References: <317657.30145.qm@web27603.mail.ukl.yahoo.com> <4e6cba831003010619j560f5b92n4c63ab2520cff7db@mail.gmail.com> <1267518879.2794.14.camel@Prometheus> Date: Tue, 2 Mar 2010 12:04:26 +0100 Message-ID: <4e6cba831003020304u2a2dc8ceobb594ebe58744ef5@mail.gmail.com> From: Giovanni Trematerra To: Alexander Eichner Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: Allocating physical memory without a kernel mapping X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 11:04:33 -0000 On Tue, Mar 2, 2010 at 9:34 AM, Alexander Eichner wrote: > Giovanni Trematerra wrote: >> On Mon, Mar 1, 2010 at 10:59 AM, Alexander Eichner wrote: >> > Hi, >> > > > Thanks for your help but I don't see how that patch could help with my > problem. rtR0MemObjNativeAllocPage allocates pages with a kernel > mapping but the problem appears when using rtR0MemObjNativeAllocPhysNC > + rtR0MemObjNativeMapUser and freeing the pages later. > rtR0MemObjNativeAllocPage is used if I use the old allocation mode which > does not use rtR0MemObjNativeAllocPhysNC and this works fine here. > The double wiring problem should also be solved with the latest source. Sorry, the patch was intended *only* as alternative way to resolve double wired paging issue. I don't know if the patch is correct though. Maybe you can attach a textdump of your panic(or at least a bt), that might be useful to understand the problem. Thank you. -- Gianni