aboutsummaryrefslogtreecommitdiff
path: root/include/imc.h
diff options
context:
space:
mode:
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>2017-06-22 17:45:24 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-27 18:46:02 +1000
commita1e0a047b2a01c4ad18796151685d41f747af273 (patch)
tree45f8c501441daa517ff0e956087ce467110e435e /include/imc.h
parent866e11b965d6907c249c413c8cd0450958a15e51 (diff)
downloadskiboot-a1e0a047b2a01c4ad18796151685d41f747af273.zip
skiboot-a1e0a047b2a01c4ad18796151685d41f747af273.tar.gz
skiboot-a1e0a047b2a01c4ad18796151685d41f747af273.tar.bz2
skiboot: Handle combined units node in the imc dt
Add code to detect combined unit nodes in the imc device tree. Due to HW/OCC restriction mcs* units are paired and monitored by the nest microcode. Microcode today does not support monitoring of individual mcs* unit events, so the patch first remove these mcs* from the imc device tree if found. Secondly to enable or disbale combined units nodes like "mcs01", "mcs23","mcs45" and "mcs67", additional parser loop is added to disable_unavailable_units(). Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/imc.h')
-rw-r--r--include/imc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/imc.h b/include/imc.h
index d4381bb..aa7f22d 100644
--- a/include/imc.h
+++ b/include/imc.h
@@ -132,4 +132,11 @@ struct imc_chip_cb
void imc_init(void);
void imc_catalog_preload(void);
+
+#define MAX_NEST_COMBINED_UNITS 4
+struct combined_units_node {
+ const char *name;
+ u64 unit1;
+ u64 unit2;
+};
#endif /* __IMC_H */