Commit 5d758cf4 authored by Michael Ellerman's avatar Michael Ellerman Committed by Greg Kroah-Hartman

powerpc/powernv: Query firmware for count cache flush settings

commit 99d54754 upstream.

Look for fw-features properties to determine the appropriate settings
for the count cache flush, and then call the generic powerpc code to
set it up based on the security feature flags.
Signed-off-by: 's avatarMichael Ellerman <>
Signed-off-by: 's avatarGreg Kroah-Hartman <>
parent 05cc3eb6
......@@ -77,6 +77,12 @@ static void init_fw_feat_flags(struct device_node *np)
if (fw_feature_is("enabled", "fw-count-cache-disabled", np))
if (fw_feature_is("enabled", "fw-count-cache-flush-bcctr2,0,0", np))
if (fw_feature_is("enabled", "needs-count-cache-flush-on-context-switch", np))
* The features below are enabled by default, so we instead look to see
* if firmware has *disabled* them, and clear them if so.
......@@ -123,6 +129,7 @@ static void pnv_setup_rfi_flush(void)
setup_rfi_flush(type, enable);
static void __init pnv_setup_arch(void)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment