[Skiboot] [PATCH] hdat: Disable TM on Power9 DD 2.1
Michael Ellerman
mpe at ellerman.id.au
Tue Oct 10 20:52:45 AEDT 2017
Update pa_features_p9[] to disable TM (Transactional Memory). On DD 2.1
TM is not usable by Linux without other workarounds, so skiboot must
disable it.
The presence of TM is communicated by setting bit 7 of byte 22 in the
pa-features array. As no other bits are set in that byte, we currently
have a value of 0x80. To disable TM we set bit 7 to 0, leaving a value
of 0x0.
Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
---
hdata/cpu-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hdata/cpu-common.c b/hdata/cpu-common.c
index 01228f3d1540..eb86f95fb0d7 100644
--- a/hdata/cpu-common.c
+++ b/hdata/cpu-common.c
@@ -68,7 +68,7 @@ struct dt_node * add_core_common(struct dt_node *cpus,
64, 0,
0xf6, 0x3f, 0xc7, 0xc0, 0x80, 0xd0, 0x80, 0x00, /* 0 .. 7 */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 8 .. 15 */
- 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, /* 16 .. 23 */
+ 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, /* 16 .. 23 */
0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, /* 24 .. 31 */
0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, /* 32 .. 39 */
0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, /* 40 .. 47 */
--
2.7.4
More information about the Skiboot
mailing list