aboutsummaryrefslogtreecommitdiff
path: root/hw/dts.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2019-06-03 14:50:50 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-06-04 10:29:05 +1000
commit16b7ae64103797b0ecab1dbb7c45df23b14810b9 (patch)
treea3330ee950c4f93c9c7afe278cf1425f66366b95 /hw/dts.c
parent9cae036fafea468219892406a846639f2715854d (diff)
downloadskiboot-16b7ae64103797b0ecab1dbb7c45df23b14810b9.zip
skiboot-16b7ae64103797b0ecab1dbb7c45df23b14810b9.tar.gz
skiboot-16b7ae64103797b0ecab1dbb7c45df23b14810b9.tar.bz2
Remove POWER7 and POWER7+ support
It's been a good long while since either OPAL POWER7 user touched a machine, and even longer since they'd have been okay using an old version rather than tracking master. There's also been no testing of OPAL on POWER7 systems for an awfully long time, so it's pretty safe to assume that it's very much bitrotted. It also saves a whole 14kb of xz compressed payload space. Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Enthusiasticly-Acked-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/dts.c')
-rw-r--r--hw/dts.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/hw/dts.c b/hw/dts.c
index dffdfcb..e57bd33 100644
--- a/hw/dts.c
+++ b/hw/dts.c
@@ -38,67 +38,6 @@ enum {
SENSOR_DTS_ATTR_TEMP_TRIP
};
-/* Different sensor locations */
-#define P7_CT_ZONE_LSU 0
-#define P7_CT_ZONE_ISU 1
-#define P7_CT_ZONE_IFU 2
-#define P7_CT_ZONE_VFU 3
-#define P7_CT_ZONE_L3C 4
-#define P7_CT_ZONES 5
-
-/* Per core Digital Thermal Sensors */
-#define EX_THERM_P7_DTS_RESULT0 0x8050000
-#define EX_THERM_P7_DTS_RESULT1 0x8050001
-
-/*
- * DTS2 Thermal Sensor Results
- *
- * 0..7 sensor with id 0.
- * 8..15 sensor with id 1. (Only chiplets)
- * 16..23 sensor with id 2. (Only chiplets)
- * 24..31 sensor with id 3. (Only chiplets)
- * 32..39 sensor with id 4. (Only chiplets)
- * 40..56 reserved0
- * 57 Trip warning history
- * 58 Trip critical history
- * 59 Trip fatal history
- * 60 reserved1
- * 61..63 ID of worst case DTS2 (Only valid in EX core chiplets)
- */
-static int dts_read_core_temp_p7(uint32_t pir, struct dts *dts)
-{
- int32_t chip_id = pir_to_chip_id(pir);
- int32_t core = pir_to_core_id(pir);
- uint64_t dts0;
- struct dts temps[P7_CT_ZONES];
- int i;
- int rc;
-
- rc = xscom_read(chip_id,
- XSCOM_ADDR_P8_EX(core, EX_THERM_P7_DTS_RESULT0),
- &dts0);
- if (rc)
- return rc;
-
- temps[P7_CT_ZONE_LSU].temp = (dts0 >> 56) & 0xff;
- temps[P7_CT_ZONE_ISU].temp = (dts0 >> 48) & 0xff;
- temps[P7_CT_ZONE_IFU].temp = (dts0 >> 40) & 0xff;
- temps[P7_CT_ZONE_VFU].temp = (dts0 >> 32) & 0xff;
- temps[P7_CT_ZONE_L3C].temp = (dts0 >> 24) & 0xff;
-
- /* keep the max DTS */
- for (i = 0; i < P7_CT_ZONES; i++) {
- int16_t t = temps[i].temp;
- if (t > dts->temp)
- dts->temp = t;
- }
- dts->trip = (dts0 >> 3) & 0xf;
-
- prlog(PR_TRACE, "DTS: Chip %x Core %x temp:%dC trip:%x\n",
- chip_id, core, dts->temp, dts->trip);
-
- return 0;
-}
/* Therm mac result masking for DTS (result(0:15)
* 0:3 - 0x0
@@ -271,9 +210,6 @@ static int dts_read_core_temp(u32 pir, struct dts *dts, u8 attr,
int rc;
switch (proc_gen) {
- case proc_gen_p7:
- rc = dts_read_core_temp_p7(pir, dts);
- break;
case proc_gen_p8:
rc = dts_read_core_temp_p8(pir, dts);
break;