mali: pre-allocated max memory size writable

Signed-off-by: cocafe <cocafehj@gmail.com>
Mali updates by cocafe