Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: Remove remap percpu allocator for the time being x86: cpa_flush_array wbinvd should be done on all CPUs x86: bugfix wbinvd() model check instead of family check x86: introduce noxsave boot parameter x86, setup: revert ACPI 3 E820 extended attributes support x86: DMI match for the Sony VGN-Z540N as it needs BIOS reboot
This commit is contained in:
@ -1535,6 +1535,10 @@ and is between 256 and 4096 characters. It is defined in the file
|
|||||||
register save and restore. The kernel will only save
|
register save and restore. The kernel will only save
|
||||||
legacy floating-point registers on task switch.
|
legacy floating-point registers on task switch.
|
||||||
|
|
||||||
|
noxsave [BUGS=X86] Disables x86 extended register state save
|
||||||
|
and restore using xsave. The kernel will fallback to
|
||||||
|
enabling legacy floating-point and sse state.
|
||||||
|
|
||||||
nohlt [BUGS=ARM,SH] Tells the kernel that the sleep(SH) or
|
nohlt [BUGS=ARM,SH] Tells the kernel that the sleep(SH) or
|
||||||
wfi(ARM) instruction doesn't work correctly and not to
|
wfi(ARM) instruction doesn't work correctly and not to
|
||||||
use it. This is also useful when using JTAG debugger.
|
use it. This is also useful when using JTAG debugger.
|
||||||
|
@ -17,11 +17,6 @@
|
|||||||
|
|
||||||
#define SMAP 0x534d4150 /* ASCII "SMAP" */
|
#define SMAP 0x534d4150 /* ASCII "SMAP" */
|
||||||
|
|
||||||
struct e820_ext_entry {
|
|
||||||
struct e820entry std;
|
|
||||||
u32 ext_flags;
|
|
||||||
} __attribute__((packed));
|
|
||||||
|
|
||||||
static int detect_memory_e820(void)
|
static int detect_memory_e820(void)
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
@ -29,13 +24,21 @@ static int detect_memory_e820(void)
|
|||||||
u32 size, id, edi;
|
u32 size, id, edi;
|
||||||
u8 err;
|
u8 err;
|
||||||
struct e820entry *desc = boot_params.e820_map;
|
struct e820entry *desc = boot_params.e820_map;
|
||||||
static struct e820_ext_entry buf; /* static so it is zeroed */
|
static struct e820entry buf; /* static so it is zeroed */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set this here so that if the BIOS doesn't change this field
|
* Note: at least one BIOS is known which assumes that the
|
||||||
* but still doesn't change %ecx, we're still okay...
|
* buffer pointed to by one e820 call is the same one as
|
||||||
|
* the previous call, and only changes modified fields. Therefore,
|
||||||
|
* we use a temporary buffer and copy the results entry by entry.
|
||||||
|
*
|
||||||
|
* This routine deliberately does not try to account for
|
||||||
|
* ACPI 3+ extended attributes. This is because there are
|
||||||
|
* BIOSes in the field which report zero for the valid bit for
|
||||||
|
* all ranges, and we don't currently make any use of the
|
||||||
|
* other attribute bits. Revisit this if we see the extended
|
||||||
|
* attribute bits deployed in a meaningful way in the future.
|
||||||
*/
|
*/
|
||||||
buf.ext_flags = 1;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
size = sizeof buf;
|
size = sizeof buf;
|
||||||
@ -66,13 +69,7 @@ static int detect_memory_e820(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ACPI 3.0 added the extended flags support. If bit 0
|
*desc++ = buf;
|
||||||
in the extended flags is zero, we're supposed to simply
|
|
||||||
ignore the entry -- a backwards incompatible change! */
|
|
||||||
if (size > 20 && !(buf.ext_flags & 1))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
*desc++ = buf.std;
|
|
||||||
count++;
|
count++;
|
||||||
} while (next && count < ARRAY_SIZE(boot_params.e820_map));
|
} while (next && count < ARRAY_SIZE(boot_params.e820_map));
|
||||||
|
|
||||||
|
@ -114,6 +114,13 @@ DEFINE_PER_CPU_PAGE_ALIGNED(struct gdt_page, gdt_page) = { .gdt = {
|
|||||||
} };
|
} };
|
||||||
EXPORT_PER_CPU_SYMBOL_GPL(gdt_page);
|
EXPORT_PER_CPU_SYMBOL_GPL(gdt_page);
|
||||||
|
|
||||||
|
static int __init x86_xsave_setup(char *s)
|
||||||
|
{
|
||||||
|
setup_clear_cpu_cap(X86_FEATURE_XSAVE);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
__setup("noxsave", x86_xsave_setup);
|
||||||
|
|
||||||
#ifdef CONFIG_X86_32
|
#ifdef CONFIG_X86_32
|
||||||
static int cachesize_override __cpuinitdata = -1;
|
static int cachesize_override __cpuinitdata = -1;
|
||||||
static int disable_x86_serial_nr __cpuinitdata = 1;
|
static int disable_x86_serial_nr __cpuinitdata = 1;
|
||||||
|
@ -232,6 +232,14 @@ static struct dmi_system_id __initdata reboot_dmi_table[] = {
|
|||||||
DMI_MATCH(DMI_PRODUCT_NAME, "Dell DXP061"),
|
DMI_MATCH(DMI_PRODUCT_NAME, "Dell DXP061"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{ /* Handle problems with rebooting on Sony VGN-Z540N */
|
||||||
|
.callback = set_bios_reboot,
|
||||||
|
.ident = "Sony VGN-Z540N",
|
||||||
|
.matches = {
|
||||||
|
DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
|
||||||
|
DMI_MATCH(DMI_PRODUCT_NAME, "VGN-Z540N"),
|
||||||
|
},
|
||||||
|
},
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -160,8 +160,10 @@ static ssize_t __init setup_pcpu_remap(size_t static_size)
|
|||||||
/*
|
/*
|
||||||
* If large page isn't supported, there's no benefit in doing
|
* If large page isn't supported, there's no benefit in doing
|
||||||
* this. Also, on non-NUMA, embedding is better.
|
* this. Also, on non-NUMA, embedding is better.
|
||||||
|
*
|
||||||
|
* NOTE: disabled for now.
|
||||||
*/
|
*/
|
||||||
if (!cpu_has_pse || !pcpu_need_numa())
|
if (true || !cpu_has_pse || !pcpu_need_numa())
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -153,7 +153,7 @@ static void __cpa_flush_all(void *arg)
|
|||||||
*/
|
*/
|
||||||
__flush_tlb_all();
|
__flush_tlb_all();
|
||||||
|
|
||||||
if (cache && boot_cpu_data.x86_model >= 4)
|
if (cache && boot_cpu_data.x86 >= 4)
|
||||||
wbinvd();
|
wbinvd();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,6 +204,11 @@ static void cpa_flush_range(unsigned long start, int numpages, int cache)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void wbinvd_local(void *unused)
|
||||||
|
{
|
||||||
|
wbinvd();
|
||||||
|
}
|
||||||
|
|
||||||
static void cpa_flush_array(unsigned long *start, int numpages, int cache,
|
static void cpa_flush_array(unsigned long *start, int numpages, int cache,
|
||||||
int in_flags, struct page **pages)
|
int in_flags, struct page **pages)
|
||||||
{
|
{
|
||||||
@ -218,8 +223,9 @@ static void cpa_flush_array(unsigned long *start, int numpages, int cache,
|
|||||||
|
|
||||||
/* 4M threshold */
|
/* 4M threshold */
|
||||||
if (numpages >= 1024) {
|
if (numpages >= 1024) {
|
||||||
if (boot_cpu_data.x86_model >= 4)
|
if (boot_cpu_data.x86 >= 4)
|
||||||
wbinvd();
|
on_each_cpu(wbinvd_local, NULL, 1);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user