Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1211018 > unrolled thread

Re: omapdss: Division by zero in kernel

Started byTomi Valkeinen <tomi.valkeinen@ti.com>
First post2015-08-21 10:50 +0200
Last post2015-08-21 10:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: omapdss: Division by zero in kernel Tomi Valkeinen <tomi.valkeinen@ti.com> - 2015-08-21 10:50 +0200

#1211018 — Re: omapdss: Division by zero in kernel

FromTomi Valkeinen <tomi.valkeinen@ti.com>
Date2015-08-21 10:50 +0200
SubjectRe: omapdss: Division by zero in kernel
Message-ID<pZQbn-6VO-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On 24/07/15 19:03, Pali Rohár wrote:
> Hello,
> 
> when on N900 (real HW or qemu) I run this command
> 
> / # echo 0 > /sys/devices/platform/omapdss/overlay0/enabled && echo 0 > /sys/class/graphics/fb0/size
> 
> then kernel crash with this error message
> 
> / # [   29.904113] Division by zero in kernel.

The problem is that fb console uses the kernel mmapped framebuffer, but
omapfb is not aware of the fb console. So the above commands free the
framebuffer, as omapfb thinks no one is using it, and then fb console
tries to touch the fb.

omapfb tracks mmaps from userspace, and refuses to free a fb it it's
mmapped.

I don't know how to fix it straight away. Maybe there's a way for omapfb
to check if the fbcon uses the fb in question, and if so, refuses to
release/resize the memory.

 Tomi

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web