Re: [Linux-fbdev-devel] How to mmap a shadow framebuffer in virtual memory

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bernardo Innocenti <bernie@...>
Cc: Geert Uytterhoeven <Geert.Uytterhoeven@...>, Linux Frame Buffer Device Development <linux-fbdev-devel@...>, lkml <linux-kernel@...>, aleph <aleph@...>
Date: Tuesday, February 6, 2007 - 10:57 am

Bernardo Innocenti wrote:


A few weeks ago I found the solution, which I report here to help
people who are googling for the same problem.

consistent_alloc() performed all the required magic to allocate
a contiguous buffer in phisical memory:

 -       if (!(fb_info.shadow = (void *)__get_free_pages(GFP_KERNEL, OLED_MEMORDER))
 +       if (!(fb_info.shadow = consistent_alloc(GFP_KERNEL, PAGE_ALIGN(OLED_MEMSIZE),
 +                       &fb_info.shadow_phys, PTE_BUFFERABLE))


The complete patch set is here, just in case:

   http://www.develer.com/patches/linux/pending/

-- 
   // Bernardo Innocenti - Develer S.r.l., R&D dept.
 \X/  http://www.develer.com/

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to mmap a shadow framebuffer in virtual memory, Bernardo Innocenti, (Sat Jan 13, 8:24 pm)
Re: [Linux-fbdev-devel] How to mmap a shadow framebuffer in ..., Geert Uytterhoeven, (Sun Jan 14, 7:13 am)
Re: [Linux-fbdev-devel] How to mmap a shadow framebuffer in ..., Bernardo Innocenti, (Mon Jan 15, 2:04 am)
Re: [Linux-fbdev-devel] How to mmap a shadow framebuffer in ..., Bernardo Innocenti, (Tue Feb 6, 10:57 am)