Browse Source

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 years ago
parent
commit
eee50245b9
1 changed files with 6 additions and 4 deletions
  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";
 };