On 16/12/13 04:39, Siarhei Siamashka wrote:
This option was only providing a 64MB boot time memory
reservation for Mali GPU. That's a mostly useless waste
of memory on the devices with only 512MB of RAM (such
as A10-OLinuXino-LIME).

Moreover, the "sunxi_no_mali_mem_reserve" kernel cmdline
option (implemented as part of this code) was unsafe and
allowed the unsuspecting users to cause memory corruption
and take down the system by just modprobing the mali kernel
module.

Because the Mali400 GPU has MMU, it does not strictly need
boot time memory reservation and can work just fine with
just dynamic memory allocation. There have been no evidences
presented in favour of keeping this boot time memory
reservation. Also the Mali400 MP2 GPU on sun7i hardware
does not currently use this boot time memory reservation
at all.

Signed-off-by: Siarhei Siamashka <[email protected]>
---
  arch/arm/plat-sunxi/Kconfig                        |  5 --
  arch/arm/plat-sunxi/core.c                         | 73 ----------------------
  arch/arm/plat-sunxi/include/plat/core.h            |  8 ---
  .../mali/mali/arch-ca8-virtex820-m400-1/config.h   |  8 ---
  4 files changed, 94 deletions(-)

thank you, applied on the new stage/sunxi-3.4 (3.4.75 based)

cheers,
Alejandro Mery


--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to