[Skiboot] [RFC PATCH 2/4] ibm-fsp/firenze: uncore_init hook

Madhavan Srinivasan maddy at linux.vnet.ibm.com
Thu Mar 19 20:28:31 AEDT 2015


Patch adds a init hook function in ibm-fsp/firence file
to initialize the Nest instrumentation. Reason for adding this
function is that, currently the Nest instrumentation
detection feature is under development and the code has been
tested only in IBM Tuleta boxes. 

Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>
---
 platforms/ibm-fsp/firenze.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/platforms/ibm-fsp/firenze.c b/platforms/ibm-fsp/firenze.c
index 30fe1c7..9481298 100644
--- a/platforms/ibm-fsp/firenze.c
+++ b/platforms/ibm-fsp/firenze.c
@@ -22,6 +22,7 @@
 #include <pci-cfg.h>
 #include <chip.h>
 #include <hostservices.h>
+#include <uncore.h>
 
 #include "ibm-fsp.h"
 #include "lxvpd.h"
@@ -49,6 +50,19 @@ static struct fsp_pcie_inventory *fsp_pcie_inv;
 static unsigned int fsp_pcie_inv_alloc_count;
 #define FSP_PCIE_INV_ALLOC_CHUNK	4
 
+static void firenze_dt_fixup_uncore(void)
+{
+	/*
+	 * Power8 Nest instrucmentation init hook.
+	 * TODO: Currently code tested only in 
+	 * IBM FSP based Tuleta System and hence
+	 * using this hook. But the init should happen
+	 * based on the Nest instrumentation feature
+	 * detection method, explain in hw/uncore.c
+	 */
+	uncore_init();
+}
+
 static struct dt_node *dt_create_i2c_master(struct dt_node *n, uint32_t eng_id)
 {
 	struct dt_node *i2cm;
@@ -201,6 +215,12 @@ static bool firenze_probe(void)
 
 	firenze_dt_fixup_i2cm();
 
+	/*
+	 * At this point we have the homer initialized
+	 * and per chip homer base is known
+	 */
+	firenze_dt_fixup_uncore();
+
 	return true;
 }
 
-- 
1.9.1



More information about the Skiboot mailing list