platform/rd1ae: Enable pointer access protocal

Enabled the pointer access protocal on rd1ae platform by reducing the
threshold value `COMMS_MHU_MSG_SIZE`. The RSE messages with payload data
size larger than the value will be serialized with the pointer access
protocol.

Configured the carveout region for the pointer access protocal.

Added the rd1ae-opteesp deployment to the b-test list.

Signed-off-by: Michael Zhao <michael.zhao2@arm.com>
Change-Id: Ia44c10ccfb8e45483254a71f32382bfbf2eca5eb
diff --git a/deployments/se-proxy/config/rd1ae-opteesp/CMakeLists.txt b/deployments/se-proxy/config/rd1ae-opteesp/CMakeLists.txt
index ba1ff90..9417446 100644
--- a/deployments/se-proxy/config/rd1ae-opteesp/CMakeLists.txt
+++ b/deployments/se-proxy/config/rd1ae-opteesp/CMakeLists.txt
@@ -26,6 +26,10 @@
 set(SP_BOOT_ORDER "1" CACHE STRING "Boot order of the SP")
 set(TRACE_PREFIX "SEPROXY" CACHE STRING "Trace prefix")
 
+# Setting the RSE communication carveout region parameters
+set(RSE_COMM_CARVEOUT_BASE "0x00000000 0xFFFFC000" CACHE STRING "RSE communication carveout physical address")
+set(RSE_COMM_CARVEOUT_PAGE_COUNT "4" CACHE STRING "Size of the RSE communication carveout region in 4k pages")
+
 target_include_directories(se-proxy PRIVATE
 	${CMAKE_CURRENT_LIST_DIR}
 )
diff --git a/deployments/se-proxy/config/rd1ae-opteesp/default_se-proxy.dts.in b/deployments/se-proxy/config/rd1ae-opteesp/default_se-proxy.dts.in
index b0ddff0..c71eee1 100644
--- a/deployments/se-proxy/config/rd1ae-opteesp/default_se-proxy.dts.in
+++ b/deployments/se-proxy/config/rd1ae-opteesp/default_se-proxy.dts.in
@@ -34,5 +34,11 @@
 			pages-count = <16>;
 			attributes = <0x3>; /* read-write */
 		};
+		rse-carveout {
+			base-address = <@RSE_COMM_CARVEOUT_BASE@>;
+			physical-address = <@RSE_COMM_CARVEOUT_BASE@>;
+			pages-count = <@RSE_COMM_CARVEOUT_PAGE_COUNT@>;
+			attributes = <0x3>;  /* read-write */
+		};
 	};
 };
diff --git a/platform/providers/arm/automotive-rd/rd1ae/platform.cmake b/platform/providers/arm/automotive-rd/rd1ae/platform.cmake
index cca07cb..c9d30b7 100644
--- a/platform/providers/arm/automotive-rd/rd1ae/platform.cmake
+++ b/platform/providers/arm/automotive-rd/rd1ae/platform.cmake
@@ -10,7 +10,7 @@
 set(SMM_RPC_CALLER_SESSION_SHARED_MEMORY_SIZE 4*4096 CACHE STRING "RPC caller buffer size in SMMGW")
 set(SMM_SP_HEAP_SIZE 80*1024 CACHE STRING "SMM gateway SP heap size")
 set(PLAT_RSE_COMMS_PAYLOAD_MAX_SIZE 0x2080 CACHE STRING "Size of the RSE_COMMS_PAYLOAD buffer")
-set(COMMS_MHU_MSG_SIZE 0xFFFC CACHE STRING "Max message size that can be transfered via MHU")
+set(COMMS_MHU_MSG_SIZE 0xC CACHE STRING "Max message size that can be transfered via MHU")
 
 target_compile_definitions(${TGT} PRIVATE
 	SMM_VARIABLE_INDEX_STORAGE_UID=0x787
diff --git a/tools/b-test/test_data.yaml b/tools/b-test/test_data.yaml
index 2e95495..c70961e 100644
--- a/tools/b-test/test_data.yaml
+++ b/tools/b-test/test_data.yaml
@@ -201,6 +201,10 @@
       src: "$TS_ROOT/deployments/se-proxy/config/default-sp"
       params:
             - "-GUnix Makefiles"
+    - name: "se-proxy-rd1ae-opteesp"
+      src: "$TS_ROOT/deployments/se-proxy/config/rd1ae-opteesp"
+      params:
+            - "-GUnix Makefiles"
     - name: "smm-gateway-default-opteesp"
       src: "$TS_ROOT/deployments/smm-gateway/config/default-opteesp"
       params: