gpu: add s7d gpu secure [1/4]

PD#SWPL-163131

Problem:
s7d g310 secure verification

Solution:
add dmaheap-secure

Verify:
s7d

Change-Id: I0b487c9e42433b94d8a8c95b9104b366be5fbe2b
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
This commit is contained in:
Yongjie Zhu
2024-04-09 01:44:30 +00:00
committed by Luan Yuan
parent 53e4dd9feb
commit b4aff3771e
2 changed files with 15 additions and 7 deletions
+7 -6
View File
@@ -1525,6 +1525,11 @@
&ion_fb_reserved>;
};
gpu_protected_memory_allocator: protected-memory-allocator {
compatible = "arm,protected-memory-allocator";
memory-region = <&mali_protected>;
};
meson_uvm {
compatible = "amlogic, meson_uvm";
status = "okay";
@@ -2537,11 +2542,6 @@
};
};
gpu_protected_memory_allocator: protected-memory-allocator {
compatible = "arm,protected-memory-allocator";
memory-region = <&mali_protected>;
};
eth_pins: eth {
mux {
groups = "eth_mdio",
@@ -2585,7 +2585,8 @@
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "GPU", "MMU", "JOB";
protected-memory-allocator = <&gpu_protected_memory_allocator>;
/* Protected memory allocator default not available*/
//protected-memory-allocator = <&gpu_protected_memory_allocator>;
num_of_pp = <1>;
system-coherency = <31>;
@@ -106,7 +106,14 @@
size = <0x0 0x3800000>;
alignment = <0x0 0x400000>;
};
mali_protected: mali_protected@c0000000 {
dmaheap_secure_reserved:heap-secure {
compatible = "amlogic, heap-secure-mem";
no-map;
/* advice heap-secure size 208M */
size = <0x0 0x0>;
alignment = <0x0 0x400000>;
};
mali_protected:mali_protected@c0000000 {
compatible = "mali-reserved";
no-map;
/* 16M with high version than valhall-r41p0,