mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
msm: Enable MM heap to use CMA
Enable the MM heap on 8960, 8930, and 8064 to use CMA instead of carved out memory. All allocations will come from memory reserved as CMA instead of carved out memory. Change-Id: I6190144564ce263fdad9ec74a85cfefca6089a0d Signed-off-by: Laura Abbott <lauraa@codeaurora.org> Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
This commit is contained in:
parent
50486cbd19
commit
2df1e5cd2c
3 changed files with 3 additions and 0 deletions
|
@ -284,6 +284,7 @@ static struct ion_cp_heap_pdata cp_mm_apq8064_ion_pdata = {
|
|||
.reusable = FMEM_ENABLED,
|
||||
.mem_is_fmem = FMEM_ENABLED,
|
||||
.fixed_position = FIXED_MIDDLE,
|
||||
.is_cma = 1,
|
||||
};
|
||||
|
||||
static struct ion_cp_heap_pdata cp_mfc_apq8064_ion_pdata = {
|
||||
|
|
|
@ -343,6 +343,7 @@ static struct ion_cp_heap_pdata cp_mm_msm8930_ion_pdata = {
|
|||
.reusable = FMEM_ENABLED,
|
||||
.mem_is_fmem = FMEM_ENABLED,
|
||||
.fixed_position = FIXED_MIDDLE,
|
||||
.is_cma = 1,
|
||||
};
|
||||
|
||||
static struct ion_cp_heap_pdata cp_mfc_msm8930_ion_pdata = {
|
||||
|
|
|
@ -364,6 +364,7 @@ static struct ion_cp_heap_pdata cp_mm_msm8960_ion_pdata = {
|
|||
.fixed_position = FIXED_MIDDLE,
|
||||
.iommu_map_all = 1,
|
||||
.iommu_2x_map_domain = VIDEO_DOMAIN,
|
||||
.is_cma = 1,
|
||||
};
|
||||
|
||||
static struct ion_cp_heap_pdata cp_mfc_msm8960_ion_pdata = {
|
||||
|
|
Loading…
Reference in a new issue