浏览代码

gpu: Add carveouts for virtual GPU driver

The GPU can be used by multiple virtual machines in a hypervisor
environment. Part of the setup requires that the GPU has contiguous
memory allocated for the host and guest firmwares, where each region is
the same size.

Add the necessary carveouts to have the GPU firmware memory regions
reserved only if using the jailhouse setup.

Requires GPU to be enabled on the host/root-cell, so re-enable it in
the jailhouse overlay.

Acked-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Erick Narvaez <e-narvaez@ti.com>
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
Erick Narvaez 6 年之前
父节点
当前提交
eee50245b9
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      arch/arm64/boot/dts/ti/k3-j721e-common-proc-board-jailhouse.dtso

+ 6 - 4
arch/arm64/boot/dts/ti/k3-j721e-common-proc-board-jailhouse.dtso

@@ -20,6 +20,12 @@
 	#address-cells = <2>;
 	#size-cells = <2>;
 
+	/* Reserved for GPU firmware */
+	gpu_fw_mem: gpu-fw-mem@c0000000 {
+		reg = <0x0 0xc0000000 0x0 0x2000000>;
+		no-map;
+	};
+
 	/* Reserved for Jailhouse, IVSHMEM, baremetal apps */
 	hyp_mem: jailhouse@0x89fa00000 {
 		reg = <0x8 0x9fa00000 0x0 0x600000>;
@@ -39,10 +45,6 @@
 	status = "disabled";
 };
 
-&gpu {
-	status = "disabled";
-};
-
 &d5520 {
 	status = "disabled";
 };