Mali: merge r3p0's memory engine to r2p4