From owner-freebsd-amd64@FreeBSD.ORG Thu Oct 30 16:39:28 2014 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CA359A0C for ; Thu, 30 Oct 2014 16:39:28 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9729F150 for ; Thu, 30 Oct 2014 16:39:28 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id tr6so5673173ieb.14 for ; Thu, 30 Oct 2014 09:39:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=2SJbDyjz24vHpy+hM9seR+s+UfeG21B28/XxEFoitjI=; b=bCCFtE9JLn/n5p2qq8Z2edd4cLaLPm3QVY3eOc+Bvpx/rg0EQBMgW5Sbm9WpYRSP89 ggFMZBJEWK1N87sHCBeLlAYOxg6OCgUjYgIkM1JQmZm0L3K8ReNjBKqouKxhEoiZPAND DaXk7wgguDsnmavwNTHPf/amsWj90nuMJXgXPYsg5cdlrcFaplJWS53pPwcbCwKmWPvQ d8QprcXufl7GIsPoQQAUuZpFrRg+zvTNlixXklTZN+9moQm/RB4CXoSCSc8nLL2CVESm mAwO8VbFhII5cmyPZIXnB0Ee0cM4F08AaR7/KkVqzWiA6SS79sFder44JbQSP5vc4opS SojA== X-Gm-Message-State: ALoCoQmSJwKC6RAB63Vz1Xr06mgVfvF6G7Fo28tgRxzV5hpNC4ZVsa/QqlMJ71idQks4P/vEzFAO MIME-Version: 1.0 X-Received: by 10.50.119.195 with SMTP id kw3mr21794380igb.5.1414687167201; Thu, 30 Oct 2014 09:39:27 -0700 (PDT) Received: by 10.107.34.202 with HTTP; Thu, 30 Oct 2014 09:39:27 -0700 (PDT) In-Reply-To: <201410301208.50164.jhb@freebsd.org> References: <201410071050.34285.jhb@freebsd.org> <201410301208.50164.jhb@freebsd.org> Date: Thu, 30 Oct 2014 22:09:27 +0530 Message-ID: Subject: Re: memory type e820 From: Sourish Mazumder To: John Baldwin Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-amd64@freebsd.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 16:39:29 -0000 Hi John, I want to make a block device out of this nvram memory. So, I will need to perform memcpy() operation into this memory. Do I need to add this memory into the vm system, if I need to do operations like memcpy(). On Thu, Oct 30, 2014 at 9:38 PM, John Baldwin wrote: > On Thursday, October 30, 2014 1:56:00 am Sourish Mazumder wrote: > > I have nvram device in my system. I am able to detect the nvram device > > address by scanning the bios_smap. > > How do I add this new found nvram memory into kernel address space? > > Do you just want to map it so you can get a valid pointer or do you want it > to be treated as normal memory by the VM system (i.e. available for use as > pages in the VM page cache)? > > -- > John Baldwin > -- Sourish Mazumder 9986309755