Skip to content

Commit d2fc0ba

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86
* git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86: (78 commits) x86: fix RTC lockdep warning: potential hardirq recursion x86: cpa, micro-optimization x86: cpa, clean up code flow x86: cpa, eliminate CPA_ enum x86: cpa, cleanups x86: implement gbpages support in change_page_attr() x86: support gbpages in pagetable dump x86: add gbpages support to lookup_address x86: add pgtable accessor functions for gbpages x86: add PUD_PAGE_SIZE x86: add feature macros for the gbpages cpuid bit x86: switch direct mapping setup over to set_pte x86: fix page-present check in cpa_flush_range x86: remove cpa warning x86: remove now unused clear_kernel_mapping x86: switch pci-gart over to using set_memory_np() instead of clear_kernel_mapping() x86: cpa selftest, skip non present entries x86: CPA fix pagetable split x86: rename LARGE_PAGE_SIZE to PMD_PAGE_SIZE x86: cpa, fix lookup_address ...
2 parents 93890b7 + 795d45b commit d2fc0ba

68 files changed

Lines changed: 821 additions & 814 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/x86_64/00-INDEX‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
00-INDEX
2+
- This file
3+
boot-options.txt
4+
- AMD64-specific boot options.
5+
cpu-hotplug-spec
6+
- Firmware support for CPU hotplug under Linux/x86-64
7+
fake-numa-for-cpusets
8+
- Using numa=fake and CPUSets for Resource Management
9+
kernel-stacks
10+
- Context-specific per-processor interrupt stacks.
11+
machinecheck
12+
- Configurable sysfs parameters for the x86-64 machine check code.
13+
mm.txt
14+
- Memory layout of x86-64 (4 level page tables, 46 bits physical).
15+
uefi.txt
16+
- Booting Linux via Unified Extensible Firmware Interface.

‎arch/x86/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ config X86_RDC321X
306306
select M486
307307
select X86_REBOOTFIXUPS
308308
select GENERIC_GPIO
309+
select LEDS_CLASS
309310
select LEDS_GPIO
310311
help
311312
This option is needed for RDC R-321x system-on-chip, also known

‎arch/x86/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ KBUILD_AFLAGS += $(cfi) $(cfi-sigframe)
9292
KBUILD_CFLAGS += $(cfi) $(cfi-sigframe)
9393

9494
LDFLAGS := -m elf_$(UTS_MACHINE)
95-
OBJCOPYFLAGS := -O binary -R .note -R .comment -S
9695

9796
# Speed up the build
9897
KBUILD_CFLAGS += -pipe

‎arch/x86/boot/Makefile‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SVGA_MODE := -DSVGA_MODE=NORMAL_VGA
2626
#RAMDISK := -DRAMDISK=512
2727

2828
targets := vmlinux.bin setup.bin setup.elf zImage bzImage
29-
subdir- := compressed
29+
subdir- := compressed
3030

3131
setup-y += a20.o cmdline.o copy.o cpu.o cpucheck.o edd.o
3232
setup-y += header.o main.o mca.o memory.o pm.o pmjump.o
@@ -43,9 +43,17 @@ setup-y += video-vesa.o
4343
setup-y += video-bios.o
4444

4545
targets += $(setup-y)
46-
hostprogs-y := tools/build
46+
hostprogs-y := mkcpustr tools/build
4747

48-
HOSTCFLAGS_build.o := $(LINUXINCLUDE)
48+
HOST_EXTRACFLAGS += $(LINUXINCLUDE)
49+
50+
$(obj)/cpu.o: $(obj)/cpustr.h
51+
52+
quiet_cmd_cpustr = CPUSTR $@
53+
cmd_cpustr = $(obj)/mkcpustr > $@
54+
targets += cpustr.h
55+
$(obj)/cpustr.h: $(obj)/mkcpustr FORCE
56+
$(call if_changed,cpustr)
4957

5058
# ---------------------------------------------------------------------------
5159

@@ -80,6 +88,7 @@ $(obj)/zImage $(obj)/bzImage: $(obj)/setup.bin \
8088
$(call if_changed,image)
8189
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
8290

91+
OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note -R .comment -S
8392
$(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE
8493
$(call if_changed,objcopy)
8594

@@ -90,15 +99,14 @@ $(obj)/setup.elf: $(src)/setup.ld $(SETUP_OBJS) FORCE
9099
$(call if_changed,ld)
91100

92101
OBJCOPYFLAGS_setup.bin := -O binary
93-
94102
$(obj)/setup.bin: $(obj)/setup.elf FORCE
95103
$(call if_changed,objcopy)
96104

97105
$(obj)/compressed/vmlinux: FORCE
98106
$(Q)$(MAKE) $(build)=$(obj)/compressed IMAGE_OFFSET=$(IMAGE_OFFSET) $@
99107

100108
# Set this if you want to pass append arguments to the zdisk/fdimage/isoimage kernel
101-
FDARGS =
109+
FDARGS =
102110
# Set this if you want an initrd included with the zdisk/fdimage/isoimage kernel
103111
FDINITRD =
104112

‎arch/x86/boot/compressed/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ $(obj)/vmlinux: $(src)/vmlinux_$(BITS).lds $(obj)/head_$(BITS).o $(obj)/misc.o $
2222
$(call if_changed,ld)
2323
@:
2424

25+
OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note -R .comment -S
2526
$(obj)/vmlinux.bin: vmlinux FORCE
2627
$(call if_changed,objcopy)
2728

‎arch/x86/boot/compressed/head_64.S‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ startup_32:
8080

8181
#ifdef CONFIG_RELOCATABLE
8282
movl %ebp, %ebx
83-
addl $(LARGE_PAGE_SIZE -1), %ebx
84-
andl $LARGE_PAGE_MASK, %ebx
83+
addl $(PMD_PAGE_SIZE -1), %ebx
84+
andl $PMD_PAGE_MASK, %ebx
8585
#else
8686
movl $CONFIG_PHYSICAL_START, %ebx
8787
#endif
@@ -220,8 +220,8 @@ ENTRY(startup_64)
220220
/* Start with the delta to where the kernel will run at. */
221221
#ifdef CONFIG_RELOCATABLE
222222
leaq startup_32(%rip) /* - $startup_32 */, %rbp
223-
addq $(LARGE_PAGE_SIZE - 1), %rbp
224-
andq $LARGE_PAGE_MASK, %rbp
223+
addq $(PMD_PAGE_SIZE - 1), %rbp
224+
andq $PMD_PAGE_MASK, %rbp
225225
movq %rbp, %rbx
226226
#else
227227
movq $CONFIG_PHYSICAL_START, %rbp

‎arch/x86/boot/cpu.c‎

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/* -*- linux-c -*- ------------------------------------------------------- *
22
*
33
* Copyright (C) 1991, 1992 Linus Torvalds
4-
* Copyright 2007 rPath, Inc. - All Rights Reserved
4+
* Copyright 2007-2008 rPath, Inc. - All Rights Reserved
55
*
66
* This file is part of the Linux kernel, and is made available under
77
* the terms of the GNU General Public License version 2.
88
*
99
* ----------------------------------------------------------------------- */
1010

1111
/*
12-
* arch/i386/boot/cpu.c
12+
* arch/x86/boot/cpu.c
1313
*
1414
* Check for obligatory CPU features and abort if the features are not
1515
* present.
@@ -19,6 +19,8 @@
1919
#include "bitops.h"
2020
#include <asm/cpufeature.h>
2121

22+
#include "cpustr.h"
23+
2224
static char *cpu_name(int level)
2325
{
2426
static char buf[6];
@@ -35,6 +37,7 @@ int validate_cpu(void)
3537
{
3638
u32 *err_flags;
3739
int cpu_level, req_level;
40+
const unsigned char *msg_strs;
3841

3942
check_cpu(&cpu_level, &req_level, &err_flags);
4043

@@ -51,13 +54,26 @@ int validate_cpu(void)
5154
puts("This kernel requires the following features "
5255
"not present on the CPU:\n");
5356

57+
msg_strs = (const unsigned char *)x86_cap_strs;
58+
5459
for (i = 0; i < NCAPINTS; i++) {
5560
u32 e = err_flags[i];
5661

5762
for (j = 0; j < 32; j++) {
58-
if (e & 1)
59-
printf("%d:%d ", i, j);
60-
63+
int n = (i << 5)+j;
64+
if (*msg_strs < n) {
65+
/* Skip to the next string */
66+
do {
67+
msg_strs++;
68+
} while (*msg_strs);
69+
msg_strs++;
70+
}
71+
if (e & 1) {
72+
if (*msg_strs == n && msg_strs[1])
73+
printf("%s ", msg_strs+1);
74+
else
75+
printf("%d:%d ", i, j);
76+
}
6177
e >>= 1;
6278
}
6379
}

‎arch/x86/boot/mkcpustr.c‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* ----------------------------------------------------------------------- *
2+
*
3+
* Copyright 2008 rPath, Inc. - All Rights Reserved
4+
*
5+
* This file is part of the Linux kernel, and is made available under
6+
* the terms of the GNU General Public License version 2 or (at your
7+
* option) any later version; incorporated herein by reference.
8+
*
9+
* ----------------------------------------------------------------------- */
10+
11+
/*
12+
* This is a host program to preprocess the CPU strings into a
13+
* compact format suitable for the setup code.
14+
*/
15+
16+
#include <stdio.h>
17+
18+
#include "../kernel/cpu/feature_names.c"
19+
20+
#if NCAPFLAGS > 8
21+
# error "Need to adjust the boot code handling of CPUID strings"
22+
#endif
23+
24+
int main(void)
25+
{
26+
int i;
27+
const char *str;
28+
29+
printf("static const char x86_cap_strs[] = \n");
30+
31+
for (i = 0; i < NCAPINTS*32; i++) {
32+
str = x86_cap_flags[i];
33+
34+
if (i == NCAPINTS*32-1) {
35+
/* The last entry must be unconditional; this
36+
also consumes the compiler-added null character */
37+
if (!str)
38+
str = "";
39+
printf("\t\"\\x%02x\"\"%s\"\n", i, str);
40+
} else if (str) {
41+
printf("#if REQUIRED_MASK%d & (1 << %d)\n"
42+
"\t\"\\x%02x\"\"%s\\0\"\n"
43+
"#endif\n",
44+
i >> 5, i & 31, i, str);
45+
}
46+
}
47+
printf("\t;\n");
48+
return 0;
49+
}

‎arch/x86/kernel/Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ obj-$(CONFIG_X86_MSR) += msr.o
3737
obj-$(CONFIG_X86_CPUID) += cpuid.o
3838
obj-$(CONFIG_MICROCODE) += microcode.o
3939
obj-$(CONFIG_PCI) += early-quirks.o
40-
obj-$(CONFIG_APM) += apm_32.o
40+
apm-y := apm_32.o
41+
obj-$(CONFIG_APM) += apm.o
4142
obj-$(CONFIG_X86_SMP) += smp_$(BITS).o smpboot_$(BITS).o tsc_sync.o
4243
obj-$(CONFIG_X86_32_SMP) += smpcommon_32.o
4344
obj-$(CONFIG_X86_64_SMP) += smp_64.o smpboot_64.o tsc_sync.o
@@ -74,7 +75,8 @@ ifdef CONFIG_INPUT_PCSPKR
7475
obj-y += pcspeaker.o
7576
endif
7677

77-
obj-$(CONFIG_SCx200) += scx200_32.o
78+
obj-$(CONFIG_SCx200) += scx200.o
79+
scx200-y += scx200_32.o
7880

7981
###
8082
# 64 bit specific files

‎arch/x86/kernel/cpu/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44

55
obj-y := intel_cacheinfo.o addon_cpuid_features.o
6+
obj-y += feature_names.o
67

78
obj-$(CONFIG_X86_32) += common.o proc.o bugs.o
89
obj-$(CONFIG_X86_32) += amd.o

0 commit comments

Comments
 (0)