aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2018-04-06 12:28:55 +1000
committerAlexey Kardashevskiy <aik@ozlabs.ru>2018-09-07 13:18:50 +1000
commit0198ba7759c9d38bc44dd0f9fc38b003752e0d6b (patch)
tree7e58941905db8291128895baa66ab44c5e1db2b6
parentb752674383846af8045a38f8f32604574fb54471 (diff)
downloadSLOF-0198ba7759c9d38bc44dd0f9fc38b003752e0d6b.zip
SLOF-0198ba7759c9d38bc44dd0f9fc38b003752e0d6b.tar.gz
SLOF-0198ba7759c9d38bc44dd0f9fc38b003752e0d6b.tar.bz2
fdt: Fix phandles for NVLink/NVLink2
The NVIDIA driver for NVLink2-capable GPU NVIDIA V100 discovers topology between GPU/NPUs/GPURAM via the device tree which needs to have cross references between device tree nodes. This adds patching of the nodes needed for the driver to initialize. As all these properties only contain phandles and nothing else, there is no risc of accidendal damage. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> --- Changes: * added the commit log
-rw-r--r--board-qemu/slof/fdt.fs5
1 files changed, 5 insertions, 0 deletions
diff --git a/board-qemu/slof/fdt.fs b/board-qemu/slof/fdt.fs
index 3138c9e..3e4c1b3 100644
--- a/board-qemu/slof/fdt.fs
+++ b/board-qemu/slof/fdt.fs
@@ -305,6 +305,11 @@ fdt-claim-reserve
THEN
2dup s" interrupt-parent" r@ (fdt-replace-phandles)
+ 2dup s" ibm,gpu" r@ (fdt-replace-phandles)
+ 2dup s" ibm,npu" r@ (fdt-replace-phandles)
+ 2dup s" ibm,nvlink" r@ (fdt-replace-phandles)
+ 2dup s" memory-region" r@ (fdt-replace-phandles)
+
\ ... add more properties that have to be fixed here ...
r>
\ Now recurse over all child nodes: ( old new node )