This patch fixes a couple of bugs that otherwise impair CMA functionality onAny reason you have clubbed two fixes in one patch. Its better to keep
PAE machines:
- alignment must be a 64-bit type when running on systems with 64-bit
physical addresses. If this is not the case, the limit calculation thunks
allocations down to an address range < 4G.
- The allocated range check is removed. On 32bit ARM kernel with LPAE
enabled the base may be allocated outside the fist 4GB of physical
memory (keystone SoC for example).
Signed-off-by: Vitaly Andrianov <vitalya@xxxxxx>Other than that, patch looks good to my eyes.
Signed-off-by: Cyril Chemparathy <cyril@xxxxxx>
---