2 * Contains CPU specific errata definitions
4 * Copyright (C) 2014 ARM Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include <linux/arm-smccc.h>
20 #include <linux/psci.h>
21 #include <linux/types.h>
23 #include <asm/cputype.h>
24 #include <asm/cpufeature.h>
26 static bool __maybe_unused
27 is_affected_midr_range(const struct arm64_cpu_capabilities *entry, int scope)
29 const struct arm64_midr_revidr *fix;
30 u32 midr = read_cpuid_id(), revidr;
32 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible());
33 if (!is_midr_in_range(midr, &entry->midr_range))
36 midr &= MIDR_REVISION_MASK | MIDR_VARIANT_MASK;
37 revidr = read_cpuid(REVIDR_EL1);
38 for (fix = entry->fixed_revs; fix && fix->revidr_mask; fix++)
39 if (midr == fix->midr_rv && (revidr & fix->revidr_mask))
45 static bool __maybe_unused
46 is_affected_midr_range_list(const struct arm64_cpu_capabilities *entry,
49 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible());
50 return is_midr_in_range_list(read_cpuid_id(), entry->midr_range_list);
53 static bool __maybe_unused
54 is_kryo_midr(const struct arm64_cpu_capabilities *entry, int scope)
58 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible());
60 model = read_cpuid_id();
61 model &= MIDR_IMPLEMENTOR_MASK | (0xf00 << MIDR_PARTNUM_SHIFT) |
62 MIDR_ARCHITECTURE_MASK;
64 return model == entry->midr_range.model;
68 has_mismatched_cache_type(const struct arm64_cpu_capabilities *entry,
71 u64 mask = CTR_CACHE_MINLINE_MASK;
73 /* Skip matching the min line sizes for cache type check */
74 if (entry->capability == ARM64_MISMATCHED_CACHE_TYPE)
75 mask ^= arm64_ftr_reg_ctrel0.strict_mask;
77 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible());
78 return (read_cpuid_cachetype() & mask) !=
79 (arm64_ftr_reg_ctrel0.sys_val & mask);
83 cpu_enable_trap_ctr_access(const struct arm64_cpu_capabilities *__unused)
85 sysreg_clear_set(sctlr_el1, SCTLR_EL1_UCT, 0);
88 atomic_t arm64_el2_vector_last_slot = ATOMIC_INIT(-1);
90 #ifdef CONFIG_HARDEN_BRANCH_PREDICTOR
91 #include <asm/mmu_context.h>
92 #include <asm/cacheflush.h>
94 DEFINE_PER_CPU_READ_MOSTLY(struct bp_hardening_data, bp_hardening_data);
96 #ifdef CONFIG_KVM_INDIRECT_VECTORS
97 extern char __smccc_workaround_1_smc_start[];
98 extern char __smccc_workaround_1_smc_end[];
100 static void __copy_hyp_vect_bpi(int slot, const char *hyp_vecs_start,
101 const char *hyp_vecs_end)
103 void *dst = lm_alias(__bp_harden_hyp_vecs_start + slot * SZ_2K);
106 for (i = 0; i < SZ_2K; i += 0x80)
107 memcpy(dst + i, hyp_vecs_start, hyp_vecs_end - hyp_vecs_start);
109 __flush_icache_range((uintptr_t)dst, (uintptr_t)dst + SZ_2K);
112 static void __install_bp_hardening_cb(bp_hardening_cb_t fn,
113 const char *hyp_vecs_start,
114 const char *hyp_vecs_end)
116 static DEFINE_SPINLOCK(bp_lock);
120 for_each_possible_cpu(cpu) {
121 if (per_cpu(bp_hardening_data.fn, cpu) == fn) {
122 slot = per_cpu(bp_hardening_data.hyp_vectors_slot, cpu);
128 slot = atomic_inc_return(&arm64_el2_vector_last_slot);
129 BUG_ON(slot >= BP_HARDEN_EL2_SLOTS);
130 __copy_hyp_vect_bpi(slot, hyp_vecs_start, hyp_vecs_end);
133 __this_cpu_write(bp_hardening_data.hyp_vectors_slot, slot);
134 __this_cpu_write(bp_hardening_data.fn, fn);
135 spin_unlock(&bp_lock);
138 #define __smccc_workaround_1_smc_start NULL
139 #define __smccc_workaround_1_smc_end NULL
141 static void __install_bp_hardening_cb(bp_hardening_cb_t fn,
142 const char *hyp_vecs_start,
143 const char *hyp_vecs_end)
145 __this_cpu_write(bp_hardening_data.fn, fn);
147 #endif /* CONFIG_KVM_INDIRECT_VECTORS */
149 static void install_bp_hardening_cb(const struct arm64_cpu_capabilities *entry,
150 bp_hardening_cb_t fn,
151 const char *hyp_vecs_start,
152 const char *hyp_vecs_end)
156 if (!entry->matches(entry, SCOPE_LOCAL_CPU))
159 pfr0 = read_cpuid(ID_AA64PFR0_EL1);
160 if (cpuid_feature_extract_unsigned_field(pfr0, ID_AA64PFR0_CSV2_SHIFT))
163 __install_bp_hardening_cb(fn, hyp_vecs_start, hyp_vecs_end);
166 #include <uapi/linux/psci.h>
167 #include <linux/arm-smccc.h>
168 #include <linux/psci.h>
170 static void call_smc_arch_workaround_1(void)
172 arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
175 static void call_hvc_arch_workaround_1(void)
177 arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_1, NULL);
180 static void qcom_link_stack_sanitization(void)
184 asm volatile("mov %0, x30 \n"
193 enable_smccc_arch_workaround_1(const struct arm64_cpu_capabilities *entry)
195 bp_hardening_cb_t cb;
196 void *smccc_start, *smccc_end;
197 struct arm_smccc_res res;
198 u32 midr = read_cpuid_id();
200 if (!entry->matches(entry, SCOPE_LOCAL_CPU))
203 if (psci_ops.smccc_version == SMCCC_VERSION_1_0)
206 switch (psci_ops.conduit) {
207 case PSCI_CONDUIT_HVC:
208 arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
209 ARM_SMCCC_ARCH_WORKAROUND_1, &res);
212 cb = call_hvc_arch_workaround_1;
213 /* This is a guest, no need to patch KVM vectors */
218 case PSCI_CONDUIT_SMC:
219 arm_smccc_1_1_smc(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
220 ARM_SMCCC_ARCH_WORKAROUND_1, &res);
223 cb = call_smc_arch_workaround_1;
224 smccc_start = __smccc_workaround_1_smc_start;
225 smccc_end = __smccc_workaround_1_smc_end;
232 if (((midr & MIDR_CPU_MODEL_MASK) == MIDR_QCOM_FALKOR) ||
233 ((midr & MIDR_CPU_MODEL_MASK) == MIDR_QCOM_FALKOR_V1))
234 cb = qcom_link_stack_sanitization;
236 install_bp_hardening_cb(entry, cb, smccc_start, smccc_end);
240 #endif /* CONFIG_HARDEN_BRANCH_PREDICTOR */
242 DEFINE_PER_CPU_READ_MOSTLY(u64, arm64_ssbd_callback_required);
244 int ssbd_state __read_mostly = ARM64_SSBD_KERNEL;
246 static const struct ssbd_options {
250 { "force-on", ARM64_SSBD_FORCE_ENABLE, },
251 { "force-off", ARM64_SSBD_FORCE_DISABLE, },
252 { "kernel", ARM64_SSBD_KERNEL, },
255 static int __init ssbd_cfg(char *buf)
262 for (i = 0; i < ARRAY_SIZE(ssbd_options); i++) {
263 int len = strlen(ssbd_options[i].str);
265 if (strncmp(buf, ssbd_options[i].str, len))
268 ssbd_state = ssbd_options[i].state;
274 early_param("ssbd", ssbd_cfg);
276 void __init arm64_update_smccc_conduit(struct alt_instr *alt,
277 __le32 *origptr, __le32 *updptr,
282 BUG_ON(nr_inst != 1);
284 switch (psci_ops.conduit) {
285 case PSCI_CONDUIT_HVC:
286 insn = aarch64_insn_get_hvc_value();
288 case PSCI_CONDUIT_SMC:
289 insn = aarch64_insn_get_smc_value();
295 *updptr = cpu_to_le32(insn);
298 void __init arm64_enable_wa2_handling(struct alt_instr *alt,
299 __le32 *origptr, __le32 *updptr,
302 BUG_ON(nr_inst != 1);
304 * Only allow mitigation on EL1 entry/exit and guest
305 * ARCH_WORKAROUND_2 handling if the SSBD state allows it to
308 if (arm64_get_ssbd_state() == ARM64_SSBD_KERNEL)
309 *updptr = cpu_to_le32(aarch64_insn_gen_nop());
312 void arm64_set_ssbd_mitigation(bool state)
314 if (!IS_ENABLED(CONFIG_ARM64_SSBD)) {
315 pr_info_once("SSBD disabled by kernel configuration\n");
319 if (this_cpu_has_cap(ARM64_SSBS)) {
321 asm volatile(SET_PSTATE_SSBS(0));
323 asm volatile(SET_PSTATE_SSBS(1));
327 switch (psci_ops.conduit) {
328 case PSCI_CONDUIT_HVC:
329 arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_WORKAROUND_2, state, NULL);
332 case PSCI_CONDUIT_SMC:
333 arm_smccc_1_1_smc(ARM_SMCCC_ARCH_WORKAROUND_2, state, NULL);
342 static bool has_ssbd_mitigation(const struct arm64_cpu_capabilities *entry,
345 struct arm_smccc_res res;
346 bool required = true;
349 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible());
351 if (this_cpu_has_cap(ARM64_SSBS)) {
356 if (psci_ops.smccc_version == SMCCC_VERSION_1_0) {
357 ssbd_state = ARM64_SSBD_UNKNOWN;
361 switch (psci_ops.conduit) {
362 case PSCI_CONDUIT_HVC:
363 arm_smccc_1_1_hvc(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
364 ARM_SMCCC_ARCH_WORKAROUND_2, &res);
367 case PSCI_CONDUIT_SMC:
368 arm_smccc_1_1_smc(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
369 ARM_SMCCC_ARCH_WORKAROUND_2, &res);
373 ssbd_state = ARM64_SSBD_UNKNOWN;
380 case SMCCC_RET_NOT_SUPPORTED:
381 ssbd_state = ARM64_SSBD_UNKNOWN;
384 case SMCCC_RET_NOT_REQUIRED:
385 pr_info_once("%s mitigation not required\n", entry->desc);
386 ssbd_state = ARM64_SSBD_MITIGATED;
389 case SMCCC_RET_SUCCESS:
393 case 1: /* Mitigation not required on this CPU */
402 switch (ssbd_state) {
403 case ARM64_SSBD_FORCE_DISABLE:
404 arm64_set_ssbd_mitigation(false);
408 case ARM64_SSBD_KERNEL:
410 __this_cpu_write(arm64_ssbd_callback_required, 1);
411 arm64_set_ssbd_mitigation(true);
415 case ARM64_SSBD_FORCE_ENABLE:
416 arm64_set_ssbd_mitigation(true);
426 switch (ssbd_state) {
427 case ARM64_SSBD_FORCE_DISABLE:
428 pr_info_once("%s disabled from command-line\n", entry->desc);
431 case ARM64_SSBD_FORCE_ENABLE:
432 pr_info_once("%s forced from command-line\n", entry->desc);
439 #ifdef CONFIG_ARM64_ERRATUM_1463225
440 DEFINE_PER_CPU(int, __in_cortex_a76_erratum_1463225_wa);
443 has_cortex_a76_erratum_1463225(const struct arm64_cpu_capabilities *entry,
446 u32 midr = read_cpuid_id();
447 /* Cortex-A76 r0p0 - r3p1 */
448 struct midr_range range = MIDR_RANGE(MIDR_CORTEX_A76, 0, 0, 3, 1);
450 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible());
451 return is_midr_in_range(midr, &range) && is_kernel_in_hyp_mode();
455 #define CAP_MIDR_RANGE(model, v_min, r_min, v_max, r_max) \
456 .matches = is_affected_midr_range, \
457 .midr_range = MIDR_RANGE(model, v_min, r_min, v_max, r_max)
459 #define CAP_MIDR_ALL_VERSIONS(model) \
460 .matches = is_affected_midr_range, \
461 .midr_range = MIDR_ALL_VERSIONS(model)
463 #define MIDR_FIXED(rev, revidr_mask) \
464 .fixed_revs = (struct arm64_midr_revidr[]){{ (rev), (revidr_mask) }, {}}
466 #define ERRATA_MIDR_RANGE(model, v_min, r_min, v_max, r_max) \
467 .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM, \
468 CAP_MIDR_RANGE(model, v_min, r_min, v_max, r_max)
470 #define CAP_MIDR_RANGE_LIST(list) \
471 .matches = is_affected_midr_range_list, \
472 .midr_range_list = list
474 /* Errata affecting a range of revisions of given model variant */
475 #define ERRATA_MIDR_REV_RANGE(m, var, r_min, r_max) \
476 ERRATA_MIDR_RANGE(m, var, r_min, var, r_max)
478 /* Errata affecting a single variant/revision of a model */
479 #define ERRATA_MIDR_REV(model, var, rev) \
480 ERRATA_MIDR_RANGE(model, var, rev, var, rev)
482 /* Errata affecting all variants/revisions of a given a model */
483 #define ERRATA_MIDR_ALL_VERSIONS(model) \
484 .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM, \
485 CAP_MIDR_ALL_VERSIONS(model)
487 /* Errata affecting a list of midr ranges, with same work around */
488 #define ERRATA_MIDR_RANGE_LIST(midr_list) \
489 .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM, \
490 CAP_MIDR_RANGE_LIST(midr_list)
493 * Generic helper for handling capabilties with multiple (match,enable) pairs
494 * of call backs, sharing the same capability bit.
495 * Iterate over each entry to see if at least one matches.
497 static bool __maybe_unused
498 multi_entry_cap_matches(const struct arm64_cpu_capabilities *entry, int scope)
500 const struct arm64_cpu_capabilities *caps;
502 for (caps = entry->match_list; caps->matches; caps++)
503 if (caps->matches(caps, scope))
510 * Take appropriate action for all matching entries in the shared capability
513 static void __maybe_unused
514 multi_entry_cap_cpu_enable(const struct arm64_cpu_capabilities *entry)
516 const struct arm64_cpu_capabilities *caps;
518 for (caps = entry->match_list; caps->matches; caps++)
519 if (caps->matches(caps, SCOPE_LOCAL_CPU) &&
521 caps->cpu_enable(caps);
524 #ifdef CONFIG_HARDEN_BRANCH_PREDICTOR
527 * List of CPUs where we need to issue a psci call to
528 * harden the branch predictor.
530 static const struct midr_range arm64_bp_harden_smccc_cpus[] = {
531 MIDR_ALL_VERSIONS(MIDR_CORTEX_A57),
532 MIDR_ALL_VERSIONS(MIDR_CORTEX_A72),
533 MIDR_ALL_VERSIONS(MIDR_CORTEX_A73),
534 MIDR_ALL_VERSIONS(MIDR_CORTEX_A75),
535 MIDR_ALL_VERSIONS(MIDR_BRCM_VULCAN),
536 MIDR_ALL_VERSIONS(MIDR_CAVIUM_THUNDERX2),
537 MIDR_ALL_VERSIONS(MIDR_QCOM_FALKOR_V1),
538 MIDR_ALL_VERSIONS(MIDR_QCOM_FALKOR),
539 MIDR_ALL_VERSIONS(MIDR_NVIDIA_DENVER),
545 #ifdef CONFIG_HARDEN_EL2_VECTORS
547 static const struct midr_range arm64_harden_el2_vectors[] = {
548 MIDR_ALL_VERSIONS(MIDR_CORTEX_A57),
549 MIDR_ALL_VERSIONS(MIDR_CORTEX_A72),
555 const struct arm64_cpu_capabilities arm64_errata[] = {
556 #if defined(CONFIG_ARM64_ERRATUM_826319) || \
557 defined(CONFIG_ARM64_ERRATUM_827319) || \
558 defined(CONFIG_ARM64_ERRATUM_824069)
560 /* Cortex-A53 r0p[012] */
561 .desc = "ARM errata 826319, 827319, 824069",
562 .capability = ARM64_WORKAROUND_CLEAN_CACHE,
563 ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 2),
564 .cpu_enable = cpu_enable_cache_maint_trap,
567 #ifdef CONFIG_ARM64_ERRATUM_819472
569 /* Cortex-A53 r0p[01] */
570 .desc = "ARM errata 819472",
571 .capability = ARM64_WORKAROUND_CLEAN_CACHE,
572 ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 1),
573 .cpu_enable = cpu_enable_cache_maint_trap,
576 #ifdef CONFIG_ARM64_ERRATUM_832075
578 /* Cortex-A57 r0p0 - r1p2 */
579 .desc = "ARM erratum 832075",
580 .capability = ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE,
581 ERRATA_MIDR_RANGE(MIDR_CORTEX_A57,
586 #ifdef CONFIG_ARM64_ERRATUM_834220
588 /* Cortex-A57 r0p0 - r1p2 */
589 .desc = "ARM erratum 834220",
590 .capability = ARM64_WORKAROUND_834220,
591 ERRATA_MIDR_RANGE(MIDR_CORTEX_A57,
596 #ifdef CONFIG_ARM64_ERRATUM_843419
598 /* Cortex-A53 r0p[01234] */
599 .desc = "ARM erratum 843419",
600 .capability = ARM64_WORKAROUND_843419,
601 ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 4),
602 MIDR_FIXED(0x4, BIT(8)),
605 #ifdef CONFIG_ARM64_ERRATUM_845719
607 /* Cortex-A53 r0p[01234] */
608 .desc = "ARM erratum 845719",
609 .capability = ARM64_WORKAROUND_845719,
610 ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 4),
613 #ifdef CONFIG_CAVIUM_ERRATUM_23154
615 /* Cavium ThunderX, pass 1.x */
616 .desc = "Cavium erratum 23154",
617 .capability = ARM64_WORKAROUND_CAVIUM_23154,
618 ERRATA_MIDR_REV_RANGE(MIDR_THUNDERX, 0, 0, 1),
621 #ifdef CONFIG_CAVIUM_ERRATUM_27456
623 /* Cavium ThunderX, T88 pass 1.x - 2.1 */
624 .desc = "Cavium erratum 27456",
625 .capability = ARM64_WORKAROUND_CAVIUM_27456,
626 ERRATA_MIDR_RANGE(MIDR_THUNDERX,
631 /* Cavium ThunderX, T81 pass 1.0 */
632 .desc = "Cavium erratum 27456",
633 .capability = ARM64_WORKAROUND_CAVIUM_27456,
634 ERRATA_MIDR_REV(MIDR_THUNDERX_81XX, 0, 0),
637 #ifdef CONFIG_CAVIUM_ERRATUM_30115
639 /* Cavium ThunderX, T88 pass 1.x - 2.2 */
640 .desc = "Cavium erratum 30115",
641 .capability = ARM64_WORKAROUND_CAVIUM_30115,
642 ERRATA_MIDR_RANGE(MIDR_THUNDERX,
647 /* Cavium ThunderX, T81 pass 1.0 - 1.2 */
648 .desc = "Cavium erratum 30115",
649 .capability = ARM64_WORKAROUND_CAVIUM_30115,
650 ERRATA_MIDR_REV_RANGE(MIDR_THUNDERX_81XX, 0, 0, 2),
653 /* Cavium ThunderX, T83 pass 1.0 */
654 .desc = "Cavium erratum 30115",
655 .capability = ARM64_WORKAROUND_CAVIUM_30115,
656 ERRATA_MIDR_REV(MIDR_THUNDERX_83XX, 0, 0),
660 .desc = "Mismatched cache line size",
661 .capability = ARM64_MISMATCHED_CACHE_LINE_SIZE,
662 .matches = has_mismatched_cache_type,
663 .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
664 .cpu_enable = cpu_enable_trap_ctr_access,
667 .desc = "Mismatched cache type",
668 .capability = ARM64_MISMATCHED_CACHE_TYPE,
669 .matches = has_mismatched_cache_type,
670 .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
671 .cpu_enable = cpu_enable_trap_ctr_access,
673 #ifdef CONFIG_QCOM_FALKOR_ERRATUM_1003
675 .desc = "Qualcomm Technologies Falkor erratum 1003",
676 .capability = ARM64_WORKAROUND_QCOM_FALKOR_E1003,
677 ERRATA_MIDR_REV(MIDR_QCOM_FALKOR_V1, 0, 0),
680 .desc = "Qualcomm Technologies Kryo erratum 1003",
681 .capability = ARM64_WORKAROUND_QCOM_FALKOR_E1003,
682 .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
683 .midr_range.model = MIDR_QCOM_KRYO,
684 .matches = is_kryo_midr,
687 #ifdef CONFIG_QCOM_FALKOR_ERRATUM_1009
689 .desc = "Qualcomm Technologies Falkor erratum 1009",
690 .capability = ARM64_WORKAROUND_REPEAT_TLBI,
691 ERRATA_MIDR_REV(MIDR_QCOM_FALKOR_V1, 0, 0),
694 #ifdef CONFIG_ARM64_ERRATUM_858921
696 /* Cortex-A73 all versions */
697 .desc = "ARM erratum 858921",
698 .capability = ARM64_WORKAROUND_858921,
699 ERRATA_MIDR_ALL_VERSIONS(MIDR_CORTEX_A73),
702 #ifdef CONFIG_HARDEN_BRANCH_PREDICTOR
704 .capability = ARM64_HARDEN_BRANCH_PREDICTOR,
705 .cpu_enable = enable_smccc_arch_workaround_1,
706 ERRATA_MIDR_RANGE_LIST(arm64_bp_harden_smccc_cpus),
709 #ifdef CONFIG_HARDEN_EL2_VECTORS
711 .desc = "EL2 vector hardening",
712 .capability = ARM64_HARDEN_EL2_VECTORS,
713 ERRATA_MIDR_RANGE_LIST(arm64_harden_el2_vectors),
717 .desc = "Speculative Store Bypass Disable",
718 .capability = ARM64_SSBD,
719 .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
720 .matches = has_ssbd_mitigation,
722 #ifdef CONFIG_ARM64_ERRATUM_1463225
724 .desc = "ARM erratum 1463225",
725 .capability = ARM64_WORKAROUND_1463225,
726 .type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
727 .matches = has_cortex_a76_erratum_1463225,
734 ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr,
737 return sprintf(buf, "Mitigation: __user pointer sanitization\n");