android_kernel_xiaomi_sm8350/arch/blackfin/kernel
Thomas Chou 59bd00c850 Blackfin: fix framebuffer mmap bug for nommu
The patch added a special get_unmapped_area for framebuffer which
was hooked to the file ops in drivers/video/fbmem.c.

This is needed since v2.6.29-rc1 where nommu vma management was
updated, and mmap of framebuffer caused kernel BUG panic. You may turn
on "Debug the global anon/private NOMMU mapping region tree" config to
such message.

As Documentation/nommu-mmap.txt said,
"To provide shareable character device support, a driver must provide
a file->f_op->get_unmapped_area() operation. The mmap() routines will
call this to get a proposed address for the mapping."

With this change, user space should call mmap for framebuffer using
shared map. Or it can try shared map first, then private map if
failed. This shared map usage is now consistent between mmu and nommu.

The sys_ file may not be a good place for this patch. But there is a
similar one for sparc. I tested a similar patch on nios2nommu, though
I don't have a blackfin board to test.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-08 00:58:15 -04:00
..
cplb-mpu Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
cplb-nompu Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
.gitignore
asm-offsets.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
bfin_dma_5xx.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
bfin_gpio.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
bfin_ksyms.c Blackfin: pull in asm/io.h in ksyms for prototypes 2009-06-18 21:40:44 -04:00
cplbinfo.c Blackfin: cplbinfo: drop d_path() hacks 2009-10-07 04:48:04 -04:00
dma-mapping.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
early_printk.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
entry.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
fixed_code.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
flat.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
ftrace-entry.S Blackfin: update ftrace for latest toolchain 2009-09-16 22:10:52 -04:00
ftrace.c Blackfin: update ftrace_push_return_trace() breakage 2009-09-16 22:10:47 -04:00
gptimers.c
init_task.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
ipipe.c Blackfin: inline I-pipe bypass code in ret_from_exception 2009-09-16 21:28:42 -04:00
irqchip.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
kgdb_test.c Blackfin: use KERN_ALERT in all kgdb_test output 2009-09-16 22:10:40 -04:00
kgdb.c Blackfin: unify memory region checks between kgdb and traps 2009-06-22 21:15:34 -04:00
Makefile Blackfin: add an early shadow console 2009-09-16 21:31:43 -04:00
module.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
process.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
ptrace.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
reboot.c
setup.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
shadow_console.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
signal.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
stacktrace.c Blackfin: add preliminary support for STACKTRACE 2009-06-13 07:20:14 -04:00
sys_bfin.c Blackfin: fix framebuffer mmap bug for nommu 2009-10-08 00:58:15 -04:00
time-ts.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
time.c Blackfin: convert to use arch_gettimeoffset() 2009-10-07 04:36:20 -04:00
traps.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
vmlinux.lds.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00