Skip to content

Commit 78b020d

Browse files
author
Ingo Molnar
committed
Merge branches 'x86/cleanups', 'x86/kexec', 'x86/mce2' and 'linus' into x86/core
4 parents bf5172d + fee7b0d + 5490fa9 + 16b71fd commit 78b020d

320 files changed

Lines changed: 6530 additions & 3656 deletions

File tree

Some content is hidden

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

‎Documentation/RCU/checklist.txt‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,15 @@ over a rather long period of time, but improvements are always welcome!
298298

299299
Note that, rcu_assign_pointer() and rcu_dereference() relate to
300300
SRCU just as they do to other forms of RCU.
301+
302+
15. The whole point of call_rcu(), synchronize_rcu(), and friends
303+
is to wait until all pre-existing readers have finished before
304+
carrying out some otherwise-destructive operation. It is
305+
therefore critically important to -first- remove any path
306+
that readers can follow that could be affected by the
307+
destructive operation, and -only- -then- invoke call_rcu(),
308+
synchronize_rcu(), or friends.
309+
310+
Because these primitives only wait for pre-existing readers,
311+
it is the caller's responsibility to guarantee safety to
312+
any subsequent readers.

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,3 +335,12 @@ Why: In 2.6.18 the Secmark concept was introduced to replace the "compat_net"
335335
Secmark, it is time to deprecate the older mechanism and start the
336336
process of removing the old code.
337337
Who: Paul Moore <paul.moore@hp.com>
338+
---------------------------
339+
340+
What: sysfs ui for changing p4-clockmod parameters
341+
When: September 2009
342+
Why: See commits 129f8ae9b1b5be94517da76009ea956e89104ce8 and
343+
e088e4c9cdb618675874becb91b2fd581ee707e6.
344+
Removal is subject to fixing any remaining bugs in ACPI which may
345+
cause the thermal throttling not to happen at the right time.
346+
Who: Dave Jones <davej@redhat.com>, Matthew Garrett <mjg@redhat.com>

‎Documentation/filesystems/squashfs.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Squashfs filesystem features versus Cramfs:
2222

2323
Squashfs Cramfs
2424

25-
Max filesystem size: 2^64 16 MiB
25+
Max filesystem size: 2^64 256 MiB
2626
Max file size: ~ 2 TiB 16 MiB
2727
Max files: unlimited unlimited
2828
Max directories: unlimited unlimited

‎Documentation/networking/ipv6.txt‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
Options for the ipv6 module are supplied as parameters at load time.
3+
4+
Module options may be given as command line arguments to the insmod
5+
or modprobe command, but are usually specified in either the
6+
/etc/modules.conf or /etc/modprobe.conf configuration file, or in a
7+
distro-specific configuration file.
8+
9+
The available ipv6 module parameters are listed below. If a parameter
10+
is not specified the default value is used.
11+
12+
The parameters are as follows:
13+
14+
disable
15+
16+
Specifies whether to load the IPv6 module, but disable all
17+
its functionality. This might be used when another module
18+
has a dependency on the IPv6 module being loaded, but no
19+
IPv6 addresses or operations are desired.
20+
21+
The possible values and their effects are:
22+
23+
0
24+
IPv6 is enabled.
25+
26+
This is the default value.
27+
28+
1
29+
IPv6 is disabled.
30+
31+
No IPv6 addresses will be added to interfaces, and
32+
it will not be possible to open an IPv6 socket.
33+
34+
A reboot is required to enable IPv6.
35+

‎Documentation/x86/earlyprintk.txt‎

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
2+
Mini-HOWTO for using the earlyprintk=dbgp boot option with a
3+
USB2 Debug port key and a debug cable, on x86 systems.
4+
5+
You need two computers, the 'USB debug key' special gadget and
6+
and two USB cables, connected like this:
7+
8+
[host/target] <-------> [USB debug key] <-------> [client/console]
9+
10+
1. There are three specific hardware requirements:
11+
12+
a.) Host/target system needs to have USB debug port capability.
13+
14+
You can check this capability by looking at a 'Debug port' bit in
15+
the lspci -vvv output:
16+
17+
# lspci -vvv
18+
...
19+
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
20+
Subsystem: Lenovo ThinkPad T61
21+
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
22+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
23+
Latency: 0
24+
Interrupt: pin D routed to IRQ 19
25+
Region 0: Memory at fe227000 (32-bit, non-prefetchable) [size=1K]
26+
Capabilities: [50] Power Management version 2
27+
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
28+
Status: D0 PME-Enable- DSel=0 DScale=0 PME+
29+
Capabilities: [58] Debug port: BAR=1 offset=00a0
30+
^^^^^^^^^^^ <==================== [ HERE ]
31+
Kernel driver in use: ehci_hcd
32+
Kernel modules: ehci-hcd
33+
...
34+
35+
( If your system does not list a debug port capability then you probably
36+
wont be able to use the USB debug key. )
37+
38+
b.) You also need a Netchip USB debug cable/key:
39+
40+
http://www.plxtech.com/products/NET2000/NET20DC/default.asp
41+
42+
This is a small blue plastic connector with two USB connections,
43+
it draws power from its USB connections.
44+
45+
c.) Thirdly, you need a second client/console system with a regular USB port.
46+
47+
2. Software requirements:
48+
49+
a.) On the host/target system:
50+
51+
You need to enable the following kernel config option:
52+
53+
CONFIG_EARLY_PRINTK_DBGP=y
54+
55+
And you need to add the boot command line: "earlyprintk=dbgp".
56+
(If you are using Grub, append it to the 'kernel' line in
57+
/etc/grub.conf)
58+
59+
NOTE: normally earlyprintk console gets turned off once the
60+
regular console is alive - use "earlyprintk=dbgp,keep" to keep
61+
this channel open beyond early bootup. This can be useful for
62+
debugging crashes under Xorg, etc.
63+
64+
b.) On the client/console system:
65+
66+
You should enable the following kernel config option:
67+
68+
CONFIG_USB_SERIAL_DEBUG=y
69+
70+
On the next bootup with the modified kernel you should
71+
get a /dev/ttyUSBx device(s).
72+
73+
Now this channel of kernel messages is ready to be used: start
74+
your favorite terminal emulator (minicom, etc.) and set
75+
it up to use /dev/ttyUSB0 - or use a raw 'cat /dev/ttyUSBx' to
76+
see the raw output.
77+
78+
c.) On Nvidia Southbridge based systems: the kernel will try to probe
79+
and find out which port has debug device connected.
80+
81+
3. Testing that it works fine:
82+
83+
You can test the output by using earlyprintk=dbgp,keep and provoking
84+
kernel messages on the host/target system. You can provoke a harmless
85+
kernel message by for example doing:
86+
87+
echo h > /proc/sysrq-trigger
88+
89+
On the host/target system you should see this help line in "dmesg" output:
90+
91+
SysRq : HELP : loglevel(0-9) reBoot Crashdump terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount show-blocked-tasks(W) dump-ftrace-buffer(Z)
92+
93+
On the client/console system do:
94+
95+
cat /dev/ttyUSB0
96+
97+
And you should see the help line above displayed shortly after you've
98+
provoked it on the host system.
99+
100+
If it does not work then please ask about it on the linux-kernel@vger.kernel.org
101+
mailing list or contact the x86 maintainers.

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 2
22
PATCHLEVEL = 6
33
SUBLEVEL = 29
4-
EXTRAVERSION = -rc6
4+
EXTRAVERSION = -rc7
55
NAME = Erotic Pickled Herring
66

77
# *DOCUMENTATION*

‎arch/alpha/mm/init.c‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,21 @@ callback_init(void * kernel_end)
189189

190190
if (alpha_using_srm) {
191191
static struct vm_struct console_remap_vm;
192-
unsigned long vaddr = VMALLOC_START;
192+
unsigned long nr_pages = 0;
193+
unsigned long vaddr;
193194
unsigned long i, j;
194195

196+
/* calculate needed size */
197+
for (i = 0; i < crb->map_entries; ++i)
198+
nr_pages += crb->map[i].count;
199+
200+
/* register the vm area */
201+
console_remap_vm.flags = VM_ALLOC;
202+
console_remap_vm.size = nr_pages << PAGE_SHIFT;
203+
vm_area_register_early(&console_remap_vm, PAGE_SIZE);
204+
205+
vaddr = (unsigned long)console_remap_vm.addr;
206+
195207
/* Set up the third level PTEs and update the virtual
196208
addresses of the CRB entries. */
197209
for (i = 0; i < crb->map_entries; ++i) {
@@ -213,12 +225,6 @@ callback_init(void * kernel_end)
213225
vaddr += PAGE_SIZE;
214226
}
215227
}
216-
217-
/* Let vmalloc know that we've allocated some space. */
218-
console_remap_vm.flags = VM_ALLOC;
219-
console_remap_vm.addr = (void *) VMALLOC_START;
220-
console_remap_vm.size = vaddr - VMALLOC_START;
221-
vmlist = &console_remap_vm;
222228
}
223229

224230
callback_init_done = 1;

‎arch/arm/kernel/setup.c‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,13 @@ static void __init cacheid_init(void)
233233
unsigned int cachetype = read_cpuid_cachetype();
234234
unsigned int arch = cpu_architecture();
235235

236-
if (arch >= CPU_ARCH_ARMv7) {
237-
cacheid = CACHEID_VIPT_NONALIASING;
238-
if ((cachetype & (3 << 14)) == 1 << 14)
239-
cacheid |= CACHEID_ASID_TAGGED;
240-
} else if (arch >= CPU_ARCH_ARMv6) {
241-
if (cachetype & (1 << 23))
236+
if (arch >= CPU_ARCH_ARMv6) {
237+
if ((cachetype & (7 << 29)) == 4 << 29) {
238+
/* ARMv7 register format */
239+
cacheid = CACHEID_VIPT_NONALIASING;
240+
if ((cachetype & (3 << 14)) == 1 << 14)
241+
cacheid |= CACHEID_ASID_TAGGED;
242+
} else if (cachetype & (1 << 23))
242243
cacheid = CACHEID_VIPT_ALIASING;
243244
else
244245
cacheid = CACHEID_VIPT_NONALIASING;

‎arch/arm/mach-at91/at91sam9263_devices.c‎

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,111 @@ void __init at91_add_device_mmc(short mmc_id, struct at91_mmc_data *data)
347347
void __init at91_add_device_mmc(short mmc_id, struct at91_mmc_data *data) {}
348348
#endif
349349

350+
/* --------------------------------------------------------------------
351+
* Compact Flash (PCMCIA or IDE)
352+
* -------------------------------------------------------------------- */
353+
354+
#if defined(CONFIG_AT91_CF) || defined(CONFIG_AT91_CF_MODULE) || \
355+
defined(CONFIG_BLK_DEV_IDE_AT91) || defined(CONFIG_BLK_DEV_IDE_AT91_MODULE)
356+
357+
static struct at91_cf_data cf0_data;
358+
359+
static struct resource cf0_resources[] = {
360+
[0] = {
361+
.start = AT91_CHIPSELECT_4,
362+
.end = AT91_CHIPSELECT_4 + SZ_256M - 1,
363+
.flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT,
364+
}
365+
};
366+
367+
static struct platform_device cf0_device = {
368+
.id = 0,
369+
.dev = {
370+
.platform_data = &cf0_data,
371+
},
372+
.resource = cf0_resources,
373+
.num_resources = ARRAY_SIZE(cf0_resources),
374+
};
375+
376+
static struct at91_cf_data cf1_data;
377+
378+
static struct resource cf1_resources[] = {
379+
[0] = {
380+
.start = AT91_CHIPSELECT_5,
381+
.end = AT91_CHIPSELECT_5 + SZ_256M - 1,
382+
.flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT,
383+
}
384+
};
385+
386+
static struct platform_device cf1_device = {
387+
.id = 1,
388+
.dev = {
389+
.platform_data = &cf1_data,
390+
},
391+
.resource = cf1_resources,
392+
.num_resources = ARRAY_SIZE(cf1_resources),
393+
};
394+
395+
void __init at91_add_device_cf(struct at91_cf_data *data)
396+
{
397+
unsigned long ebi0_csa;
398+
struct platform_device *pdev;
399+
400+
if (!data)
401+
return;
402+
403+
/*
404+
* assign CS4 or CS5 to SMC with Compact Flash logic support,
405+
* we assume SMC timings are configured by board code,
406+
* except True IDE where timings are controlled by driver
407+
*/
408+
ebi0_csa = at91_sys_read(AT91_MATRIX_EBI0CSA);
409+
switch (data->chipselect) {
410+
case 4:
411+
at91_set_A_periph(AT91_PIN_PD6, 0); /* EBI0_NCS4/CFCS0 */
412+
ebi0_csa |= AT91_MATRIX_EBI0_CS4A_SMC_CF1;
413+
cf0_data = *data;
414+
pdev = &cf0_device;
415+
break;
416+
case 5:
417+
at91_set_A_periph(AT91_PIN_PD7, 0); /* EBI0_NCS5/CFCS1 */
418+
ebi0_csa |= AT91_MATRIX_EBI0_CS5A_SMC_CF2;
419+
cf1_data = *data;
420+
pdev = &cf1_device;
421+
break;
422+
default:
423+
printk(KERN_ERR "AT91 CF: bad chip-select requested (%u)\n",
424+
data->chipselect);
425+
return;
426+
}
427+
at91_sys_write(AT91_MATRIX_EBI0CSA, ebi0_csa);
428+
429+
if (data->det_pin) {
430+
at91_set_gpio_input(data->det_pin, 1);
431+
at91_set_deglitch(data->det_pin, 1);
432+
}
433+
434+
if (data->irq_pin) {
435+
at91_set_gpio_input(data->irq_pin, 1);
436+
at91_set_deglitch(data->irq_pin, 1);
437+
}
438+
439+
if (data->vcc_pin)
440+
/* initially off */
441+
at91_set_gpio_output(data->vcc_pin, 0);
442+
443+
/* enable EBI controlled pins */
444+
at91_set_A_periph(AT91_PIN_PD5, 1); /* NWAIT */
445+
at91_set_A_periph(AT91_PIN_PD8, 0); /* CFCE1 */
446+
at91_set_A_periph(AT91_PIN_PD9, 0); /* CFCE2 */
447+
at91_set_A_periph(AT91_PIN_PD14, 0); /* CFNRW */
448+
449+
pdev->name = (data->flags & AT91_CF_TRUE_IDE) ? "at91_ide" : "at91_cf";
450+
platform_device_register(pdev);
451+
}
452+
#else
453+
void __init at91_add_device_cf(struct at91_cf_data *data) {}
454+
#endif
350455

351456
/* --------------------------------------------------------------------
352457
* NAND / SmartMedia

‎arch/arm/mach-at91/include/mach/board.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ struct at91_cf_data {
5656
u8 vcc_pin; /* power switching */
5757
u8 rst_pin; /* card reset */
5858
u8 chipselect; /* EBI Chip Select number */
59+
u8 flags;
60+
#define AT91_CF_TRUE_IDE 0x01
61+
#define AT91_IDE_SWAP_A0_A2 0x02
5962
};
6063
extern void __init at91_add_device_cf(struct at91_cf_data *data);
6164

0 commit comments

Comments
 (0)