LKML Archive on
help / color / mirror / Atom feed
From: "Martyn Welch" <>
To: "Asgard" <>, <>
Subject: RE: alloc_bootmem - Kernel panic
Date: Wed, 7 Feb 2007 16:47:20 -0000	[thread overview]
Message-ID: <F38DEABE0E171746B133C1ABBD142D9706325502@radmail.Radstone.Local> (raw)

Hi Asgard,

Thank you for your reply.
> I don't sure, that linux performs to allocate bootmem after kernel already booted.
> As I know, bootmem allocator "destroyed" when kernel initializes buddy allocator.
> Indeed you can look at arch/i385/mm/init.c, mem_init routine.
> kernel passes all bootmem pages to buddy system, so bootmem allocator can't be used after it. 
That explains why I can't use alloc_bootmem. It'd assumed that do_initcalls and hence functions labelled with module_init() were called early enough, mainly because LDD3 suggests using alloc_bootmem. It seems the vt driver uses console_init() instead, which is called much earlier.

Which leads me to the question: what is the best method to reserve a large (~4MB) coherent buffer for DMA transfers?

Is there any way of using alloc_bootmem from a driver (compiled into the kernel) without delving further into kernel code?


This e-mail has been scanned for all viruses by Star.The service is powered by MessageLabs. 

             reply	other threads:[~2007-02-07 16:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-07 16:47 Martyn Welch [this message]
2007-02-07 18:24 ` Asgard
  -- strict thread matches above, loose matches on Subject: below --
2007-02-07 13:41 Martyn Welch

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:

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

  git send-email \
    --in-reply-to=F38DEABE0E171746B133C1ABBD142D9706325502@radmail.Radstone.Local \ \ \ \
    --subject='RE: alloc_bootmem - Kernel panic' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).