/* Send error to user if they hypervisor won't allow us to write DAWR */ if (!dawr_force_enable &&
firmware_has_feature(FW_FEATURE_LPAR) &&
set_dawr(0, &null_brk) != H_SUCCESS) return -ENODEV;
rc = debugfs_write_file_bool(file, user_buf, count, ppos); if (rc) return rc;
/* If we are clearing, make sure all CPUs have the DAWR cleared */ if (!dawr_force_enable)
smp_call_function(disable_dawrs_cb, NULL, 0);
staticint __init dawr_force_setup(void)
{ if (cpu_has_feature(CPU_FTR_DAWR)) { /* Don't setup sysfs file for user control on P8 */
dawr_force_enable = true; return 0;
}
if (PVR_VER(mfspr(SPRN_PVR)) == PVR_POWER9) { /* Turn DAWR off by default, but allow admin to turn it on */
debugfs_create_file_unsafe("dawr_enable_dangerous", 0600,
arch_debugfs_dir,
&dawr_force_enable,
&dawr_enable_fops);
} return 0;
}
arch_initcall(dawr_force_setup);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.