Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH] arm64: Enable MRS emulation early
@ 2017-10-04  9:48 Suzuki K Poulose
  2017-10-04 10:14 ` Mark Rutland
  0 siblings, 1 reply; 9+ messages in thread
From: Suzuki K Poulose @ 2017-10-04  9:48 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: linux-kernel, matwey.kornilov, Suzuki K Poulose, James Morse,
	Dave Martin, Catalin Marinas, Will Deacon, stable, Mark Rutland

Make sure the MRS emulation is enabled early enough, such that the
early userspace applications (e.g, those run from initrd) could
use the facility without crashing them.

Fixes: commit 77c97b4ee2129 ("arm64: cpufeature: Expose CPUID registers by emulation")
Reported-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
Cc: James Morse <james.morse@arm.com>
Cc: Dave Martin <Dave.martin@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: stable@vger.kernel.org
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
 arch/arm64/kernel/cpufeature.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 9f9e0064c8c1..276eecab6cea 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1294,4 +1294,4 @@ static int __init enable_mrs_emulation(void)
 	return 0;
 }
 
-late_initcall(enable_mrs_emulation);
+core_initcall(enable_mrs_emulation);
-- 
2.13.5

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-10-04 13:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-04  9:48 [PATCH] arm64: Enable MRS emulation early Suzuki K Poulose
2017-10-04 10:14 ` Mark Rutland
2017-10-04 11:10   ` Catalin Marinas
2017-10-04 11:32     ` Dave Martin
2017-10-04 11:36       ` Catalin Marinas
2017-10-04 12:48         ` Dave Martin
2017-10-04 13:24           ` Catalin Marinas
2017-10-04 11:32     ` Mark Rutland
2017-10-04 13:00       ` Suzuki K Poulose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox