public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: mirco_cremasco@hotmail.com, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: ioremap_nocache and mem= parameter with k 2.6.18
Date: Thu, 11 Oct 2007 22:18:15 -0600	[thread overview]
Message-ID: <470EF587.3000204@shaw.ca> (raw)
In-Reply-To: <1192116465.689041.176900@57g2000hsv.googlegroups.com>

mirco_cremasco@hotmail.com wrote:
> Hi,
> I'm using a driver for a framegrabber device that needs to alloc a
> huge buffer of ram for dma transfers....
> So it works:
> 1) Having 2GB of ram installed, boot the kernel with mem=1024M
> parameter
> 2) remap the unmapped memory above first GB using ioremap_nocache
> function, using PAGE_ALIGN().
> 
> This works fine with kernel 2.6.9 but it doesn't with newer ones
> 2.6.18, 2.6.20, 2.6.22.
> With newer kernel ioremap returns 0.
> It seems like memory above 1G has been marked reserved, IMHO.
> 
> What changes in the mm?
> I'm not the driver's developer, but I'd like to understand and
> possibly find a workaround...

It doesn't make sense to use ioremap_nocache on RAM. It's only meant for 
mapping MMIO memory regions on a device.

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


           reply	other threads:[~2007-10-12  4:18 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1192116465.689041.176900@57g2000hsv.googlegroups.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=470EF587.3000204@shaw.ca \
    --to=hancockr@shaw.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mirco_cremasco@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox