summaryrefslogtreecommitdiff
path: root/qcom/bengal-gpu.dtsi
diff options
context:
space:
mode:
authorDeepak Kumar <dkumar@qti.qualcomm.com>2019-12-11 10:48:14 +0530
committerDeepak Kumar <dkumar@qti.qualcomm.com>2019-12-14 02:15:02 +0530
commit6681cbb8cff5791e0c947b9d8205ebd64aac25a8 (patch)
treebe93bfb09bf893fb7555c8a337e7b0599c99009c /qcom/bengal-gpu.dtsi
parentf398c7bcb7c2de49ff66faf2b6b0f5722b5aa4a0 (diff)
downloaddevicetree-6681cbb8cff5791e0c947b9d8205ebd64aac25a8.tar.gz
ARM: dts: msm: Add GPU mempool configuration for Bengal 32bit
Add GPU mempool configuration for 32bit Bengal. This configuration doesn't reserve any memory upfront and adds a limit on higher order pages that can be pooled. This is needed to optimize memory footprint for 32bit devices. Change-Id: I8f15251433d564dc7bea63cf344d7b3e81139cbe
Diffstat (limited to 'qcom/bengal-gpu.dtsi')
-rw-r--r--qcom/bengal-gpu.dtsi34
1 files changed, 34 insertions, 0 deletions
diff --git a/qcom/bengal-gpu.dtsi b/qcom/bengal-gpu.dtsi
index 000c3b69..146e7fe0 100644
--- a/qcom/bengal-gpu.dtsi
+++ b/qcom/bengal-gpu.dtsi
@@ -221,6 +221,40 @@
};
};
+ /* GPU Mempool configuration for low memory SKUs */
+ qcom,gpu-mempools-lowmem {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "qcom,gpu-mempools-lowmem";
+
+ /* 4K Page Pool configuration */
+ qcom,gpu-mempool@0 {
+ reg = <0>;
+ qcom,mempool-page-size = <4096>;
+ qcom,mempool-allocate;
+ };
+ /* 8K Page Pool configuration */
+ qcom,gpu-mempool@1 {
+ reg = <1>;
+ qcom,mempool-page-size = <8192>;
+ qcom,mempool-allocate;
+ };
+ /* 64K Page Pool configuration */
+ qcom,gpu-mempool@2 {
+ reg = <2>;
+ qcom,mempool-page-size = <65536>;
+ qcom,mempool-allocate;
+ qcom,mempool-max-pages = <256>;
+ };
+ /* 1M Page Pool configuration */
+ qcom,gpu-mempool@3 {
+ reg = <3>;
+ qcom,mempool-page-size = <1048576>;
+ qcom,mempool-allocate;
+ qcom,mempool-max-pages = <32>;
+ };
+ };
+
/*
* Speed-bin zero is default speed bin.
* For rest of the speed bins, speed-bin value