powerpc/dt_cpu_ftrs: Enable Prefixed Instructions
authorAlistair Popple <alistair@popple.id.au>
Thu, 21 May 2020 01:43:39 +0000 (11:43 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Jun 2020 10:59:20 +0000 (20:59 +1000)
Prefix instructions have their own FSCR bit which needs to be enabled
via a CPU feature. The kernel will save the FSCR for problem state but
it needs to be enabled initially.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200521014341.29095-6-alistair@popple.id.au
arch/powerpc/kernel/dt_cpu_ftrs.c

index 46a85584e20b104df8f5845bacede73ec191dfcb..87a5d47415eb363adf5d8d6a152482c0b0bc1a58 100644 (file)
@@ -634,6 +634,7 @@ static struct dt_cpu_feature_match __initdata
        {"vector-binary128", feat_enable, 0},
        {"vector-binary16", feat_enable, 0},
        {"wait-v3", feat_enable, 0},
+       {"prefix-instructions", feat_enable, 0},
 };
 
 static bool __initdata using_dt_cpu_ftrs;