Skip to contentSkip to conversation

ARM: tegra: enable Nouveau for Jetson TK1 and Venice 2

PATCH Applied Alexandre Courbot 2 participants 6 messages Jul 1, 2015 – Jul 17, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover ARM: tegra: enable Nouveau for Jetson TK1 and Venice 2

With all essential kernel driver and user-space patches merged, GK20A can now be enabled safely on Tegra124 devices. This series makes small device tree and configuration adjustments to allow this.

It leaves the GK20A nodes ready to be used, but still disabled. Enabling the nodes is the work of the bootloader, after it has configured VPR properly.

U-boot patches that do this are in the work. In the meantime, it is safe to merge this kernel support.

Alexandre Courbot (3):
ARM: tegra: Add IOMMU node to GK20A
ARM: tegra: jetson-tk1: Add GK20A GPU DT node
ARM: tegra: Enable Nouveau in defconfig

Thierry Reding (1):
ARM: tegra: venice2: Add GK20A GPU DT node

 arch/arm/boot/dts/tegra124-jetson-tk1.dts | 10 +++++++++-
 arch/arm/boot/dts/tegra124-venice2.dts    | 10 +++++++++-
 arch/arm/boot/dts/tegra124.dtsi           |  3 +++
 arch/arm/configs/tegra_defconfig          |  3 +++
 4 files changed, 24 insertions(+), 2 deletions(-)
Signature · 1 line
2.4.4
#1 lore raw

PATCH 1/4 ARM: tegra: Add IOMMU node to GK20A

Nouveau can make use of the IOMMU to make physical appear linear in the GPU address space.

---
 arch/arm/boot/dts/tegra124.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/tegra124.dtsi +3 -0
index 13cc7ca5e031..bffe90236bf8 100644
@@ -188,6 +188,9 @@
 		clock-names = "gpu", "pwr";
 		resets = <&tegra_car 184>;
 		reset-names = "gpu";
+
+		iommus = <&mc TEGRA_SWGROUP_GPU>;
+
 		status = "disabled";
 	};
 
Signature · 1 line
2.4.4
#2 lore raw

PATCH 2/4 ARM: tegra: venice2: Add GK20A GPU DT node

In reply to Alexandre Courbot

From: Thierry Reding <[email protected]>

Add the device-tree node for the GK20A GPU and leave it disabled. It is the responsability of the bootloader to enable it if the VPR registers have been programmed such as the GPU can operate.

---
 arch/arm/boot/dts/tegra124-venice2.dts | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
arch/arm/boot/dts/tegra124-venice2.dts +9 -1
index 5c3f7813360d..497a50ebfe44 100644
@@ -43,6 +43,14 @@
 		};
 	};
 
+	gpu at 0,57000000 {
+		/*
+		 * Node left disabled on purpose - the bootloader will enable
+		 * it after having set the VPR up
+		 */
+		vdd-supply = <&vdd_gpu>;
+	};
+
 	pinmux: pinmux at 0,70000868 {
 		pinctrl-names = "boot";
 		pinctrl-0 = <&pinmux_boot>;
@@ -735,7 +743,7 @@
 					regulator-always-on;
 				};
 
-				sd6 {
+				vdd_gpu: sd6 {
 					regulator-name = "+VDD_GPU_AP";
 					regulator-min-microvolt = <650000>;
 					regulator-max-microvolt = <1200000>;
Signature · 1 line
2.4.4
#3 lore raw

PATCH 3/4 ARM: tegra: jetson-tk1: Add GK20A GPU DT node

In reply to Alexandre Courbot

Add the device-tree node for the GK20A GPU and leave it disabled. It is the responsability of the bootloader to enable it if the VPR registers have been programmed such as the GPU can operate.

---
 arch/arm/boot/dts/tegra124-jetson-tk1.dts | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
arch/arm/boot/dts/tegra124-jetson-tk1.dts +9 -1
index ed8a8acd3d34..f0459ea94981 100644
@@ -53,6 +53,14 @@
 		};
 	};
 
+	gpu at 0,57000000 {
+		/*
+		 * Node left disabled on purpose - the bootloader will enable
+		 * it after having set the VPR up
+		 */
+		vdd-supply = <&vdd_gpu>;
+	};
+
 	pinmux: pinmux at 0,70000868 {
 		pinctrl-names = "boot";
 		pinctrl-0 = <&state_boot>;
@@ -1514,7 +1522,7 @@
 					regulator-always-on;
 				};
 
-				sd6 {
+				vdd_gpu: sd6 {
 					regulator-name = "+VDD_GPU_AP";
 					regulator-min-microvolt = <650000>;
 					regulator-max-microvolt = <1200000>;
Signature · 1 line
2.4.4
#4 lore raw

PATCH 4/4 ARM: tegra: Enable Nouveau in defconfig

In reply to Alexandre Courbot

Since Nouveau support is complete, enable it in the Tegra configuration so supported boards can take advantage of it.

---
 arch/arm/configs/tegra_defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/configs/tegra_defconfig +3 -0
index d199eb249151..a5ef73116fdd 100644
@@ -292,3 +292,6 @@ CONFIG_EARLY_PRINTK=y
 CONFIG_CRYPTO_TWOFISH=y
 # CONFIG_CRYPTO_ANSI_CPRNG is not set
 CONFIG_CRC_CCITT=y
+CONFIG_DRM_NOUVEAU=m
+CONFIG_NOUVEAU_DEBUG=5
+CONFIG_NOUVEAU_DEBUG_DEFAULT=3
Signature · 1 line
2.4.4
#5 lore raw
In reply to Alexandre Courbot
Quoted 15 lines · Alexandre Courbot

With all essential kernel driver and user-space patches merged, GK20A can now be enabled safely on Tegra124 devices. This series makes small device tree and configuration adjustments to allow this.

It leaves the GK20A nodes ready to be used, but still disabled. Enabling the nodes is the work of the bootloader, after it has configured VPR properly.

U-boot patches that do this are in the work. In the meantime, it is safe to merge this kernel support.

Alexandre Courbot (3):
ARM: tegra: Add IOMMU node to GK20A
ARM: tegra: jetson-tk1: Add GK20A GPU DT node
ARM: tegra: Enable Nouveau in defconfig

Quoted 8 lines

Thierry Reding (1):
ARM: tegra: venice2: Add GK20A GPU DT node

 arch/arm/boot/dts/tegra124-jetson-tk1.dts | 10 +++++++++-
 arch/arm/boot/dts/tegra124-venice2.dts    | 10 +++++++++-
 arch/arm/boot/dts/tegra124.dtsi           |  3 +++
 arch/arm/configs/tegra_defconfig          |  3 +++
 4 files changed, 24 insertions(+), 2 deletions(-)

Applied, thanks.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150717/7c27f992/attachment-0001.sig>