linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miles Lane <miles.lane@gmail.com>
To: linux-fbdev-devel@lists.sourceforge.net,
	"Randy.Dunlap" <rddunlap@osdl.org>, Andrew Morton <akpm@osdl.org>,
	"Antonino A. Daplas" <adaplas@pol.net>
Subject: The nvidiafb driver is requiring too much vmalloc space and other problems.
Date: Wed, 30 Mar 2005 14:59:09 -0800	[thread overview]
Message-ID: <a44ae5cd05033014597bb3a2e@mail.gmail.com> (raw)

Hello,

With guidance from Randy Dunlap, it has been determined that
the nvidiafb driver will fail to operate correctly unless more than
128M of memory is provided by using "vmalloc=".  The default 
kernel configuration provides for 128M, but Randy found that:

>I started looking at vmalloc() and what it calls (which is
> __get_vm_area).  _get_vm_area() always allocates one extra
> page (called a "guard page") between all vmalloc allocations,
> so even though 128 MB is the default amount and the amount
> that nvidiafb wants to use, the kernel wants to allocate
> 128 MB + PAGE_SIZE (4 KB on x86; are you on x86?), so even
> if nvidiafb is the only caller, the vmalloc() call will fail.

Booting with vmalloc=256M works, but Andrew thinks that 
nvidiafb should not be requiring 128M in the first place.

Regarding the problems with i2c bit-banging drivers, I don't
know if the Oops I have been getting is related to the vmalloc
issue somehow.  Comments?  I'll try to repro the crash with
vmalloc=256M set.

Lastly, with vmalloc=256M, my machine crashes whenever 
I try to switch from XFree86 to a framebuffer console.  I cannot
see the oops.  Unfortunately, the only machine I could use for
debugging using a serial connection is a Powerbook, which has
no serial port.

I could try setting up dumping the stack over the network,
but I have never tried to do this before and do not know
whether I can do the dump to a Powerbook running OS/X.
Any suggestions?

Thanks,
        Miles


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30

             reply	other threads:[~2005-03-30 22:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30 22:59 Miles Lane [this message]
2005-03-31 23:10 ` The nvidiafb driver is requiring too much vmalloc space and other problems Benjamin Herrenschmidt
2005-03-31 23:18   ` Randy.Dunlap

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=a44ae5cd05033014597bb3a2e@mail.gmail.com \
    --to=miles.lane@gmail.com \
    --cc=adaplas@pol.net \
    --cc=akpm@osdl.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=rddunlap@osdl.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;
as well as URLs for NNTP newsgroup(s).