Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'x86_fred_for_v7.1_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 FRED updates from Borislav Petkov:
"We made the FRED support an opt-in initially out of fear of it
breaking machines left and right in the case of a hw bug in the first
generation of machines supporting it.

Now that that the FRED code has seen a lot of hammering, flip the
logic to be opt-out as is the usual case with new hw features"

* tag 'x86_fred_for_v7.1_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/fred: Remove kernel log message when initializing exceptions
x86/fred: Enable FRED by default

+4 -7
+2 -2
Documentation/admin-guide/kernel-parameters.txt
··· 1765 1765 fred= [X86-64] 1766 1766 Enable/disable Flexible Return and Event Delivery. 1767 1767 Format: { on | off } 1768 - on: enable FRED when it's present. 1769 - off: disable FRED, the default setting. 1768 + on: enable FRED when it's present, the default setting. 1769 + off: disable FRED. 1770 1770 1771 1771 ftrace=[tracer] 1772 1772 [FTRACE] will set and start the specified tracer
+1 -1
arch/x86/Kconfig
··· 554 554 bool "Flexible Return and Event Delivery" 555 555 depends on X86_64 556 556 help 557 - When enabled, try to use Flexible Return and Event Delivery 557 + When enabled, use Flexible Return and Event Delivery 558 558 instead of the legacy SYSCALL/SYSENTER/IDT architecture for 559 559 ring transitions and exception/interrupt handling if the 560 560 system supports it.
+1 -1
arch/x86/kernel/cpu/common.c
··· 1761 1761 1762 1762 /* Minimize the gap between FRED is available and available but disabled. */ 1763 1763 arglen = cmdline_find_option(boot_command_line, "fred", arg, sizeof(arg)); 1764 - if (arglen != 2 || strncmp(arg, "on", 2)) 1764 + if (arglen == 3 && !strncmp(arg, "off", 3)) 1765 1765 setup_clear_cpu_cap(X86_FEATURE_FRED); 1766 1766 1767 1767 arglen = cmdline_find_option(boot_command_line, "clearcpuid", arg, sizeof(arg));
-3
arch/x86/kernel/fred.c
··· 27 27 28 28 void cpu_init_fred_exceptions(void) 29 29 { 30 - /* When FRED is enabled by default, remove this log message */ 31 - pr_info("Initialize FRED on CPU%d\n", smp_processor_id()); 32 - 33 30 /* 34 31 * If a kernel event is delivered before a CPU goes to user level for 35 32 * the first time, its SS is NULL thus NULL is pushed into the SS field