aboutsummaryrefslogtreecommitdiff
path: root/hw/nx.c
diff options
context:
space:
mode:
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>2018-02-12 14:57:09 -0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-02-14 23:27:35 -0600
commit31e5e988632f6554f70ed3e4072aef4245ee7b73 (patch)
tree18fcb51994c437b0e46f56a527edcf5bb0bc3d10 /hw/nx.c
parentf397cc30bdf88353c39c58d9085d42c5fa124190 (diff)
downloadskiboot-31e5e988632f6554f70ed3e4072aef4245ee7b73.zip
skiboot-31e5e988632f6554f70ed3e4072aef4245ee7b73.tar.gz
skiboot-31e5e988632f6554f70ed3e4072aef4245ee7b73.tar.bz2
vas: Disable VAS/NX-842 on some P9 revisions
VAS/NX-842 are not functional on some P9 revisions, so disable them in hardware and skip creating their device tree nodes. Since the intent is to prevent OS from configuring VAS/NX, we remove only the platform device nodes but leave the VAS/NX DT nodes under xscom (i.e we don't skip add_vas_node() in hdata/spira.c) Thanks to input from Michael Ellerman, Michael Neuling. Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> Reviewed-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/nx.c')
-rw-r--r--hw/nx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/nx.c b/hw/nx.c
index 0f6ff04..7032c9f 100644
--- a/hw/nx.c
+++ b/hw/nx.c
@@ -24,6 +24,7 @@
#include <chip.h>
#include <xscom-p9-regs.h>
#include <phys-map.h>
+#include <vas.h>
#include <p9_stop_api.H>
static void p9_darn_init(void)
@@ -110,7 +111,12 @@ void nx_p9_rng_late_init(void)
static void nx_init_one(struct dt_node *node)
{
nx_create_rng_node(node);
+
+ if (!vas_nx_enabled())
+ return;
+
nx_create_crypto_node(node);
+
nx_create_compress_node(node);
}