Skip to content

Commit bfd4bda

Browse files
author
David Woodhouse
committed
Merge with master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
2 parents 488f2ea + b2d84f0 commit bfd4bda

225 files changed

Lines changed: 9938 additions & 3313 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/aoe/aoe.txt‎

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ The EtherDrive (R) HOWTO for users of 2.6 kernels is found at ...
44

55
It has many tips and hints!
66

7+
The aoetools are userland programs that are designed to work with this
8+
driver. The aoetools are on sourceforge.
9+
10+
http://aoetools.sourceforge.net/
11+
12+
The scripts in this Documentation/aoe directory are intended to
13+
document the use of the driver and are not necessary if you install
14+
the aoetools.
15+
16+
717
CREATING DEVICE NODES
818

919
Users of udev should find the block device nodes created
@@ -35,14 +45,15 @@ USING DEVICE NODES
3545

3646
"echo eth2 eth4 > /dev/etherd/interfaces" tells the aoe driver to
3747
limit ATA over Ethernet traffic to eth2 and eth4. AoE traffic from
38-
untrusted networks should be ignored as a matter of security.
48+
untrusted networks should be ignored as a matter of security. See
49+
also the aoe_iflist driver option described below.
3950

4051
"echo > /dev/etherd/discover" tells the driver to find out what AoE
4152
devices are available.
4253

4354
These character devices may disappear and be replaced by sysfs
44-
counterparts, so distribution maintainers are encouraged to create
45-
scripts that use these devices.
55+
counterparts. Using the commands in aoetools insulates users from
56+
these implementation details.
4657

4758
The block devices are named like this:
4859

@@ -66,7 +77,8 @@ USING SYSFS
6677
through which we are communicating with the remote AoE device.
6778

6879
There is a script in this directory that formats this information
69-
in a convenient way.
80+
in a convenient way. Users with aoetools can use the aoe-stat
81+
command.
7082

7183
root@makki root# sh Documentation/aoe/status.sh
7284
e10.0 eth3 up
@@ -89,3 +101,23 @@ USING SYSFS
89101
e4.7 eth1 up
90102
e4.8 eth1 up
91103
e4.9 eth1 up
104+
105+
Use /sys/module/aoe/parameters/aoe_iflist (or better, the driver
106+
option discussed below) instead of /dev/etherd/interfaces to limit
107+
AoE traffic to the network interfaces in the given
108+
whitespace-separated list. Unlike the old character device, the
109+
sysfs entry can be read from as well as written to.
110+
111+
It's helpful to trigger discovery after setting the list of allowed
112+
interfaces. The aoetools package provides an aoe-discover script
113+
for this purpose. You can also directly use the
114+
/dev/etherd/discover special file described above.
115+
116+
DRIVER OPTIONS
117+
118+
There is a boot option for the built-in aoe driver and a
119+
corresponding module parameter, aoe_iflist. Without this option,
120+
all network interfaces may be used for ATA over Ethernet. Here is a
121+
usage example for the module parameter.
122+
123+
modprobe aoe_iflist="eth1 eth3"

‎Documentation/aoe/status.sh‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ test ! -d "$sysd/block" && {
1414
echo "$me Error: sysfs is not mounted" 1>&2
1515
exit 1
1616
}
17-
test -z "`lsmod | grep '^aoe'`" && {
18-
echo "$me Error: aoe module is not loaded" 1>&2
19-
exit 1
20-
}
2117

2218
for d in `ls -d $sysd/block/etherd* 2>/dev/null | grep -v p` end; do
2319
# maybe ls comes up empty, so we use "end"

‎Documentation/pci.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ pci_for_each_dev_reverse() Superseded by pci_find_device_reverse()
279279
pci_for_each_bus() Superseded by pci_find_next_bus()
280280
pci_find_device() Superseded by pci_get_device()
281281
pci_find_subsys() Superseded by pci_get_subsys()
282+
pci_find_slot() Superseded by pci_get_slot()
282283
pcibios_find_class() Superseded by pci_get_class()
283284
pci_find_class() Superseded by pci_get_class()
284285
pci_(read|write)_*_nodev() Superseded by pci_bus_(read|write)_*()

‎Documentation/power/pci.txt‎

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -165,40 +165,9 @@ Description:
165165
These functions are intended for use by individual drivers, and are defined in
166166
struct pci_driver:
167167

168-
int (*save_state) (struct pci_dev *dev, u32 state);
169-
int (*suspend) (struct pci_dev *dev, u32 state);
168+
int (*suspend) (struct pci_dev *dev, pm_message_t state);
170169
int (*resume) (struct pci_dev *dev);
171-
int (*enable_wake) (struct pci_dev *dev, u32 state, int enable);
172-
173-
174-
save_state
175-
----------
176-
177-
Usage:
178-
179-
if (dev->driver && dev->driver->save_state)
180-
dev->driver->save_state(dev,state);
181-
182-
The driver should use this callback to save device state. It should take into
183-
account the current state of the device and the requested state in order to
184-
avoid any unnecessary operations.
185-
186-
For example, a video card that supports all 4 states (D0-D3), all controller
187-
context is preserved when entering D1, but the screen is placed into a low power
188-
state (blanked).
189-
190-
The driver can also interpret this function as a notification that it may be
191-
entering a sleep state in the near future. If it knows that the device cannot
192-
enter the requested state, either because of lack of support for it, or because
193-
the device is middle of some critical operation, then it should fail.
194-
195-
This function should not be used to set any state in the device or the driver
196-
because the device may not actually enter the sleep state (e.g. another driver
197-
later causes causes a global state transition to fail).
198-
199-
Note that in intermediate low power states, a device's I/O and memory spaces may
200-
be disabled and may not be available in subsequent transitions to lower power
201-
states.
170+
int (*enable_wake) (struct pci_dev *dev, pci_power_t state, int enable);
202171

203172

204173
suspend

‎arch/alpha/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ config ISA
280280
(MCA) or VESA. ISA is an older system, now being displaced by PCI;
281281
newer boards don't support it. If you have ISA, say Y, otherwise N.
282282

283+
config ISA_DMA_API
284+
bool
285+
default y
286+
283287
config PCI
284288
bool
285289
depends on !ALPHA_JENSEN

‎arch/arm/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ config ISA_DMA
266266
depends on FOOTBRIDGE_HOST || ARCH_SHARK
267267
default y
268268

269+
config ISA_DMA_API
270+
bool
271+
default y
272+
269273
config PCI
270274
bool "PCI support" if ARCH_INTEGRATOR_AP
271275
default y if ARCH_SHARK || FOOTBRIDGE_HOST || ARCH_IOP3XX || ARCH_IXP4XX || ARCH_IXP2000

‎arch/arm/boot/compressed/head.S‎

Lines changed: 22 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,30 @@
1818
* Please select one of the following when turning on debugging.
1919
*/
2020
#ifdef DEBUG
21-
#if defined(CONFIG_DEBUG_DC21285_PORT)
22-
.macro loadsp, rb
23-
mov \rb, #0x42000000
24-
.endm
25-
.macro writeb, rb
26-
str \rb, [r3, #0x160]
27-
.endm
28-
#elif defined(CONFIG_DEBUG_ICEDCC)
21+
22+
#include <asm/arch/debug-macro.S>
23+
24+
#if defined(CONFIG_DEBUG_ICEDCC)
2925
.macro loadsp, rb
3026
.endm
31-
.macro writeb, rb
32-
mcr p14, 0, \rb, c0, c1, 0
33-
.endm
34-
#elif defined(CONFIG_FOOTBRIDGE)
35-
.macro loadsp, rb
36-
mov \rb, #0x7c000000
27+
.macro writeb, ch, rb
28+
mcr p14, 0, \ch, c0, c1, 0
3729
.endm
38-
.macro writeb, rb
39-
strb \rb, [r3, #0x3f8]
30+
#else
31+
.macro writeb, ch, rb
32+
senduart \ch, \rb
4033
.endm
41-
#elif defined(CONFIG_ARCH_RPC)
34+
35+
#if defined(CONFIG_FOOTBRIDGE) || \
36+
defined(CONFIG_ARCH_RPC) || \
37+
defined(CONFIG_ARCH_INTEGRATOR) || \
38+
defined(CONFIG_ARCH_PXA) || \
39+
defined(CONFIG_ARCH_IXP4XX) || \
40+
defined(CONFIG_ARCH_IXP2000) || \
41+
defined(CONFIG_ARCH_LH7A40X) || \
42+
defined(CONFIG_ARCH_OMAP)
4243
.macro loadsp, rb
43-
mov \rb, #0x03000000
44-
orr \rb, \rb, #0x00010000
45-
.endm
46-
.macro writeb, rb
47-
strb \rb, [r3, #0x3f8 << 2]
48-
.endm
49-
#elif defined(CONFIG_ARCH_INTEGRATOR)
50-
.macro loadsp, rb
51-
mov \rb, #0x16000000
52-
.endm
53-
.macro writeb, rb
54-
strb \rb, [r3, #0]
55-
.endm
56-
#elif defined(CONFIG_ARCH_PXA) /* Xscale-type */
57-
.macro loadsp, rb
58-
mov \rb, #0x40000000
59-
orr \rb, \rb, #0x00100000
60-
.endm
61-
.macro writeb, rb
62-
strb \rb, [r3, #0]
44+
addruart \rb
6345
.endm
6446
#elif defined(CONFIG_ARCH_SA1100)
6547
.macro loadsp, rb
@@ -70,64 +52,21 @@
7052
add \rb, \rb, #0x00010000 @ Ser1
7153
# endif
7254
.endm
73-
.macro writeb, rb
74-
str \rb, [r3, #0x14] @ UTDR
75-
.endm
76-
#elif defined(CONFIG_ARCH_IXP4XX)
77-
.macro loadsp, rb
78-
mov \rb, #0xc8000000
79-
.endm
80-
.macro writeb, rb
81-
str \rb, [r3, #0]
82-
#elif defined(CONFIG_ARCH_IXP2000)
83-
.macro loadsp, rb
84-
mov \rb, #0xc0000000
85-
orr \rb, \rb, #0x00030000
86-
.endm
87-
.macro writeb, rb
88-
str \rb, [r3, #0]
89-
.endm
90-
#elif defined(CONFIG_ARCH_LH7A40X)
91-
.macro loadsp, rb
92-
ldr \rb, =0x80000700 @ UART2 UARTBASE
93-
.endm
94-
.macro writeb, rb
95-
strb \rb, [r3, #0]
96-
.endm
97-
#elif defined(CONFIG_ARCH_OMAP)
98-
.macro loadsp, rb
99-
mov \rb, #0xff000000 @ physical base address
100-
add \rb, \rb, #0x00fb0000
101-
#if defined(CONFIG_OMAP_LL_DEBUG_UART2) || defined(CONFIG_OMAP_LL_DEBUG_UART3)
102-
add \rb, \rb, #0x00000800
103-
#endif
104-
#ifdef CONFIG_OMAP_LL_DEBUG_UART3
105-
add \rb, \rb, #0x00009000
106-
#endif
107-
.endm
108-
.macro writeb, rb
109-
strb \rb, [r3]
110-
.endm
11155
#elif defined(CONFIG_ARCH_IOP331)
11256
.macro loadsp, rb
11357
mov \rb, #0xff000000
11458
orr \rb, \rb, #0x00ff0000
11559
orr \rb, \rb, #0x0000f700 @ location of the UART
11660
.endm
117-
.macro writeb, rb
118-
str \rb, [r3, #0]
119-
.endm
12061
#elif defined(CONFIG_ARCH_S3C2410)
121-
.macro loadsp, rb
62+
.macro loadsp, rb
12263
mov \rb, #0x50000000
12364
add \rb, \rb, #0x4000 * CONFIG_S3C2410_LOWLEVEL_UART_PORT
12465
.endm
125-
.macro writeb, rb
126-
strb \rb, [r3, #0x20]
127-
.endm
12866
#else
12967
#error no serial architecture defined
13068
#endif
69+
#endif
13170
#endif
13271

13372
.macro kputc,val
@@ -734,7 +673,7 @@ puts: loadsp r3
734673
1: ldrb r2, [r0], #1
735674
teq r2, #0
736675
moveq pc, lr
737-
2: writeb r2
676+
2: writeb r2, r3
738677
mov r1, #0x00020000
739678
3: subs r1, r1, #1
740679
bne 3b

‎arch/arm/mach-imx/generic.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <linux/init.h>
2727
#include <linux/kernel.h>
2828
#include <linux/module.h>
29+
#include <asm/arch/imxfb.h>
2930
#include <asm/hardware.h>
3031

3132
#include <asm/mach/map.h>
@@ -228,6 +229,14 @@ static struct platform_device imx_uart2_device = {
228229
.resource = imx_uart2_resources,
229230
};
230231

232+
static struct imxfb_mach_info imx_fb_info;
233+
234+
void __init set_imx_fb_info(struct imxfb_mach_info *hard_imx_fb_info)
235+
{
236+
memcpy(&imx_fb_info,hard_imx_fb_info,sizeof(struct imxfb_mach_info));
237+
}
238+
EXPORT_SYMBOL(set_imx_fb_info);
239+
231240
static struct resource imxfb_resources[] = {
232241
[0] = {
233242
.start = 0x00205000,
@@ -241,9 +250,16 @@ static struct resource imxfb_resources[] = {
241250
},
242251
};
243252

253+
static u64 fb_dma_mask = ~(u64)0;
254+
244255
static struct platform_device imxfb_device = {
245256
.name = "imx-fb",
246257
.id = 0,
258+
.dev = {
259+
.platform_data = &imx_fb_info,
260+
.dma_mask = &fb_dma_mask,
261+
.coherent_dma_mask = 0xffffffff,
262+
},
247263
.num_resources = ARRAY_SIZE(imxfb_resources),
248264
.resource = imxfb_resources,
249265
};

‎arch/arm/mach-integrator/core.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ integrator_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
216216

217217
write_seqlock(&xtime_lock);
218218

219-
// ...clear the interrupt
219+
/*
220+
* clear the interrupt
221+
*/
220222
timer1->TimerClear = 1;
221223

222224
timer_tick(regs);
@@ -264,7 +266,7 @@ void __init integrator_time_init(unsigned long reload, unsigned int ctrl)
264266
timer1->TimerValue = timer_reload;
265267
timer1->TimerControl = timer_ctrl;
266268

267-
/*
269+
/*
268270
* Make irqs happen for the system timer
269271
*/
270272
setup_irq(IRQ_TIMERINT1, &integrator_timer_irq);

‎arch/arm/mach-integrator/leds.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void integrator_leds_event(led_event_t ledevt)
3737
unsigned long flags;
3838
const unsigned int dbg_base = IO_ADDRESS(INTEGRATOR_DBG_BASE);
3939
unsigned int update_alpha_leds;
40-
40+
4141
// yup, change the LEDs
4242
local_irq_save(flags);
4343
update_alpha_leds = 0;

0 commit comments

Comments
 (0)