[linux] 01/01: Backport patch from linux-next (next-20180103) to support SMP on tegra210 systems.

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Thu Jan 4 18:50:56 UTC 2018


This is an automated email from the git hooks/post-receive script.

vagrant pushed a commit to branch sid
in repository linux.

commit f65d850bba4b84c46537b0a77aeb437d4482a71e
Author: Vagrant Cascadian <vagrant at debian.org>
Date:   Thu Jan 4 10:49:51 2018 -0800

    Backport patch from linux-next (next-20180103) to support SMP on
    tegra210 systems.
---
 debian/changelog                                   |  5 ++
 ...-Add-CPU-and-PSCI-nodes-for-NVIDIA-Tegra2.patch | 91 ++++++++++++++++++++++
 debian/patches/series                              |  3 +
 3 files changed, 99 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4b4b42e..6ef9cd9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,13 @@
 linux (4.14.7-2) UNRELEASED; urgency=medium
 
+  [ Ben Hutchings ]
   * e1000e: Fix e1000_check_for_copper_link_ich8lan return value.
     (Closes: #885348)
 
+  [ Vagrant Cascadian ]
+  * [arm64] Backport patch from linux-next to support SMP on tegra210
+    systems.
+
  -- Ben Hutchings <ben at decadent.org.uk>  Thu, 28 Dec 2017 01:18:05 +0000
 
 linux (4.14.7-1) unstable; urgency=medium
diff --git a/debian/patches/features/arm64/tegra210-smp/0001-arm64-tegra-Add-CPU-and-PSCI-nodes-for-NVIDIA-Tegra2.patch b/debian/patches/features/arm64/tegra210-smp/0001-arm64-tegra-Add-CPU-and-PSCI-nodes-for-NVIDIA-Tegra2.patch
new file mode 100644
index 0000000..12d70ba
--- /dev/null
+++ b/debian/patches/features/arm64/tegra210-smp/0001-arm64-tegra-Add-CPU-and-PSCI-nodes-for-NVIDIA-Tegra2.patch
@@ -0,0 +1,91 @@
+From d67849c340aa803f25a1b3720ba399fecd4f88ab Mon Sep 17 00:00:00 2001
+From: Jon Hunter <jonathanh at nvidia.com>
+Date: Tue, 28 Mar 2017 12:48:38 +0100
+Subject: [PATCH] arm64: tegra: Add CPU and PSCI nodes for NVIDIA Tegra210
+ platforms
+
+Add the CPU and PSCI nodes for the NVIDIA Tegra210 platforms so that
+all CPUs can be enabled on boot. This assumes that the PSCI firmware
+has been loaded during the initial bootstrap on the device before the
+kernel starts (which is typically the case for these platforms). The
+PSCI firmware version is set to v0.2 which aligns with the current
+shipping version for Tegra.
+
+Reported-by: Martin Michlmayr <tbm at cyrius.com>
+Signed-off-by: Jon Hunter <jonathanh at nvidia.com>
+Tested-By: Vagrant Cascadian <vagrant at debian.org>
+Signed-off-by: Thierry Reding <treding at nvidia.com>
+---
+ arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 23 +++++++++++++++++++++++
+ arch/arm64/boot/dts/nvidia/tegra210-p2530.dtsi | 23 +++++++++++++++++++++++
+ 2 files changed, 46 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
+index d10d4430537a..212e6634c9ba 100644
+--- a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
++++ b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
+@@ -297,6 +297,29 @@
+ 		};
+ 	};
+ 
++	cpus {
++		cpu at 0 {
++			enable-method = "psci";
++		};
++
++		cpu at 1 {
++			enable-method = "psci";
++		};
++
++		cpu at 2 {
++			enable-method = "psci";
++		};
++
++		cpu at 3 {
++			enable-method = "psci";
++		};
++	};
++
++	psci {
++		compatible = "arm,psci-0.2";
++		method = "smc";
++	};
++
+ 	regulators {
+ 		vdd_gpu: regulator at 100 {
+ 			compatible = "pwm-regulator";
+diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2530.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2530.dtsi
+index be6066ff97c9..d0dc03923723 100644
+--- a/arch/arm64/boot/dts/nvidia/tegra210-p2530.dtsi
++++ b/arch/arm64/boot/dts/nvidia/tegra210-p2530.dtsi
+@@ -52,4 +52,27 @@
+ 			clock-frequency = <32768>;
+ 		};
+ 	};
++
++	cpus {
++		cpu at 0 {
++			enable-method = "psci";
++		};
++
++		cpu at 1 {
++			enable-method = "psci";
++		};
++
++		cpu at 2 {
++			enable-method = "psci";
++		};
++
++		cpu at 3 {
++			enable-method = "psci";
++		};
++	};
++
++	psci {
++		compatible = "arm,psci-0.2";
++		method = "smc";
++	};
+ };
+-- 
+2.11.0
+
diff --git a/debian/patches/series b/debian/patches/series
index 3927f4e..bc52f5a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -167,4 +167,7 @@ features/arm/dwmac-sun8i/0006-ARM-dts-sunxi-Restore-EMAC-changes-boards.patch
 features/arm/dwmac-sun8i/0007-arm-dts-sunxi-h3-h5-Restore-EMAC-changes.patch
 features/arm/dwmac-sun8i/0008-ARM-dts-sunxi-h3-h5-represent-the-mdio-switch-used-b.patch
 
+# Backport patches from linux-next (next-20180103) to support SMP on tegra210 systems
+features/arm64/tegra210-smp/0001-arm64-tegra-Add-CPU-and-PSCI-nodes-for-NVIDIA-Tegra2.patch
+
 # ABI maintenance

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list