From 31e5e988632f6554f70ed3e4072aef4245ee7b73 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Mon, 12 Feb 2018 14:57:09 -0800 Subject: 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 Reviewed-by: Michael Ellerman Signed-off-by: Stewart Smith --- include/vas.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/vas.h b/include/vas.h index 6bc2a1c..f8c7add 100644 --- a/include/vas.h +++ b/include/vas.h @@ -37,6 +37,7 @@ */ extern void vas_init(void); +extern __attrconst bool vas_nx_enabled(void); extern __attrconst uint64_t vas_get_hvwc_mmio_bar(const int chipid); extern __attrconst uint64_t vas_get_wcbs_bar(int chipid); -- cgit v1.1