question about reserved memory in DTS file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I have a question about reserved memory in DTS file.

I want to modify the reserved memory in DTS file on M3 to simulate a low end, such as D3 or E3.
Because on low end, there is no enough memory, I may delete some applications, so I do not need a large "cma" or "multimedia" area.
And I can set "cma" to a small size.

The default "cma" size is 0x18000000 (384MB). 
After I setting the "cma" size to a small value(128MB), and compile, replace it, 
I can start the AGL7.0.0's homescreen, 
but when I start the Apps, HVAC-> MediaPlayer -> Phone,
the Phone App can't start, and one message is outputted.
" rcar-du feb00000.display: failed to allocate buffer with size 6475776"

So my question is how can I decide the "cma" size for my applications?
If I delete the Navigation, Radio and MediaPlayer, 
How can I decide the size of " linux,cma " and " mmp_reserved: linux,multimedia " section in dts file?

M3 default setting about of reserved-memory on AGL7.0.0 is as bellow:
----------------------------------------------------------------------------------
        reserved-memory {
                #address-cells = <2>;
                #size-cells = <2>;
                ranges;

                /* device specific region for Lossy Decompression */
                lossy_decompress: linux,lossy_decompress {
                        no-map;
                        reg = <0x00000000 0x54000000 0x0 0x03000000>;
                };

                /* For Audio DSP */
                adsp_reserved: linux,adsp {
                        compatible = "shared-dma-pool";
                        reusable;
                        reg = <0x00000000 0x57000000 0x0 0x01000000>;
                };

                /* global autoconfigured region for contiguous allocations */
                linux,cma {
                        compatible = "shared-dma-pool";
                        reusable;
                        reg = <0x00000000 0x58000000 0x0 0x18000000>;
                        linux,cma-default;
                };

                /* device specific region for contiguous allocations */
                mmp_reserved: linux,multimedia {
                        compatible = "shared-dma-pool";
                        reusable;
                        reg = <0x00000000 0x70000000 0x0 0x10000000>;
                };
        };
----------------------------------------------------------------------------------

Best regards, Zhou Mingying
-----------------------------------------------------------------------------
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No.6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8498
COINS: 79988498
FAX: +86+25-83317685
Mail: zhoumy@xxxxxxxxxxxxxx
-----------------------------------------------------------------------------




_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux