[Skiboot] [RESEND PATCH v1 04/11]ibm-fsp/firenze: DT entry for DIMM rate

Madhavan Srinivasan maddy at linux.vnet.ibm.com
Mon Jul 6 02:55:26 AEST 2015


Patch creates a DT entry to pass the information about the DIMM
rate to kernel. This is needed to calculate % memory bandwidth
utilisation metrics.

Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>
---
 hw/nest.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/hw/nest.c b/hw/nest.c
index 7b13512..1798351 100644
--- a/hw/nest.c
+++ b/hw/nest.c
@@ -148,5 +148,21 @@ void nest_ima_init(void)
 		dt_add_property_cells(chip_dev, "size", SLW_IMA_SIZE);
 		dt_add_property(chip_dev, "ibm,ima-chip", NULL, 0);
 	}
+
+	/*
+	 * Dimm rate DT Entry. Needed for % utilisation calculation.
+	 */
+	chip = get_chip(pir_to_chip_id(this_cpu()->pir));
+	switch (chip->type) {
+	case PROC_CHIP_P8_MURANO:
+		dt_add_property_cells(dev,"dimm", MURANO_CENTAUR_DIMM);
+		break;
+	case PROC_CHIP_P8_VENICE:
+		dt_add_property_cells(dev,"dimm", VENICE_CENTAUR_DIMM);
+		break;
+	default:
+		break;
+	}
+
 	return;
 }
-- 
1.9.3



More information about the Skiboot mailing list