@@ -22,17 +22,7 @@ extern unsigned long efi_fw_vendor, efi_config_table;
22
22
*
23
23
* This is the main reason why we're doing stable VA mappings for RT
24
24
* services.
25
- *
26
- * SGI UV1 machines are known to be incompatible with this scheme, so we
27
- * provide an opt-out for these machines via a DMI quirk that sets the
28
- * attribute below.
29
25
*/
30
- #define EFI_UV1_MEMMAP EFI_ARCH_1
31
-
32
- static inline bool efi_have_uv1_memmap (void )
33
- {
34
- return IS_ENABLED (CONFIG_X86_UV ) && efi_enabled (EFI_UV1_MEMMAP );
35
- }
36
26
37
27
#define EFI32_LOADER_SIGNATURE "EL32"
38
28
#define EFI64_LOADER_SIGNATURE "EL64"
@@ -122,19 +112,15 @@ struct efi_scratch {
122
112
efi_sync_low_kernel_mappings(); \
123
113
kernel_fpu_begin(); \
124
114
firmware_restrict_branch_speculation_start(); \
125
- \
126
- if (!efi_have_uv1_memmap()) \
127
- efi_switch_mm(&efi_mm); \
115
+ efi_switch_mm(&efi_mm); \
128
116
})
129
117
130
118
#define arch_efi_call_virt (p , f , args ...) \
131
119
efi_call((void *)p->f, args) \
132
120
133
121
#define arch_efi_call_virt_teardown () \
134
122
({ \
135
- if (!efi_have_uv1_memmap()) \
136
- efi_switch_mm(efi_scratch.prev_mm); \
137
- \
123
+ efi_switch_mm(efi_scratch.prev_mm); \
138
124
firmware_restrict_branch_speculation_end(); \
139
125
kernel_fpu_end(); \
140
126
})
@@ -176,8 +162,6 @@ extern void efi_delete_dummy_variable(void);
176
162
extern void efi_switch_mm (struct mm_struct * mm );
177
163
extern void efi_recover_from_page_fault (unsigned long phys_addr );
178
164
extern void efi_free_boot_services (void );
179
- extern pgd_t * __init efi_uv1_memmap_phys_prolog (void );
180
- extern void __init efi_uv1_memmap_phys_epilog (pgd_t * save_pgd );
181
165
182
166
/* kexec external ABI */
183
167
struct efi_setup_data {
0 commit comments