public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Leber <christian@leber.de>
To: linux-kernel@vger.kernel.org
Subject: Re: DMA memory allocation --how to  more than 1 MB
Date: Tue, 19 Oct 2004 15:52:14 +0200	[thread overview]
Message-ID: <20041019135214.GA29435@core.home> (raw)
In-Reply-To: <4EE0CBA31942E547B99B3D4BFAB34811175F32@mail.esn.co.in>

On Tue, Oct 19, 2004 at 11:18:13AM +0530, Srinivas G. wrote:
> I have a doubt about allocating the DMA memory using kmalloc OR
> __get_dma_pages OR pci_alloc_consistent. I was unable to allocate the
> memory greater than 1 MB using any one of the above memory functions. 
> 
> Is there any other method which will allocate the DMA memory greater
> than 1 MB?

You should be able to get at least order 9, therefore 2 MB.
With kernel 2.6 you should also be able to get order 10, therefore 4 MB.
If you need more you have to puzzle the areas together.

The way wli suggested is better.
But if this is no possible just make it a requierement to load the
module while booting, then there are enough free areas.


Christian Leber

-- 
  "Omnis enim res, quae dando non deficit, dum habetur et non datur,
   nondum habetur, quomodo habenda est."       (Aurelius Augustinus)
  Translation: <http://gnuhh.org/work/fsf-europe/augustinus.html>

  parent reply	other threads:[~2004-10-19 13:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-19  5:48 DMA memory allocation --how to more than 1 MB Srinivas G.
2004-10-19 10:13 ` William Lee Irwin III
2004-10-19 13:52 ` Christian Leber [this message]
2004-10-19 14:22   ` William Lee Irwin III
  -- strict thread matches above, loose matches on Subject: below --
2004-10-19  6:28 Srinivas Naga Vutukuri

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=20041019135214.GA29435@core.home \
    --to=christian@leber.de \
    --cc=linux-kernel@vger.kernel.org \
    /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