Skip to content

Commit eb0a2d2

Browse files
committed
powerpc/powernv: Support firmware disable of RFI flush
Some versions of firmware will have a setting that can be configured to disable the RFI flush, add support for it. Fixes: 6e032b3 ("powerpc/powernv: Check device-tree for RFI flush settings") Signed-off-by: Michael Ellerman <[email protected]>
1 parent 582605a commit eb0a2d2

File tree

1 file changed

+4
-0
lines changed
  • arch/powerpc/platforms/powernv

1 file changed

+4
-0
lines changed

arch/powerpc/platforms/powernv/setup.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ static void pnv_setup_rfi_flush(void)
8080
if (np && of_property_read_bool(np, "disabled"))
8181
enable--;
8282

83+
np = of_get_child_by_name(fw_features, "speculation-policy-favor-security");
84+
if (np && of_property_read_bool(np, "disabled"))
85+
enable = 0;
86+
8387
of_node_put(np);
8488
of_node_put(fw_features);
8589
}

0 commit comments

Comments
 (0)