[0/5] OMAPFB: use dma_alloc instead of omap's vram
diff mbox

Message ID 50A1004E.8000203@ti.com
State New, archived
Headers show

Commit Message

Tomi Valkeinen Nov. 12, 2012, 1:57 p.m. UTC
On 2012-11-12 15:39, Grazvydas Ignotas wrote:
> Hi,
> On Mon, Nov 12, 2012 at 12:25 PM, Tomi Valkeinen <tomi.valkeinen@ti.com> wrote:
>> This series changes omapfb to use standard dma_alloc funcs instead of omap
>> specific vram allocator. This let's us remove the omap vram allocator, making
>> omapfb platform independent.
>> However, note that using standard dma funcs causes the following downsides:
>> ...
>> 3) OMAPFB_GET_VRAM_INFO ioctl cannot return real values anymore. I
>> changed the ioctl to return 64M for all the values, which, I hope, the
>> applications will interpret as "there's enough vram".
> Do at least OMAPFB_QUERY_MEM/OMAPFB_SETUP_MEM still work?
>> 4) "vram" kernel parameter to define how much ram to reserve for video use no
>> longer works. The user needs to enable CMA and use "cma" parameter.
> That's a significant change, you should update Documentation/ .

I've added the following documentation change:

diff mbox

diff --git a/Documentation/arm/OMAP/DSS b/Documentation/arm/OMAP/DSS
index a564cee..4484e02 100644
--- a/Documentation/arm/OMAP/DSS
+++ b/Documentation/arm/OMAP/DSS
@@ -285,7 +285,10 @@  FB0 +-- GFX  ---- LCD ---- LCD
 Misc notes
-OMAP FB allocates the framebuffer memory using the OMAP VRAM allocator.
+OMAP FB allocates the framebuffer memory using the standard dma allocator. You
+can enable Contiguous Memory Allocator (CONFIG_CMA) to improve the dma
+allocator, and if CMA is enabled, you use "cma=" kernel parameter to increase
+the global memory area for CMA.
 Using DSI DPLL to generate pixel clock it is possible produce the pixel clock
 of 86.5MHz (max possible), and with that you get 1280x1024@57 output from DVI.
@@ -301,11 +304,6 @@  framebuffer parameters.
 Kernel boot arguments
-       - Amount of total VRAM to preallocate and optionally a physical start
-         memory address. For example, "10M". omapfb allocates memory for
-         framebuffers from VRAM.