The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: wixor <wixorpeek@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>,
	Arjan van de Ven <arjan@infradead.org>,
	JosephChan@via.com.tw, linux-kernel@vger.kernel.org
Subject: Re: viafb triggers BUG at mm/vmalloc.c:294 [kernel 2.6.28.3]
Date: Mon, 9 Feb 2009 23:34:47 +1100	[thread overview]
Message-ID: <200902092334.48635.nickpiggin@yahoo.com.au> (raw)
In-Reply-To: <c43b2e150902090348r3e88e459j467e47b2e3bc5548@mail.gmail.com>

On Monday 09 February 2009 22:48:22 wixor wrote:
> Okay, I'm not quite sure what's happening here (i'm not kernel
> developer). That's that I've done:
>     printk(KERN_DEBUG "alloc_vmap_area(%lu, %lu, %p,
> %p)\n",size,align,vstart,vend);
> at the very beginning of alloc_vmap_area,
>     printk(KERN_DEBUG "alloc_vmap_area: allocated %p -
> %p\n",va->va_start, va->va_end);
> at very end and
>         WARN(1,KERN_WARNING "alloc_vmap_area failed\n");

Great, thanks.

alloc_vmap_area(268439552, 524288, f0690000, fffaa000)
vmap allocation failed: use vmalloc=<size> to increase size.
------------[ cut here ]------------
WARNING: at mm/vmalloc.c:395 alloc_vmap_area+0x25d/0x2a0()
alloc_vmap_area failed
Modules linked in: viafb(+) fb i2c_algo_bit cfbcopyarea cfbimgblt cfbfillrect 
af_packet p4_clockmod speedstep_lib loop sr_mod cdrom wlan_scan_sta 
snd_hda_intel rtc_cmos rtc_core rtc_lib pcspkr ath_rate_sample snd_pcm psmouse 
ath_pci evdev ehci_hcd snd_timer snd_page_alloc snd_hwdep snd wlan ath_hal(P) 
soundcore uhci_hcd i2c_viapro via_rhine mii i2c_core usbcore pata_via video 
backlight output fan battery ac thermal button processor thermal_sys hwmon 
via_agp agpgart unix
Pid: 1740, comm: modprobe Tainted: P       A   2.6.28.3-dsdt-fix #17
Call Trace:
 [<c01200df>] warn_slowpath+0x6f/0x90
 [<c0243ba0>] vt_console_print+0x0/0x2f0
 [<c0120383>] __call_console_drivers+0x43/0x50
 [<c01111e0>] lapic_next_event+0x10/0x20
...
 [<f08b52ba>] viafb_init+0x2ba/0xf40 [viafb]
 [<c0116e53>] __ioremap_caller+0x1c3/0x350
 [<c0205209>] pci_get_subsys+0x59/0x80
 [<f08b52ba>] viafb_init+0x2ba/0xf40 [viafb]
 [<c0117138>] ioremap_nocache+0x18/0x20
 [<f08b52ba>] viafb_init+0x2ba/0xf40 [viafb]
 [<f08b52ba>] viafb_init+0x2ba/0xf40 [viafb]
 [<f08b5000>] viafb_init+0x0/0xf40 [viafb]
 [<c0101126>] do_one_initcall+0x36/0x1b0

So this path is trying to allocate 256MB of vmalloc space. Even if you did
have enough to satisfy the request, it would leave almost nothing left and
use up a huge amount of precious 32-bit kernel virtual memory.

Does viafb really need to ioremap 256MB? This isn't going to work so 
well on 32-bit systems... Either we should come up with a way to window
into the memory, or otherwise add some sane limits for 32-bit.


> before returning EBUSY. Full dmesg attached. What still bugs me is
> that video ram is allocated from system memory by bios. Does the
> kernel know that and does it try to allocate the framebuffer in that
> "video ram"?

I'm not the one to ask here, but perhaps if you can turn down the memory
size in the BIOS, the driver will use less KVA.


      reply	other threads:[~2009-02-09 12:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-07 19:44 viafb triggers BUG at mm/vmalloc.c:294 [kernel 2.6.28.3] wixor
2009-02-07 20:06 ` Alexey Dobriyan
2009-02-07 20:17   ` wixor
2009-02-07 20:56     ` Alexey Dobriyan
2009-02-07 21:45       ` wixor
2009-02-07 22:46         ` Alexey Dobriyan
2009-02-07 22:52           ` wixor
2009-02-08  0:40       ` Arjan van de Ven
2009-02-08 10:09         ` wixor
2009-02-08 10:25           ` wixor
2009-02-09  5:59             ` Nick Piggin
2009-02-09 10:06               ` wixor
2009-02-09 10:54                 ` Nick Piggin
2009-02-09 11:48                   ` wixor
2009-02-09 12:34                     ` Nick Piggin [this message]

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=200902092334.48635.nickpiggin@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=JosephChan@via.com.tw \
    --cc=adobriyan@gmail.com \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wixorpeek@gmail.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