DTS: CF1 adjust the size of codec_mm cma for android u s6. [1/1]

PD#SWPL-173096

Problem:
If scatter memory only alloc from system, the worst case is CTS P010.
Codec_mm need 444M.

Solution:
Adjust codec_mm size to 444MB.

Verify:
s6

Change-Id: I36128acd9713e91de2ed823a0de40da8694b0023
Signed-off-by: yu.xie <yu.xie@amlogic.com>
This commit is contained in:
yu.xie
2024-07-08 07:34:19 +00:00
committed by Luan Yuan
parent 1e803af776
commit 76cf6abf37
6 changed files with 84 additions and 6 deletions
@@ -187,7 +187,14 @@
codec_mm_cma:linux,codec_mm_cma {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x13400000>;
/*
* Scenario: CTS P010 case
* Total size: 548M
* Note:
* setting to 496M if scatter_alloc_mode is 0.
* setting to 444M if scatter_alloc_mode is 1.
*/
size = <0x0 0x1bc00000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x0 0x0 0xe0000000>;
linux,contiguous-region;
@@ -268,6 +275,12 @@
memory-region = <&codec_mm_cma &codec_mm_reserved &secure_vdec_reserved>;
dev_name = "codec_mm";
status = "okay";
/*
* scatter_alloc_mode: the mode of scatter memory allocation
* 0: default mode, alloc from system and cma
* 1: only alloc from system
*/
scatter_alloc_mode = <1>;
};
encmem_rev {
compatible = "encmem_rev";
@@ -187,7 +187,14 @@
codec_mm_cma:linux,codec_mm_cma {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x13400000>;
/*
* Scenario: CTS P010 case
* Total size: 548M
* Note:
* setting to 496M if scatter_alloc_mode is 0.
* setting to 444M if scatter_alloc_mode is 1.
*/
size = <0x0 0x1bc00000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x0 0x0 0xe0000000>;
linux,contiguous-region;
@@ -268,6 +275,12 @@
memory-region = <&codec_mm_cma &codec_mm_reserved &secure_vdec_reserved>;
dev_name = "codec_mm";
status = "okay";
/*
* scatter_alloc_mode: the mode of scatter memory allocation
* 0: default mode, alloc from system and cma
* 1: only alloc from system
*/
scatter_alloc_mode = <1>;
};
encmem_rev {
compatible = "encmem_rev";
@@ -187,7 +187,14 @@
codec_mm_cma:linux,codec_mm_cma {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x13400000>;
/*
* Scenario: CTS P010 case
* Total size: 548M
* Note:
* setting to 496M if scatter_alloc_mode is 0.
* setting to 444M if scatter_alloc_mode is 1.
*/
size = <0x0 0x1bc00000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x0 0x0 0xe0000000>;
linux,contiguous-region;
@@ -268,6 +275,12 @@
memory-region = <&codec_mm_cma &codec_mm_reserved &secure_vdec_reserved>;
dev_name = "codec_mm";
status = "okay";
/*
* scatter_alloc_mode: the mode of scatter memory allocation
* 0: default mode, alloc from system and cma
* 1: only alloc from system
*/
scatter_alloc_mode = <1>;
};
encmem_rev {
compatible = "encmem_rev";
@@ -187,7 +187,14 @@
codec_mm_cma:linux,codec_mm_cma {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x13400000>;
/*
* Scenario: CTS P010 case
* Total size: 548M
* Note:
* setting to 496M if scatter_alloc_mode is 0.
* setting to 444M if scatter_alloc_mode is 1.
*/
size = <0x0 0x1bc00000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x0 0x0 0xe0000000>;
linux,contiguous-region;
@@ -268,6 +275,12 @@
memory-region = <&codec_mm_cma &codec_mm_reserved &secure_vdec_reserved>;
dev_name = "codec_mm";
status = "okay";
/*
* scatter_alloc_mode: the mode of scatter memory allocation
* 0: default mode, alloc from system and cma
* 1: only alloc from system
*/
scatter_alloc_mode = <1>;
};
encmem_rev {
compatible = "encmem_rev";
@@ -187,7 +187,14 @@
codec_mm_cma:linux,codec_mm_cma {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x13400000>;
/*
* Scenario: CTS P010 case
* Total size: 548M
* Note:
* setting to 496M if scatter_alloc_mode is 0.
* setting to 444M if scatter_alloc_mode is 1.
*/
size = <0x0 0x1bc00000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x0 0x0 0xe0000000>;
linux,contiguous-region;
@@ -268,6 +275,12 @@
memory-region = <&codec_mm_cma &codec_mm_reserved &secure_vdec_reserved>;
dev_name = "codec_mm";
status = "okay";
/*
* scatter_alloc_mode: the mode of scatter memory allocation
* 0: default mode, alloc from system and cma
* 1: only alloc from system
*/
scatter_alloc_mode = <1>;
};
encmem_rev {
compatible = "encmem_rev";
@@ -187,7 +187,14 @@
codec_mm_cma:linux,codec_mm_cma {
compatible = "shared-dma-pool";
reusable;
size = <0x0 0x13400000>;
/*
* Scenario: CTS P010 case
* Total size: 548M
* Note:
* setting to 496M if scatter_alloc_mode is 0.
* setting to 444M if scatter_alloc_mode is 1.
*/
size = <0x0 0x1bc00000>;
alignment = <0x0 0x400000>;
alloc-ranges = <0x0 0x0 0x0 0xe0000000>;
linux,contiguous-region;
@@ -268,6 +275,12 @@
memory-region = <&codec_mm_cma &codec_mm_reserved &secure_vdec_reserved>;
dev_name = "codec_mm";
status = "okay";
/*
* scatter_alloc_mode: the mode of scatter memory allocation
* 0: default mode, alloc from system and cma
* 1: only alloc from system
*/
scatter_alloc_mode = <1>;
};
encmem_rev {
compatible = "encmem_rev";