Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98df7465 authored by Michael Ellerman's avatar Michael Ellerman Committed by Greg Kroah-Hartman
Browse files

powerpc/powernv: Support firmware disable of RFI flush



commit eb0a2d2620ae431c543963c8c7f08f597366fc60 upstream.

Some versions of firmware will have a setting that can be configured
to disable the RFI flush, add support for it.

Fixes: 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush settings")
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 51cbb3b3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -79,6 +79,10 @@ static void pnv_setup_rfi_flush(void)
		if (np && of_property_read_bool(np, "disabled"))
			enable--;

		np = of_get_child_by_name(fw_features, "speculation-policy-favor-security");
		if (np && of_property_read_bool(np, "disabled"))
			enable = 0;

		of_node_put(np);
		of_node_put(fw_features);
	}