diff options
Diffstat (limited to 'arch/powerpc')
114 files changed, 8662 insertions, 1122 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index de88972c5896..fe88418167c5 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -110,8 +110,12 @@ config PPC | |||
110 | default y | 110 | default y |
111 | select HAVE_DYNAMIC_FTRACE | 111 | select HAVE_DYNAMIC_FTRACE |
112 | select HAVE_FTRACE | 112 | select HAVE_FTRACE |
113 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
113 | select HAVE_IDE | 114 | select HAVE_IDE |
115 | select HAVE_IOREMAP_PROT | ||
116 | select HAVE_EFFICIENT_UNALIGNED_ACCESS | ||
114 | select HAVE_KPROBES | 117 | select HAVE_KPROBES |
118 | select HAVE_ARCH_KGDB | ||
115 | select HAVE_KRETPROBES | 119 | select HAVE_KRETPROBES |
116 | select HAVE_LMB | 120 | select HAVE_LMB |
117 | select HAVE_DMA_ATTRS if PPC64 | 121 | select HAVE_DMA_ATTRS if PPC64 |
@@ -199,7 +203,7 @@ config ARCH_HIBERNATION_POSSIBLE | |||
199 | 203 | ||
200 | config ARCH_SUSPEND_POSSIBLE | 204 | config ARCH_SUSPEND_POSSIBLE |
201 | def_bool y | 205 | def_bool y |
202 | depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 | 206 | depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx |
203 | 207 | ||
204 | config PPC_DCR_NATIVE | 208 | config PPC_DCR_NATIVE |
205 | bool | 209 | bool |
@@ -568,11 +572,15 @@ config FSL_GTM | |||
568 | config MCA | 572 | config MCA |
569 | bool | 573 | bool |
570 | 574 | ||
575 | # Platforms that what PCI turned unconditionally just do select PCI | ||
576 | # in their config node. Platforms that want to choose at config | ||
577 | # time should select PPC_PCI_CHOICE | ||
578 | config PPC_PCI_CHOICE | ||
579 | bool | ||
580 | |||
571 | config PCI | 581 | config PCI |
572 | bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \ | 582 | bool "PCI support" if PPC_PCI_CHOICE |
573 | || PPC_MPC52xx || (EMBEDDED && (PPC_PSERIES || PPC_ISERIES)) \ | 583 | default y if !40x && !CPM2 && !8xx && !PPC_83xx \ |
574 | || PPC_PS3 || 44x | ||
575 | default y if !40x && !CPM2 && !8xx && !PPC_MPC512x && !PPC_83xx \ | ||
576 | && !PPC_85xx && !PPC_86xx | 584 | && !PPC_85xx && !PPC_86xx |
577 | default PCI_PERMEDIA if !4xx && !CPM2 && !8xx | 585 | default PCI_PERMEDIA if !4xx && !CPM2 && !8xx |
578 | default PCI_QSPAN if !4xx && !CPM2 && 8xx | 586 | default PCI_QSPAN if !4xx && !CPM2 && 8xx |
@@ -838,6 +846,7 @@ source "crypto/Kconfig" | |||
838 | config PPC_CLOCK | 846 | config PPC_CLOCK |
839 | bool | 847 | bool |
840 | default n | 848 | default n |
849 | select HAVE_CLK | ||
841 | 850 | ||
842 | config PPC_LIB_RHEAP | 851 | config PPC_LIB_RHEAP |
843 | bool | 852 | bool |
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 2840ab69ef4e..8c8aadbe9563 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug | |||
@@ -41,22 +41,6 @@ config HCALL_STATS | |||
41 | This option will add a small amount of overhead to all hypervisor | 41 | This option will add a small amount of overhead to all hypervisor |
42 | calls. | 42 | calls. |
43 | 43 | ||
44 | config DEBUGGER | ||
45 | bool "Enable debugger hooks" | ||
46 | depends on DEBUG_KERNEL | ||
47 | help | ||
48 | Include in-kernel hooks for kernel debuggers. Unless you are | ||
49 | intending to debug the kernel, say N here. | ||
50 | |||
51 | config KGDB | ||
52 | bool "Include kgdb kernel debugger" | ||
53 | depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx) | ||
54 | select DEBUG_INFO | ||
55 | help | ||
56 | Include in-kernel hooks for kgdb, the Linux kernel source level | ||
57 | debugger. See <http://kgdb.sourceforge.net/> for more information. | ||
58 | Unless you are intending to debug the kernel, say N here. | ||
59 | |||
60 | config CODE_PATCHING_SELFTEST | 44 | config CODE_PATCHING_SELFTEST |
61 | bool "Run self-tests of the code-patching code." | 45 | bool "Run self-tests of the code-patching code." |
62 | depends on DEBUG_KERNEL | 46 | depends on DEBUG_KERNEL |
@@ -67,36 +51,9 @@ config FTR_FIXUP_SELFTEST | |||
67 | depends on DEBUG_KERNEL | 51 | depends on DEBUG_KERNEL |
68 | default n | 52 | default n |
69 | 53 | ||
70 | choice | ||
71 | prompt "Serial Port" | ||
72 | depends on KGDB | ||
73 | default KGDB_TTYS1 | ||
74 | |||
75 | config KGDB_TTYS0 | ||
76 | bool "ttyS0" | ||
77 | |||
78 | config KGDB_TTYS1 | ||
79 | bool "ttyS1" | ||
80 | |||
81 | config KGDB_TTYS2 | ||
82 | bool "ttyS2" | ||
83 | |||
84 | config KGDB_TTYS3 | ||
85 | bool "ttyS3" | ||
86 | |||
87 | endchoice | ||
88 | |||
89 | config KGDB_CONSOLE | ||
90 | bool "Enable serial console thru kgdb port" | ||
91 | depends on KGDB && 8xx || CPM2 | ||
92 | help | ||
93 | If you enable this, all serial console messages will be sent | ||
94 | over the gdb stub. | ||
95 | If unsure, say N. | ||
96 | |||
97 | config XMON | 54 | config XMON |
98 | bool "Include xmon kernel debugger" | 55 | bool "Include xmon kernel debugger" |
99 | depends on DEBUGGER | 56 | depends on DEBUG_KERNEL |
100 | help | 57 | help |
101 | Include in-kernel hooks for the xmon kernel monitor/debugger. | 58 | Include in-kernel hooks for the xmon kernel monitor/debugger. |
102 | Unless you are intending to debug the kernel, say N here. | 59 | Unless you are intending to debug the kernel, say N here. |
@@ -126,6 +83,11 @@ config XMON_DISASSEMBLY | |||
126 | to say Y here, unless you're building for a memory-constrained | 83 | to say Y here, unless you're building for a memory-constrained |
127 | system. | 84 | system. |
128 | 85 | ||
86 | config DEBUGGER | ||
87 | bool | ||
88 | depends on KGDB || XMON | ||
89 | default y | ||
90 | |||
129 | config IRQSTACKS | 91 | config IRQSTACKS |
130 | bool "Use separate kernel stacks when processing interrupts" | 92 | bool "Use separate kernel stacks when processing interrupts" |
131 | help | 93 | help |
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 19f83c8f219d..14174aa24074 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -163,12 +163,12 @@ quiet_cmd_flex = FLEX $@ | |||
163 | cmd_flex = $(FLEX) -o$@ $<; cp $@ $@_shipped | 163 | cmd_flex = $(FLEX) -o$@ $<; cp $@ $@_shipped |
164 | 164 | ||
165 | $(obj)/dtc-src/dtc-parser.tab.c: $(src)/dtc-src/dtc-parser.y FORCE | 165 | $(obj)/dtc-src/dtc-parser.tab.c: $(src)/dtc-src/dtc-parser.y FORCE |
166 | $(call if_changed,bison) | 166 | $(call if_changed,bison) |
167 | 167 | ||
168 | $(obj)/dtc-src/dtc-parser.tab.h: $(obj)/dtc-src/dtc-parser.tab.c | 168 | $(obj)/dtc-src/dtc-parser.tab.h: $(obj)/dtc-src/dtc-parser.tab.c |
169 | 169 | ||
170 | $(obj)/dtc-src/dtc-lexer.lex.c: $(src)/dtc-src/dtc-lexer.l FORCE | 170 | $(obj)/dtc-src/dtc-lexer.lex.c: $(src)/dtc-src/dtc-lexer.l FORCE |
171 | $(call if_changed,flex) | 171 | $(call if_changed,flex) |
172 | endif | 172 | endif |
173 | 173 | ||
174 | ############# | 174 | ############# |
diff --git a/arch/powerpc/boot/dts/mpc7448hpc2.dts b/arch/powerpc/boot/dts/mpc7448hpc2.dts index 705c23c14f32..2544f3ecd6e9 100644 --- a/arch/powerpc/boot/dts/mpc7448hpc2.dts +++ b/arch/powerpc/boot/dts/mpc7448hpc2.dts | |||
@@ -18,6 +18,16 @@ | |||
18 | #address-cells = <1>; | 18 | #address-cells = <1>; |
19 | #size-cells = <1>; | 19 | #size-cells = <1>; |
20 | 20 | ||
21 | aliases { | ||
22 | ethernet0 = &enet0; | ||
23 | ethernet1 = &enet1; | ||
24 | |||
25 | serial0 = &serial0; | ||
26 | serial1 = &serial1; | ||
27 | |||
28 | pci0 = &pci0; | ||
29 | }; | ||
30 | |||
21 | cpus { | 31 | cpus { |
22 | #address-cells = <1>; | 32 | #address-cells = <1>; |
23 | #size-cells =<0>; | 33 | #size-cells =<0>; |
@@ -78,7 +88,7 @@ | |||
78 | 88 | ||
79 | }; | 89 | }; |
80 | 90 | ||
81 | ethernet@6200 { | 91 | enet0: ethernet@6200 { |
82 | linux,network-index = <0>; | 92 | linux,network-index = <0>; |
83 | #size-cells = <0>; | 93 | #size-cells = <0>; |
84 | device_type = "network"; | 94 | device_type = "network"; |
@@ -91,7 +101,7 @@ | |||
91 | phy-handle = <&phy8>; | 101 | phy-handle = <&phy8>; |
92 | }; | 102 | }; |
93 | 103 | ||
94 | ethernet@6600 { | 104 | enet1: ethernet@6600 { |
95 | linux,network-index = <1>; | 105 | linux,network-index = <1>; |
96 | #address-cells = <1>; | 106 | #address-cells = <1>; |
97 | #size-cells = <0>; | 107 | #size-cells = <0>; |
@@ -105,7 +115,7 @@ | |||
105 | phy-handle = <&phy9>; | 115 | phy-handle = <&phy9>; |
106 | }; | 116 | }; |
107 | 117 | ||
108 | serial@7808 { | 118 | serial0: serial@7808 { |
109 | device_type = "serial"; | 119 | device_type = "serial"; |
110 | compatible = "ns16550"; | 120 | compatible = "ns16550"; |
111 | reg = <0x7808 0x200>; | 121 | reg = <0x7808 0x200>; |
@@ -114,7 +124,7 @@ | |||
114 | interrupt-parent = <&mpic>; | 124 | interrupt-parent = <&mpic>; |
115 | }; | 125 | }; |
116 | 126 | ||
117 | serial@7c08 { | 127 | serial1: serial@7c08 { |
118 | device_type = "serial"; | 128 | device_type = "serial"; |
119 | compatible = "ns16550"; | 129 | compatible = "ns16550"; |
120 | reg = <0x7c08 0x200>; | 130 | reg = <0x7c08 0x200>; |
@@ -131,7 +141,7 @@ | |||
131 | compatible = "chrp,open-pic"; | 141 | compatible = "chrp,open-pic"; |
132 | device_type = "open-pic"; | 142 | device_type = "open-pic"; |
133 | }; | 143 | }; |
134 | pci@1000 { | 144 | pci0: pci@1000 { |
135 | compatible = "tsi108-pci"; | 145 | compatible = "tsi108-pci"; |
136 | device_type = "pci"; | 146 | device_type = "pci"; |
137 | #interrupt-cells = <1>; | 147 | #interrupt-cells = <1>; |
@@ -184,8 +194,4 @@ | |||
184 | }; | 194 | }; |
185 | }; | 195 | }; |
186 | }; | 196 | }; |
187 | chosen { | ||
188 | linux,stdout-path = "/tsi108@c0000000/serial@7808"; | ||
189 | }; | ||
190 | |||
191 | }; | 197 | }; |
diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts b/arch/powerpc/boot/dts/mpc8313erdb.dts index 3664fb584026..2a94ae0dc8b8 100644 --- a/arch/powerpc/boot/dts/mpc8313erdb.dts +++ b/arch/powerpc/boot/dts/mpc8313erdb.dts | |||
@@ -109,18 +109,38 @@ | |||
109 | reg = <0x200 0x100>; | 109 | reg = <0x200 0x100>; |
110 | }; | 110 | }; |
111 | 111 | ||
112 | i2c@3000 { | 112 | sleep-nexus { |
113 | #address-cells = <1>; | 113 | #address-cells = <1>; |
114 | #size-cells = <0>; | 114 | #size-cells = <1>; |
115 | cell-index = <0>; | 115 | compatible = "simple-bus"; |
116 | compatible = "fsl-i2c"; | 116 | sleep = <&pmc 0x03000000>; |
117 | reg = <0x3000 0x100>; | 117 | ranges; |
118 | interrupts = <14 0x8>; | 118 | |
119 | interrupt-parent = <&ipic>; | 119 | i2c@3000 { |
120 | dfsrr; | 120 | #address-cells = <1>; |
121 | rtc@68 { | 121 | #size-cells = <0>; |
122 | compatible = "dallas,ds1339"; | 122 | cell-index = <0>; |
123 | reg = <0x68>; | 123 | compatible = "fsl-i2c"; |
124 | reg = <0x3000 0x100>; | ||
125 | interrupts = <14 0x8>; | ||
126 | interrupt-parent = <&ipic>; | ||
127 | dfsrr; | ||
128 | rtc@68 { | ||
129 | compatible = "dallas,ds1339"; | ||
130 | reg = <0x68>; | ||
131 | }; | ||
132 | }; | ||
133 | |||
134 | crypto@30000 { | ||
135 | compatible = "fsl,sec2.2", "fsl,sec2.1", | ||
136 | "fsl,sec2.0"; | ||
137 | reg = <0x30000 0x10000>; | ||
138 | interrupts = <11 0x8>; | ||
139 | interrupt-parent = <&ipic>; | ||
140 | fsl,num-channels = <1>; | ||
141 | fsl,channel-fifo-len = <24>; | ||
142 | fsl,exec-units-mask = <0x4c>; | ||
143 | fsl,descriptor-types-mask = <0x0122003f>; | ||
124 | }; | 144 | }; |
125 | }; | 145 | }; |
126 | 146 | ||
@@ -188,37 +208,44 @@ | |||
188 | interrupt-parent = <&ipic>; | 208 | interrupt-parent = <&ipic>; |
189 | interrupts = <38 0x8>; | 209 | interrupts = <38 0x8>; |
190 | phy_type = "utmi_wide"; | 210 | phy_type = "utmi_wide"; |
211 | sleep = <&pmc 0x00300000>; | ||
191 | }; | 212 | }; |
192 | 213 | ||
193 | mdio@24520 { | 214 | enet0: ethernet@24000 { |
194 | #address-cells = <1>; | 215 | #address-cells = <1>; |
195 | #size-cells = <0>; | 216 | #size-cells = <1>; |
196 | compatible = "fsl,gianfar-mdio"; | 217 | sleep = <&pmc 0x20000000>; |
197 | reg = <0x24520 0x20>; | 218 | ranges; |
198 | phy1: ethernet-phy@1 { | ||
199 | interrupt-parent = <&ipic>; | ||
200 | interrupts = <19 0x8>; | ||
201 | reg = <0x1>; | ||
202 | device_type = "ethernet-phy"; | ||
203 | }; | ||
204 | phy4: ethernet-phy@4 { | ||
205 | interrupt-parent = <&ipic>; | ||
206 | interrupts = <20 0x8>; | ||
207 | reg = <0x4>; | ||
208 | device_type = "ethernet-phy"; | ||
209 | }; | ||
210 | }; | ||
211 | 219 | ||
212 | enet0: ethernet@24000 { | ||
213 | cell-index = <0>; | 220 | cell-index = <0>; |
214 | device_type = "network"; | 221 | device_type = "network"; |
215 | model = "eTSEC"; | 222 | model = "eTSEC"; |
216 | compatible = "gianfar"; | 223 | compatible = "gianfar", "simple-bus"; |
217 | reg = <0x24000 0x1000>; | 224 | reg = <0x24000 0x1000>; |
218 | local-mac-address = [ 00 00 00 00 00 00 ]; | 225 | local-mac-address = [ 00 00 00 00 00 00 ]; |
219 | interrupts = <37 0x8 36 0x8 35 0x8>; | 226 | interrupts = <37 0x8 36 0x8 35 0x8>; |
220 | interrupt-parent = <&ipic>; | 227 | interrupt-parent = <&ipic>; |
221 | phy-handle = < &phy1 >; | 228 | phy-handle = < &phy1 >; |
229 | fsl,magic-packet; | ||
230 | |||
231 | mdio@24520 { | ||
232 | #address-cells = <1>; | ||
233 | #size-cells = <0>; | ||
234 | compatible = "fsl,gianfar-mdio"; | ||
235 | reg = <0x24520 0x20>; | ||
236 | phy1: ethernet-phy@1 { | ||
237 | interrupt-parent = <&ipic>; | ||
238 | interrupts = <19 0x8>; | ||
239 | reg = <0x1>; | ||
240 | device_type = "ethernet-phy"; | ||
241 | }; | ||
242 | phy4: ethernet-phy@4 { | ||
243 | interrupt-parent = <&ipic>; | ||
244 | interrupts = <20 0x8>; | ||
245 | reg = <0x4>; | ||
246 | device_type = "ethernet-phy"; | ||
247 | }; | ||
248 | }; | ||
222 | }; | 249 | }; |
223 | 250 | ||
224 | enet1: ethernet@25000 { | 251 | enet1: ethernet@25000 { |
@@ -231,6 +258,8 @@ | |||
231 | interrupts = <34 0x8 33 0x8 32 0x8>; | 258 | interrupts = <34 0x8 33 0x8 32 0x8>; |
232 | interrupt-parent = <&ipic>; | 259 | interrupt-parent = <&ipic>; |
233 | phy-handle = < &phy4 >; | 260 | phy-handle = < &phy4 >; |
261 | sleep = <&pmc 0x10000000>; | ||
262 | fsl,magic-packet; | ||
234 | }; | 263 | }; |
235 | 264 | ||
236 | serial0: serial@4500 { | 265 | serial0: serial@4500 { |
@@ -253,17 +282,6 @@ | |||
253 | interrupt-parent = <&ipic>; | 282 | interrupt-parent = <&ipic>; |
254 | }; | 283 | }; |
255 | 284 | ||
256 | crypto@30000 { | ||
257 | compatible = "fsl,sec2.2", "fsl,sec2.1", "fsl,sec2.0"; | ||
258 | reg = <0x30000 0x10000>; | ||
259 | interrupts = <11 0x8>; | ||
260 | interrupt-parent = <&ipic>; | ||
261 | fsl,num-channels = <1>; | ||
262 | fsl,channel-fifo-len = <24>; | ||
263 | fsl,exec-units-mask = <0x4c>; | ||
264 | fsl,descriptor-types-mask = <0x0122003f>; | ||
265 | }; | ||
266 | |||
267 | /* IPIC | 285 | /* IPIC |
268 | * interrupts cell = <intr #, sense> | 286 | * interrupts cell = <intr #, sense> |
269 | * sense values match linux IORESOURCE_IRQ_* defines: | 287 | * sense values match linux IORESOURCE_IRQ_* defines: |
@@ -277,36 +295,119 @@ | |||
277 | reg = <0x700 0x100>; | 295 | reg = <0x700 0x100>; |
278 | device_type = "ipic"; | 296 | device_type = "ipic"; |
279 | }; | 297 | }; |
298 | |||
299 | pmc: power@b00 { | ||
300 | compatible = "fsl,mpc8313-pmc", "fsl,mpc8349-pmc"; | ||
301 | reg = <0xb00 0x100 0xa00 0x100>; | ||
302 | interrupts = <80 8>; | ||
303 | interrupt-parent = <&ipic>; | ||
304 | fsl,mpc8313-wakeup-timer = <>m1>; | ||
305 | |||
306 | /* Remove this (or change to "okay") if you have | ||
307 | * a REVA3 or later board, if you apply one of the | ||
308 | * workarounds listed in section 8.5 of the board | ||
309 | * manual, or if you are adapting this device tree | ||
310 | * to a different board. | ||
311 | */ | ||
312 | status = "fail"; | ||
313 | }; | ||
314 | |||
315 | gtm1: timer@500 { | ||
316 | compatible = "fsl,mpc8313-gtm", "fsl,gtm"; | ||
317 | reg = <0x500 0x100>; | ||
318 | interrupts = <90 8 78 8 84 8 72 8>; | ||
319 | interrupt-parent = <&ipic>; | ||
320 | }; | ||
321 | |||
322 | timer@600 { | ||
323 | compatible = "fsl,mpc8313-gtm", "fsl,gtm"; | ||
324 | reg = <0x600 0x100>; | ||
325 | interrupts = <91 8 79 8 85 8 73 8>; | ||
326 | interrupt-parent = <&ipic>; | ||
327 | }; | ||
280 | }; | 328 | }; |
281 | 329 | ||
282 | pci0: pci@e0008500 { | 330 | sleep-nexus { |
283 | cell-index = <1>; | 331 | #address-cells = <1>; |
284 | interrupt-map-mask = <0xf800 0x0 0x0 0x7>; | 332 | #size-cells = <1>; |
285 | interrupt-map = < | 333 | compatible = "simple-bus"; |
286 | 334 | sleep = <&pmc 0x00010000>; | |
287 | /* IDSEL 0x0E -mini PCI */ | 335 | ranges; |
288 | 0x7000 0x0 0x0 0x1 &ipic 18 0x8 | 336 | |
289 | 0x7000 0x0 0x0 0x2 &ipic 18 0x8 | 337 | pci0: pci@e0008500 { |
290 | 0x7000 0x0 0x0 0x3 &ipic 18 0x8 | 338 | cell-index = <1>; |
291 | 0x7000 0x0 0x0 0x4 &ipic 18 0x8 | 339 | interrupt-map-mask = <0xf800 0x0 0x0 0x7>; |
292 | 340 | interrupt-map = < | |
293 | /* IDSEL 0x0F - PCI slot */ | 341 | /* IDSEL 0x0E -mini PCI */ |
294 | 0x7800 0x0 0x0 0x1 &ipic 17 0x8 | 342 | 0x7000 0x0 0x0 0x1 &ipic 18 0x8 |
295 | 0x7800 0x0 0x0 0x2 &ipic 18 0x8 | 343 | 0x7000 0x0 0x0 0x2 &ipic 18 0x8 |
296 | 0x7800 0x0 0x0 0x3 &ipic 17 0x8 | 344 | 0x7000 0x0 0x0 0x3 &ipic 18 0x8 |
297 | 0x7800 0x0 0x0 0x4 &ipic 18 0x8>; | 345 | 0x7000 0x0 0x0 0x4 &ipic 18 0x8 |
298 | interrupt-parent = <&ipic>; | 346 | |
299 | interrupts = <66 0x8>; | 347 | /* IDSEL 0x0F - PCI slot */ |
300 | bus-range = <0x0 0x0>; | 348 | 0x7800 0x0 0x0 0x1 &ipic 17 0x8 |
301 | ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000 | 349 | 0x7800 0x0 0x0 0x2 &ipic 18 0x8 |
302 | 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000 | 350 | 0x7800 0x0 0x0 0x3 &ipic 17 0x8 |
303 | 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>; | 351 | 0x7800 0x0 0x0 0x4 &ipic 18 0x8>; |
304 | clock-frequency = <66666666>; | 352 | interrupt-parent = <&ipic>; |
305 | #interrupt-cells = <1>; | 353 | interrupts = <66 0x8>; |
306 | #size-cells = <2>; | 354 | bus-range = <0x0 0x0>; |
307 | #address-cells = <3>; | 355 | ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000 |
308 | reg = <0xe0008500 0x100>; | 356 | 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000 |
309 | compatible = "fsl,mpc8349-pci"; | 357 | 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>; |
310 | device_type = "pci"; | 358 | clock-frequency = <66666666>; |
359 | #interrupt-cells = <1>; | ||
360 | #size-cells = <2>; | ||
361 | #address-cells = <3>; | ||
362 | reg = <0xe0008500 0x100>; | ||
363 | compatible = "fsl,mpc8349-pci"; | ||
364 | device_type = "pci"; | ||
365 | }; | ||
366 | |||
367 | dma@82a8 { | ||
368 | #address-cells = <1>; | ||
369 | #size-cells = <1>; | ||
370 | compatible = "fsl,mpc8313-dma", "fsl,elo-dma"; | ||
371 | reg = <0xe00082a8 4>; | ||
372 | ranges = <0 0xe0008100 0x1a8>; | ||
373 | interrupt-parent = <&ipic>; | ||
374 | interrupts = <71 8>; | ||
375 | |||
376 | dma-channel@0 { | ||
377 | compatible = "fsl,mpc8313-dma-channel", | ||
378 | "fsl,elo-dma-channel"; | ||
379 | reg = <0 0x28>; | ||
380 | interrupt-parent = <&ipic>; | ||
381 | interrupts = <71 8>; | ||
382 | cell-index = <0>; | ||
383 | }; | ||
384 | |||
385 | dma-channel@80 { | ||
386 | compatible = "fsl,mpc8313-dma-channel", | ||
387 | "fsl,elo-dma-channel"; | ||
388 | reg = <0x80 0x28>; | ||
389 | interrupt-parent = <&ipic>; | ||
390 | interrupts = <71 8>; | ||
391 | cell-index = <1>; | ||
392 | }; | ||
393 | |||
394 | dma-channel@100 { | ||
395 | compatible = "fsl,mpc8313-dma-channel", | ||
396 | "fsl,elo-dma-channel"; | ||
397 | reg = <0x100 0x28>; | ||
398 | interrupt-parent = <&ipic>; | ||
399 | interrupts = <71 8>; | ||
400 | cell-index = <2>; | ||
401 | }; | ||
402 | |||
403 | dma-channel@180 { | ||
404 | compatible = "fsl,mpc8313-dma-channel", | ||
405 | "fsl,elo-dma-channel"; | ||
406 | reg = <0x180 0x28>; | ||
407 | interrupt-parent = <&ipic>; | ||
408 | interrupts = <71 8>; | ||
409 | cell-index = <3>; | ||
410 | }; | ||
411 | }; | ||
311 | }; | 412 | }; |
312 | }; | 413 | }; |
diff --git a/arch/powerpc/boot/dts/mpc8610_hpcd.dts b/arch/powerpc/boot/dts/mpc8610_hpcd.dts index 981941e5d7a5..666185f59459 100644 --- a/arch/powerpc/boot/dts/mpc8610_hpcd.dts +++ b/arch/powerpc/boot/dts/mpc8610_hpcd.dts | |||
@@ -388,6 +388,20 @@ | |||
388 | 0x01000000 0x0 0x00000000 | 388 | 0x01000000 0x0 0x00000000 |
389 | 0x01000000 0x0 0x00000000 | 389 | 0x01000000 0x0 0x00000000 |
390 | 0x0 0x00100000>; | 390 | 0x0 0x00100000>; |
391 | |||
392 | isa@1e { | ||
393 | device_type = "isa"; | ||
394 | #size-cells = <1>; | ||
395 | #address-cells = <2>; | ||
396 | reg = <0xf000 0 0 0 0>; | ||
397 | ranges = <1 0 0x01000000 0 0 | ||
398 | 0x00001000>; | ||
399 | |||
400 | rtc@70 { | ||
401 | compatible = "pnpPNP,b00"; | ||
402 | reg = <1 0x70 2>; | ||
403 | }; | ||
404 | }; | ||
391 | }; | 405 | }; |
392 | }; | 406 | }; |
393 | }; | 407 | }; |
diff --git a/arch/powerpc/configs/85xx/mpc8544_ds_defconfig b/arch/powerpc/configs/85xx/mpc8544_ds_defconfig index 042a85ea7b72..a0583e5119f5 100644 --- a/arch/powerpc/configs/85xx/mpc8544_ds_defconfig +++ b/arch/powerpc/configs/85xx/mpc8544_ds_defconfig | |||
@@ -997,10 +997,12 @@ CONFIG_SND=y | |||
997 | CONFIG_SND_TIMER=y | 997 | CONFIG_SND_TIMER=y |
998 | CONFIG_SND_PCM=y | 998 | CONFIG_SND_PCM=y |
999 | # CONFIG_SND_SEQUENCER is not set | 999 | # CONFIG_SND_SEQUENCER is not set |
1000 | # CONFIG_SND_MIXER_OSS is not set | 1000 | CONFIG_SND_OSSEMUL=y |
1001 | # CONFIG_SND_PCM_OSS is not set | 1001 | CONFIG_SND_MIXER_OSS=y |
1002 | CONFIG_SND_PCM_OSS=y | ||
1003 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
1002 | # CONFIG_SND_DYNAMIC_MINORS is not set | 1004 | # CONFIG_SND_DYNAMIC_MINORS is not set |
1003 | CONFIG_SND_SUPPORT_OLD_API=y | 1005 | # CONFIG_SND_SUPPORT_OLD_API is not set |
1004 | CONFIG_SND_VERBOSE_PROCFS=y | 1006 | CONFIG_SND_VERBOSE_PROCFS=y |
1005 | # CONFIG_SND_VERBOSE_PRINTK is not set | 1007 | # CONFIG_SND_VERBOSE_PRINTK is not set |
1006 | # CONFIG_SND_DEBUG is not set | 1008 | # CONFIG_SND_DEBUG is not set |
diff --git a/arch/powerpc/configs/85xx/mpc8572_ds_defconfig b/arch/powerpc/configs/85xx/mpc8572_ds_defconfig index 03627cfebcb4..164fd9606ee6 100644 --- a/arch/powerpc/configs/85xx/mpc8572_ds_defconfig +++ b/arch/powerpc/configs/85xx/mpc8572_ds_defconfig | |||
@@ -997,10 +997,12 @@ CONFIG_SND=y | |||
997 | CONFIG_SND_TIMER=y | 997 | CONFIG_SND_TIMER=y |
998 | CONFIG_SND_PCM=y | 998 | CONFIG_SND_PCM=y |
999 | # CONFIG_SND_SEQUENCER is not set | 999 | # CONFIG_SND_SEQUENCER is not set |
1000 | # CONFIG_SND_MIXER_OSS is not set | 1000 | CONFIG_SND_OSSEMUL=y |
1001 | # CONFIG_SND_PCM_OSS is not set | 1001 | CONFIG_SND_MIXER_OSS=y |
1002 | CONFIG_SND_PCM_OSS=y | ||
1003 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
1002 | # CONFIG_SND_DYNAMIC_MINORS is not set | 1004 | # CONFIG_SND_DYNAMIC_MINORS is not set |
1003 | CONFIG_SND_SUPPORT_OLD_API=y | 1005 | # CONFIG_SND_SUPPORT_OLD_API is not set |
1004 | CONFIG_SND_VERBOSE_PROCFS=y | 1006 | CONFIG_SND_VERBOSE_PROCFS=y |
1005 | # CONFIG_SND_VERBOSE_PRINTK is not set | 1007 | # CONFIG_SND_VERBOSE_PRINTK is not set |
1006 | # CONFIG_SND_DEBUG is not set | 1008 | # CONFIG_SND_DEBUG is not set |
diff --git a/arch/powerpc/configs/mpc85xx_defconfig b/arch/powerpc/configs/mpc85xx_defconfig index 3efab71a603b..fa0170504b88 100644 --- a/arch/powerpc/configs/mpc85xx_defconfig +++ b/arch/powerpc/configs/mpc85xx_defconfig | |||
@@ -1005,10 +1005,12 @@ CONFIG_SND=y | |||
1005 | CONFIG_SND_TIMER=y | 1005 | CONFIG_SND_TIMER=y |
1006 | CONFIG_SND_PCM=y | 1006 | CONFIG_SND_PCM=y |
1007 | # CONFIG_SND_SEQUENCER is not set | 1007 | # CONFIG_SND_SEQUENCER is not set |
1008 | # CONFIG_SND_MIXER_OSS is not set | 1008 | CONFIG_SND_OSSEMUL=y |
1009 | # CONFIG_SND_PCM_OSS is not set | 1009 | CONFIG_SND_MIXER_OSS=y |
1010 | CONFIG_SND_PCM_OSS=y | ||
1011 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
1010 | # CONFIG_SND_DYNAMIC_MINORS is not set | 1012 | # CONFIG_SND_DYNAMIC_MINORS is not set |
1011 | CONFIG_SND_SUPPORT_OLD_API=y | 1013 | # CONFIG_SND_SUPPORT_OLD_API is not set |
1012 | CONFIG_SND_VERBOSE_PROCFS=y | 1014 | CONFIG_SND_VERBOSE_PROCFS=y |
1013 | # CONFIG_SND_VERBOSE_PRINTK is not set | 1015 | # CONFIG_SND_VERBOSE_PRINTK is not set |
1014 | # CONFIG_SND_DEBUG is not set | 1016 | # CONFIG_SND_DEBUG is not set |
diff --git a/arch/powerpc/configs/mpc8610_hpcd_defconfig b/arch/powerpc/configs/mpc8610_hpcd_defconfig index 5612d40d0463..cdf98ae3682b 100644 --- a/arch/powerpc/configs/mpc8610_hpcd_defconfig +++ b/arch/powerpc/configs/mpc8610_hpcd_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.26-rc5 | 3 | # Linux kernel version: 2.6.26 |
4 | # Mon Jun 9 08:50:24 2008 | 4 | # Tue Jul 15 08:31:01 2008 |
5 | # | 5 | # |
6 | # CONFIG_PPC64 is not set | 6 | # CONFIG_PPC64 is not set |
7 | 7 | ||
@@ -51,6 +51,8 @@ CONFIG_PPC_UDBG_16550=y | |||
51 | CONFIG_AUDIT_ARCH=y | 51 | CONFIG_AUDIT_ARCH=y |
52 | CONFIG_GENERIC_BUG=y | 52 | CONFIG_GENERIC_BUG=y |
53 | CONFIG_DEFAULT_UIMAGE=y | 53 | CONFIG_DEFAULT_UIMAGE=y |
54 | CONFIG_HIBERNATE_32=y | ||
55 | CONFIG_ARCH_HIBERNATION_POSSIBLE=y | ||
54 | # CONFIG_PPC_DCR_NATIVE is not set | 56 | # CONFIG_PPC_DCR_NATIVE is not set |
55 | # CONFIG_PPC_DCR_MMIO is not set | 57 | # CONFIG_PPC_DCR_MMIO is not set |
56 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 58 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
@@ -97,6 +99,7 @@ CONFIG_HOTPLUG=y | |||
97 | CONFIG_PRINTK=y | 99 | CONFIG_PRINTK=y |
98 | CONFIG_BUG=y | 100 | CONFIG_BUG=y |
99 | # CONFIG_ELF_CORE is not set | 101 | # CONFIG_ELF_CORE is not set |
102 | CONFIG_PCSPKR_PLATFORM=y | ||
100 | CONFIG_COMPAT_BRK=y | 103 | CONFIG_COMPAT_BRK=y |
101 | CONFIG_BASE_FULL=y | 104 | CONFIG_BASE_FULL=y |
102 | CONFIG_FUTEX=y | 105 | CONFIG_FUTEX=y |
@@ -117,7 +120,7 @@ CONFIG_HAVE_OPROFILE=y | |||
117 | # CONFIG_KPROBES is not set | 120 | # CONFIG_KPROBES is not set |
118 | CONFIG_HAVE_KPROBES=y | 121 | CONFIG_HAVE_KPROBES=y |
119 | CONFIG_HAVE_KRETPROBES=y | 122 | CONFIG_HAVE_KRETPROBES=y |
120 | # CONFIG_HAVE_DMA_ATTRS is not set | 123 | CONFIG_HAVE_DMA_ATTRS=y |
121 | CONFIG_PROC_PAGE_MONITOR=y | 124 | CONFIG_PROC_PAGE_MONITOR=y |
122 | CONFIG_SLABINFO=y | 125 | CONFIG_SLABINFO=y |
123 | CONFIG_RT_MUTEXES=y | 126 | CONFIG_RT_MUTEXES=y |
@@ -153,31 +156,43 @@ CONFIG_CLASSIC_RCU=y | |||
153 | # | 156 | # |
154 | # Platform support | 157 | # Platform support |
155 | # | 158 | # |
156 | # CONFIG_PPC_MULTIPLATFORM is not set | 159 | CONFIG_PPC_MULTIPLATFORM=y |
157 | # CONFIG_PPC_82xx is not set | 160 | CONFIG_CLASSIC32=y |
158 | # CONFIG_PPC_83xx is not set | 161 | CONFIG_PPC_CHRP=y |
159 | CONFIG_PPC_86xx=y | ||
160 | # CONFIG_PPC_MPC512x is not set | 162 | # CONFIG_PPC_MPC512x is not set |
161 | # CONFIG_PPC_MPC5121 is not set | 163 | # CONFIG_PPC_MPC5121 is not set |
164 | # CONFIG_MPC5121_ADS is not set | ||
165 | # CONFIG_PPC_MPC52xx is not set | ||
166 | CONFIG_PPC_PMAC=y | ||
162 | # CONFIG_PPC_CELL is not set | 167 | # CONFIG_PPC_CELL is not set |
163 | # CONFIG_PPC_CELL_NATIVE is not set | 168 | # CONFIG_PPC_CELL_NATIVE is not set |
169 | # CONFIG_PPC_82xx is not set | ||
164 | # CONFIG_PQ2ADS is not set | 170 | # CONFIG_PQ2ADS is not set |
171 | # CONFIG_PPC_83xx is not set | ||
172 | CONFIG_PPC_86xx=y | ||
165 | # CONFIG_MPC8641_HPCN is not set | 173 | # CONFIG_MPC8641_HPCN is not set |
166 | # CONFIG_SBC8641D is not set | 174 | # CONFIG_SBC8641D is not set |
167 | CONFIG_MPC8610_HPCD=y | 175 | CONFIG_MPC8610_HPCD=y |
168 | CONFIG_MPC8610=y | 176 | CONFIG_MPC8610=y |
177 | # CONFIG_EMBEDDED6xx is not set | ||
178 | CONFIG_PPC_NATIVE=y | ||
179 | # CONFIG_UDBG_RTAS_CONSOLE is not set | ||
169 | # CONFIG_IPIC is not set | 180 | # CONFIG_IPIC is not set |
170 | CONFIG_MPIC=y | 181 | CONFIG_MPIC=y |
171 | # CONFIG_MPIC_WEIRD is not set | 182 | # CONFIG_MPIC_WEIRD is not set |
172 | # CONFIG_PPC_I8259 is not set | 183 | CONFIG_PPC_I8259=y |
173 | # CONFIG_PPC_RTAS is not set | 184 | CONFIG_PPC_RTAS=y |
185 | # CONFIG_RTAS_ERROR_LOGGING is not set | ||
186 | CONFIG_RTAS_PROC=y | ||
174 | # CONFIG_MMIO_NVRAM is not set | 187 | # CONFIG_MMIO_NVRAM is not set |
175 | # CONFIG_PPC_MPC106 is not set | 188 | CONFIG_PPC_MPC106=y |
176 | # CONFIG_PPC_970_NAP is not set | 189 | # CONFIG_PPC_970_NAP is not set |
177 | # CONFIG_PPC_INDIRECT_IO is not set | 190 | # CONFIG_PPC_INDIRECT_IO is not set |
178 | # CONFIG_GENERIC_IOMAP is not set | 191 | # CONFIG_GENERIC_IOMAP is not set |
179 | # CONFIG_CPU_FREQ is not set | 192 | # CONFIG_CPU_FREQ is not set |
180 | # CONFIG_FSL_ULI1575 is not set | 193 | # CONFIG_PPC601_SYNC_FIX is not set |
194 | # CONFIG_TAU is not set | ||
195 | CONFIG_FSL_ULI1575=y | ||
181 | 196 | ||
182 | # | 197 | # |
183 | # Kernel options | 198 | # Kernel options |
@@ -202,6 +217,7 @@ CONFIG_BINFMT_ELF=y | |||
202 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | 217 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y |
203 | CONFIG_ARCH_HAS_WALK_MEMORY=y | 218 | CONFIG_ARCH_HAS_WALK_MEMORY=y |
204 | CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y | 219 | CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y |
220 | # CONFIG_KEXEC is not set | ||
205 | CONFIG_ARCH_FLATMEM_ENABLE=y | 221 | CONFIG_ARCH_FLATMEM_ENABLE=y |
206 | CONFIG_ARCH_POPULATES_NODE_MAP=y | 222 | CONFIG_ARCH_POPULATES_NODE_MAP=y |
207 | CONFIG_SELECT_MEMORY_MODEL=y | 223 | CONFIG_SELECT_MEMORY_MODEL=y |
@@ -228,11 +244,13 @@ CONFIG_ISA_DMA_API=y | |||
228 | # | 244 | # |
229 | # Bus options | 245 | # Bus options |
230 | # | 246 | # |
247 | # CONFIG_ISA is not set | ||
231 | CONFIG_ZONE_DMA=y | 248 | CONFIG_ZONE_DMA=y |
232 | CONFIG_GENERIC_ISA_DMA=y | 249 | CONFIG_GENERIC_ISA_DMA=y |
233 | CONFIG_PPC_INDIRECT_PCI=y | 250 | CONFIG_PPC_INDIRECT_PCI=y |
234 | CONFIG_FSL_SOC=y | 251 | CONFIG_FSL_SOC=y |
235 | CONFIG_FSL_PCI=y | 252 | CONFIG_FSL_PCI=y |
253 | CONFIG_PPC_PCI_CHOICE=y | ||
236 | CONFIG_PCI=y | 254 | CONFIG_PCI=y |
237 | CONFIG_PCI_DOMAINS=y | 255 | CONFIG_PCI_DOMAINS=y |
238 | CONFIG_PCI_SYSCALL=y | 256 | CONFIG_PCI_SYSCALL=y |
@@ -469,6 +487,7 @@ CONFIG_OF_I2C=y | |||
469 | # CONFIG_PARPORT is not set | 487 | # CONFIG_PARPORT is not set |
470 | CONFIG_BLK_DEV=y | 488 | CONFIG_BLK_DEV=y |
471 | # CONFIG_BLK_DEV_FD is not set | 489 | # CONFIG_BLK_DEV_FD is not set |
490 | # CONFIG_MAC_FLOPPY is not set | ||
472 | # CONFIG_BLK_CPQ_DA is not set | 491 | # CONFIG_BLK_CPQ_DA is not set |
473 | # CONFIG_BLK_CPQ_CISS_DA is not set | 492 | # CONFIG_BLK_CPQ_CISS_DA is not set |
474 | # CONFIG_BLK_DEV_DAC960 is not set | 493 | # CONFIG_BLK_DEV_DAC960 is not set |
@@ -571,6 +590,8 @@ CONFIG_SCSI_LOWLEVEL=y | |||
571 | # CONFIG_SCSI_DC390T is not set | 590 | # CONFIG_SCSI_DC390T is not set |
572 | # CONFIG_SCSI_NSP32 is not set | 591 | # CONFIG_SCSI_NSP32 is not set |
573 | # CONFIG_SCSI_DEBUG is not set | 592 | # CONFIG_SCSI_DEBUG is not set |
593 | # CONFIG_SCSI_MESH is not set | ||
594 | # CONFIG_SCSI_MAC53C94 is not set | ||
574 | # CONFIG_SCSI_SRP is not set | 595 | # CONFIG_SCSI_SRP is not set |
575 | CONFIG_ATA=y | 596 | CONFIG_ATA=y |
576 | # CONFIG_ATA_NONSTANDARD is not set | 597 | # CONFIG_ATA_NONSTANDARD is not set |
@@ -639,6 +660,10 @@ CONFIG_PATA_ALI=y | |||
639 | # | 660 | # |
640 | # IEEE 1394 (FireWire) support | 661 | # IEEE 1394 (FireWire) support |
641 | # | 662 | # |
663 | |||
664 | # | ||
665 | # Enable only one of the two stacks, unless you know what you are doing | ||
666 | # | ||
642 | # CONFIG_FIREWIRE is not set | 667 | # CONFIG_FIREWIRE is not set |
643 | # CONFIG_IEEE1394 is not set | 668 | # CONFIG_IEEE1394 is not set |
644 | # CONFIG_I2O is not set | 669 | # CONFIG_I2O is not set |
@@ -655,6 +680,8 @@ CONFIG_DUMMY=y | |||
655 | # CONFIG_PHYLIB is not set | 680 | # CONFIG_PHYLIB is not set |
656 | CONFIG_NET_ETHERNET=y | 681 | CONFIG_NET_ETHERNET=y |
657 | # CONFIG_MII is not set | 682 | # CONFIG_MII is not set |
683 | # CONFIG_MACE is not set | ||
684 | # CONFIG_BMAC is not set | ||
658 | # CONFIG_HAPPYMEAL is not set | 685 | # CONFIG_HAPPYMEAL is not set |
659 | # CONFIG_SUNGEM is not set | 686 | # CONFIG_SUNGEM is not set |
660 | # CONFIG_CASSINI is not set | 687 | # CONFIG_CASSINI is not set |
@@ -762,14 +789,16 @@ CONFIG_SERIAL_8250_RSA=y | |||
762 | # CONFIG_SERIAL_UARTLITE is not set | 789 | # CONFIG_SERIAL_UARTLITE is not set |
763 | CONFIG_SERIAL_CORE=y | 790 | CONFIG_SERIAL_CORE=y |
764 | CONFIG_SERIAL_CORE_CONSOLE=y | 791 | CONFIG_SERIAL_CORE_CONSOLE=y |
792 | # CONFIG_SERIAL_PMACZILOG is not set | ||
765 | # CONFIG_SERIAL_JSM is not set | 793 | # CONFIG_SERIAL_JSM is not set |
766 | # CONFIG_SERIAL_OF_PLATFORM is not set | 794 | # CONFIG_SERIAL_OF_PLATFORM is not set |
767 | CONFIG_UNIX98_PTYS=y | 795 | CONFIG_UNIX98_PTYS=y |
768 | # CONFIG_LEGACY_PTYS is not set | 796 | # CONFIG_LEGACY_PTYS is not set |
797 | # CONFIG_BRIQ_PANEL is not set | ||
798 | # CONFIG_HVC_RTAS is not set | ||
769 | # CONFIG_IPMI_HANDLER is not set | 799 | # CONFIG_IPMI_HANDLER is not set |
770 | # CONFIG_HW_RANDOM is not set | 800 | # CONFIG_HW_RANDOM is not set |
771 | # CONFIG_NVRAM is not set | 801 | # CONFIG_NVRAM is not set |
772 | # CONFIG_GEN_RTC is not set | ||
773 | # CONFIG_R3964 is not set | 802 | # CONFIG_R3964 is not set |
774 | # CONFIG_APPLICOM is not set | 803 | # CONFIG_APPLICOM is not set |
775 | # CONFIG_RAW_DRIVER is not set | 804 | # CONFIG_RAW_DRIVER is not set |
@@ -787,9 +816,11 @@ CONFIG_I2C_BOARDINFO=y | |||
787 | # CONFIG_I2C_ALI15X3 is not set | 816 | # CONFIG_I2C_ALI15X3 is not set |
788 | # CONFIG_I2C_AMD756 is not set | 817 | # CONFIG_I2C_AMD756 is not set |
789 | # CONFIG_I2C_AMD8111 is not set | 818 | # CONFIG_I2C_AMD8111 is not set |
819 | # CONFIG_I2C_HYDRA is not set | ||
790 | # CONFIG_I2C_I801 is not set | 820 | # CONFIG_I2C_I801 is not set |
791 | # CONFIG_I2C_I810 is not set | 821 | # CONFIG_I2C_I810 is not set |
792 | # CONFIG_I2C_PIIX4 is not set | 822 | # CONFIG_I2C_PIIX4 is not set |
823 | CONFIG_I2C_POWERMAC=y | ||
793 | CONFIG_I2C_MPC=y | 824 | CONFIG_I2C_MPC=y |
794 | # CONFIG_I2C_NFORCE2 is not set | 825 | # CONFIG_I2C_NFORCE2 is not set |
795 | # CONFIG_I2C_OCORES is not set | 826 | # CONFIG_I2C_OCORES is not set |
@@ -826,6 +857,7 @@ CONFIG_I2C_MPC=y | |||
826 | # CONFIG_POWER_SUPPLY is not set | 857 | # CONFIG_POWER_SUPPLY is not set |
827 | # CONFIG_HWMON is not set | 858 | # CONFIG_HWMON is not set |
828 | # CONFIG_THERMAL is not set | 859 | # CONFIG_THERMAL is not set |
860 | # CONFIG_THERMAL_HWMON is not set | ||
829 | # CONFIG_WATCHDOG is not set | 861 | # CONFIG_WATCHDOG is not set |
830 | 862 | ||
831 | # | 863 | # |
@@ -888,6 +920,9 @@ CONFIG_FB_CFB_IMAGEBLIT=y | |||
888 | # CONFIG_FB_PM2 is not set | 920 | # CONFIG_FB_PM2 is not set |
889 | # CONFIG_FB_CYBER2000 is not set | 921 | # CONFIG_FB_CYBER2000 is not set |
890 | # CONFIG_FB_OF is not set | 922 | # CONFIG_FB_OF is not set |
923 | # CONFIG_FB_CONTROL is not set | ||
924 | # CONFIG_FB_PLATINUM is not set | ||
925 | # CONFIG_FB_VALKYRIE is not set | ||
891 | # CONFIG_FB_CT65550 is not set | 926 | # CONFIG_FB_CT65550 is not set |
892 | # CONFIG_FB_ASILIANT is not set | 927 | # CONFIG_FB_ASILIANT is not set |
893 | # CONFIG_FB_IMSTT is not set | 928 | # CONFIG_FB_IMSTT is not set |
@@ -1027,12 +1062,19 @@ CONFIG_SND_VERBOSE_PROCFS=y | |||
1027 | # | 1062 | # |
1028 | # ALSA PowerMac devices | 1063 | # ALSA PowerMac devices |
1029 | # | 1064 | # |
1065 | # CONFIG_SND_POWERMAC is not set | ||
1030 | 1066 | ||
1031 | # | 1067 | # |
1032 | # ALSA PowerPC devices | 1068 | # ALSA PowerPC devices |
1033 | # | 1069 | # |
1034 | 1070 | ||
1035 | # | 1071 | # |
1072 | # Apple Onboard Audio driver | ||
1073 | # | ||
1074 | # CONFIG_SND_AOA is not set | ||
1075 | # CONFIG_SND_AOA_SOUNDBUS is not set | ||
1076 | |||
1077 | # | ||
1036 | # System on Chip audio support | 1078 | # System on Chip audio support |
1037 | # | 1079 | # |
1038 | CONFIG_SND_SOC=y | 1080 | CONFIG_SND_SOC=y |
@@ -1075,7 +1117,57 @@ CONFIG_USB_ARCH_HAS_EHCI=y | |||
1075 | # CONFIG_ACCESSIBILITY is not set | 1117 | # CONFIG_ACCESSIBILITY is not set |
1076 | # CONFIG_INFINIBAND is not set | 1118 | # CONFIG_INFINIBAND is not set |
1077 | # CONFIG_EDAC is not set | 1119 | # CONFIG_EDAC is not set |
1078 | # CONFIG_RTC_CLASS is not set | 1120 | CONFIG_RTC_LIB=y |
1121 | CONFIG_RTC_CLASS=y | ||
1122 | CONFIG_RTC_HCTOSYS=y | ||
1123 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
1124 | # CONFIG_RTC_DEBUG is not set | ||
1125 | |||
1126 | # | ||
1127 | # RTC interfaces | ||
1128 | # | ||
1129 | CONFIG_RTC_INTF_SYSFS=y | ||
1130 | CONFIG_RTC_INTF_PROC=y | ||
1131 | CONFIG_RTC_INTF_DEV=y | ||
1132 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
1133 | # CONFIG_RTC_DRV_TEST is not set | ||
1134 | |||
1135 | # | ||
1136 | # I2C RTC drivers | ||
1137 | # | ||
1138 | # CONFIG_RTC_DRV_DS1307 is not set | ||
1139 | # CONFIG_RTC_DRV_DS1374 is not set | ||
1140 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1141 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
1142 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1143 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
1144 | # CONFIG_RTC_DRV_X1205 is not set | ||
1145 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1146 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
1147 | # CONFIG_RTC_DRV_M41T80 is not set | ||
1148 | # CONFIG_RTC_DRV_S35390A is not set | ||
1149 | # CONFIG_RTC_DRV_FM3130 is not set | ||
1150 | |||
1151 | # | ||
1152 | # SPI RTC drivers | ||
1153 | # | ||
1154 | |||
1155 | # | ||
1156 | # Platform RTC drivers | ||
1157 | # | ||
1158 | CONFIG_RTC_DRV_CMOS=y | ||
1159 | # CONFIG_RTC_DRV_DS1511 is not set | ||
1160 | # CONFIG_RTC_DRV_DS1553 is not set | ||
1161 | # CONFIG_RTC_DRV_DS1742 is not set | ||
1162 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
1163 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1164 | # CONFIG_RTC_DRV_M48T59 is not set | ||
1165 | # CONFIG_RTC_DRV_V3020 is not set | ||
1166 | |||
1167 | # | ||
1168 | # on-CPU RTC drivers | ||
1169 | # | ||
1170 | # CONFIG_RTC_DRV_PPC is not set | ||
1079 | # CONFIG_DMADEVICES is not set | 1171 | # CONFIG_DMADEVICES is not set |
1080 | # CONFIG_UIO is not set | 1172 | # CONFIG_UIO is not set |
1081 | 1173 | ||
@@ -1295,8 +1387,11 @@ CONFIG_DEBUG_INFO=y | |||
1295 | # CONFIG_DEBUG_STACK_USAGE is not set | 1387 | # CONFIG_DEBUG_STACK_USAGE is not set |
1296 | # CONFIG_DEBUG_PAGEALLOC is not set | 1388 | # CONFIG_DEBUG_PAGEALLOC is not set |
1297 | # CONFIG_DEBUGGER is not set | 1389 | # CONFIG_DEBUGGER is not set |
1390 | # CONFIG_CODE_PATCHING_SELFTEST is not set | ||
1391 | # CONFIG_FTR_FIXUP_SELFTEST is not set | ||
1298 | # CONFIG_IRQSTACKS is not set | 1392 | # CONFIG_IRQSTACKS is not set |
1299 | # CONFIG_BDI_SWITCH is not set | 1393 | # CONFIG_BDI_SWITCH is not set |
1394 | # CONFIG_BOOTX_TEXT is not set | ||
1300 | # CONFIG_PPC_EARLY_DEBUG is not set | 1395 | # CONFIG_PPC_EARLY_DEBUG is not set |
1301 | 1396 | ||
1302 | # | 1397 | # |
diff --git a/arch/powerpc/configs/mpc8641_hpcn_defconfig b/arch/powerpc/configs/mpc8641_hpcn_defconfig index 4a8171507391..867b8c0215f3 100644 --- a/arch/powerpc/configs/mpc8641_hpcn_defconfig +++ b/arch/powerpc/configs/mpc8641_hpcn_defconfig | |||
@@ -991,10 +991,12 @@ CONFIG_SND=y | |||
991 | CONFIG_SND_TIMER=y | 991 | CONFIG_SND_TIMER=y |
992 | CONFIG_SND_PCM=y | 992 | CONFIG_SND_PCM=y |
993 | # CONFIG_SND_SEQUENCER is not set | 993 | # CONFIG_SND_SEQUENCER is not set |
994 | # CONFIG_SND_MIXER_OSS is not set | 994 | CONFIG_SND_OSSEMUL=y |
995 | # CONFIG_SND_PCM_OSS is not set | 995 | CONFIG_SND_MIXER_OSS=y |
996 | CONFIG_SND_PCM_OSS=y | ||
997 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
996 | # CONFIG_SND_DYNAMIC_MINORS is not set | 998 | # CONFIG_SND_DYNAMIC_MINORS is not set |
997 | CONFIG_SND_SUPPORT_OLD_API=y | 999 | # CONFIG_SND_SUPPORT_OLD_API is not set |
998 | CONFIG_SND_VERBOSE_PROCFS=y | 1000 | CONFIG_SND_VERBOSE_PROCFS=y |
999 | # CONFIG_SND_VERBOSE_PRINTK is not set | 1001 | # CONFIG_SND_VERBOSE_PRINTK is not set |
1000 | # CONFIG_SND_DEBUG is not set | 1002 | # CONFIG_SND_DEBUG is not set |
diff --git a/arch/powerpc/configs/ppc6xx_defconfig b/arch/powerpc/configs/ppc6xx_defconfig new file mode 100644 index 000000000000..e6e91c85da31 --- /dev/null +++ b/arch/powerpc/configs/ppc6xx_defconfig | |||
@@ -0,0 +1,3304 @@ | |||
1 | # powerpc | ||
2 | # | ||
3 | # Automatically generated make config: don't edit | ||
4 | # Linux kernel version: 2.6.26-git2 | ||
5 | # Tue Jul 15 23:54:18 2008 | ||
6 | # | ||
7 | # CONFIG_PPC64 is not set | ||
8 | |||
9 | # | ||
10 | # Processor support | ||
11 | # | ||
12 | CONFIG_6xx=y | ||
13 | # CONFIG_PPC_85xx is not set | ||
14 | # CONFIG_PPC_8xx is not set | ||
15 | # CONFIG_40x is not set | ||
16 | # CONFIG_44x is not set | ||
17 | # CONFIG_E200 is not set | ||
18 | CONFIG_PPC_FPU=y | ||
19 | CONFIG_FSL_EMB_PERFMON=y | ||
20 | CONFIG_ALTIVEC=y | ||
21 | CONFIG_PPC_STD_MMU=y | ||
22 | CONFIG_PPC_STD_MMU_32=y | ||
23 | # CONFIG_PPC_MM_SLICES is not set | ||
24 | # CONFIG_SMP is not set | ||
25 | CONFIG_PPC32=y | ||
26 | CONFIG_WORD_SIZE=32 | ||
27 | CONFIG_PPC_MERGE=y | ||
28 | CONFIG_MMU=y | ||
29 | CONFIG_GENERIC_CMOS_UPDATE=y | ||
30 | CONFIG_GENERIC_TIME=y | ||
31 | CONFIG_GENERIC_TIME_VSYSCALL=y | ||
32 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
33 | CONFIG_GENERIC_HARDIRQS=y | ||
34 | # CONFIG_HAVE_SETUP_PER_CPU_AREA is not set | ||
35 | CONFIG_IRQ_PER_CPU=y | ||
36 | CONFIG_STACKTRACE_SUPPORT=y | ||
37 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
38 | CONFIG_LOCKDEP_SUPPORT=y | ||
39 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y | ||
40 | CONFIG_ARCH_HAS_ILOG2_U32=y | ||
41 | CONFIG_GENERIC_HWEIGHT=y | ||
42 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
43 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
44 | CONFIG_GENERIC_GPIO=y | ||
45 | # CONFIG_ARCH_NO_VIRT_TO_BUS is not set | ||
46 | CONFIG_PPC=y | ||
47 | CONFIG_EARLY_PRINTK=y | ||
48 | CONFIG_GENERIC_NVRAM=y | ||
49 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
50 | CONFIG_ARCH_MAY_HAVE_PC_FDC=y | ||
51 | CONFIG_PPC_OF=y | ||
52 | CONFIG_OF=y | ||
53 | CONFIG_PPC_UDBG_16550=y | ||
54 | # CONFIG_GENERIC_TBSYNC is not set | ||
55 | CONFIG_AUDIT_ARCH=y | ||
56 | CONFIG_GENERIC_BUG=y | ||
57 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
58 | CONFIG_DEFAULT_UIMAGE=y | ||
59 | CONFIG_REDBOOT=y | ||
60 | CONFIG_HIBERNATE_32=y | ||
61 | CONFIG_ARCH_HIBERNATION_POSSIBLE=y | ||
62 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
63 | # CONFIG_PPC_DCR_NATIVE is not set | ||
64 | # CONFIG_PPC_DCR_MMIO is not set | ||
65 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
66 | |||
67 | # | ||
68 | # General setup | ||
69 | # | ||
70 | CONFIG_EXPERIMENTAL=y | ||
71 | CONFIG_BROKEN_ON_SMP=y | ||
72 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
73 | CONFIG_LOCALVERSION="" | ||
74 | # CONFIG_LOCALVERSION_AUTO is not set | ||
75 | CONFIG_SWAP=y | ||
76 | CONFIG_SYSVIPC=y | ||
77 | CONFIG_SYSVIPC_SYSCTL=y | ||
78 | CONFIG_POSIX_MQUEUE=y | ||
79 | CONFIG_BSD_PROCESS_ACCT=y | ||
80 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
81 | CONFIG_TASKSTATS=y | ||
82 | CONFIG_TASK_DELAY_ACCT=y | ||
83 | CONFIG_TASK_XACCT=y | ||
84 | CONFIG_TASK_IO_ACCOUNTING=y | ||
85 | CONFIG_AUDIT=y | ||
86 | CONFIG_AUDITSYSCALL=y | ||
87 | CONFIG_AUDIT_TREE=y | ||
88 | # CONFIG_IKCONFIG is not set | ||
89 | CONFIG_LOG_BUF_SHIFT=17 | ||
90 | CONFIG_CGROUPS=y | ||
91 | # CONFIG_CGROUP_DEBUG is not set | ||
92 | CONFIG_CGROUP_NS=y | ||
93 | CONFIG_CGROUP_DEVICE=y | ||
94 | CONFIG_GROUP_SCHED=y | ||
95 | CONFIG_FAIR_GROUP_SCHED=y | ||
96 | CONFIG_RT_GROUP_SCHED=y | ||
97 | # CONFIG_USER_SCHED is not set | ||
98 | CONFIG_CGROUP_SCHED=y | ||
99 | CONFIG_CGROUP_CPUACCT=y | ||
100 | CONFIG_RESOURCE_COUNTERS=y | ||
101 | # CONFIG_CGROUP_MEM_RES_CTLR is not set | ||
102 | # CONFIG_SYSFS_DEPRECATED_V2 is not set | ||
103 | CONFIG_RELAY=y | ||
104 | CONFIG_NAMESPACES=y | ||
105 | CONFIG_UTS_NS=y | ||
106 | CONFIG_IPC_NS=y | ||
107 | CONFIG_USER_NS=y | ||
108 | CONFIG_PID_NS=y | ||
109 | CONFIG_BLK_DEV_INITRD=y | ||
110 | CONFIG_INITRAMFS_SOURCE="" | ||
111 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
112 | CONFIG_SYSCTL=y | ||
113 | # CONFIG_EMBEDDED is not set | ||
114 | CONFIG_SYSCTL_SYSCALL=y | ||
115 | CONFIG_SYSCTL_SYSCALL_CHECK=y | ||
116 | CONFIG_KALLSYMS=y | ||
117 | CONFIG_KALLSYMS_ALL=y | ||
118 | CONFIG_KALLSYMS_EXTRA_PASS=y | ||
119 | CONFIG_HOTPLUG=y | ||
120 | CONFIG_PRINTK=y | ||
121 | CONFIG_BUG=y | ||
122 | CONFIG_ELF_CORE=y | ||
123 | CONFIG_PCSPKR_PLATFORM=y | ||
124 | # CONFIG_COMPAT_BRK is not set | ||
125 | CONFIG_BASE_FULL=y | ||
126 | CONFIG_FUTEX=y | ||
127 | CONFIG_ANON_INODES=y | ||
128 | CONFIG_EPOLL=y | ||
129 | CONFIG_SIGNALFD=y | ||
130 | CONFIG_TIMERFD=y | ||
131 | CONFIG_EVENTFD=y | ||
132 | CONFIG_SHMEM=y | ||
133 | CONFIG_VM_EVENT_COUNTERS=y | ||
134 | CONFIG_SLUB_DEBUG=y | ||
135 | # CONFIG_SLAB is not set | ||
136 | CONFIG_SLUB=y | ||
137 | # CONFIG_SLOB is not set | ||
138 | CONFIG_PROFILING=y | ||
139 | CONFIG_MARKERS=y | ||
140 | CONFIG_OPROFILE=m | ||
141 | CONFIG_HAVE_OPROFILE=y | ||
142 | CONFIG_KPROBES=y | ||
143 | CONFIG_KRETPROBES=y | ||
144 | CONFIG_HAVE_KPROBES=y | ||
145 | CONFIG_HAVE_KRETPROBES=y | ||
146 | # CONFIG_HAVE_DMA_ATTRS is not set | ||
147 | # CONFIG_USE_GENERIC_SMP_HELPERS is not set | ||
148 | CONFIG_PROC_PAGE_MONITOR=y | ||
149 | CONFIG_SLABINFO=y | ||
150 | CONFIG_RT_MUTEXES=y | ||
151 | # CONFIG_TINY_SHMEM is not set | ||
152 | CONFIG_BASE_SMALL=0 | ||
153 | CONFIG_MODULES=y | ||
154 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
155 | CONFIG_MODULE_UNLOAD=y | ||
156 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
157 | # CONFIG_MODVERSIONS is not set | ||
158 | CONFIG_MODULE_SRCVERSION_ALL=y | ||
159 | CONFIG_KMOD=y | ||
160 | CONFIG_BLOCK=y | ||
161 | CONFIG_LBD=y | ||
162 | CONFIG_BLK_DEV_IO_TRACE=y | ||
163 | CONFIG_LSF=y | ||
164 | CONFIG_BLK_DEV_BSG=y | ||
165 | CONFIG_BLK_DEV_INTEGRITY=y | ||
166 | |||
167 | # | ||
168 | # IO Schedulers | ||
169 | # | ||
170 | CONFIG_IOSCHED_NOOP=y | ||
171 | CONFIG_IOSCHED_AS=y | ||
172 | CONFIG_IOSCHED_DEADLINE=y | ||
173 | CONFIG_IOSCHED_CFQ=y | ||
174 | # CONFIG_DEFAULT_AS is not set | ||
175 | # CONFIG_DEFAULT_DEADLINE is not set | ||
176 | CONFIG_DEFAULT_CFQ=y | ||
177 | # CONFIG_DEFAULT_NOOP is not set | ||
178 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
179 | CONFIG_CLASSIC_RCU=y | ||
180 | |||
181 | # | ||
182 | # Platform support | ||
183 | # | ||
184 | CONFIG_PPC_MULTIPLATFORM=y | ||
185 | CONFIG_CLASSIC32=y | ||
186 | CONFIG_PPC_CHRP=y | ||
187 | # CONFIG_MPC5121_ADS is not set | ||
188 | # CONFIG_MPC5121_GENERIC is not set | ||
189 | CONFIG_PPC_MPC52xx=y | ||
190 | # CONFIG_PPC_MPC5200_SIMPLE is not set | ||
191 | CONFIG_PPC_EFIKA=y | ||
192 | # CONFIG_PPC_LITE5200 is not set | ||
193 | CONFIG_PPC_MPC5200_BUGFIX=y | ||
194 | CONFIG_PPC_MPC5200_GPIO=y | ||
195 | CONFIG_PPC_PMAC=y | ||
196 | # CONFIG_PPC_CELL is not set | ||
197 | # CONFIG_PPC_CELL_NATIVE is not set | ||
198 | CONFIG_PPC_82xx=y | ||
199 | CONFIG_MPC8272_ADS=y | ||
200 | CONFIG_PQ2FADS=y | ||
201 | CONFIG_EP8248E=y | ||
202 | CONFIG_PQ2ADS=y | ||
203 | CONFIG_8260=y | ||
204 | CONFIG_8272=y | ||
205 | CONFIG_PQ2_ADS_PCI_PIC=y | ||
206 | CONFIG_PPC_83xx=y | ||
207 | CONFIG_MPC831x_RDB=y | ||
208 | CONFIG_MPC832x_MDS=y | ||
209 | CONFIG_MPC832x_RDB=y | ||
210 | CONFIG_MPC834x_MDS=y | ||
211 | CONFIG_MPC834x_ITX=y | ||
212 | CONFIG_MPC836x_MDS=y | ||
213 | CONFIG_MPC836x_RDK=y | ||
214 | CONFIG_MPC837x_MDS=y | ||
215 | CONFIG_MPC837x_RDB=y | ||
216 | CONFIG_SBC834x=y | ||
217 | CONFIG_ASP834x=y | ||
218 | CONFIG_PPC_MPC831x=y | ||
219 | CONFIG_PPC_MPC832x=y | ||
220 | CONFIG_PPC_MPC834x=y | ||
221 | CONFIG_PPC_MPC837x=y | ||
222 | CONFIG_PPC_86xx=y | ||
223 | CONFIG_MPC8641_HPCN=y | ||
224 | CONFIG_SBC8641D=y | ||
225 | CONFIG_MPC8610_HPCD=y | ||
226 | CONFIG_MPC8641=y | ||
227 | CONFIG_MPC8610=y | ||
228 | # CONFIG_EMBEDDED6xx is not set | ||
229 | CONFIG_PPC_NATIVE=y | ||
230 | # CONFIG_UDBG_RTAS_CONSOLE is not set | ||
231 | CONFIG_IPIC=y | ||
232 | CONFIG_MPIC=y | ||
233 | # CONFIG_MPIC_WEIRD is not set | ||
234 | CONFIG_PPC_I8259=y | ||
235 | CONFIG_PPC_RTAS=y | ||
236 | # CONFIG_RTAS_ERROR_LOGGING is not set | ||
237 | CONFIG_RTAS_PROC=y | ||
238 | # CONFIG_MMIO_NVRAM is not set | ||
239 | CONFIG_PPC_MPC106=y | ||
240 | # CONFIG_PPC_970_NAP is not set | ||
241 | # CONFIG_PPC_INDIRECT_IO is not set | ||
242 | # CONFIG_GENERIC_IOMAP is not set | ||
243 | CONFIG_CPU_FREQ=y | ||
244 | CONFIG_CPU_FREQ_TABLE=y | ||
245 | CONFIG_CPU_FREQ_DEBUG=y | ||
246 | CONFIG_CPU_FREQ_STAT=m | ||
247 | CONFIG_CPU_FREQ_STAT_DETAILS=y | ||
248 | # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set | ||
249 | # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set | ||
250 | CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y | ||
251 | # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set | ||
252 | # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set | ||
253 | CONFIG_CPU_FREQ_GOV_PERFORMANCE=y | ||
254 | CONFIG_CPU_FREQ_GOV_POWERSAVE=m | ||
255 | CONFIG_CPU_FREQ_GOV_USERSPACE=y | ||
256 | CONFIG_CPU_FREQ_GOV_ONDEMAND=m | ||
257 | CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m | ||
258 | |||
259 | # | ||
260 | # CPU Frequency drivers | ||
261 | # | ||
262 | CONFIG_CPU_FREQ_PMAC=y | ||
263 | # CONFIG_PPC601_SYNC_FIX is not set | ||
264 | CONFIG_TAU=y | ||
265 | # CONFIG_TAU_INT is not set | ||
266 | CONFIG_TAU_AVERAGE=y | ||
267 | CONFIG_QUICC_ENGINE=y | ||
268 | CONFIG_CPM2=y | ||
269 | CONFIG_PPC_CPM_NEW_BINDING=y | ||
270 | CONFIG_FSL_ULI1575=y | ||
271 | CONFIG_CPM=y | ||
272 | CONFIG_PPC_BESTCOMM=y | ||
273 | CONFIG_PPC_BESTCOMM_ATA=m | ||
274 | CONFIG_PPC_BESTCOMM_FEC=m | ||
275 | CONFIG_PPC_BESTCOMM_GEN_BD=m | ||
276 | |||
277 | # | ||
278 | # Kernel options | ||
279 | # | ||
280 | CONFIG_HIGHMEM=y | ||
281 | CONFIG_TICK_ONESHOT=y | ||
282 | CONFIG_NO_HZ=y | ||
283 | CONFIG_HIGH_RES_TIMERS=y | ||
284 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
285 | # CONFIG_HZ_100 is not set | ||
286 | # CONFIG_HZ_250 is not set | ||
287 | # CONFIG_HZ_300 is not set | ||
288 | CONFIG_HZ_1000=y | ||
289 | CONFIG_HZ=1000 | ||
290 | # CONFIG_SCHED_HRTICK is not set | ||
291 | # CONFIG_PREEMPT_NONE is not set | ||
292 | CONFIG_PREEMPT_VOLUNTARY=y | ||
293 | # CONFIG_PREEMPT is not set | ||
294 | CONFIG_BINFMT_ELF=y | ||
295 | CONFIG_BINFMT_MISC=y | ||
296 | # CONFIG_MATH_EMULATION is not set | ||
297 | # CONFIG_IOMMU_HELPER is not set | ||
298 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | ||
299 | CONFIG_ARCH_HAS_WALK_MEMORY=y | ||
300 | CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y | ||
301 | # CONFIG_KEXEC is not set | ||
302 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
303 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
304 | CONFIG_SELECT_MEMORY_MODEL=y | ||
305 | CONFIG_FLATMEM_MANUAL=y | ||
306 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
307 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
308 | CONFIG_FLATMEM=y | ||
309 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
310 | # CONFIG_SPARSEMEM_STATIC is not set | ||
311 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
312 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
313 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
314 | CONFIG_RESOURCES_64BIT=y | ||
315 | CONFIG_ZONE_DMA_FLAG=1 | ||
316 | CONFIG_BOUNCE=y | ||
317 | CONFIG_VIRT_TO_BUS=y | ||
318 | CONFIG_FORCE_MAX_ZONEORDER=11 | ||
319 | CONFIG_PROC_DEVICETREE=y | ||
320 | # CONFIG_CMDLINE_BOOL is not set | ||
321 | CONFIG_EXTRA_TARGETS="" | ||
322 | CONFIG_ARCH_WANTS_FREEZER_CONTROL=y | ||
323 | CONFIG_PM=y | ||
324 | CONFIG_PM_DEBUG=y | ||
325 | # CONFIG_PM_VERBOSE is not set | ||
326 | CONFIG_CAN_PM_TRACE=y | ||
327 | CONFIG_PM_SLEEP=y | ||
328 | CONFIG_SUSPEND=y | ||
329 | CONFIG_SUSPEND_FREEZER=y | ||
330 | CONFIG_HIBERNATION=y | ||
331 | CONFIG_PM_STD_PARTITION="" | ||
332 | CONFIG_APM_EMULATION=y | ||
333 | CONFIG_SECCOMP=y | ||
334 | CONFIG_ISA_DMA_API=y | ||
335 | |||
336 | # | ||
337 | # Bus options | ||
338 | # | ||
339 | CONFIG_ISA=y | ||
340 | CONFIG_ZONE_DMA=y | ||
341 | CONFIG_GENERIC_ISA_DMA=y | ||
342 | CONFIG_PPC_INDIRECT_PCI=y | ||
343 | CONFIG_FSL_SOC=y | ||
344 | CONFIG_FSL_PCI=y | ||
345 | CONFIG_FSL_LBC=y | ||
346 | CONFIG_FSL_GTM=y | ||
347 | CONFIG_PCI=y | ||
348 | CONFIG_PCI_DOMAINS=y | ||
349 | CONFIG_PCI_SYSCALL=y | ||
350 | CONFIG_PCI_8260=y | ||
351 | CONFIG_PCIEPORTBUS=y | ||
352 | CONFIG_PCIEAER=y | ||
353 | CONFIG_PCIEASPM=y | ||
354 | # CONFIG_PCIEASPM_DEBUG is not set | ||
355 | CONFIG_ARCH_SUPPORTS_MSI=y | ||
356 | CONFIG_PCI_MSI=y | ||
357 | CONFIG_PCI_LEGACY=y | ||
358 | # CONFIG_PCI_DEBUG is not set | ||
359 | CONFIG_PCCARD=y | ||
360 | # CONFIG_PCMCIA_DEBUG is not set | ||
361 | CONFIG_PCMCIA=y | ||
362 | CONFIG_PCMCIA_LOAD_CIS=y | ||
363 | CONFIG_PCMCIA_IOCTL=y | ||
364 | CONFIG_CARDBUS=y | ||
365 | |||
366 | # | ||
367 | # PC-card bridges | ||
368 | # | ||
369 | CONFIG_YENTA=y | ||
370 | CONFIG_YENTA_O2=y | ||
371 | CONFIG_YENTA_RICOH=y | ||
372 | CONFIG_YENTA_TI=y | ||
373 | CONFIG_YENTA_ENE_TUNE=y | ||
374 | CONFIG_YENTA_TOSHIBA=y | ||
375 | CONFIG_PD6729=m | ||
376 | CONFIG_I82092=m | ||
377 | CONFIG_I82365=m | ||
378 | # CONFIG_TCIC is not set | ||
379 | CONFIG_PCMCIA_PROBE=y | ||
380 | CONFIG_PCCARD_NONSTATIC=y | ||
381 | # CONFIG_HOTPLUG_PCI is not set | ||
382 | CONFIG_HAS_RAPIDIO=y | ||
383 | # CONFIG_RAPIDIO is not set | ||
384 | |||
385 | # | ||
386 | # Advanced setup | ||
387 | # | ||
388 | CONFIG_ADVANCED_OPTIONS=y | ||
389 | # CONFIG_LOWMEM_SIZE_BOOL is not set | ||
390 | CONFIG_LOWMEM_SIZE=0x30000000 | ||
391 | # CONFIG_PAGE_OFFSET_BOOL is not set | ||
392 | CONFIG_PAGE_OFFSET=0xc0000000 | ||
393 | # CONFIG_KERNEL_START_BOOL is not set | ||
394 | CONFIG_KERNEL_START=0xc0000000 | ||
395 | CONFIG_PHYSICAL_START=0x00000000 | ||
396 | # CONFIG_TASK_SIZE_BOOL is not set | ||
397 | CONFIG_TASK_SIZE=0xc0000000 | ||
398 | |||
399 | # | ||
400 | # Networking | ||
401 | # | ||
402 | CONFIG_NET=y | ||
403 | |||
404 | # | ||
405 | # Networking options | ||
406 | # | ||
407 | CONFIG_PACKET=y | ||
408 | CONFIG_PACKET_MMAP=y | ||
409 | CONFIG_UNIX=y | ||
410 | CONFIG_XFRM=y | ||
411 | CONFIG_XFRM_USER=y | ||
412 | CONFIG_XFRM_SUB_POLICY=y | ||
413 | CONFIG_XFRM_MIGRATE=y | ||
414 | CONFIG_XFRM_STATISTICS=y | ||
415 | CONFIG_NET_KEY=m | ||
416 | CONFIG_NET_KEY_MIGRATE=y | ||
417 | CONFIG_INET=y | ||
418 | CONFIG_IP_MULTICAST=y | ||
419 | CONFIG_IP_ADVANCED_ROUTER=y | ||
420 | CONFIG_ASK_IP_FIB_HASH=y | ||
421 | # CONFIG_IP_FIB_TRIE is not set | ||
422 | CONFIG_IP_FIB_HASH=y | ||
423 | CONFIG_IP_MULTIPLE_TABLES=y | ||
424 | CONFIG_IP_ROUTE_MULTIPATH=y | ||
425 | CONFIG_IP_ROUTE_VERBOSE=y | ||
426 | # CONFIG_IP_PNP is not set | ||
427 | CONFIG_NET_IPIP=m | ||
428 | CONFIG_NET_IPGRE=m | ||
429 | CONFIG_NET_IPGRE_BROADCAST=y | ||
430 | CONFIG_IP_MROUTE=y | ||
431 | CONFIG_IP_PIMSM_V1=y | ||
432 | CONFIG_IP_PIMSM_V2=y | ||
433 | # CONFIG_ARPD is not set | ||
434 | CONFIG_SYN_COOKIES=y | ||
435 | CONFIG_INET_AH=m | ||
436 | CONFIG_INET_ESP=m | ||
437 | CONFIG_INET_IPCOMP=m | ||
438 | CONFIG_INET_XFRM_TUNNEL=m | ||
439 | CONFIG_INET_TUNNEL=m | ||
440 | CONFIG_INET_XFRM_MODE_TRANSPORT=m | ||
441 | CONFIG_INET_XFRM_MODE_TUNNEL=m | ||
442 | CONFIG_INET_XFRM_MODE_BEET=m | ||
443 | CONFIG_INET_LRO=y | ||
444 | CONFIG_INET_DIAG=m | ||
445 | CONFIG_INET_TCP_DIAG=m | ||
446 | CONFIG_TCP_CONG_ADVANCED=y | ||
447 | CONFIG_TCP_CONG_BIC=m | ||
448 | CONFIG_TCP_CONG_CUBIC=y | ||
449 | CONFIG_TCP_CONG_WESTWOOD=m | ||
450 | CONFIG_TCP_CONG_HTCP=m | ||
451 | CONFIG_TCP_CONG_HSTCP=m | ||
452 | CONFIG_TCP_CONG_HYBLA=m | ||
453 | CONFIG_TCP_CONG_VEGAS=m | ||
454 | CONFIG_TCP_CONG_SCALABLE=m | ||
455 | CONFIG_TCP_CONG_LP=m | ||
456 | CONFIG_TCP_CONG_VENO=m | ||
457 | CONFIG_TCP_CONG_YEAH=m | ||
458 | CONFIG_TCP_CONG_ILLINOIS=m | ||
459 | # CONFIG_DEFAULT_BIC is not set | ||
460 | CONFIG_DEFAULT_CUBIC=y | ||
461 | # CONFIG_DEFAULT_HTCP is not set | ||
462 | # CONFIG_DEFAULT_VEGAS is not set | ||
463 | # CONFIG_DEFAULT_WESTWOOD is not set | ||
464 | # CONFIG_DEFAULT_RENO is not set | ||
465 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
466 | CONFIG_TCP_MD5SIG=y | ||
467 | # CONFIG_IP_VS is not set | ||
468 | CONFIG_IPV6=m | ||
469 | CONFIG_IPV6_PRIVACY=y | ||
470 | CONFIG_IPV6_ROUTER_PREF=y | ||
471 | CONFIG_IPV6_ROUTE_INFO=y | ||
472 | CONFIG_IPV6_OPTIMISTIC_DAD=y | ||
473 | CONFIG_INET6_AH=m | ||
474 | CONFIG_INET6_ESP=m | ||
475 | CONFIG_INET6_IPCOMP=m | ||
476 | CONFIG_IPV6_MIP6=m | ||
477 | CONFIG_INET6_XFRM_TUNNEL=m | ||
478 | CONFIG_INET6_TUNNEL=m | ||
479 | CONFIG_INET6_XFRM_MODE_TRANSPORT=m | ||
480 | CONFIG_INET6_XFRM_MODE_TUNNEL=m | ||
481 | CONFIG_INET6_XFRM_MODE_BEET=m | ||
482 | CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m | ||
483 | CONFIG_IPV6_SIT=m | ||
484 | CONFIG_IPV6_NDISC_NODETYPE=y | ||
485 | CONFIG_IPV6_TUNNEL=m | ||
486 | CONFIG_IPV6_MULTIPLE_TABLES=y | ||
487 | CONFIG_IPV6_SUBTREES=y | ||
488 | CONFIG_IPV6_MROUTE=y | ||
489 | CONFIG_IPV6_PIMSM_V2=y | ||
490 | CONFIG_NETLABEL=y | ||
491 | CONFIG_NETWORK_SECMARK=y | ||
492 | CONFIG_NETFILTER=y | ||
493 | # CONFIG_NETFILTER_DEBUG is not set | ||
494 | CONFIG_NETFILTER_ADVANCED=y | ||
495 | CONFIG_BRIDGE_NETFILTER=y | ||
496 | |||
497 | # | ||
498 | # Core Netfilter Configuration | ||
499 | # | ||
500 | CONFIG_NETFILTER_NETLINK=m | ||
501 | CONFIG_NETFILTER_NETLINK_QUEUE=m | ||
502 | CONFIG_NETFILTER_NETLINK_LOG=m | ||
503 | CONFIG_NF_CONNTRACK=m | ||
504 | CONFIG_NF_CT_ACCT=y | ||
505 | CONFIG_NF_CONNTRACK_MARK=y | ||
506 | CONFIG_NF_CONNTRACK_SECMARK=y | ||
507 | CONFIG_NF_CONNTRACK_EVENTS=y | ||
508 | CONFIG_NF_CT_PROTO_DCCP=m | ||
509 | CONFIG_NF_CT_PROTO_GRE=m | ||
510 | CONFIG_NF_CT_PROTO_SCTP=m | ||
511 | CONFIG_NF_CT_PROTO_UDPLITE=m | ||
512 | CONFIG_NF_CONNTRACK_AMANDA=m | ||
513 | CONFIG_NF_CONNTRACK_FTP=m | ||
514 | CONFIG_NF_CONNTRACK_H323=m | ||
515 | CONFIG_NF_CONNTRACK_IRC=m | ||
516 | CONFIG_NF_CONNTRACK_NETBIOS_NS=m | ||
517 | CONFIG_NF_CONNTRACK_PPTP=m | ||
518 | CONFIG_NF_CONNTRACK_SANE=m | ||
519 | CONFIG_NF_CONNTRACK_SIP=m | ||
520 | CONFIG_NF_CONNTRACK_TFTP=m | ||
521 | CONFIG_NF_CT_NETLINK=m | ||
522 | CONFIG_NETFILTER_XTABLES=m | ||
523 | CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m | ||
524 | CONFIG_NETFILTER_XT_TARGET_CONNMARK=m | ||
525 | CONFIG_NETFILTER_XT_TARGET_DSCP=m | ||
526 | CONFIG_NETFILTER_XT_TARGET_MARK=m | ||
527 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m | ||
528 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | ||
529 | CONFIG_NETFILTER_XT_TARGET_NOTRACK=m | ||
530 | CONFIG_NETFILTER_XT_TARGET_RATEEST=m | ||
531 | CONFIG_NETFILTER_XT_TARGET_TRACE=m | ||
532 | CONFIG_NETFILTER_XT_TARGET_SECMARK=m | ||
533 | CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=m | ||
534 | CONFIG_NETFILTER_XT_TARGET_TCPMSS=m | ||
535 | CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m | ||
536 | CONFIG_NETFILTER_XT_MATCH_COMMENT=m | ||
537 | CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m | ||
538 | CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m | ||
539 | CONFIG_NETFILTER_XT_MATCH_CONNMARK=m | ||
540 | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m | ||
541 | CONFIG_NETFILTER_XT_MATCH_DCCP=m | ||
542 | CONFIG_NETFILTER_XT_MATCH_DSCP=m | ||
543 | CONFIG_NETFILTER_XT_MATCH_ESP=m | ||
544 | CONFIG_NETFILTER_XT_MATCH_HELPER=m | ||
545 | CONFIG_NETFILTER_XT_MATCH_IPRANGE=m | ||
546 | CONFIG_NETFILTER_XT_MATCH_LENGTH=m | ||
547 | CONFIG_NETFILTER_XT_MATCH_LIMIT=m | ||
548 | CONFIG_NETFILTER_XT_MATCH_MAC=m | ||
549 | CONFIG_NETFILTER_XT_MATCH_MARK=m | ||
550 | CONFIG_NETFILTER_XT_MATCH_OWNER=m | ||
551 | CONFIG_NETFILTER_XT_MATCH_POLICY=m | ||
552 | CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m | ||
553 | CONFIG_NETFILTER_XT_MATCH_PHYSDEV=m | ||
554 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m | ||
555 | CONFIG_NETFILTER_XT_MATCH_QUOTA=m | ||
556 | CONFIG_NETFILTER_XT_MATCH_RATEEST=m | ||
557 | CONFIG_NETFILTER_XT_MATCH_REALM=m | ||
558 | CONFIG_NETFILTER_XT_MATCH_SCTP=m | ||
559 | CONFIG_NETFILTER_XT_MATCH_STATE=m | ||
560 | CONFIG_NETFILTER_XT_MATCH_STATISTIC=m | ||
561 | CONFIG_NETFILTER_XT_MATCH_STRING=m | ||
562 | CONFIG_NETFILTER_XT_MATCH_TCPMSS=m | ||
563 | CONFIG_NETFILTER_XT_MATCH_TIME=m | ||
564 | CONFIG_NETFILTER_XT_MATCH_U32=m | ||
565 | CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m | ||
566 | |||
567 | # | ||
568 | # IP: Netfilter Configuration | ||
569 | # | ||
570 | CONFIG_NF_CONNTRACK_IPV4=m | ||
571 | # CONFIG_NF_CONNTRACK_PROC_COMPAT is not set | ||
572 | CONFIG_IP_NF_QUEUE=m | ||
573 | CONFIG_IP_NF_IPTABLES=m | ||
574 | CONFIG_IP_NF_MATCH_RECENT=m | ||
575 | CONFIG_IP_NF_MATCH_ECN=m | ||
576 | CONFIG_IP_NF_MATCH_AH=m | ||
577 | CONFIG_IP_NF_MATCH_TTL=m | ||
578 | CONFIG_IP_NF_MATCH_ADDRTYPE=m | ||
579 | CONFIG_IP_NF_FILTER=m | ||
580 | CONFIG_IP_NF_TARGET_REJECT=m | ||
581 | CONFIG_IP_NF_TARGET_LOG=m | ||
582 | CONFIG_IP_NF_TARGET_ULOG=m | ||
583 | CONFIG_NF_NAT=m | ||
584 | CONFIG_NF_NAT_NEEDED=y | ||
585 | CONFIG_IP_NF_TARGET_MASQUERADE=m | ||
586 | CONFIG_IP_NF_TARGET_REDIRECT=m | ||
587 | CONFIG_IP_NF_TARGET_NETMAP=m | ||
588 | CONFIG_NF_NAT_SNMP_BASIC=m | ||
589 | CONFIG_NF_NAT_PROTO_DCCP=m | ||
590 | CONFIG_NF_NAT_PROTO_GRE=m | ||
591 | CONFIG_NF_NAT_PROTO_UDPLITE=m | ||
592 | CONFIG_NF_NAT_PROTO_SCTP=m | ||
593 | CONFIG_NF_NAT_FTP=m | ||
594 | CONFIG_NF_NAT_IRC=m | ||
595 | CONFIG_NF_NAT_TFTP=m | ||
596 | CONFIG_NF_NAT_AMANDA=m | ||
597 | CONFIG_NF_NAT_PPTP=m | ||
598 | CONFIG_NF_NAT_H323=m | ||
599 | CONFIG_NF_NAT_SIP=m | ||
600 | CONFIG_IP_NF_MANGLE=m | ||
601 | CONFIG_IP_NF_TARGET_ECN=m | ||
602 | CONFIG_IP_NF_TARGET_TTL=m | ||
603 | CONFIG_IP_NF_TARGET_CLUSTERIP=m | ||
604 | CONFIG_IP_NF_RAW=m | ||
605 | CONFIG_IP_NF_ARPTABLES=m | ||
606 | CONFIG_IP_NF_ARPFILTER=m | ||
607 | CONFIG_IP_NF_ARP_MANGLE=m | ||
608 | |||
609 | # | ||
610 | # IPv6: Netfilter Configuration | ||
611 | # | ||
612 | CONFIG_NF_CONNTRACK_IPV6=m | ||
613 | CONFIG_IP6_NF_QUEUE=m | ||
614 | CONFIG_IP6_NF_IPTABLES=m | ||
615 | CONFIG_IP6_NF_MATCH_RT=m | ||
616 | CONFIG_IP6_NF_MATCH_OPTS=m | ||
617 | CONFIG_IP6_NF_MATCH_FRAG=m | ||
618 | CONFIG_IP6_NF_MATCH_HL=m | ||
619 | CONFIG_IP6_NF_MATCH_IPV6HEADER=m | ||
620 | CONFIG_IP6_NF_MATCH_AH=m | ||
621 | CONFIG_IP6_NF_MATCH_MH=m | ||
622 | CONFIG_IP6_NF_MATCH_EUI64=m | ||
623 | CONFIG_IP6_NF_FILTER=m | ||
624 | CONFIG_IP6_NF_TARGET_LOG=m | ||
625 | CONFIG_IP6_NF_TARGET_REJECT=m | ||
626 | CONFIG_IP6_NF_MANGLE=m | ||
627 | CONFIG_IP6_NF_TARGET_HL=m | ||
628 | CONFIG_IP6_NF_RAW=m | ||
629 | |||
630 | # | ||
631 | # DECnet: Netfilter Configuration | ||
632 | # | ||
633 | # CONFIG_DECNET_NF_GRABULATOR is not set | ||
634 | |||
635 | # | ||
636 | # Bridge: Netfilter Configuration | ||
637 | # | ||
638 | CONFIG_BRIDGE_NF_EBTABLES=m | ||
639 | CONFIG_BRIDGE_EBT_BROUTE=m | ||
640 | CONFIG_BRIDGE_EBT_T_FILTER=m | ||
641 | CONFIG_BRIDGE_EBT_T_NAT=m | ||
642 | CONFIG_BRIDGE_EBT_802_3=m | ||
643 | CONFIG_BRIDGE_EBT_AMONG=m | ||
644 | CONFIG_BRIDGE_EBT_ARP=m | ||
645 | CONFIG_BRIDGE_EBT_IP=m | ||
646 | CONFIG_BRIDGE_EBT_LIMIT=m | ||
647 | CONFIG_BRIDGE_EBT_MARK=m | ||
648 | CONFIG_BRIDGE_EBT_PKTTYPE=m | ||
649 | CONFIG_BRIDGE_EBT_STP=m | ||
650 | CONFIG_BRIDGE_EBT_VLAN=m | ||
651 | CONFIG_BRIDGE_EBT_ARPREPLY=m | ||
652 | CONFIG_BRIDGE_EBT_DNAT=m | ||
653 | CONFIG_BRIDGE_EBT_MARK_T=m | ||
654 | CONFIG_BRIDGE_EBT_REDIRECT=m | ||
655 | CONFIG_BRIDGE_EBT_SNAT=m | ||
656 | CONFIG_BRIDGE_EBT_LOG=m | ||
657 | CONFIG_BRIDGE_EBT_ULOG=m | ||
658 | CONFIG_BRIDGE_EBT_NFLOG=m | ||
659 | CONFIG_IP_DCCP=m | ||
660 | CONFIG_INET_DCCP_DIAG=m | ||
661 | CONFIG_IP_DCCP_ACKVEC=y | ||
662 | |||
663 | # | ||
664 | # DCCP CCIDs Configuration (EXPERIMENTAL) | ||
665 | # | ||
666 | CONFIG_IP_DCCP_CCID2=m | ||
667 | # CONFIG_IP_DCCP_CCID2_DEBUG is not set | ||
668 | CONFIG_IP_DCCP_CCID3=m | ||
669 | # CONFIG_IP_DCCP_CCID3_DEBUG is not set | ||
670 | CONFIG_IP_DCCP_CCID3_RTO=100 | ||
671 | CONFIG_IP_DCCP_TFRC_LIB=m | ||
672 | |||
673 | # | ||
674 | # DCCP Kernel Hacking | ||
675 | # | ||
676 | # CONFIG_IP_DCCP_DEBUG is not set | ||
677 | CONFIG_NET_DCCPPROBE=m | ||
678 | CONFIG_IP_SCTP=m | ||
679 | # CONFIG_SCTP_DBG_MSG is not set | ||
680 | # CONFIG_SCTP_DBG_OBJCNT is not set | ||
681 | # CONFIG_SCTP_HMAC_NONE is not set | ||
682 | # CONFIG_SCTP_HMAC_SHA1 is not set | ||
683 | CONFIG_SCTP_HMAC_MD5=y | ||
684 | CONFIG_TIPC=m | ||
685 | # CONFIG_TIPC_ADVANCED is not set | ||
686 | # CONFIG_TIPC_DEBUG is not set | ||
687 | CONFIG_ATM=m | ||
688 | CONFIG_ATM_CLIP=m | ||
689 | # CONFIG_ATM_CLIP_NO_ICMP is not set | ||
690 | CONFIG_ATM_LANE=m | ||
691 | # CONFIG_ATM_MPOA is not set | ||
692 | CONFIG_ATM_BR2684=m | ||
693 | # CONFIG_ATM_BR2684_IPFILTER is not set | ||
694 | CONFIG_BRIDGE=m | ||
695 | CONFIG_VLAN_8021Q=m | ||
696 | CONFIG_DECNET=m | ||
697 | CONFIG_DECNET_ROUTER=y | ||
698 | CONFIG_LLC=m | ||
699 | # CONFIG_LLC2 is not set | ||
700 | CONFIG_IPX=m | ||
701 | # CONFIG_IPX_INTERN is not set | ||
702 | CONFIG_ATALK=m | ||
703 | CONFIG_DEV_APPLETALK=m | ||
704 | # CONFIG_LTPC is not set | ||
705 | # CONFIG_COPS is not set | ||
706 | CONFIG_IPDDP=m | ||
707 | CONFIG_IPDDP_ENCAP=y | ||
708 | CONFIG_IPDDP_DECAP=y | ||
709 | # CONFIG_X25 is not set | ||
710 | # CONFIG_LAPB is not set | ||
711 | # CONFIG_ECONET is not set | ||
712 | CONFIG_WAN_ROUTER=m | ||
713 | CONFIG_NET_SCHED=y | ||
714 | |||
715 | # | ||
716 | # Queueing/Scheduling | ||
717 | # | ||
718 | CONFIG_NET_SCH_CBQ=m | ||
719 | CONFIG_NET_SCH_HTB=m | ||
720 | CONFIG_NET_SCH_HFSC=m | ||
721 | CONFIG_NET_SCH_ATM=m | ||
722 | CONFIG_NET_SCH_PRIO=m | ||
723 | CONFIG_NET_SCH_RED=m | ||
724 | CONFIG_NET_SCH_SFQ=m | ||
725 | CONFIG_NET_SCH_TEQL=m | ||
726 | CONFIG_NET_SCH_TBF=m | ||
727 | CONFIG_NET_SCH_GRED=m | ||
728 | CONFIG_NET_SCH_DSMARK=m | ||
729 | CONFIG_NET_SCH_NETEM=m | ||
730 | CONFIG_NET_SCH_INGRESS=m | ||
731 | |||
732 | # | ||
733 | # Classification | ||
734 | # | ||
735 | CONFIG_NET_CLS=y | ||
736 | CONFIG_NET_CLS_BASIC=m | ||
737 | CONFIG_NET_CLS_TCINDEX=m | ||
738 | CONFIG_NET_CLS_ROUTE4=m | ||
739 | CONFIG_NET_CLS_ROUTE=y | ||
740 | CONFIG_NET_CLS_FW=m | ||
741 | CONFIG_NET_CLS_U32=m | ||
742 | CONFIG_CLS_U32_PERF=y | ||
743 | CONFIG_CLS_U32_MARK=y | ||
744 | CONFIG_NET_CLS_RSVP=m | ||
745 | CONFIG_NET_CLS_RSVP6=m | ||
746 | CONFIG_NET_CLS_FLOW=m | ||
747 | CONFIG_NET_EMATCH=y | ||
748 | CONFIG_NET_EMATCH_STACK=32 | ||
749 | CONFIG_NET_EMATCH_CMP=m | ||
750 | CONFIG_NET_EMATCH_NBYTE=m | ||
751 | CONFIG_NET_EMATCH_U32=m | ||
752 | CONFIG_NET_EMATCH_META=m | ||
753 | CONFIG_NET_EMATCH_TEXT=m | ||
754 | CONFIG_NET_CLS_ACT=y | ||
755 | CONFIG_NET_ACT_POLICE=m | ||
756 | CONFIG_NET_ACT_GACT=m | ||
757 | CONFIG_GACT_PROB=y | ||
758 | CONFIG_NET_ACT_MIRRED=m | ||
759 | CONFIG_NET_ACT_IPT=m | ||
760 | CONFIG_NET_ACT_NAT=m | ||
761 | CONFIG_NET_ACT_PEDIT=m | ||
762 | CONFIG_NET_ACT_SIMP=m | ||
763 | CONFIG_NET_CLS_IND=y | ||
764 | CONFIG_NET_SCH_FIFO=y | ||
765 | |||
766 | # | ||
767 | # Network testing | ||
768 | # | ||
769 | # CONFIG_NET_PKTGEN is not set | ||
770 | # CONFIG_NET_TCPPROBE is not set | ||
771 | # CONFIG_HAMRADIO is not set | ||
772 | # CONFIG_CAN is not set | ||
773 | CONFIG_IRDA=m | ||
774 | |||
775 | # | ||
776 | # IrDA protocols | ||
777 | # | ||
778 | CONFIG_IRLAN=m | ||
779 | CONFIG_IRNET=m | ||
780 | CONFIG_IRCOMM=m | ||
781 | # CONFIG_IRDA_ULTRA is not set | ||
782 | |||
783 | # | ||
784 | # IrDA options | ||
785 | # | ||
786 | CONFIG_IRDA_CACHE_LAST_LSAP=y | ||
787 | CONFIG_IRDA_FAST_RR=y | ||
788 | # CONFIG_IRDA_DEBUG is not set | ||
789 | |||
790 | # | ||
791 | # Infrared-port device drivers | ||
792 | # | ||
793 | |||
794 | # | ||
795 | # SIR device drivers | ||
796 | # | ||
797 | CONFIG_IRTTY_SIR=m | ||
798 | |||
799 | # | ||
800 | # Dongle support | ||
801 | # | ||
802 | # CONFIG_DONGLE is not set | ||
803 | CONFIG_KINGSUN_DONGLE=m | ||
804 | CONFIG_KSDAZZLE_DONGLE=m | ||
805 | CONFIG_KS959_DONGLE=m | ||
806 | |||
807 | # | ||
808 | # FIR device drivers | ||
809 | # | ||
810 | CONFIG_USB_IRDA=m | ||
811 | CONFIG_SIGMATEL_FIR=m | ||
812 | CONFIG_NSC_FIR=m | ||
813 | CONFIG_WINBOND_FIR=m | ||
814 | CONFIG_TOSHIBA_FIR=m | ||
815 | CONFIG_SMC_IRCC_FIR=m | ||
816 | CONFIG_ALI_FIR=m | ||
817 | CONFIG_VLSI_FIR=m | ||
818 | CONFIG_VIA_FIR=m | ||
819 | CONFIG_MCS_FIR=m | ||
820 | CONFIG_BT=m | ||
821 | CONFIG_BT_L2CAP=m | ||
822 | CONFIG_BT_SCO=m | ||
823 | CONFIG_BT_RFCOMM=m | ||
824 | CONFIG_BT_RFCOMM_TTY=y | ||
825 | CONFIG_BT_BNEP=m | ||
826 | CONFIG_BT_BNEP_MC_FILTER=y | ||
827 | CONFIG_BT_BNEP_PROTO_FILTER=y | ||
828 | CONFIG_BT_HIDP=m | ||
829 | |||
830 | # | ||
831 | # Bluetooth device drivers | ||
832 | # | ||
833 | CONFIG_BT_HCIUSB=m | ||
834 | CONFIG_BT_HCIUSB_SCO=y | ||
835 | CONFIG_BT_HCIUART=m | ||
836 | CONFIG_BT_HCIUART_H4=y | ||
837 | CONFIG_BT_HCIUART_BCSP=y | ||
838 | CONFIG_BT_HCIUART_LL=y | ||
839 | CONFIG_BT_HCIBCM203X=m | ||
840 | CONFIG_BT_HCIBPA10X=m | ||
841 | CONFIG_BT_HCIBFUSB=m | ||
842 | CONFIG_BT_HCIDTL1=m | ||
843 | CONFIG_BT_HCIBT3C=m | ||
844 | CONFIG_BT_HCIBLUECARD=m | ||
845 | CONFIG_BT_HCIBTUART=m | ||
846 | CONFIG_BT_HCIVHCI=m | ||
847 | # CONFIG_AF_RXRPC is not set | ||
848 | CONFIG_FIB_RULES=y | ||
849 | |||
850 | # | ||
851 | # Wireless | ||
852 | # | ||
853 | CONFIG_CFG80211=m | ||
854 | CONFIG_NL80211=y | ||
855 | CONFIG_WIRELESS_EXT=y | ||
856 | CONFIG_WIRELESS_EXT_SYSFS=y | ||
857 | CONFIG_MAC80211=m | ||
858 | CONFIG_MAC80211_QOS=y | ||
859 | |||
860 | # | ||
861 | # Rate control algorithm selection | ||
862 | # | ||
863 | CONFIG_MAC80211_RC_PID=y | ||
864 | CONFIG_MAC80211_RC_DEFAULT_PID=y | ||
865 | CONFIG_MAC80211_RC_DEFAULT="pid" | ||
866 | CONFIG_MAC80211_MESH=y | ||
867 | CONFIG_MAC80211_LEDS=y | ||
868 | CONFIG_MAC80211_DEBUGFS=y | ||
869 | # CONFIG_MAC80211_DEBUG_MENU is not set | ||
870 | CONFIG_IEEE80211=m | ||
871 | CONFIG_IEEE80211_DEBUG=y | ||
872 | CONFIG_IEEE80211_CRYPT_WEP=m | ||
873 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
874 | CONFIG_IEEE80211_CRYPT_TKIP=m | ||
875 | # CONFIG_RFKILL is not set | ||
876 | CONFIG_NET_9P=m | ||
877 | CONFIG_NET_9P_VIRTIO=m | ||
878 | # CONFIG_NET_9P_DEBUG is not set | ||
879 | |||
880 | # | ||
881 | # Device Drivers | ||
882 | # | ||
883 | |||
884 | # | ||
885 | # Generic Driver Options | ||
886 | # | ||
887 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
888 | CONFIG_STANDALONE=y | ||
889 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
890 | CONFIG_FW_LOADER=y | ||
891 | # CONFIG_FIRMWARE_IN_KERNEL is not set | ||
892 | CONFIG_EXTRA_FIRMWARE="" | ||
893 | # CONFIG_DEBUG_DRIVER is not set | ||
894 | CONFIG_DEBUG_DEVRES=y | ||
895 | # CONFIG_SYS_HYPERVISOR is not set | ||
896 | CONFIG_CONNECTOR=y | ||
897 | CONFIG_PROC_EVENTS=y | ||
898 | # CONFIG_MTD is not set | ||
899 | CONFIG_OF_DEVICE=y | ||
900 | CONFIG_OF_GPIO=y | ||
901 | CONFIG_OF_I2C=y | ||
902 | CONFIG_PARPORT=m | ||
903 | CONFIG_PARPORT_PC=m | ||
904 | CONFIG_PARPORT_SERIAL=m | ||
905 | # CONFIG_PARPORT_PC_FIFO is not set | ||
906 | # CONFIG_PARPORT_PC_SUPERIO is not set | ||
907 | # CONFIG_PARPORT_PC_PCMCIA is not set | ||
908 | # CONFIG_PARPORT_GSC is not set | ||
909 | # CONFIG_PARPORT_AX88796 is not set | ||
910 | CONFIG_PARPORT_1284=y | ||
911 | CONFIG_PARPORT_NOT_PC=y | ||
912 | CONFIG_PNP=y | ||
913 | # CONFIG_PNP_DEBUG is not set | ||
914 | |||
915 | # | ||
916 | # Protocols | ||
917 | # | ||
918 | CONFIG_ISAPNP=y | ||
919 | # CONFIG_PNPACPI is not set | ||
920 | CONFIG_BLK_DEV=y | ||
921 | # CONFIG_BLK_DEV_FD is not set | ||
922 | CONFIG_MAC_FLOPPY=m | ||
923 | # CONFIG_BLK_DEV_XD is not set | ||
924 | # CONFIG_PARIDE is not set | ||
925 | # CONFIG_BLK_CPQ_DA is not set | ||
926 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
927 | # CONFIG_BLK_DEV_DAC960 is not set | ||
928 | # CONFIG_BLK_DEV_UMEM is not set | ||
929 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
930 | CONFIG_BLK_DEV_LOOP=m | ||
931 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
932 | CONFIG_BLK_DEV_NBD=m | ||
933 | # CONFIG_BLK_DEV_SX8 is not set | ||
934 | # CONFIG_BLK_DEV_UB is not set | ||
935 | CONFIG_BLK_DEV_RAM=y | ||
936 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
937 | CONFIG_BLK_DEV_RAM_SIZE=16384 | ||
938 | # CONFIG_BLK_DEV_XIP is not set | ||
939 | CONFIG_CDROM_PKTCDVD=m | ||
940 | CONFIG_CDROM_PKTCDVD_BUFFERS=8 | ||
941 | # CONFIG_CDROM_PKTCDVD_WCACHE is not set | ||
942 | # CONFIG_ATA_OVER_ETH is not set | ||
943 | CONFIG_VIRTIO_BLK=m | ||
944 | CONFIG_MISC_DEVICES=y | ||
945 | # CONFIG_PHANTOM is not set | ||
946 | CONFIG_EEPROM_93CX6=m | ||
947 | # CONFIG_SGI_IOC4 is not set | ||
948 | # CONFIG_TIFM_CORE is not set | ||
949 | CONFIG_ENCLOSURE_SERVICES=m | ||
950 | CONFIG_HAVE_IDE=y | ||
951 | CONFIG_IDE=y | ||
952 | CONFIG_BLK_DEV_IDE=y | ||
953 | |||
954 | # | ||
955 | # Please see Documentation/ide/ide.txt for help/info on IDE drives | ||
956 | # | ||
957 | CONFIG_IDE_ATAPI=y | ||
958 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
959 | CONFIG_BLK_DEV_IDEDISK=y | ||
960 | CONFIG_IDEDISK_MULTI_MODE=y | ||
961 | # CONFIG_BLK_DEV_IDECS is not set | ||
962 | # CONFIG_BLK_DEV_DELKIN is not set | ||
963 | CONFIG_BLK_DEV_IDECD=m | ||
964 | CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y | ||
965 | # CONFIG_BLK_DEV_IDETAPE is not set | ||
966 | CONFIG_BLK_DEV_IDEFLOPPY=m | ||
967 | # CONFIG_BLK_DEV_IDESCSI is not set | ||
968 | CONFIG_IDE_TASK_IOCTL=y | ||
969 | CONFIG_IDE_PROC_FS=y | ||
970 | |||
971 | # | ||
972 | # IDE chipset support/bugfixes | ||
973 | # | ||
974 | # CONFIG_IDE_GENERIC is not set | ||
975 | # CONFIG_BLK_DEV_PLATFORM is not set | ||
976 | # CONFIG_BLK_DEV_IDEPNP is not set | ||
977 | CONFIG_BLK_DEV_IDEDMA_SFF=y | ||
978 | |||
979 | # | ||
980 | # PCI IDE chipsets support | ||
981 | # | ||
982 | CONFIG_BLK_DEV_IDEPCI=y | ||
983 | # CONFIG_IDEPCI_PCIBUS_ORDER is not set | ||
984 | # CONFIG_BLK_DEV_OFFBOARD is not set | ||
985 | CONFIG_BLK_DEV_GENERIC=y | ||
986 | # CONFIG_BLK_DEV_OPTI621 is not set | ||
987 | CONFIG_BLK_DEV_IDEDMA_PCI=y | ||
988 | # CONFIG_BLK_DEV_AEC62XX is not set | ||
989 | # CONFIG_BLK_DEV_ALI15X3 is not set | ||
990 | # CONFIG_BLK_DEV_AMD74XX is not set | ||
991 | # CONFIG_BLK_DEV_CMD64X is not set | ||
992 | # CONFIG_BLK_DEV_TRIFLEX is not set | ||
993 | # CONFIG_BLK_DEV_CY82C693 is not set | ||
994 | # CONFIG_BLK_DEV_CS5520 is not set | ||
995 | # CONFIG_BLK_DEV_CS5530 is not set | ||
996 | # CONFIG_BLK_DEV_HPT34X is not set | ||
997 | # CONFIG_BLK_DEV_HPT366 is not set | ||
998 | # CONFIG_BLK_DEV_JMICRON is not set | ||
999 | # CONFIG_BLK_DEV_SC1200 is not set | ||
1000 | # CONFIG_BLK_DEV_PIIX is not set | ||
1001 | # CONFIG_BLK_DEV_IT8213 is not set | ||
1002 | # CONFIG_BLK_DEV_IT821X is not set | ||
1003 | # CONFIG_BLK_DEV_NS87415 is not set | ||
1004 | # CONFIG_BLK_DEV_PDC202XX_OLD is not set | ||
1005 | # CONFIG_BLK_DEV_PDC202XX_NEW is not set | ||
1006 | # CONFIG_BLK_DEV_SVWKS is not set | ||
1007 | # CONFIG_BLK_DEV_SIIMAGE is not set | ||
1008 | # CONFIG_BLK_DEV_SL82C105 is not set | ||
1009 | # CONFIG_BLK_DEV_SLC90E66 is not set | ||
1010 | # CONFIG_BLK_DEV_TRM290 is not set | ||
1011 | # CONFIG_BLK_DEV_VIA82CXXX is not set | ||
1012 | # CONFIG_BLK_DEV_TC86C001 is not set | ||
1013 | CONFIG_BLK_DEV_IDE_PMAC=y | ||
1014 | CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST=y | ||
1015 | CONFIG_BLK_DEV_IDEDMA_PMAC=y | ||
1016 | CONFIG_BLK_DEV_IDEDMA=y | ||
1017 | CONFIG_BLK_DEV_HD_ONLY=y | ||
1018 | CONFIG_BLK_DEV_HD=y | ||
1019 | |||
1020 | # | ||
1021 | # SCSI device support | ||
1022 | # | ||
1023 | CONFIG_RAID_ATTRS=m | ||
1024 | CONFIG_SCSI=y | ||
1025 | CONFIG_SCSI_DMA=y | ||
1026 | CONFIG_SCSI_TGT=m | ||
1027 | # CONFIG_SCSI_NETLINK is not set | ||
1028 | CONFIG_SCSI_PROC_FS=y | ||
1029 | |||
1030 | # | ||
1031 | # SCSI support type (disk, tape, CD-ROM) | ||
1032 | # | ||
1033 | CONFIG_BLK_DEV_SD=y | ||
1034 | CONFIG_CHR_DEV_ST=m | ||
1035 | CONFIG_CHR_DEV_OSST=m | ||
1036 | CONFIG_BLK_DEV_SR=m | ||
1037 | CONFIG_BLK_DEV_SR_VENDOR=y | ||
1038 | CONFIG_CHR_DEV_SG=y | ||
1039 | CONFIG_CHR_DEV_SCH=m | ||
1040 | CONFIG_SCSI_ENCLOSURE=m | ||
1041 | |||
1042 | # | ||
1043 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
1044 | # | ||
1045 | CONFIG_SCSI_MULTI_LUN=y | ||
1046 | CONFIG_SCSI_CONSTANTS=y | ||
1047 | CONFIG_SCSI_LOGGING=y | ||
1048 | CONFIG_SCSI_SCAN_ASYNC=y | ||
1049 | CONFIG_SCSI_WAIT_SCAN=m | ||
1050 | |||
1051 | # | ||
1052 | # SCSI Transports | ||
1053 | # | ||
1054 | CONFIG_SCSI_SPI_ATTRS=m | ||
1055 | # CONFIG_SCSI_FC_ATTRS is not set | ||
1056 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
1057 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
1058 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
1059 | CONFIG_SCSI_SRP_ATTRS=m | ||
1060 | CONFIG_SCSI_SRP_TGT_ATTRS=y | ||
1061 | CONFIG_SCSI_LOWLEVEL=y | ||
1062 | # CONFIG_ISCSI_TCP is not set | ||
1063 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | ||
1064 | # CONFIG_SCSI_3W_9XXX is not set | ||
1065 | # CONFIG_SCSI_7000FASST is not set | ||
1066 | # CONFIG_SCSI_ACARD is not set | ||
1067 | # CONFIG_SCSI_AHA152X is not set | ||
1068 | # CONFIG_SCSI_AHA1542 is not set | ||
1069 | # CONFIG_SCSI_AACRAID is not set | ||
1070 | # CONFIG_SCSI_AIC7XXX is not set | ||
1071 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
1072 | # CONFIG_SCSI_AIC79XX is not set | ||
1073 | # CONFIG_SCSI_AIC94XX is not set | ||
1074 | # CONFIG_SCSI_DPT_I2O is not set | ||
1075 | # CONFIG_SCSI_ADVANSYS is not set | ||
1076 | # CONFIG_SCSI_IN2000 is not set | ||
1077 | # CONFIG_SCSI_ARCMSR is not set | ||
1078 | # CONFIG_MEGARAID_NEWGEN is not set | ||
1079 | # CONFIG_MEGARAID_LEGACY is not set | ||
1080 | # CONFIG_MEGARAID_SAS is not set | ||
1081 | # CONFIG_SCSI_HPTIOP is not set | ||
1082 | # CONFIG_SCSI_BUSLOGIC is not set | ||
1083 | # CONFIG_SCSI_DMX3191D is not set | ||
1084 | # CONFIG_SCSI_DTC3280 is not set | ||
1085 | # CONFIG_SCSI_EATA is not set | ||
1086 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
1087 | # CONFIG_SCSI_GDTH is not set | ||
1088 | # CONFIG_SCSI_GENERIC_NCR5380 is not set | ||
1089 | # CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set | ||
1090 | # CONFIG_SCSI_IPS is not set | ||
1091 | # CONFIG_SCSI_INITIO is not set | ||
1092 | # CONFIG_SCSI_INIA100 is not set | ||
1093 | # CONFIG_SCSI_PPA is not set | ||
1094 | # CONFIG_SCSI_IMM is not set | ||
1095 | # CONFIG_SCSI_MVSAS is not set | ||
1096 | # CONFIG_SCSI_NCR53C406A is not set | ||
1097 | # CONFIG_SCSI_STEX is not set | ||
1098 | # CONFIG_SCSI_SYM53C8XX_2 is not set | ||
1099 | # CONFIG_SCSI_IPR is not set | ||
1100 | # CONFIG_SCSI_PAS16 is not set | ||
1101 | # CONFIG_SCSI_QLOGIC_FAS is not set | ||
1102 | # CONFIG_SCSI_QLOGIC_1280 is not set | ||
1103 | # CONFIG_SCSI_QLA_FC is not set | ||
1104 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
1105 | # CONFIG_SCSI_LPFC is not set | ||
1106 | # CONFIG_SCSI_SYM53C416 is not set | ||
1107 | # CONFIG_SCSI_DC395x is not set | ||
1108 | # CONFIG_SCSI_DC390T is not set | ||
1109 | # CONFIG_SCSI_T128 is not set | ||
1110 | # CONFIG_SCSI_U14_34F is not set | ||
1111 | # CONFIG_SCSI_NSP32 is not set | ||
1112 | # CONFIG_SCSI_DEBUG is not set | ||
1113 | CONFIG_SCSI_MESH=m | ||
1114 | CONFIG_SCSI_MESH_SYNC_RATE=5 | ||
1115 | CONFIG_SCSI_MESH_RESET_DELAY_MS=4000 | ||
1116 | CONFIG_SCSI_MAC53C94=m | ||
1117 | CONFIG_SCSI_SRP=m | ||
1118 | CONFIG_SCSI_LOWLEVEL_PCMCIA=y | ||
1119 | # CONFIG_PCMCIA_AHA152X is not set | ||
1120 | # CONFIG_PCMCIA_FDOMAIN is not set | ||
1121 | # CONFIG_PCMCIA_NINJA_SCSI is not set | ||
1122 | # CONFIG_PCMCIA_QLOGIC is not set | ||
1123 | # CONFIG_PCMCIA_SYM53C500 is not set | ||
1124 | CONFIG_SCSI_DH=y | ||
1125 | CONFIG_SCSI_DH_RDAC=m | ||
1126 | CONFIG_SCSI_DH_HP_SW=m | ||
1127 | CONFIG_SCSI_DH_EMC=m | ||
1128 | CONFIG_ATA=y | ||
1129 | # CONFIG_ATA_NONSTANDARD is not set | ||
1130 | # CONFIG_SATA_PMP is not set | ||
1131 | # CONFIG_SATA_AHCI is not set | ||
1132 | # CONFIG_SATA_SIL24 is not set | ||
1133 | CONFIG_SATA_FSL=m | ||
1134 | CONFIG_ATA_SFF=y | ||
1135 | # CONFIG_SATA_SVW is not set | ||
1136 | CONFIG_ATA_PIIX=m | ||
1137 | # CONFIG_SATA_MV is not set | ||
1138 | # CONFIG_SATA_NV is not set | ||
1139 | CONFIG_PDC_ADMA=m | ||
1140 | # CONFIG_SATA_QSTOR is not set | ||
1141 | # CONFIG_SATA_PROMISE is not set | ||
1142 | # CONFIG_SATA_SX4 is not set | ||
1143 | # CONFIG_SATA_SIL is not set | ||
1144 | # CONFIG_SATA_SIS is not set | ||
1145 | # CONFIG_SATA_ULI is not set | ||
1146 | # CONFIG_SATA_VIA is not set | ||
1147 | # CONFIG_SATA_VITESSE is not set | ||
1148 | # CONFIG_SATA_INIC162X is not set | ||
1149 | # CONFIG_PATA_ALI is not set | ||
1150 | # CONFIG_PATA_AMD is not set | ||
1151 | # CONFIG_PATA_ARTOP is not set | ||
1152 | # CONFIG_PATA_ATIIXP is not set | ||
1153 | # CONFIG_PATA_CMD640_PCI is not set | ||
1154 | # CONFIG_PATA_CMD64X is not set | ||
1155 | # CONFIG_PATA_CS5520 is not set | ||
1156 | # CONFIG_PATA_CS5530 is not set | ||
1157 | # CONFIG_PATA_CYPRESS is not set | ||
1158 | # CONFIG_PATA_EFAR is not set | ||
1159 | CONFIG_ATA_GENERIC=m | ||
1160 | # CONFIG_PATA_HPT366 is not set | ||
1161 | # CONFIG_PATA_HPT37X is not set | ||
1162 | # CONFIG_PATA_HPT3X2N is not set | ||
1163 | # CONFIG_PATA_HPT3X3 is not set | ||
1164 | # CONFIG_PATA_ISAPNP is not set | ||
1165 | # CONFIG_PATA_IT821X is not set | ||
1166 | # CONFIG_PATA_IT8213 is not set | ||
1167 | # CONFIG_PATA_JMICRON is not set | ||
1168 | # CONFIG_PATA_LEGACY is not set | ||
1169 | # CONFIG_PATA_TRIFLEX is not set | ||
1170 | # CONFIG_PATA_MARVELL is not set | ||
1171 | CONFIG_PATA_MPC52xx=m | ||
1172 | # CONFIG_PATA_MPIIX is not set | ||
1173 | # CONFIG_PATA_OLDPIIX is not set | ||
1174 | # CONFIG_PATA_NETCELL is not set | ||
1175 | # CONFIG_PATA_NINJA32 is not set | ||
1176 | # CONFIG_PATA_NS87410 is not set | ||
1177 | # CONFIG_PATA_NS87415 is not set | ||
1178 | # CONFIG_PATA_OPTI is not set | ||
1179 | CONFIG_PATA_OPTIDMA=m | ||
1180 | # CONFIG_PATA_PCMCIA is not set | ||
1181 | # CONFIG_PATA_PDC_OLD is not set | ||
1182 | # CONFIG_PATA_QDI is not set | ||
1183 | # CONFIG_PATA_RADISYS is not set | ||
1184 | # CONFIG_PATA_RZ1000 is not set | ||
1185 | # CONFIG_PATA_SC1200 is not set | ||
1186 | # CONFIG_PATA_SERVERWORKS is not set | ||
1187 | # CONFIG_PATA_PDC2027X is not set | ||
1188 | # CONFIG_PATA_SIL680 is not set | ||
1189 | # CONFIG_PATA_SIS is not set | ||
1190 | CONFIG_PATA_VIA=m | ||
1191 | # CONFIG_PATA_WINBOND is not set | ||
1192 | # CONFIG_PATA_WINBOND_VLB is not set | ||
1193 | CONFIG_PATA_PLATFORM=m | ||
1194 | CONFIG_PATA_OF_PLATFORM=m | ||
1195 | CONFIG_PATA_SCH=m | ||
1196 | CONFIG_MD=y | ||
1197 | CONFIG_BLK_DEV_MD=y | ||
1198 | CONFIG_MD_LINEAR=m | ||
1199 | CONFIG_MD_RAID0=m | ||
1200 | CONFIG_MD_RAID1=m | ||
1201 | CONFIG_MD_RAID10=m | ||
1202 | CONFIG_MD_RAID456=m | ||
1203 | CONFIG_MD_RAID5_RESHAPE=y | ||
1204 | CONFIG_MD_MULTIPATH=m | ||
1205 | CONFIG_MD_FAULTY=m | ||
1206 | CONFIG_BLK_DEV_DM=m | ||
1207 | CONFIG_DM_DEBUG=y | ||
1208 | CONFIG_DM_CRYPT=m | ||
1209 | CONFIG_DM_SNAPSHOT=m | ||
1210 | CONFIG_DM_MIRROR=m | ||
1211 | CONFIG_DM_ZERO=m | ||
1212 | CONFIG_DM_MULTIPATH=m | ||
1213 | # CONFIG_DM_DELAY is not set | ||
1214 | CONFIG_DM_UEVENT=y | ||
1215 | # CONFIG_FUSION is not set | ||
1216 | |||
1217 | # | ||
1218 | # IEEE 1394 (FireWire) support | ||
1219 | # | ||
1220 | |||
1221 | # | ||
1222 | # Enable only one of the two stacks, unless you know what you are doing | ||
1223 | # | ||
1224 | CONFIG_FIREWIRE=m | ||
1225 | CONFIG_FIREWIRE_OHCI=m | ||
1226 | CONFIG_FIREWIRE_OHCI_DEBUG=y | ||
1227 | CONFIG_FIREWIRE_SBP2=m | ||
1228 | # CONFIG_IEEE1394 is not set | ||
1229 | # CONFIG_I2O is not set | ||
1230 | CONFIG_MACINTOSH_DRIVERS=y | ||
1231 | CONFIG_ADB=y | ||
1232 | CONFIG_ADB_CUDA=y | ||
1233 | CONFIG_ADB_PMU=y | ||
1234 | CONFIG_ADB_PMU_LED=y | ||
1235 | CONFIG_ADB_PMU_LED_IDE=y | ||
1236 | CONFIG_PMAC_APM_EMU=y | ||
1237 | CONFIG_PMAC_MEDIABAY=y | ||
1238 | CONFIG_PMAC_BACKLIGHT=y | ||
1239 | # CONFIG_PMAC_BACKLIGHT_LEGACY is not set | ||
1240 | CONFIG_ADB_MACIO=y | ||
1241 | CONFIG_INPUT_ADBHID=y | ||
1242 | CONFIG_MAC_EMUMOUSEBTN=y | ||
1243 | CONFIG_THERM_WINDTUNNEL=m | ||
1244 | CONFIG_THERM_ADT746X=m | ||
1245 | CONFIG_WINDFARM=y | ||
1246 | # CONFIG_ANSLCD is not set | ||
1247 | CONFIG_PMAC_RACKMETER=m | ||
1248 | CONFIG_NETDEVICES=y | ||
1249 | CONFIG_NETDEVICES_MULTIQUEUE=y | ||
1250 | CONFIG_IFB=m | ||
1251 | CONFIG_DUMMY=m | ||
1252 | CONFIG_BONDING=m | ||
1253 | CONFIG_MACVLAN=m | ||
1254 | CONFIG_EQUALIZER=m | ||
1255 | CONFIG_TUN=m | ||
1256 | CONFIG_VETH=m | ||
1257 | CONFIG_NET_SB1000=m | ||
1258 | # CONFIG_ARCNET is not set | ||
1259 | CONFIG_PHYLIB=m | ||
1260 | |||
1261 | # | ||
1262 | # MII PHY device drivers | ||
1263 | # | ||
1264 | CONFIG_MARVELL_PHY=m | ||
1265 | CONFIG_DAVICOM_PHY=m | ||
1266 | CONFIG_QSEMI_PHY=m | ||
1267 | CONFIG_LXT_PHY=m | ||
1268 | CONFIG_CICADA_PHY=m | ||
1269 | CONFIG_VITESSE_PHY=m | ||
1270 | CONFIG_SMSC_PHY=m | ||
1271 | CONFIG_BROADCOM_PHY=m | ||
1272 | CONFIG_ICPLUS_PHY=m | ||
1273 | CONFIG_REALTEK_PHY=m | ||
1274 | CONFIG_MDIO_BITBANG=y | ||
1275 | CONFIG_NET_ETHERNET=y | ||
1276 | CONFIG_MII=m | ||
1277 | CONFIG_MACE=m | ||
1278 | # CONFIG_MACE_AAUI_PORT is not set | ||
1279 | CONFIG_BMAC=m | ||
1280 | CONFIG_HAPPYMEAL=m | ||
1281 | CONFIG_SUNGEM=m | ||
1282 | CONFIG_CASSINI=m | ||
1283 | CONFIG_NET_VENDOR_3COM=y | ||
1284 | # CONFIG_EL1 is not set | ||
1285 | # CONFIG_EL2 is not set | ||
1286 | # CONFIG_ELPLUS is not set | ||
1287 | # CONFIG_EL16 is not set | ||
1288 | CONFIG_EL3=m | ||
1289 | # CONFIG_3C515 is not set | ||
1290 | CONFIG_VORTEX=m | ||
1291 | CONFIG_TYPHOON=m | ||
1292 | # CONFIG_LANCE is not set | ||
1293 | CONFIG_NET_VENDOR_SMC=y | ||
1294 | # CONFIG_WD80x3 is not set | ||
1295 | CONFIG_ULTRA=m | ||
1296 | # CONFIG_SMC9194 is not set | ||
1297 | # CONFIG_NET_VENDOR_RACAL is not set | ||
1298 | CONFIG_NET_TULIP=y | ||
1299 | CONFIG_DE2104X=m | ||
1300 | CONFIG_TULIP=m | ||
1301 | # CONFIG_TULIP_MWI is not set | ||
1302 | CONFIG_TULIP_MMIO=y | ||
1303 | # CONFIG_TULIP_NAPI is not set | ||
1304 | CONFIG_DE4X5=m | ||
1305 | CONFIG_WINBOND_840=m | ||
1306 | CONFIG_DM9102=m | ||
1307 | CONFIG_ULI526X=m | ||
1308 | CONFIG_PCMCIA_XIRCOM=m | ||
1309 | # CONFIG_AT1700 is not set | ||
1310 | # CONFIG_DEPCA is not set | ||
1311 | # CONFIG_HP100 is not set | ||
1312 | CONFIG_NET_ISA=y | ||
1313 | # CONFIG_E2100 is not set | ||
1314 | CONFIG_EWRK3=m | ||
1315 | # CONFIG_EEXPRESS is not set | ||
1316 | # CONFIG_EEXPRESS_PRO is not set | ||
1317 | # CONFIG_HPLAN_PLUS is not set | ||
1318 | # CONFIG_HPLAN is not set | ||
1319 | # CONFIG_LP486E is not set | ||
1320 | # CONFIG_ETH16I is not set | ||
1321 | CONFIG_NE2000=m | ||
1322 | # CONFIG_ZNET is not set | ||
1323 | # CONFIG_SEEQ8005 is not set | ||
1324 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
1325 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
1326 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
1327 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
1328 | CONFIG_NET_PCI=y | ||
1329 | CONFIG_PCNET32=m | ||
1330 | CONFIG_AMD8111_ETH=m | ||
1331 | CONFIG_AMD8111E_NAPI=y | ||
1332 | CONFIG_ADAPTEC_STARFIRE=m | ||
1333 | CONFIG_ADAPTEC_STARFIRE_NAPI=y | ||
1334 | # CONFIG_AC3200 is not set | ||
1335 | # CONFIG_APRICOT is not set | ||
1336 | CONFIG_B44=m | ||
1337 | CONFIG_B44_PCI_AUTOSELECT=y | ||
1338 | CONFIG_B44_PCICORE_AUTOSELECT=y | ||
1339 | CONFIG_B44_PCI=y | ||
1340 | CONFIG_FORCEDETH=m | ||
1341 | CONFIG_FORCEDETH_NAPI=y | ||
1342 | # CONFIG_CS89x0 is not set | ||
1343 | # CONFIG_EEPRO100 is not set | ||
1344 | CONFIG_E100=m | ||
1345 | CONFIG_FEALNX=m | ||
1346 | CONFIG_NATSEMI=m | ||
1347 | CONFIG_NE2K_PCI=m | ||
1348 | CONFIG_8139CP=m | ||
1349 | CONFIG_8139TOO=m | ||
1350 | # CONFIG_8139TOO_PIO is not set | ||
1351 | # CONFIG_8139TOO_TUNE_TWISTER is not set | ||
1352 | CONFIG_8139TOO_8129=y | ||
1353 | # CONFIG_8139_OLD_RX_RESET is not set | ||
1354 | CONFIG_R6040=m | ||
1355 | CONFIG_SIS900=m | ||
1356 | CONFIG_EPIC100=m | ||
1357 | CONFIG_SUNDANCE=m | ||
1358 | # CONFIG_SUNDANCE_MMIO is not set | ||
1359 | CONFIG_TLAN=m | ||
1360 | CONFIG_VIA_RHINE=m | ||
1361 | CONFIG_VIA_RHINE_MMIO=y | ||
1362 | CONFIG_VIA_RHINE_NAPI=y | ||
1363 | CONFIG_SC92031=m | ||
1364 | CONFIG_NET_POCKET=y | ||
1365 | CONFIG_DE600=m | ||
1366 | CONFIG_DE620=m | ||
1367 | CONFIG_FEC_MPC52xx=m | ||
1368 | CONFIG_FEC_MPC52xx_MDIO=y | ||
1369 | # CONFIG_FS_ENET is not set | ||
1370 | CONFIG_NETDEV_1000=y | ||
1371 | CONFIG_ACENIC=m | ||
1372 | # CONFIG_ACENIC_OMIT_TIGON_I is not set | ||
1373 | CONFIG_DL2K=m | ||
1374 | CONFIG_E1000=m | ||
1375 | CONFIG_E1000_NAPI=y | ||
1376 | # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set | ||
1377 | CONFIG_E1000E=m | ||
1378 | CONFIG_E1000E_ENABLED=y | ||
1379 | CONFIG_IP1000=m | ||
1380 | CONFIG_IGB=m | ||
1381 | CONFIG_NS83820=m | ||
1382 | CONFIG_HAMACHI=m | ||
1383 | CONFIG_YELLOWFIN=m | ||
1384 | CONFIG_R8169=m | ||
1385 | CONFIG_R8169_NAPI=y | ||
1386 | CONFIG_R8169_VLAN=y | ||
1387 | CONFIG_SIS190=m | ||
1388 | CONFIG_SKGE=m | ||
1389 | # CONFIG_SKGE_DEBUG is not set | ||
1390 | CONFIG_SKY2=m | ||
1391 | # CONFIG_SKY2_DEBUG is not set | ||
1392 | CONFIG_VIA_VELOCITY=m | ||
1393 | CONFIG_TIGON3=m | ||
1394 | CONFIG_BNX2=m | ||
1395 | CONFIG_GIANFAR=m | ||
1396 | CONFIG_GFAR_NAPI=y | ||
1397 | # CONFIG_UCC_GETH is not set | ||
1398 | CONFIG_MV643XX_ETH=m | ||
1399 | CONFIG_QLA3XXX=m | ||
1400 | CONFIG_ATL1=m | ||
1401 | CONFIG_NETDEV_10000=y | ||
1402 | CONFIG_CHELSIO_T1=m | ||
1403 | CONFIG_CHELSIO_T1_1G=y | ||
1404 | CONFIG_CHELSIO_T1_NAPI=y | ||
1405 | CONFIG_CHELSIO_T3=m | ||
1406 | CONFIG_IXGBE=m | ||
1407 | CONFIG_IXGB=m | ||
1408 | CONFIG_IXGB_NAPI=y | ||
1409 | CONFIG_S2IO=m | ||
1410 | CONFIG_S2IO_NAPI=y | ||
1411 | CONFIG_MYRI10GE=m | ||
1412 | CONFIG_NETXEN_NIC=m | ||
1413 | CONFIG_NIU=m | ||
1414 | # CONFIG_MLX4_CORE is not set | ||
1415 | CONFIG_TEHUTI=m | ||
1416 | CONFIG_BNX2X=m | ||
1417 | CONFIG_SFC=m | ||
1418 | # CONFIG_TR is not set | ||
1419 | |||
1420 | # | ||
1421 | # Wireless LAN | ||
1422 | # | ||
1423 | # CONFIG_WLAN_PRE80211 is not set | ||
1424 | # CONFIG_WLAN_80211 is not set | ||
1425 | # CONFIG_IWLWIFI_LEDS is not set | ||
1426 | |||
1427 | # | ||
1428 | # USB Network Adapters | ||
1429 | # | ||
1430 | CONFIG_USB_CATC=m | ||
1431 | CONFIG_USB_KAWETH=m | ||
1432 | CONFIG_USB_PEGASUS=m | ||
1433 | CONFIG_USB_RTL8150=m | ||
1434 | CONFIG_USB_USBNET=m | ||
1435 | CONFIG_USB_NET_AX8817X=m | ||
1436 | CONFIG_USB_NET_CDCETHER=m | ||
1437 | CONFIG_USB_NET_DM9601=m | ||
1438 | CONFIG_USB_NET_GL620A=m | ||
1439 | CONFIG_USB_NET_NET1080=m | ||
1440 | CONFIG_USB_NET_PLUSB=m | ||
1441 | CONFIG_USB_NET_MCS7830=m | ||
1442 | CONFIG_USB_NET_RNDIS_HOST=m | ||
1443 | CONFIG_USB_NET_CDC_SUBSET=m | ||
1444 | CONFIG_USB_ALI_M5632=y | ||
1445 | CONFIG_USB_AN2720=y | ||
1446 | CONFIG_USB_BELKIN=y | ||
1447 | CONFIG_USB_ARMLINUX=y | ||
1448 | CONFIG_USB_EPSON2888=y | ||
1449 | CONFIG_USB_KC2190=y | ||
1450 | CONFIG_USB_NET_ZAURUS=m | ||
1451 | CONFIG_NET_PCMCIA=y | ||
1452 | CONFIG_PCMCIA_3C589=m | ||
1453 | CONFIG_PCMCIA_3C574=m | ||
1454 | CONFIG_PCMCIA_FMVJ18X=m | ||
1455 | CONFIG_PCMCIA_PCNET=m | ||
1456 | CONFIG_PCMCIA_NMCLAN=m | ||
1457 | CONFIG_PCMCIA_SMC91C92=m | ||
1458 | CONFIG_PCMCIA_XIRC2PS=m | ||
1459 | CONFIG_PCMCIA_AXNET=m | ||
1460 | # CONFIG_WAN is not set | ||
1461 | CONFIG_ATM_DRIVERS=y | ||
1462 | # CONFIG_ATM_DUMMY is not set | ||
1463 | CONFIG_ATM_TCP=m | ||
1464 | CONFIG_ATM_LANAI=m | ||
1465 | CONFIG_ATM_ENI=m | ||
1466 | # CONFIG_ATM_ENI_DEBUG is not set | ||
1467 | # CONFIG_ATM_ENI_TUNE_BURST is not set | ||
1468 | # CONFIG_ATM_FIRESTREAM is not set | ||
1469 | # CONFIG_ATM_ZATM is not set | ||
1470 | CONFIG_ATM_NICSTAR=m | ||
1471 | # CONFIG_ATM_NICSTAR_USE_SUNI is not set | ||
1472 | # CONFIG_ATM_NICSTAR_USE_IDT77105 is not set | ||
1473 | CONFIG_ATM_IDT77252=m | ||
1474 | # CONFIG_ATM_IDT77252_DEBUG is not set | ||
1475 | # CONFIG_ATM_IDT77252_RCV_ALL is not set | ||
1476 | CONFIG_ATM_IDT77252_USE_SUNI=y | ||
1477 | # CONFIG_ATM_AMBASSADOR is not set | ||
1478 | # CONFIG_ATM_HORIZON is not set | ||
1479 | # CONFIG_ATM_IA is not set | ||
1480 | CONFIG_ATM_FORE200E_MAYBE=m | ||
1481 | # CONFIG_ATM_FORE200E_PCA is not set | ||
1482 | CONFIG_ATM_HE=m | ||
1483 | # CONFIG_ATM_HE_USE_SUNI is not set | ||
1484 | CONFIG_FDDI=y | ||
1485 | # CONFIG_DEFXX is not set | ||
1486 | CONFIG_SKFP=m | ||
1487 | # CONFIG_HIPPI is not set | ||
1488 | CONFIG_PLIP=m | ||
1489 | CONFIG_PPP=m | ||
1490 | CONFIG_PPP_MULTILINK=y | ||
1491 | CONFIG_PPP_FILTER=y | ||
1492 | CONFIG_PPP_ASYNC=m | ||
1493 | CONFIG_PPP_SYNC_TTY=m | ||
1494 | CONFIG_PPP_DEFLATE=m | ||
1495 | # CONFIG_PPP_BSDCOMP is not set | ||
1496 | CONFIG_PPP_MPPE=m | ||
1497 | CONFIG_PPPOE=m | ||
1498 | CONFIG_PPPOATM=m | ||
1499 | CONFIG_PPPOL2TP=m | ||
1500 | CONFIG_SLIP=m | ||
1501 | CONFIG_SLIP_COMPRESSED=y | ||
1502 | CONFIG_SLHC=m | ||
1503 | CONFIG_SLIP_SMART=y | ||
1504 | # CONFIG_SLIP_MODE_SLIP6 is not set | ||
1505 | CONFIG_NET_FC=y | ||
1506 | CONFIG_NETCONSOLE=m | ||
1507 | CONFIG_NETCONSOLE_DYNAMIC=y | ||
1508 | CONFIG_NETPOLL=y | ||
1509 | CONFIG_NETPOLL_TRAP=y | ||
1510 | CONFIG_NET_POLL_CONTROLLER=y | ||
1511 | CONFIG_VIRTIO_NET=m | ||
1512 | # CONFIG_ISDN is not set | ||
1513 | # CONFIG_PHONE is not set | ||
1514 | |||
1515 | # | ||
1516 | # Input device support | ||
1517 | # | ||
1518 | CONFIG_INPUT=y | ||
1519 | CONFIG_INPUT_FF_MEMLESS=y | ||
1520 | CONFIG_INPUT_POLLDEV=m | ||
1521 | |||
1522 | # | ||
1523 | # Userland interfaces | ||
1524 | # | ||
1525 | CONFIG_INPUT_MOUSEDEV=y | ||
1526 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
1527 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
1528 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
1529 | CONFIG_INPUT_JOYDEV=m | ||
1530 | CONFIG_INPUT_EVDEV=y | ||
1531 | # CONFIG_INPUT_EVBUG is not set | ||
1532 | |||
1533 | # | ||
1534 | # Input Device Drivers | ||
1535 | # | ||
1536 | CONFIG_INPUT_KEYBOARD=y | ||
1537 | CONFIG_KEYBOARD_ATKBD=y | ||
1538 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
1539 | # CONFIG_KEYBOARD_LKKBD is not set | ||
1540 | # CONFIG_KEYBOARD_XTKBD is not set | ||
1541 | # CONFIG_KEYBOARD_NEWTON is not set | ||
1542 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
1543 | # CONFIG_KEYBOARD_GPIO is not set | ||
1544 | CONFIG_INPUT_MOUSE=y | ||
1545 | CONFIG_MOUSE_PS2=y | ||
1546 | CONFIG_MOUSE_PS2_ALPS=y | ||
1547 | CONFIG_MOUSE_PS2_LOGIPS2PP=y | ||
1548 | CONFIG_MOUSE_PS2_SYNAPTICS=y | ||
1549 | CONFIG_MOUSE_PS2_LIFEBOOK=y | ||
1550 | CONFIG_MOUSE_PS2_TRACKPOINT=y | ||
1551 | # CONFIG_MOUSE_PS2_TOUCHKIT is not set | ||
1552 | CONFIG_MOUSE_SERIAL=m | ||
1553 | CONFIG_MOUSE_APPLETOUCH=m | ||
1554 | # CONFIG_MOUSE_INPORT is not set | ||
1555 | # CONFIG_MOUSE_LOGIBM is not set | ||
1556 | # CONFIG_MOUSE_PC110PAD is not set | ||
1557 | CONFIG_MOUSE_VSXXXAA=m | ||
1558 | # CONFIG_MOUSE_GPIO is not set | ||
1559 | CONFIG_INPUT_JOYSTICK=y | ||
1560 | CONFIG_JOYSTICK_ANALOG=m | ||
1561 | CONFIG_JOYSTICK_A3D=m | ||
1562 | CONFIG_JOYSTICK_ADI=m | ||
1563 | CONFIG_JOYSTICK_COBRA=m | ||
1564 | CONFIG_JOYSTICK_GF2K=m | ||
1565 | CONFIG_JOYSTICK_GRIP=m | ||
1566 | CONFIG_JOYSTICK_GRIP_MP=m | ||
1567 | CONFIG_JOYSTICK_GUILLEMOT=m | ||
1568 | CONFIG_JOYSTICK_INTERACT=m | ||
1569 | CONFIG_JOYSTICK_SIDEWINDER=m | ||
1570 | CONFIG_JOYSTICK_TMDC=m | ||
1571 | CONFIG_JOYSTICK_IFORCE=m | ||
1572 | CONFIG_JOYSTICK_IFORCE_USB=y | ||
1573 | CONFIG_JOYSTICK_IFORCE_232=y | ||
1574 | CONFIG_JOYSTICK_WARRIOR=m | ||
1575 | CONFIG_JOYSTICK_MAGELLAN=m | ||
1576 | CONFIG_JOYSTICK_SPACEORB=m | ||
1577 | CONFIG_JOYSTICK_SPACEBALL=m | ||
1578 | CONFIG_JOYSTICK_STINGER=m | ||
1579 | CONFIG_JOYSTICK_TWIDJOY=m | ||
1580 | CONFIG_JOYSTICK_ZHENHUA=m | ||
1581 | CONFIG_JOYSTICK_DB9=m | ||
1582 | CONFIG_JOYSTICK_GAMECON=m | ||
1583 | CONFIG_JOYSTICK_TURBOGRAFX=m | ||
1584 | CONFIG_JOYSTICK_JOYDUMP=m | ||
1585 | CONFIG_JOYSTICK_XPAD=m | ||
1586 | CONFIG_JOYSTICK_XPAD_FF=y | ||
1587 | CONFIG_JOYSTICK_XPAD_LEDS=y | ||
1588 | CONFIG_INPUT_TABLET=y | ||
1589 | CONFIG_TABLET_USB_ACECAD=m | ||
1590 | CONFIG_TABLET_USB_AIPTEK=m | ||
1591 | CONFIG_TABLET_USB_GTCO=m | ||
1592 | CONFIG_TABLET_USB_KBTAB=m | ||
1593 | CONFIG_TABLET_USB_WACOM=m | ||
1594 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
1595 | CONFIG_INPUT_MISC=y | ||
1596 | CONFIG_INPUT_PCSPKR=m | ||
1597 | CONFIG_INPUT_ATI_REMOTE=m | ||
1598 | CONFIG_INPUT_ATI_REMOTE2=m | ||
1599 | CONFIG_INPUT_KEYSPAN_REMOTE=m | ||
1600 | CONFIG_INPUT_POWERMATE=m | ||
1601 | CONFIG_INPUT_YEALINK=m | ||
1602 | CONFIG_INPUT_UINPUT=m | ||
1603 | |||
1604 | # | ||
1605 | # Hardware I/O ports | ||
1606 | # | ||
1607 | CONFIG_SERIO=y | ||
1608 | CONFIG_SERIO_I8042=y | ||
1609 | CONFIG_SERIO_SERPORT=y | ||
1610 | # CONFIG_SERIO_PARKBD is not set | ||
1611 | # CONFIG_SERIO_PCIPS2 is not set | ||
1612 | CONFIG_SERIO_LIBPS2=y | ||
1613 | CONFIG_SERIO_RAW=m | ||
1614 | CONFIG_GAMEPORT=m | ||
1615 | CONFIG_GAMEPORT_NS558=m | ||
1616 | CONFIG_GAMEPORT_L4=m | ||
1617 | CONFIG_GAMEPORT_EMU10K1=m | ||
1618 | CONFIG_GAMEPORT_FM801=m | ||
1619 | CONFIG_INPUT_LIRC=y | ||
1620 | CONFIG_LIRC_DEV=m | ||
1621 | CONFIG_LIRC_ATIUSB=m | ||
1622 | CONFIG_LIRC_BT829=m | ||
1623 | CONFIG_LIRC_CMDIR=m | ||
1624 | CONFIG_LIRC_I2C=m | ||
1625 | CONFIG_LIRC_IGORPLUGUSB=m | ||
1626 | CONFIG_LIRC_IMON=m | ||
1627 | CONFIG_LIRC_IT87=m | ||
1628 | CONFIG_LIRC_MCEUSB=m | ||
1629 | CONFIG_LIRC_MCEUSB2=m | ||
1630 | CONFIG_LIRC_PVR150=m | ||
1631 | CONFIG_LIRC_PARALLEL=m | ||
1632 | CONFIG_LIRC_SERIAL=m | ||
1633 | CONFIG_LIRC_SIR=m | ||
1634 | CONFIG_LIRC_STREAMZAP=m | ||
1635 | CONFIG_LIRC_TTUSBIR=m | ||
1636 | |||
1637 | # | ||
1638 | # Character devices | ||
1639 | # | ||
1640 | CONFIG_VT=y | ||
1641 | CONFIG_VT_CONSOLE=y | ||
1642 | CONFIG_HW_CONSOLE=y | ||
1643 | CONFIG_VT_HW_CONSOLE_BINDING=y | ||
1644 | # CONFIG_DEVKMEM is not set | ||
1645 | CONFIG_SERIAL_NONSTANDARD=y | ||
1646 | # CONFIG_COMPUTONE is not set | ||
1647 | CONFIG_ROCKETPORT=m | ||
1648 | CONFIG_CYCLADES=m | ||
1649 | # CONFIG_CYZ_INTR is not set | ||
1650 | # CONFIG_DIGIEPCA is not set | ||
1651 | # CONFIG_ESPSERIAL is not set | ||
1652 | # CONFIG_MOXA_INTELLIO is not set | ||
1653 | # CONFIG_MOXA_SMARTIO is not set | ||
1654 | # CONFIG_ISI is not set | ||
1655 | CONFIG_SYNCLINK=m | ||
1656 | CONFIG_SYNCLINKMP=m | ||
1657 | CONFIG_SYNCLINK_GT=m | ||
1658 | CONFIG_N_HDLC=m | ||
1659 | # CONFIG_RISCOM8 is not set | ||
1660 | # CONFIG_SPECIALIX is not set | ||
1661 | # CONFIG_SX is not set | ||
1662 | # CONFIG_RIO is not set | ||
1663 | # CONFIG_STALDRV is not set | ||
1664 | CONFIG_NOZOMI=m | ||
1665 | |||
1666 | # | ||
1667 | # Serial drivers | ||
1668 | # | ||
1669 | CONFIG_SERIAL_8250=y | ||
1670 | CONFIG_SERIAL_8250_CONSOLE=y | ||
1671 | CONFIG_SERIAL_8250_PCI=y | ||
1672 | CONFIG_SERIAL_8250_PNP=y | ||
1673 | CONFIG_SERIAL_8250_CS=m | ||
1674 | CONFIG_SERIAL_8250_NR_UARTS=32 | ||
1675 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
1676 | CONFIG_SERIAL_8250_EXTENDED=y | ||
1677 | CONFIG_SERIAL_8250_MANY_PORTS=y | ||
1678 | # CONFIG_SERIAL_8250_FOURPORT is not set | ||
1679 | # CONFIG_SERIAL_8250_ACCENT is not set | ||
1680 | # CONFIG_SERIAL_8250_BOCA is not set | ||
1681 | # CONFIG_SERIAL_8250_EXAR_ST16C554 is not set | ||
1682 | # CONFIG_SERIAL_8250_HUB6 is not set | ||
1683 | CONFIG_SERIAL_8250_SHARE_IRQ=y | ||
1684 | CONFIG_SERIAL_8250_DETECT_IRQ=y | ||
1685 | CONFIG_SERIAL_8250_RSA=y | ||
1686 | |||
1687 | # | ||
1688 | # Non-8250 serial port support | ||
1689 | # | ||
1690 | CONFIG_SERIAL_UARTLITE=m | ||
1691 | CONFIG_SERIAL_CORE=y | ||
1692 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
1693 | CONFIG_SERIAL_PMACZILOG=m | ||
1694 | # CONFIG_SERIAL_PMACZILOG_TTYS is not set | ||
1695 | # CONFIG_SERIAL_CPM is not set | ||
1696 | CONFIG_SERIAL_MPC52xx=y | ||
1697 | CONFIG_SERIAL_MPC52xx_CONSOLE=y | ||
1698 | CONFIG_SERIAL_MPC52xx_CONSOLE_BAUD=115200 | ||
1699 | CONFIG_SERIAL_JSM=m | ||
1700 | CONFIG_SERIAL_OF_PLATFORM=y | ||
1701 | # CONFIG_SERIAL_QE is not set | ||
1702 | CONFIG_UNIX98_PTYS=y | ||
1703 | # CONFIG_LEGACY_PTYS is not set | ||
1704 | # CONFIG_CRASH is not set | ||
1705 | CONFIG_BRIQ_PANEL=m | ||
1706 | CONFIG_PRINTER=m | ||
1707 | CONFIG_LP_CONSOLE=y | ||
1708 | CONFIG_PPDEV=m | ||
1709 | # CONFIG_HVC_RTAS is not set | ||
1710 | # CONFIG_IPMI_HANDLER is not set | ||
1711 | CONFIG_HW_RANDOM=y | ||
1712 | CONFIG_HW_RANDOM_VIRTIO=m | ||
1713 | CONFIG_NVRAM=y | ||
1714 | CONFIG_DTLK=m | ||
1715 | CONFIG_R3964=m | ||
1716 | # CONFIG_APPLICOM is not set | ||
1717 | |||
1718 | # | ||
1719 | # PCMCIA character devices | ||
1720 | # | ||
1721 | # CONFIG_SYNCLINK_CS is not set | ||
1722 | CONFIG_CARDMAN_4000=m | ||
1723 | CONFIG_CARDMAN_4040=m | ||
1724 | CONFIG_IPWIRELESS=m | ||
1725 | # CONFIG_RAW_DRIVER is not set | ||
1726 | # CONFIG_TCG_TPM is not set | ||
1727 | CONFIG_DEVPORT=y | ||
1728 | CONFIG_I2C=y | ||
1729 | CONFIG_I2C_BOARDINFO=y | ||
1730 | CONFIG_I2C_CHARDEV=m | ||
1731 | CONFIG_I2C_ALGOBIT=y | ||
1732 | CONFIG_I2C_ALGOPCA=m | ||
1733 | |||
1734 | # | ||
1735 | # I2C Hardware Bus support | ||
1736 | # | ||
1737 | |||
1738 | # | ||
1739 | # PC SMBus host controller drivers | ||
1740 | # | ||
1741 | # CONFIG_I2C_ALI1535 is not set | ||
1742 | # CONFIG_I2C_ALI1563 is not set | ||
1743 | # CONFIG_I2C_ALI15X3 is not set | ||
1744 | # CONFIG_I2C_AMD756 is not set | ||
1745 | # CONFIG_I2C_AMD8111 is not set | ||
1746 | # CONFIG_I2C_I801 is not set | ||
1747 | # CONFIG_I2C_ISCH is not set | ||
1748 | # CONFIG_I2C_PIIX4 is not set | ||
1749 | # CONFIG_I2C_NFORCE2 is not set | ||
1750 | # CONFIG_I2C_SIS5595 is not set | ||
1751 | # CONFIG_I2C_SIS630 is not set | ||
1752 | # CONFIG_I2C_SIS96X is not set | ||
1753 | # CONFIG_I2C_VIA is not set | ||
1754 | # CONFIG_I2C_VIAPRO is not set | ||
1755 | |||
1756 | # | ||
1757 | # Mac SMBus host controller drivers | ||
1758 | # | ||
1759 | CONFIG_I2C_HYDRA=m | ||
1760 | CONFIG_I2C_POWERMAC=y | ||
1761 | |||
1762 | # | ||
1763 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
1764 | # | ||
1765 | # CONFIG_I2C_CPM is not set | ||
1766 | # CONFIG_I2C_GPIO is not set | ||
1767 | CONFIG_I2C_MPC=m | ||
1768 | # CONFIG_I2C_OCORES is not set | ||
1769 | CONFIG_I2C_SIMTEC=m | ||
1770 | |||
1771 | # | ||
1772 | # External I2C/SMBus adapter drivers | ||
1773 | # | ||
1774 | CONFIG_I2C_PARPORT=m | ||
1775 | CONFIG_I2C_PARPORT_LIGHT=m | ||
1776 | # CONFIG_I2C_TAOS_EVM is not set | ||
1777 | CONFIG_I2C_TINY_USB=m | ||
1778 | |||
1779 | # | ||
1780 | # Graphics adapter I2C/DDC channel drivers | ||
1781 | # | ||
1782 | CONFIG_I2C_VOODOO3=m | ||
1783 | |||
1784 | # | ||
1785 | # Other I2C/SMBus bus drivers | ||
1786 | # | ||
1787 | # CONFIG_I2C_ELEKTOR is not set | ||
1788 | CONFIG_I2C_PCA_ISA=m | ||
1789 | CONFIG_I2C_PCA_PLATFORM=m | ||
1790 | CONFIG_I2C_STUB=m | ||
1791 | |||
1792 | # | ||
1793 | # Miscellaneous I2C Chip support | ||
1794 | # | ||
1795 | # CONFIG_DS1682 is not set | ||
1796 | CONFIG_AT24=m | ||
1797 | CONFIG_SENSORS_EEPROM=m | ||
1798 | CONFIG_SENSORS_PCF8574=m | ||
1799 | CONFIG_PCF8575=m | ||
1800 | CONFIG_SENSORS_PCA9539=m | ||
1801 | CONFIG_SENSORS_PCF8591=m | ||
1802 | # CONFIG_TPS65010 is not set | ||
1803 | CONFIG_SENSORS_MAX6875=m | ||
1804 | CONFIG_SENSORS_TSL2550=m | ||
1805 | # CONFIG_I2C_DEBUG_CORE is not set | ||
1806 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
1807 | # CONFIG_I2C_DEBUG_BUS is not set | ||
1808 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
1809 | # CONFIG_SPI is not set | ||
1810 | CONFIG_HAVE_GPIO_LIB=y | ||
1811 | |||
1812 | # | ||
1813 | # GPIO Support | ||
1814 | # | ||
1815 | # CONFIG_DEBUG_GPIO is not set | ||
1816 | |||
1817 | # | ||
1818 | # I2C GPIO expanders: | ||
1819 | # | ||
1820 | # CONFIG_GPIO_PCA953X is not set | ||
1821 | # CONFIG_GPIO_PCF857X is not set | ||
1822 | |||
1823 | # | ||
1824 | # SPI GPIO expanders: | ||
1825 | # | ||
1826 | CONFIG_W1=m | ||
1827 | CONFIG_W1_CON=y | ||
1828 | |||
1829 | # | ||
1830 | # 1-wire Bus Masters | ||
1831 | # | ||
1832 | # CONFIG_W1_MASTER_MATROX is not set | ||
1833 | CONFIG_W1_MASTER_DS2490=m | ||
1834 | CONFIG_W1_MASTER_DS2482=m | ||
1835 | # CONFIG_W1_MASTER_GPIO is not set | ||
1836 | |||
1837 | # | ||
1838 | # 1-wire Slaves | ||
1839 | # | ||
1840 | CONFIG_W1_SLAVE_THERM=m | ||
1841 | CONFIG_W1_SLAVE_SMEM=m | ||
1842 | CONFIG_W1_SLAVE_DS2433=m | ||
1843 | CONFIG_W1_SLAVE_DS2433_CRC=y | ||
1844 | CONFIG_W1_SLAVE_DS2760=m | ||
1845 | CONFIG_POWER_SUPPLY=m | ||
1846 | # CONFIG_POWER_SUPPLY_DEBUG is not set | ||
1847 | # CONFIG_PDA_POWER is not set | ||
1848 | CONFIG_APM_POWER=m | ||
1849 | # CONFIG_BATTERY_DS2760 is not set | ||
1850 | CONFIG_BATTERY_PMU=m | ||
1851 | CONFIG_HWMON=m | ||
1852 | CONFIG_HWMON_VID=m | ||
1853 | CONFIG_SENSORS_AD7418=m | ||
1854 | CONFIG_SENSORS_ADM1021=m | ||
1855 | CONFIG_SENSORS_ADM1025=m | ||
1856 | CONFIG_SENSORS_ADM1026=m | ||
1857 | CONFIG_SENSORS_ADM1029=m | ||
1858 | CONFIG_SENSORS_ADM1031=m | ||
1859 | CONFIG_SENSORS_ADM9240=m | ||
1860 | CONFIG_SENSORS_ADT7470=m | ||
1861 | CONFIG_SENSORS_ADT7473=m | ||
1862 | CONFIG_SENSORS_AMS=m | ||
1863 | CONFIG_SENSORS_AMS_PMU=y | ||
1864 | CONFIG_SENSORS_AMS_I2C=y | ||
1865 | CONFIG_SENSORS_ATXP1=m | ||
1866 | CONFIG_SENSORS_DS1621=m | ||
1867 | # CONFIG_SENSORS_I5K_AMB is not set | ||
1868 | CONFIG_SENSORS_F71805F=m | ||
1869 | CONFIG_SENSORS_F71882FG=m | ||
1870 | CONFIG_SENSORS_F75375S=m | ||
1871 | CONFIG_SENSORS_GL518SM=m | ||
1872 | CONFIG_SENSORS_GL520SM=m | ||
1873 | CONFIG_SENSORS_IT87=m | ||
1874 | CONFIG_SENSORS_LM63=m | ||
1875 | CONFIG_SENSORS_LM75=m | ||
1876 | CONFIG_SENSORS_LM77=m | ||
1877 | CONFIG_SENSORS_LM78=m | ||
1878 | CONFIG_SENSORS_LM80=m | ||
1879 | CONFIG_SENSORS_LM83=m | ||
1880 | CONFIG_SENSORS_LM85=m | ||
1881 | CONFIG_SENSORS_LM87=m | ||
1882 | CONFIG_SENSORS_LM90=m | ||
1883 | CONFIG_SENSORS_LM92=m | ||
1884 | CONFIG_SENSORS_LM93=m | ||
1885 | CONFIG_SENSORS_MAX1619=m | ||
1886 | CONFIG_SENSORS_MAX6650=m | ||
1887 | CONFIG_SENSORS_PC87360=m | ||
1888 | CONFIG_SENSORS_PC87427=m | ||
1889 | CONFIG_SENSORS_SIS5595=m | ||
1890 | CONFIG_SENSORS_DME1737=m | ||
1891 | CONFIG_SENSORS_SMSC47M1=m | ||
1892 | CONFIG_SENSORS_SMSC47M192=m | ||
1893 | CONFIG_SENSORS_SMSC47B397=m | ||
1894 | CONFIG_SENSORS_ADS7828=m | ||
1895 | CONFIG_SENSORS_THMC50=m | ||
1896 | CONFIG_SENSORS_VIA686A=m | ||
1897 | CONFIG_SENSORS_VT1211=m | ||
1898 | CONFIG_SENSORS_VT8231=m | ||
1899 | CONFIG_SENSORS_W83781D=m | ||
1900 | CONFIG_SENSORS_W83791D=m | ||
1901 | CONFIG_SENSORS_W83792D=m | ||
1902 | CONFIG_SENSORS_W83793=m | ||
1903 | CONFIG_SENSORS_W83L785TS=m | ||
1904 | CONFIG_SENSORS_W83L786NG=m | ||
1905 | CONFIG_SENSORS_W83627HF=m | ||
1906 | CONFIG_SENSORS_W83627EHF=m | ||
1907 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
1908 | CONFIG_THERMAL=y | ||
1909 | CONFIG_WATCHDOG=y | ||
1910 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
1911 | |||
1912 | # | ||
1913 | # Watchdog Device Drivers | ||
1914 | # | ||
1915 | CONFIG_SOFT_WATCHDOG=m | ||
1916 | # CONFIG_MPC5200_WDT is not set | ||
1917 | CONFIG_83xx_WDT=m | ||
1918 | CONFIG_WATCHDOG_RTAS=m | ||
1919 | |||
1920 | # | ||
1921 | # ISA-based Watchdog Cards | ||
1922 | # | ||
1923 | # CONFIG_PCWATCHDOG is not set | ||
1924 | # CONFIG_MIXCOMWD is not set | ||
1925 | # CONFIG_WDT is not set | ||
1926 | |||
1927 | # | ||
1928 | # PCI-based Watchdog Cards | ||
1929 | # | ||
1930 | # CONFIG_PCIPCWATCHDOG is not set | ||
1931 | # CONFIG_WDTPCI is not set | ||
1932 | |||
1933 | # | ||
1934 | # USB-based Watchdog Cards | ||
1935 | # | ||
1936 | CONFIG_USBPCWATCHDOG=m | ||
1937 | |||
1938 | # | ||
1939 | # Sonics Silicon Backplane | ||
1940 | # | ||
1941 | CONFIG_SSB_POSSIBLE=y | ||
1942 | CONFIG_SSB=m | ||
1943 | CONFIG_SSB_SPROM=y | ||
1944 | CONFIG_SSB_PCIHOST_POSSIBLE=y | ||
1945 | CONFIG_SSB_PCIHOST=y | ||
1946 | # CONFIG_SSB_B43_PCI_BRIDGE is not set | ||
1947 | CONFIG_SSB_PCMCIAHOST_POSSIBLE=y | ||
1948 | CONFIG_SSB_PCMCIAHOST=y | ||
1949 | # CONFIG_SSB_DEBUG is not set | ||
1950 | CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y | ||
1951 | CONFIG_SSB_DRIVER_PCICORE=y | ||
1952 | |||
1953 | # | ||
1954 | # Multifunction device drivers | ||
1955 | # | ||
1956 | CONFIG_MFD_SM501=m | ||
1957 | # CONFIG_HTC_PASIC3 is not set | ||
1958 | |||
1959 | # | ||
1960 | # Multimedia devices | ||
1961 | # | ||
1962 | |||
1963 | # | ||
1964 | # Multimedia core support | ||
1965 | # | ||
1966 | CONFIG_VIDEO_DEV=m | ||
1967 | CONFIG_VIDEO_V4L2_COMMON=m | ||
1968 | CONFIG_VIDEO_ALLOW_V4L1=y | ||
1969 | CONFIG_VIDEO_V4L1_COMPAT=y | ||
1970 | CONFIG_DVB_CORE=m | ||
1971 | CONFIG_VIDEO_MEDIA=m | ||
1972 | |||
1973 | # | ||
1974 | # Multimedia drivers | ||
1975 | # | ||
1976 | CONFIG_VIDEO_SAA7146=m | ||
1977 | CONFIG_VIDEO_SAA7146_VV=m | ||
1978 | CONFIG_MEDIA_ATTACH=y | ||
1979 | CONFIG_MEDIA_TUNER=m | ||
1980 | # CONFIG_MEDIA_TUNER_CUSTOMIZE is not set | ||
1981 | CONFIG_MEDIA_TUNER_SIMPLE=m | ||
1982 | CONFIG_MEDIA_TUNER_TDA8290=m | ||
1983 | CONFIG_MEDIA_TUNER_TDA827X=m | ||
1984 | CONFIG_MEDIA_TUNER_TDA18271=m | ||
1985 | CONFIG_MEDIA_TUNER_TDA9887=m | ||
1986 | CONFIG_MEDIA_TUNER_TEA5761=m | ||
1987 | CONFIG_MEDIA_TUNER_TEA5767=m | ||
1988 | CONFIG_MEDIA_TUNER_MT20XX=m | ||
1989 | CONFIG_MEDIA_TUNER_MT2060=m | ||
1990 | CONFIG_MEDIA_TUNER_MT2266=m | ||
1991 | CONFIG_MEDIA_TUNER_MT2131=m | ||
1992 | CONFIG_MEDIA_TUNER_QT1010=m | ||
1993 | CONFIG_MEDIA_TUNER_XC2028=m | ||
1994 | CONFIG_MEDIA_TUNER_XC5000=m | ||
1995 | CONFIG_MEDIA_TUNER_MXL5005S=m | ||
1996 | CONFIG_VIDEO_V4L2=m | ||
1997 | CONFIG_VIDEO_V4L1=m | ||
1998 | CONFIG_VIDEOBUF_GEN=m | ||
1999 | CONFIG_VIDEOBUF_DMA_SG=m | ||
2000 | CONFIG_VIDEOBUF_VMALLOC=m | ||
2001 | CONFIG_VIDEOBUF_DVB=m | ||
2002 | CONFIG_VIDEO_BTCX=m | ||
2003 | CONFIG_VIDEO_IR_I2C=m | ||
2004 | CONFIG_VIDEO_IR=m | ||
2005 | CONFIG_VIDEO_TVEEPROM=m | ||
2006 | CONFIG_VIDEO_TUNER=m | ||
2007 | CONFIG_VIDEO_CAPTURE_DRIVERS=y | ||
2008 | # CONFIG_VIDEO_ADV_DEBUG is not set | ||
2009 | # CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set | ||
2010 | |||
2011 | # | ||
2012 | # Encoders/decoders and other helper chips | ||
2013 | # | ||
2014 | |||
2015 | # | ||
2016 | # Audio decoders | ||
2017 | # | ||
2018 | CONFIG_VIDEO_TVAUDIO=m | ||
2019 | CONFIG_VIDEO_TDA7432=m | ||
2020 | CONFIG_VIDEO_TDA9840=m | ||
2021 | CONFIG_VIDEO_TDA9875=m | ||
2022 | CONFIG_VIDEO_TEA6415C=m | ||
2023 | CONFIG_VIDEO_TEA6420=m | ||
2024 | CONFIG_VIDEO_MSP3400=m | ||
2025 | CONFIG_VIDEO_CS5345=m | ||
2026 | CONFIG_VIDEO_CS53L32A=m | ||
2027 | CONFIG_VIDEO_M52790=m | ||
2028 | CONFIG_VIDEO_TLV320AIC23B=m | ||
2029 | CONFIG_VIDEO_WM8775=m | ||
2030 | CONFIG_VIDEO_WM8739=m | ||
2031 | CONFIG_VIDEO_VP27SMPX=m | ||
2032 | |||
2033 | # | ||
2034 | # Video decoders | ||
2035 | # | ||
2036 | CONFIG_VIDEO_BT819=m | ||
2037 | CONFIG_VIDEO_BT856=m | ||
2038 | CONFIG_VIDEO_BT866=m | ||
2039 | CONFIG_VIDEO_KS0127=m | ||
2040 | CONFIG_VIDEO_OV7670=m | ||
2041 | CONFIG_VIDEO_TCM825X=m | ||
2042 | CONFIG_VIDEO_SAA7110=m | ||
2043 | CONFIG_VIDEO_SAA7111=m | ||
2044 | CONFIG_VIDEO_SAA7114=m | ||
2045 | CONFIG_VIDEO_SAA711X=m | ||
2046 | CONFIG_VIDEO_SAA717X=m | ||
2047 | CONFIG_VIDEO_SAA7191=m | ||
2048 | CONFIG_VIDEO_TVP5150=m | ||
2049 | CONFIG_VIDEO_VPX3220=m | ||
2050 | |||
2051 | # | ||
2052 | # Video and audio decoders | ||
2053 | # | ||
2054 | CONFIG_VIDEO_CX25840=m | ||
2055 | |||
2056 | # | ||
2057 | # MPEG video encoders | ||
2058 | # | ||
2059 | CONFIG_VIDEO_CX2341X=m | ||
2060 | |||
2061 | # | ||
2062 | # Video encoders | ||
2063 | # | ||
2064 | CONFIG_VIDEO_SAA7127=m | ||
2065 | CONFIG_VIDEO_SAA7185=m | ||
2066 | CONFIG_VIDEO_ADV7170=m | ||
2067 | CONFIG_VIDEO_ADV7175=m | ||
2068 | |||
2069 | # | ||
2070 | # Video improvement chips | ||
2071 | # | ||
2072 | CONFIG_VIDEO_UPD64031A=m | ||
2073 | CONFIG_VIDEO_UPD64083=m | ||
2074 | # CONFIG_VIDEO_VIVI is not set | ||
2075 | CONFIG_VIDEO_BT848=m | ||
2076 | CONFIG_VIDEO_BT848_DVB=y | ||
2077 | CONFIG_VIDEO_SAA6588=m | ||
2078 | # CONFIG_VIDEO_PMS is not set | ||
2079 | CONFIG_VIDEO_BWQCAM=m | ||
2080 | CONFIG_VIDEO_CQCAM=m | ||
2081 | CONFIG_VIDEO_W9966=m | ||
2082 | CONFIG_VIDEO_CPIA=m | ||
2083 | CONFIG_VIDEO_CPIA_PP=m | ||
2084 | CONFIG_VIDEO_CPIA_USB=m | ||
2085 | CONFIG_VIDEO_CPIA2=m | ||
2086 | CONFIG_VIDEO_SAA5246A=m | ||
2087 | CONFIG_VIDEO_SAA5249=m | ||
2088 | CONFIG_TUNER_3036=m | ||
2089 | # CONFIG_VIDEO_STRADIS is not set | ||
2090 | # CONFIG_VIDEO_ZORAN is not set | ||
2091 | CONFIG_VIDEO_SAA7134=m | ||
2092 | CONFIG_VIDEO_SAA7134_ALSA=m | ||
2093 | CONFIG_VIDEO_SAA7134_DVB=m | ||
2094 | CONFIG_VIDEO_MXB=m | ||
2095 | CONFIG_VIDEO_DPC=m | ||
2096 | CONFIG_VIDEO_HEXIUM_ORION=m | ||
2097 | CONFIG_VIDEO_HEXIUM_GEMINI=m | ||
2098 | CONFIG_VIDEO_CX88=m | ||
2099 | CONFIG_VIDEO_CX88_ALSA=m | ||
2100 | CONFIG_VIDEO_CX88_BLACKBIRD=m | ||
2101 | CONFIG_VIDEO_CX88_DVB=m | ||
2102 | CONFIG_VIDEO_CX88_VP3054=m | ||
2103 | CONFIG_VIDEO_CX23885=m | ||
2104 | CONFIG_VIDEO_AU0828=m | ||
2105 | CONFIG_VIDEO_IVTV=m | ||
2106 | CONFIG_VIDEO_FB_IVTV=m | ||
2107 | CONFIG_VIDEO_CX18=m | ||
2108 | # CONFIG_VIDEO_CAFE_CCIC is not set | ||
2109 | CONFIG_V4L_USB_DRIVERS=y | ||
2110 | CONFIG_USB_VIDEO_CLASS=m | ||
2111 | CONFIG_VIDEO_PVRUSB2=m | ||
2112 | CONFIG_VIDEO_PVRUSB2_SYSFS=y | ||
2113 | CONFIG_VIDEO_PVRUSB2_DVB=y | ||
2114 | # CONFIG_VIDEO_PVRUSB2_DEBUGIFC is not set | ||
2115 | CONFIG_VIDEO_EM28XX=m | ||
2116 | CONFIG_VIDEO_EM28XX_ALSA=m | ||
2117 | CONFIG_VIDEO_EM28XX_DVB=m | ||
2118 | CONFIG_VIDEO_USBVISION=m | ||
2119 | CONFIG_VIDEO_USBVIDEO=m | ||
2120 | CONFIG_USB_VICAM=m | ||
2121 | CONFIG_USB_IBMCAM=m | ||
2122 | CONFIG_USB_KONICAWC=m | ||
2123 | CONFIG_USB_QUICKCAM_MESSENGER=m | ||
2124 | CONFIG_USB_ET61X251=m | ||
2125 | CONFIG_VIDEO_OVCAMCHIP=m | ||
2126 | CONFIG_USB_W9968CF=m | ||
2127 | CONFIG_USB_OV511=m | ||
2128 | CONFIG_USB_SE401=m | ||
2129 | CONFIG_USB_SN9C102=m | ||
2130 | CONFIG_USB_STV680=m | ||
2131 | CONFIG_USB_ZC0301=m | ||
2132 | CONFIG_USB_PWC=m | ||
2133 | # CONFIG_USB_PWC_DEBUG is not set | ||
2134 | CONFIG_USB_ZR364XX=m | ||
2135 | CONFIG_USB_STKWEBCAM=m | ||
2136 | CONFIG_SOC_CAMERA=m | ||
2137 | CONFIG_SOC_CAMERA_MT9M001=m | ||
2138 | # CONFIG_MT9M001_PCA9536_SWITCH is not set | ||
2139 | CONFIG_SOC_CAMERA_MT9V022=m | ||
2140 | # CONFIG_MT9V022_PCA9536_SWITCH is not set | ||
2141 | CONFIG_RADIO_ADAPTERS=y | ||
2142 | # CONFIG_RADIO_CADET is not set | ||
2143 | # CONFIG_RADIO_RTRACK is not set | ||
2144 | # CONFIG_RADIO_RTRACK2 is not set | ||
2145 | # CONFIG_RADIO_AZTECH is not set | ||
2146 | # CONFIG_RADIO_GEMTEK is not set | ||
2147 | CONFIG_RADIO_GEMTEK_PCI=m | ||
2148 | CONFIG_RADIO_MAXIRADIO=m | ||
2149 | CONFIG_RADIO_MAESTRO=m | ||
2150 | # CONFIG_RADIO_SF16FMI is not set | ||
2151 | # CONFIG_RADIO_SF16FMR2 is not set | ||
2152 | # CONFIG_RADIO_TERRATEC is not set | ||
2153 | # CONFIG_RADIO_TRUST is not set | ||
2154 | # CONFIG_RADIO_TYPHOON is not set | ||
2155 | # CONFIG_RADIO_ZOLTRIX is not set | ||
2156 | CONFIG_USB_DSBR=m | ||
2157 | CONFIG_USB_SI470X=m | ||
2158 | CONFIG_DVB_CAPTURE_DRIVERS=y | ||
2159 | |||
2160 | # | ||
2161 | # Supported SAA7146 based PCI Adapters | ||
2162 | # | ||
2163 | CONFIG_TTPCI_EEPROM=m | ||
2164 | CONFIG_DVB_AV7110=m | ||
2165 | CONFIG_DVB_AV7110_OSD=y | ||
2166 | CONFIG_DVB_BUDGET_CORE=m | ||
2167 | CONFIG_DVB_BUDGET=m | ||
2168 | CONFIG_DVB_BUDGET_CI=m | ||
2169 | CONFIG_DVB_BUDGET_AV=m | ||
2170 | CONFIG_DVB_BUDGET_PATCH=m | ||
2171 | |||
2172 | # | ||
2173 | # Supported USB Adapters | ||
2174 | # | ||
2175 | CONFIG_DVB_USB=m | ||
2176 | # CONFIG_DVB_USB_DEBUG is not set | ||
2177 | CONFIG_DVB_USB_A800=m | ||
2178 | CONFIG_DVB_USB_DIBUSB_MB=m | ||
2179 | # CONFIG_DVB_USB_DIBUSB_MB_FAULTY is not set | ||
2180 | CONFIG_DVB_USB_DIBUSB_MC=m | ||
2181 | CONFIG_DVB_USB_DIB0700=m | ||
2182 | CONFIG_DVB_USB_UMT_010=m | ||
2183 | CONFIG_DVB_USB_CXUSB=m | ||
2184 | CONFIG_DVB_USB_M920X=m | ||
2185 | CONFIG_DVB_USB_GL861=m | ||
2186 | CONFIG_DVB_USB_AU6610=m | ||
2187 | CONFIG_DVB_USB_DIGITV=m | ||
2188 | CONFIG_DVB_USB_VP7045=m | ||
2189 | CONFIG_DVB_USB_VP702X=m | ||
2190 | CONFIG_DVB_USB_GP8PSK=m | ||
2191 | CONFIG_DVB_USB_NOVA_T_USB2=m | ||
2192 | CONFIG_DVB_USB_TTUSB2=m | ||
2193 | CONFIG_DVB_USB_DTT200U=m | ||
2194 | CONFIG_DVB_USB_OPERA1=m | ||
2195 | CONFIG_DVB_USB_AF9005=m | ||
2196 | CONFIG_DVB_USB_AF9005_REMOTE=m | ||
2197 | CONFIG_DVB_TTUSB_BUDGET=m | ||
2198 | CONFIG_DVB_TTUSB_DEC=m | ||
2199 | CONFIG_DVB_CINERGYT2=m | ||
2200 | CONFIG_DVB_CINERGYT2_TUNING=y | ||
2201 | CONFIG_DVB_CINERGYT2_STREAM_URB_COUNT=32 | ||
2202 | CONFIG_DVB_CINERGYT2_STREAM_BUF_SIZE=512 | ||
2203 | CONFIG_DVB_CINERGYT2_QUERY_INTERVAL=250 | ||
2204 | CONFIG_DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE=y | ||
2205 | CONFIG_DVB_CINERGYT2_RC_QUERY_INTERVAL=100 | ||
2206 | |||
2207 | # | ||
2208 | # Supported FlexCopII (B2C2) Adapters | ||
2209 | # | ||
2210 | CONFIG_DVB_B2C2_FLEXCOP=m | ||
2211 | CONFIG_DVB_B2C2_FLEXCOP_PCI=m | ||
2212 | CONFIG_DVB_B2C2_FLEXCOP_USB=m | ||
2213 | # CONFIG_DVB_B2C2_FLEXCOP_DEBUG is not set | ||
2214 | |||
2215 | # | ||
2216 | # Supported BT878 Adapters | ||
2217 | # | ||
2218 | CONFIG_DVB_BT8XX=m | ||
2219 | |||
2220 | # | ||
2221 | # Supported Pluto2 Adapters | ||
2222 | # | ||
2223 | CONFIG_DVB_PLUTO2=m | ||
2224 | |||
2225 | # | ||
2226 | # Supported DVB Frontends | ||
2227 | # | ||
2228 | |||
2229 | # | ||
2230 | # Customise DVB Frontends | ||
2231 | # | ||
2232 | # CONFIG_DVB_FE_CUSTOMISE is not set | ||
2233 | |||
2234 | # | ||
2235 | # DVB-S (satellite) frontends | ||
2236 | # | ||
2237 | CONFIG_DVB_CX24110=m | ||
2238 | CONFIG_DVB_CX24123=m | ||
2239 | CONFIG_DVB_MT312=m | ||
2240 | CONFIG_DVB_S5H1420=m | ||
2241 | CONFIG_DVB_STV0299=m | ||
2242 | CONFIG_DVB_TDA8083=m | ||
2243 | CONFIG_DVB_TDA10086=m | ||
2244 | CONFIG_DVB_VES1X93=m | ||
2245 | CONFIG_DVB_TUNER_ITD1000=m | ||
2246 | CONFIG_DVB_TDA826X=m | ||
2247 | CONFIG_DVB_TUA6100=m | ||
2248 | |||
2249 | # | ||
2250 | # DVB-T (terrestrial) frontends | ||
2251 | # | ||
2252 | CONFIG_DVB_SP8870=m | ||
2253 | CONFIG_DVB_SP887X=m | ||
2254 | CONFIG_DVB_CX22700=m | ||
2255 | CONFIG_DVB_CX22702=m | ||
2256 | CONFIG_DVB_L64781=m | ||
2257 | CONFIG_DVB_TDA1004X=m | ||
2258 | CONFIG_DVB_NXT6000=m | ||
2259 | CONFIG_DVB_MT352=m | ||
2260 | CONFIG_DVB_ZL10353=m | ||
2261 | CONFIG_DVB_DIB3000MB=m | ||
2262 | CONFIG_DVB_DIB3000MC=m | ||
2263 | CONFIG_DVB_DIB7000M=m | ||
2264 | CONFIG_DVB_DIB7000P=m | ||
2265 | CONFIG_DVB_TDA10048=m | ||
2266 | |||
2267 | # | ||
2268 | # DVB-C (cable) frontends | ||
2269 | # | ||
2270 | CONFIG_DVB_VES1820=m | ||
2271 | CONFIG_DVB_TDA10021=m | ||
2272 | CONFIG_DVB_TDA10023=m | ||
2273 | CONFIG_DVB_STV0297=m | ||
2274 | |||
2275 | # | ||
2276 | # ATSC (North American/Korean Terrestrial/Cable DTV) frontends | ||
2277 | # | ||
2278 | CONFIG_DVB_NXT200X=m | ||
2279 | CONFIG_DVB_OR51211=m | ||
2280 | CONFIG_DVB_OR51132=m | ||
2281 | CONFIG_DVB_BCM3510=m | ||
2282 | CONFIG_DVB_LGDT330X=m | ||
2283 | CONFIG_DVB_S5H1409=m | ||
2284 | CONFIG_DVB_AU8522=m | ||
2285 | CONFIG_DVB_S5H1411=m | ||
2286 | |||
2287 | # | ||
2288 | # Digital terrestrial only tuners/PLL | ||
2289 | # | ||
2290 | CONFIG_DVB_PLL=m | ||
2291 | CONFIG_DVB_TUNER_DIB0070=m | ||
2292 | |||
2293 | # | ||
2294 | # SEC control devices for DVB-S | ||
2295 | # | ||
2296 | CONFIG_DVB_LNBP21=m | ||
2297 | CONFIG_DVB_ISL6405=m | ||
2298 | CONFIG_DVB_ISL6421=m | ||
2299 | CONFIG_DAB=y | ||
2300 | CONFIG_USB_DABUSB=m | ||
2301 | |||
2302 | # | ||
2303 | # Graphics support | ||
2304 | # | ||
2305 | CONFIG_AGP=y | ||
2306 | CONFIG_AGP_UNINORTH=y | ||
2307 | CONFIG_DRM=m | ||
2308 | CONFIG_DRM_TDFX=m | ||
2309 | CONFIG_DRM_R128=m | ||
2310 | CONFIG_DRM_RADEON=m | ||
2311 | CONFIG_DRM_MGA=m | ||
2312 | CONFIG_DRM_SIS=m | ||
2313 | CONFIG_DRM_VIA=m | ||
2314 | CONFIG_DRM_SAVAGE=m | ||
2315 | CONFIG_VGASTATE=y | ||
2316 | CONFIG_VIDEO_OUTPUT_CONTROL=m | ||
2317 | CONFIG_FB=y | ||
2318 | # CONFIG_FIRMWARE_EDID is not set | ||
2319 | CONFIG_FB_DDC=y | ||
2320 | CONFIG_FB_CFB_FILLRECT=y | ||
2321 | CONFIG_FB_CFB_COPYAREA=y | ||
2322 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
2323 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
2324 | # CONFIG_FB_SYS_FILLRECT is not set | ||
2325 | # CONFIG_FB_SYS_COPYAREA is not set | ||
2326 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
2327 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
2328 | # CONFIG_FB_SYS_FOPS is not set | ||
2329 | CONFIG_FB_SVGALIB=m | ||
2330 | CONFIG_FB_MACMODES=y | ||
2331 | CONFIG_FB_BACKLIGHT=y | ||
2332 | CONFIG_FB_MODE_HELPERS=y | ||
2333 | CONFIG_FB_TILEBLITTING=y | ||
2334 | |||
2335 | # | ||
2336 | # Frame buffer hardware drivers | ||
2337 | # | ||
2338 | CONFIG_FB_CIRRUS=m | ||
2339 | # CONFIG_FB_PM2 is not set | ||
2340 | # CONFIG_FB_CYBER2000 is not set | ||
2341 | CONFIG_FB_OF=y | ||
2342 | # CONFIG_FB_CONTROL is not set | ||
2343 | CONFIG_FB_PLATINUM=y | ||
2344 | CONFIG_FB_VALKYRIE=y | ||
2345 | CONFIG_FB_CT65550=y | ||
2346 | # CONFIG_FB_ASILIANT is not set | ||
2347 | # CONFIG_FB_IMSTT is not set | ||
2348 | # CONFIG_FB_VGA16 is not set | ||
2349 | # CONFIG_FB_UVESA is not set | ||
2350 | # CONFIG_FB_S1D13XXX is not set | ||
2351 | CONFIG_FB_NVIDIA=y | ||
2352 | CONFIG_FB_NVIDIA_I2C=y | ||
2353 | # CONFIG_FB_NVIDIA_DEBUG is not set | ||
2354 | CONFIG_FB_NVIDIA_BACKLIGHT=y | ||
2355 | CONFIG_FB_RIVA=m | ||
2356 | # CONFIG_FB_RIVA_I2C is not set | ||
2357 | # CONFIG_FB_RIVA_DEBUG is not set | ||
2358 | CONFIG_FB_RIVA_BACKLIGHT=y | ||
2359 | CONFIG_FB_MATROX=y | ||
2360 | CONFIG_FB_MATROX_MILLENIUM=y | ||
2361 | CONFIG_FB_MATROX_MYSTIQUE=y | ||
2362 | CONFIG_FB_MATROX_G=y | ||
2363 | CONFIG_FB_MATROX_I2C=m | ||
2364 | CONFIG_FB_MATROX_MAVEN=m | ||
2365 | CONFIG_FB_MATROX_MULTIHEAD=y | ||
2366 | CONFIG_FB_RADEON=y | ||
2367 | CONFIG_FB_RADEON_I2C=y | ||
2368 | CONFIG_FB_RADEON_BACKLIGHT=y | ||
2369 | # CONFIG_FB_RADEON_DEBUG is not set | ||
2370 | CONFIG_FB_ATY128=y | ||
2371 | CONFIG_FB_ATY128_BACKLIGHT=y | ||
2372 | CONFIG_FB_ATY=y | ||
2373 | CONFIG_FB_ATY_CT=y | ||
2374 | CONFIG_FB_ATY_GENERIC_LCD=y | ||
2375 | CONFIG_FB_ATY_GX=y | ||
2376 | CONFIG_FB_ATY_BACKLIGHT=y | ||
2377 | CONFIG_FB_S3=m | ||
2378 | CONFIG_FB_SAVAGE=m | ||
2379 | CONFIG_FB_SAVAGE_I2C=y | ||
2380 | CONFIG_FB_SAVAGE_ACCEL=y | ||
2381 | # CONFIG_FB_SIS is not set | ||
2382 | CONFIG_FB_NEOMAGIC=m | ||
2383 | CONFIG_FB_KYRO=m | ||
2384 | CONFIG_FB_3DFX=m | ||
2385 | CONFIG_FB_3DFX_ACCEL=y | ||
2386 | CONFIG_FB_VOODOO1=m | ||
2387 | # CONFIG_FB_VT8623 is not set | ||
2388 | CONFIG_FB_TRIDENT=m | ||
2389 | CONFIG_FB_TRIDENT_ACCEL=y | ||
2390 | # CONFIG_FB_ARK is not set | ||
2391 | # CONFIG_FB_PM3 is not set | ||
2392 | # CONFIG_FB_FSL_DIU is not set | ||
2393 | CONFIG_FB_SM501=m | ||
2394 | CONFIG_FB_IBM_GXT4500=y | ||
2395 | # CONFIG_FB_VIRTUAL is not set | ||
2396 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
2397 | CONFIG_LCD_CLASS_DEVICE=m | ||
2398 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
2399 | # CONFIG_BACKLIGHT_CORGI is not set | ||
2400 | |||
2401 | # | ||
2402 | # Display device support | ||
2403 | # | ||
2404 | CONFIG_DISPLAY_SUPPORT=m | ||
2405 | |||
2406 | # | ||
2407 | # Display hardware drivers | ||
2408 | # | ||
2409 | |||
2410 | # | ||
2411 | # Console display driver support | ||
2412 | # | ||
2413 | CONFIG_VGA_CONSOLE=y | ||
2414 | CONFIG_VGACON_SOFT_SCROLLBACK=y | ||
2415 | CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64 | ||
2416 | # CONFIG_MDA_CONSOLE is not set | ||
2417 | CONFIG_DUMMY_CONSOLE=y | ||
2418 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
2419 | CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y | ||
2420 | CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y | ||
2421 | # CONFIG_FONTS is not set | ||
2422 | CONFIG_FONT_8x8=y | ||
2423 | CONFIG_FONT_8x16=y | ||
2424 | CONFIG_LOGO=y | ||
2425 | # CONFIG_LOGO_LINUX_MONO is not set | ||
2426 | # CONFIG_LOGO_LINUX_VGA16 is not set | ||
2427 | CONFIG_LOGO_LINUX_CLUT224=y | ||
2428 | CONFIG_SOUND=m | ||
2429 | CONFIG_SND=m | ||
2430 | CONFIG_SND_TIMER=m | ||
2431 | CONFIG_SND_PCM=m | ||
2432 | CONFIG_SND_HWDEP=m | ||
2433 | CONFIG_SND_RAWMIDI=m | ||
2434 | CONFIG_SND_SEQUENCER=m | ||
2435 | CONFIG_SND_SEQ_DUMMY=m | ||
2436 | CONFIG_SND_OSSEMUL=y | ||
2437 | CONFIG_SND_MIXER_OSS=m | ||
2438 | CONFIG_SND_PCM_OSS=m | ||
2439 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
2440 | CONFIG_SND_SEQUENCER_OSS=y | ||
2441 | CONFIG_SND_DYNAMIC_MINORS=y | ||
2442 | # CONFIG_SND_SUPPORT_OLD_API is not set | ||
2443 | CONFIG_SND_VERBOSE_PROCFS=y | ||
2444 | CONFIG_SND_VERBOSE_PRINTK=y | ||
2445 | CONFIG_SND_DEBUG=y | ||
2446 | CONFIG_SND_DEBUG_VERBOSE=y | ||
2447 | CONFIG_SND_PCM_XRUN_DEBUG=y | ||
2448 | CONFIG_SND_VMASTER=y | ||
2449 | CONFIG_SND_MPU401_UART=m | ||
2450 | CONFIG_SND_OPL3_LIB=m | ||
2451 | CONFIG_SND_VX_LIB=m | ||
2452 | CONFIG_SND_AC97_CODEC=m | ||
2453 | CONFIG_SND_DRIVERS=y | ||
2454 | CONFIG_SND_DUMMY=m | ||
2455 | CONFIG_SND_VIRMIDI=m | ||
2456 | CONFIG_SND_MTPAV=m | ||
2457 | CONFIG_SND_MTS64=m | ||
2458 | CONFIG_SND_SERIAL_U16550=m | ||
2459 | CONFIG_SND_MPU401=m | ||
2460 | CONFIG_SND_PORTMAN2X4=m | ||
2461 | CONFIG_SND_AC97_POWER_SAVE=y | ||
2462 | CONFIG_SND_AC97_POWER_SAVE_DEFAULT=5 | ||
2463 | CONFIG_SND_SB_COMMON=m | ||
2464 | CONFIG_SND_SB16_DSP=m | ||
2465 | CONFIG_SND_ISA=y | ||
2466 | # CONFIG_SND_ADLIB is not set | ||
2467 | # CONFIG_SND_AD1816A is not set | ||
2468 | # CONFIG_SND_AD1848 is not set | ||
2469 | # CONFIG_SND_ALS100 is not set | ||
2470 | # CONFIG_SND_AZT2320 is not set | ||
2471 | # CONFIG_SND_CMI8330 is not set | ||
2472 | # CONFIG_SND_CS4231 is not set | ||
2473 | # CONFIG_SND_CS4232 is not set | ||
2474 | # CONFIG_SND_CS4236 is not set | ||
2475 | # CONFIG_SND_DT019X is not set | ||
2476 | # CONFIG_SND_ES968 is not set | ||
2477 | # CONFIG_SND_ES1688 is not set | ||
2478 | # CONFIG_SND_ES18XX is not set | ||
2479 | # CONFIG_SND_SC6000 is not set | ||
2480 | # CONFIG_SND_GUSCLASSIC is not set | ||
2481 | # CONFIG_SND_GUSEXTREME is not set | ||
2482 | # CONFIG_SND_GUSMAX is not set | ||
2483 | # CONFIG_SND_INTERWAVE is not set | ||
2484 | # CONFIG_SND_INTERWAVE_STB is not set | ||
2485 | # CONFIG_SND_OPL3SA2 is not set | ||
2486 | # CONFIG_SND_OPTI92X_AD1848 is not set | ||
2487 | # CONFIG_SND_OPTI92X_CS4231 is not set | ||
2488 | # CONFIG_SND_OPTI93X is not set | ||
2489 | # CONFIG_SND_MIRO is not set | ||
2490 | # CONFIG_SND_SB8 is not set | ||
2491 | # CONFIG_SND_SB16 is not set | ||
2492 | # CONFIG_SND_SBAWE is not set | ||
2493 | # CONFIG_SND_SGALAXY is not set | ||
2494 | # CONFIG_SND_SSCAPE is not set | ||
2495 | # CONFIG_SND_WAVEFRONT is not set | ||
2496 | CONFIG_SND_PCI=y | ||
2497 | CONFIG_SND_AD1889=m | ||
2498 | CONFIG_SND_ALS300=m | ||
2499 | CONFIG_SND_ALS4000=m | ||
2500 | CONFIG_SND_ALI5451=m | ||
2501 | CONFIG_SND_ATIIXP=m | ||
2502 | CONFIG_SND_ATIIXP_MODEM=m | ||
2503 | CONFIG_SND_AU8810=m | ||
2504 | CONFIG_SND_AU8820=m | ||
2505 | CONFIG_SND_AU8830=m | ||
2506 | CONFIG_SND_AW2=m | ||
2507 | CONFIG_SND_AZT3328=m | ||
2508 | CONFIG_SND_BT87X=m | ||
2509 | # CONFIG_SND_BT87X_OVERCLOCK is not set | ||
2510 | CONFIG_SND_CA0106=m | ||
2511 | CONFIG_SND_CMIPCI=m | ||
2512 | CONFIG_SND_OXYGEN_LIB=m | ||
2513 | CONFIG_SND_OXYGEN=m | ||
2514 | CONFIG_SND_CS4281=m | ||
2515 | CONFIG_SND_CS46XX=m | ||
2516 | CONFIG_SND_CS46XX_NEW_DSP=y | ||
2517 | CONFIG_SND_CS5530=m | ||
2518 | CONFIG_SND_DARLA20=m | ||
2519 | CONFIG_SND_GINA20=m | ||
2520 | CONFIG_SND_LAYLA20=m | ||
2521 | CONFIG_SND_DARLA24=m | ||
2522 | CONFIG_SND_GINA24=m | ||
2523 | CONFIG_SND_LAYLA24=m | ||
2524 | CONFIG_SND_MONA=m | ||
2525 | CONFIG_SND_MIA=m | ||
2526 | CONFIG_SND_ECHO3G=m | ||
2527 | CONFIG_SND_INDIGO=m | ||
2528 | CONFIG_SND_INDIGOIO=m | ||
2529 | CONFIG_SND_INDIGODJ=m | ||
2530 | CONFIG_SND_EMU10K1=m | ||
2531 | CONFIG_SND_EMU10K1X=m | ||
2532 | CONFIG_SND_ENS1370=m | ||
2533 | CONFIG_SND_ENS1371=m | ||
2534 | CONFIG_SND_ES1938=m | ||
2535 | CONFIG_SND_ES1968=m | ||
2536 | CONFIG_SND_FM801=m | ||
2537 | CONFIG_SND_FM801_TEA575X_BOOL=y | ||
2538 | CONFIG_SND_FM801_TEA575X=m | ||
2539 | # CONFIG_SND_HDA_INTEL is not set | ||
2540 | CONFIG_SND_HDSP=m | ||
2541 | CONFIG_SND_HDSPM=m | ||
2542 | CONFIG_SND_HIFIER=m | ||
2543 | CONFIG_SND_ICE1712=m | ||
2544 | CONFIG_SND_ICE1724=m | ||
2545 | # CONFIG_SND_INTEL8X0 is not set | ||
2546 | # CONFIG_SND_INTEL8X0M is not set | ||
2547 | CONFIG_SND_KORG1212=m | ||
2548 | CONFIG_SND_MAESTRO3=m | ||
2549 | CONFIG_SND_MIXART=m | ||
2550 | CONFIG_SND_NM256=m | ||
2551 | CONFIG_SND_PCXHR=m | ||
2552 | CONFIG_SND_RIPTIDE=m | ||
2553 | CONFIG_SND_RME32=m | ||
2554 | CONFIG_SND_RME96=m | ||
2555 | CONFIG_SND_RME9652=m | ||
2556 | CONFIG_SND_SONICVIBES=m | ||
2557 | CONFIG_SND_TRIDENT=m | ||
2558 | CONFIG_SND_VIA82XX=m | ||
2559 | CONFIG_SND_VIA82XX_MODEM=m | ||
2560 | CONFIG_SND_VIRTUOSO=m | ||
2561 | CONFIG_SND_VX222=m | ||
2562 | # CONFIG_SND_YMFPCI is not set | ||
2563 | CONFIG_SND_PPC=y | ||
2564 | CONFIG_SND_POWERMAC=m | ||
2565 | CONFIG_SND_POWERMAC_AUTO_DRC=y | ||
2566 | CONFIG_SND_AOA=m | ||
2567 | CONFIG_SND_AOA_FABRIC_LAYOUT=m | ||
2568 | CONFIG_SND_AOA_ONYX=m | ||
2569 | CONFIG_SND_AOA_TAS=m | ||
2570 | CONFIG_SND_AOA_TOONIE=m | ||
2571 | CONFIG_SND_AOA_SOUNDBUS=m | ||
2572 | CONFIG_SND_AOA_SOUNDBUS_I2S=m | ||
2573 | CONFIG_SND_USB=y | ||
2574 | CONFIG_SND_USB_AUDIO=m | ||
2575 | CONFIG_SND_USB_USX2Y=m | ||
2576 | CONFIG_SND_USB_CAIAQ=m | ||
2577 | CONFIG_SND_USB_CAIAQ_INPUT=y | ||
2578 | # CONFIG_SND_PCMCIA is not set | ||
2579 | # CONFIG_SND_SOC is not set | ||
2580 | # CONFIG_SOUND_PRIME is not set | ||
2581 | CONFIG_AC97_BUS=m | ||
2582 | CONFIG_HID_SUPPORT=y | ||
2583 | CONFIG_HID=y | ||
2584 | CONFIG_HID_DEBUG=y | ||
2585 | CONFIG_HIDRAW=y | ||
2586 | |||
2587 | # | ||
2588 | # USB Input Devices | ||
2589 | # | ||
2590 | CONFIG_USB_HID=y | ||
2591 | CONFIG_USB_HIDINPUT_POWERBOOK=y | ||
2592 | CONFIG_HID_FF=y | ||
2593 | CONFIG_HID_PID=y | ||
2594 | CONFIG_LOGITECH_FF=y | ||
2595 | CONFIG_LOGIRUMBLEPAD2_FF=y | ||
2596 | CONFIG_PANTHERLORD_FF=y | ||
2597 | CONFIG_THRUSTMASTER_FF=y | ||
2598 | CONFIG_ZEROPLUS_FF=y | ||
2599 | CONFIG_USB_HIDDEV=y | ||
2600 | CONFIG_USB_SUPPORT=y | ||
2601 | CONFIG_USB_ARCH_HAS_HCD=y | ||
2602 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
2603 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
2604 | CONFIG_USB=y | ||
2605 | CONFIG_USB_DEBUG=y | ||
2606 | CONFIG_USB_ANNOUNCE_NEW_DEVICES=y | ||
2607 | |||
2608 | # | ||
2609 | # Miscellaneous USB options | ||
2610 | # | ||
2611 | CONFIG_USB_DEVICEFS=y | ||
2612 | # CONFIG_USB_DEVICE_CLASS is not set | ||
2613 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
2614 | CONFIG_USB_SUSPEND=y | ||
2615 | # CONFIG_USB_OTG is not set | ||
2616 | |||
2617 | # | ||
2618 | # USB Host Controller Drivers | ||
2619 | # | ||
2620 | # CONFIG_USB_C67X00_HCD is not set | ||
2621 | CONFIG_USB_EHCI_HCD=m | ||
2622 | CONFIG_USB_EHCI_ROOT_HUB_TT=y | ||
2623 | CONFIG_USB_EHCI_TT_NEWSCHED=y | ||
2624 | CONFIG_USB_EHCI_FSL=y | ||
2625 | CONFIG_USB_EHCI_HCD_PPC_OF=y | ||
2626 | # CONFIG_USB_ISP116X_HCD is not set | ||
2627 | # CONFIG_USB_ISP1760_HCD is not set | ||
2628 | CONFIG_USB_OHCI_HCD=m | ||
2629 | CONFIG_USB_OHCI_HCD_PPC_SOC=y | ||
2630 | CONFIG_USB_OHCI_HCD_PPC_OF=y | ||
2631 | CONFIG_USB_OHCI_HCD_PPC_OF_BE=y | ||
2632 | CONFIG_USB_OHCI_HCD_PPC_OF_LE=y | ||
2633 | CONFIG_USB_OHCI_HCD_PCI=y | ||
2634 | # CONFIG_USB_OHCI_HCD_SSB is not set | ||
2635 | CONFIG_USB_OHCI_BIG_ENDIAN_DESC=y | ||
2636 | CONFIG_USB_OHCI_BIG_ENDIAN_MMIO=y | ||
2637 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
2638 | CONFIG_USB_UHCI_HCD=m | ||
2639 | CONFIG_USB_U132_HCD=m | ||
2640 | CONFIG_USB_SL811_HCD=m | ||
2641 | # CONFIG_USB_SL811_CS is not set | ||
2642 | # CONFIG_USB_R8A66597_HCD is not set | ||
2643 | |||
2644 | # | ||
2645 | # USB Device Class drivers | ||
2646 | # | ||
2647 | CONFIG_USB_ACM=m | ||
2648 | CONFIG_USB_PRINTER=m | ||
2649 | CONFIG_USB_WDM=m | ||
2650 | |||
2651 | # | ||
2652 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
2653 | # | ||
2654 | |||
2655 | # | ||
2656 | # may also be needed; see USB_STORAGE Help for more information | ||
2657 | # | ||
2658 | CONFIG_USB_STORAGE=m | ||
2659 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
2660 | CONFIG_USB_STORAGE_DATAFAB=y | ||
2661 | CONFIG_USB_STORAGE_FREECOM=y | ||
2662 | # CONFIG_USB_STORAGE_ISD200 is not set | ||
2663 | CONFIG_USB_STORAGE_DPCM=y | ||
2664 | CONFIG_USB_STORAGE_USBAT=y | ||
2665 | CONFIG_USB_STORAGE_SDDR09=y | ||
2666 | CONFIG_USB_STORAGE_SDDR55=y | ||
2667 | CONFIG_USB_STORAGE_JUMPSHOT=y | ||
2668 | CONFIG_USB_STORAGE_ALAUDA=y | ||
2669 | CONFIG_USB_STORAGE_ONETOUCH=y | ||
2670 | CONFIG_USB_STORAGE_KARMA=y | ||
2671 | CONFIG_USB_STORAGE_CYPRESS_ATACB=y | ||
2672 | # CONFIG_USB_LIBUSUAL is not set | ||
2673 | |||
2674 | # | ||
2675 | # USB Imaging devices | ||
2676 | # | ||
2677 | CONFIG_USB_MDC800=m | ||
2678 | CONFIG_USB_MICROTEK=m | ||
2679 | CONFIG_USB_MON=y | ||
2680 | |||
2681 | # | ||
2682 | # USB port drivers | ||
2683 | # | ||
2684 | CONFIG_USB_USS720=m | ||
2685 | CONFIG_USB_SERIAL=m | ||
2686 | CONFIG_USB_EZUSB=y | ||
2687 | CONFIG_USB_SERIAL_GENERIC=y | ||
2688 | CONFIG_USB_SERIAL_AIRCABLE=m | ||
2689 | CONFIG_USB_SERIAL_AIRPRIME=m | ||
2690 | CONFIG_USB_SERIAL_ARK3116=m | ||
2691 | CONFIG_USB_SERIAL_BELKIN=m | ||
2692 | CONFIG_USB_SERIAL_CH341=m | ||
2693 | CONFIG_USB_SERIAL_WHITEHEAT=m | ||
2694 | CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m | ||
2695 | CONFIG_USB_SERIAL_CP2101=m | ||
2696 | CONFIG_USB_SERIAL_CYPRESS_M8=m | ||
2697 | CONFIG_USB_SERIAL_EMPEG=m | ||
2698 | CONFIG_USB_SERIAL_FTDI_SIO=m | ||
2699 | CONFIG_USB_SERIAL_FUNSOFT=m | ||
2700 | CONFIG_USB_SERIAL_VISOR=m | ||
2701 | CONFIG_USB_SERIAL_IPAQ=m | ||
2702 | CONFIG_USB_SERIAL_IR=m | ||
2703 | CONFIG_USB_SERIAL_EDGEPORT=m | ||
2704 | CONFIG_USB_SERIAL_EDGEPORT_TI=m | ||
2705 | # CONFIG_USB_SERIAL_GARMIN is not set | ||
2706 | CONFIG_USB_SERIAL_IPW=m | ||
2707 | CONFIG_USB_SERIAL_IUU=m | ||
2708 | CONFIG_USB_SERIAL_KEYSPAN_PDA=m | ||
2709 | CONFIG_USB_SERIAL_KEYSPAN=m | ||
2710 | CONFIG_USB_SERIAL_KLSI=m | ||
2711 | CONFIG_USB_SERIAL_KOBIL_SCT=m | ||
2712 | CONFIG_USB_SERIAL_MCT_U232=m | ||
2713 | CONFIG_USB_SERIAL_MOS7720=m | ||
2714 | CONFIG_USB_SERIAL_MOS7840=m | ||
2715 | CONFIG_USB_SERIAL_MOTOROLA=m | ||
2716 | CONFIG_USB_SERIAL_NAVMAN=m | ||
2717 | CONFIG_USB_SERIAL_PL2303=m | ||
2718 | CONFIG_USB_SERIAL_OTI6858=m | ||
2719 | CONFIG_USB_SERIAL_SPCP8X5=m | ||
2720 | CONFIG_USB_SERIAL_HP4X=m | ||
2721 | CONFIG_USB_SERIAL_SAFE=m | ||
2722 | CONFIG_USB_SERIAL_SAFE_PADDED=y | ||
2723 | CONFIG_USB_SERIAL_SIERRAWIRELESS=m | ||
2724 | CONFIG_USB_SERIAL_TI=m | ||
2725 | CONFIG_USB_SERIAL_CYBERJACK=m | ||
2726 | CONFIG_USB_SERIAL_XIRCOM=m | ||
2727 | CONFIG_USB_SERIAL_OPTION=m | ||
2728 | CONFIG_USB_SERIAL_OMNINET=m | ||
2729 | CONFIG_USB_SERIAL_DEBUG=m | ||
2730 | |||
2731 | # | ||
2732 | # USB Miscellaneous drivers | ||
2733 | # | ||
2734 | CONFIG_USB_EMI62=m | ||
2735 | CONFIG_USB_EMI26=m | ||
2736 | CONFIG_USB_ADUTUX=m | ||
2737 | CONFIG_USB_AUERSWALD=m | ||
2738 | # CONFIG_USB_RIO500 is not set | ||
2739 | CONFIG_USB_LEGOTOWER=m | ||
2740 | CONFIG_USB_LCD=m | ||
2741 | CONFIG_USB_BERRY_CHARGE=m | ||
2742 | CONFIG_USB_LED=m | ||
2743 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
2744 | # CONFIG_USB_CYTHERM is not set | ||
2745 | CONFIG_USB_PHIDGET=m | ||
2746 | CONFIG_USB_PHIDGETKIT=m | ||
2747 | CONFIG_USB_PHIDGETMOTORCONTROL=m | ||
2748 | CONFIG_USB_PHIDGETSERVO=m | ||
2749 | CONFIG_USB_IDMOUSE=m | ||
2750 | CONFIG_USB_FTDI_ELAN=m | ||
2751 | CONFIG_USB_APPLEDISPLAY=m | ||
2752 | CONFIG_USB_SISUSBVGA=m | ||
2753 | CONFIG_USB_SISUSBVGA_CON=y | ||
2754 | CONFIG_USB_LD=m | ||
2755 | CONFIG_USB_TRANCEVIBRATOR=m | ||
2756 | CONFIG_USB_IOWARRIOR=m | ||
2757 | # CONFIG_USB_TEST is not set | ||
2758 | CONFIG_USB_ISIGHTFW=m | ||
2759 | CONFIG_USB_ATM=m | ||
2760 | CONFIG_USB_SPEEDTOUCH=m | ||
2761 | CONFIG_USB_CXACRU=m | ||
2762 | CONFIG_USB_UEAGLEATM=m | ||
2763 | CONFIG_USB_XUSBATM=m | ||
2764 | # CONFIG_USB_GADGET is not set | ||
2765 | # CONFIG_MMC is not set | ||
2766 | # CONFIG_MEMSTICK is not set | ||
2767 | CONFIG_NEW_LEDS=y | ||
2768 | CONFIG_LEDS_CLASS=y | ||
2769 | |||
2770 | # | ||
2771 | # LED drivers | ||
2772 | # | ||
2773 | # CONFIG_LEDS_GPIO is not set | ||
2774 | |||
2775 | # | ||
2776 | # LED Triggers | ||
2777 | # | ||
2778 | CONFIG_LEDS_TRIGGERS=y | ||
2779 | CONFIG_LEDS_TRIGGER_TIMER=m | ||
2780 | CONFIG_LEDS_TRIGGER_IDE_DISK=y | ||
2781 | CONFIG_LEDS_TRIGGER_HEARTBEAT=m | ||
2782 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=m | ||
2783 | CONFIG_ACCESSIBILITY=y | ||
2784 | CONFIG_A11Y_BRAILLE_CONSOLE=y | ||
2785 | # CONFIG_INFINIBAND is not set | ||
2786 | CONFIG_EDAC=y | ||
2787 | |||
2788 | # | ||
2789 | # Reporting subsystems | ||
2790 | # | ||
2791 | # CONFIG_EDAC_DEBUG is not set | ||
2792 | CONFIG_EDAC_MM_EDAC=m | ||
2793 | CONFIG_RTC_LIB=y | ||
2794 | CONFIG_RTC_CLASS=y | ||
2795 | # CONFIG_RTC_HCTOSYS is not set | ||
2796 | # CONFIG_RTC_DEBUG is not set | ||
2797 | |||
2798 | # | ||
2799 | # RTC interfaces | ||
2800 | # | ||
2801 | CONFIG_RTC_INTF_SYSFS=y | ||
2802 | CONFIG_RTC_INTF_PROC=y | ||
2803 | CONFIG_RTC_INTF_DEV=y | ||
2804 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
2805 | # CONFIG_RTC_DRV_TEST is not set | ||
2806 | |||
2807 | # | ||
2808 | # I2C RTC drivers | ||
2809 | # | ||
2810 | CONFIG_RTC_DRV_DS1307=m | ||
2811 | CONFIG_RTC_DRV_DS1374=m | ||
2812 | CONFIG_RTC_DRV_DS1672=m | ||
2813 | CONFIG_RTC_DRV_MAX6900=m | ||
2814 | CONFIG_RTC_DRV_RS5C372=m | ||
2815 | CONFIG_RTC_DRV_ISL1208=m | ||
2816 | CONFIG_RTC_DRV_X1205=m | ||
2817 | CONFIG_RTC_DRV_PCF8563=m | ||
2818 | CONFIG_RTC_DRV_PCF8583=m | ||
2819 | CONFIG_RTC_DRV_M41T80=m | ||
2820 | CONFIG_RTC_DRV_M41T80_WDT=y | ||
2821 | # CONFIG_RTC_DRV_S35390A is not set | ||
2822 | CONFIG_RTC_DRV_FM3130=m | ||
2823 | |||
2824 | # | ||
2825 | # SPI RTC drivers | ||
2826 | # | ||
2827 | |||
2828 | # | ||
2829 | # Platform RTC drivers | ||
2830 | # | ||
2831 | CONFIG_RTC_DRV_CMOS=y | ||
2832 | CONFIG_RTC_DRV_DS1511=m | ||
2833 | CONFIG_RTC_DRV_DS1553=m | ||
2834 | CONFIG_RTC_DRV_DS1742=m | ||
2835 | CONFIG_RTC_DRV_STK17TA8=m | ||
2836 | # CONFIG_RTC_DRV_M48T86 is not set | ||
2837 | CONFIG_RTC_DRV_M48T59=m | ||
2838 | CONFIG_RTC_DRV_V3020=m | ||
2839 | |||
2840 | # | ||
2841 | # on-CPU RTC drivers | ||
2842 | # | ||
2843 | CONFIG_RTC_DRV_PPC=y | ||
2844 | CONFIG_DMADEVICES=y | ||
2845 | |||
2846 | # | ||
2847 | # DMA Devices | ||
2848 | # | ||
2849 | # CONFIG_FSL_DMA is not set | ||
2850 | CONFIG_AUXDISPLAY=y | ||
2851 | CONFIG_KS0108=m | ||
2852 | CONFIG_KS0108_PORT=0x378 | ||
2853 | CONFIG_KS0108_DELAY=2 | ||
2854 | CONFIG_UIO=m | ||
2855 | CONFIG_UIO_CIF=m | ||
2856 | CONFIG_UIO_SMX=m | ||
2857 | |||
2858 | # | ||
2859 | # File systems | ||
2860 | # | ||
2861 | CONFIG_EXT2_FS=m | ||
2862 | CONFIG_EXT2_FS_XATTR=y | ||
2863 | CONFIG_EXT2_FS_POSIX_ACL=y | ||
2864 | CONFIG_EXT2_FS_SECURITY=y | ||
2865 | CONFIG_EXT2_FS_XIP=y | ||
2866 | CONFIG_FS_XIP=y | ||
2867 | CONFIG_EXT3_FS=m | ||
2868 | CONFIG_EXT3_FS_XATTR=y | ||
2869 | CONFIG_EXT3_FS_POSIX_ACL=y | ||
2870 | CONFIG_EXT3_FS_SECURITY=y | ||
2871 | CONFIG_EXT4DEV_FS=m | ||
2872 | CONFIG_EXT4DEV_FS_XATTR=y | ||
2873 | CONFIG_EXT4DEV_FS_POSIX_ACL=y | ||
2874 | CONFIG_EXT4DEV_FS_SECURITY=y | ||
2875 | CONFIG_JBD=m | ||
2876 | # CONFIG_JBD_DEBUG is not set | ||
2877 | CONFIG_JBD2=m | ||
2878 | CONFIG_JBD2_DEBUG=y | ||
2879 | CONFIG_FS_MBCACHE=m | ||
2880 | CONFIG_REISERFS_FS=m | ||
2881 | # CONFIG_REISERFS_CHECK is not set | ||
2882 | CONFIG_REISERFS_PROC_INFO=y | ||
2883 | CONFIG_REISERFS_FS_XATTR=y | ||
2884 | CONFIG_REISERFS_FS_POSIX_ACL=y | ||
2885 | CONFIG_REISERFS_FS_SECURITY=y | ||
2886 | CONFIG_JFS_FS=m | ||
2887 | CONFIG_JFS_POSIX_ACL=y | ||
2888 | CONFIG_JFS_SECURITY=y | ||
2889 | # CONFIG_JFS_DEBUG is not set | ||
2890 | # CONFIG_JFS_STATISTICS is not set | ||
2891 | CONFIG_FS_POSIX_ACL=y | ||
2892 | CONFIG_XFS_FS=m | ||
2893 | CONFIG_XFS_QUOTA=y | ||
2894 | CONFIG_XFS_POSIX_ACL=y | ||
2895 | # CONFIG_XFS_RT is not set | ||
2896 | # CONFIG_XFS_DEBUG is not set | ||
2897 | CONFIG_GFS2_FS=m | ||
2898 | CONFIG_GFS2_FS_LOCKING_DLM=m | ||
2899 | CONFIG_OCFS2_FS=m | ||
2900 | CONFIG_OCFS2_FS_O2CB=m | ||
2901 | CONFIG_OCFS2_FS_USERSPACE_CLUSTER=m | ||
2902 | # CONFIG_OCFS2_DEBUG_MASKLOG is not set | ||
2903 | # CONFIG_OCFS2_DEBUG_FS is not set | ||
2904 | CONFIG_DNOTIFY=y | ||
2905 | CONFIG_INOTIFY=y | ||
2906 | CONFIG_INOTIFY_USER=y | ||
2907 | CONFIG_QUOTA=y | ||
2908 | CONFIG_QUOTA_NETLINK_INTERFACE=y | ||
2909 | # CONFIG_PRINT_QUOTA_WARNING is not set | ||
2910 | # CONFIG_QFMT_V1 is not set | ||
2911 | CONFIG_QFMT_V2=y | ||
2912 | CONFIG_QUOTACTL=y | ||
2913 | CONFIG_AUTOFS_FS=m | ||
2914 | CONFIG_AUTOFS4_FS=m | ||
2915 | CONFIG_FUSE_FS=m | ||
2916 | CONFIG_GENERIC_ACL=y | ||
2917 | |||
2918 | # | ||
2919 | # CD-ROM/DVD Filesystems | ||
2920 | # | ||
2921 | CONFIG_ISO9660_FS=y | ||
2922 | CONFIG_JOLIET=y | ||
2923 | CONFIG_ZISOFS=y | ||
2924 | CONFIG_UDF_FS=m | ||
2925 | CONFIG_UDF_NLS=y | ||
2926 | |||
2927 | # | ||
2928 | # DOS/FAT/NT Filesystems | ||
2929 | # | ||
2930 | CONFIG_FAT_FS=m | ||
2931 | CONFIG_MSDOS_FS=m | ||
2932 | CONFIG_VFAT_FS=m | ||
2933 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
2934 | CONFIG_FAT_DEFAULT_IOCHARSET="ascii" | ||
2935 | # CONFIG_NTFS_FS is not set | ||
2936 | |||
2937 | # | ||
2938 | # Pseudo filesystems | ||
2939 | # | ||
2940 | CONFIG_PROC_FS=y | ||
2941 | CONFIG_PROC_KCORE=y | ||
2942 | CONFIG_PROC_SYSCTL=y | ||
2943 | CONFIG_SYSFS=y | ||
2944 | CONFIG_TMPFS=y | ||
2945 | CONFIG_TMPFS_POSIX_ACL=y | ||
2946 | # CONFIG_HUGETLB_PAGE is not set | ||
2947 | CONFIG_CONFIGFS_FS=m | ||
2948 | |||
2949 | # | ||
2950 | # Miscellaneous filesystems | ||
2951 | # | ||
2952 | # CONFIG_ADFS_FS is not set | ||
2953 | CONFIG_AFFS_FS=m | ||
2954 | CONFIG_ECRYPT_FS=m | ||
2955 | CONFIG_HFS_FS=m | ||
2956 | CONFIG_HFSPLUS_FS=m | ||
2957 | CONFIG_BEFS_FS=m | ||
2958 | # CONFIG_BEFS_DEBUG is not set | ||
2959 | CONFIG_BFS_FS=m | ||
2960 | CONFIG_EFS_FS=m | ||
2961 | CONFIG_CRAMFS=m | ||
2962 | CONFIG_SQUASHFS=m | ||
2963 | # CONFIG_SQUASHFS_EMBEDDED is not set | ||
2964 | CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 | ||
2965 | CONFIG_VXFS_FS=m | ||
2966 | CONFIG_MINIX_FS=m | ||
2967 | # CONFIG_HPFS_FS is not set | ||
2968 | CONFIG_QNX4FS_FS=m | ||
2969 | CONFIG_ROMFS_FS=m | ||
2970 | CONFIG_SYSV_FS=m | ||
2971 | CONFIG_UFS_FS=m | ||
2972 | # CONFIG_UFS_FS_WRITE is not set | ||
2973 | # CONFIG_UFS_DEBUG is not set | ||
2974 | CONFIG_NETWORK_FILESYSTEMS=y | ||
2975 | CONFIG_NFS_FS=m | ||
2976 | CONFIG_NFS_V3=y | ||
2977 | CONFIG_NFS_V3_ACL=y | ||
2978 | CONFIG_NFS_V4=y | ||
2979 | CONFIG_NFSD=m | ||
2980 | CONFIG_NFSD_V2_ACL=y | ||
2981 | CONFIG_NFSD_V3=y | ||
2982 | CONFIG_NFSD_V3_ACL=y | ||
2983 | CONFIG_NFSD_V4=y | ||
2984 | CONFIG_LOCKD=m | ||
2985 | CONFIG_LOCKD_V4=y | ||
2986 | CONFIG_EXPORTFS=m | ||
2987 | CONFIG_NFS_ACL_SUPPORT=m | ||
2988 | CONFIG_NFS_COMMON=y | ||
2989 | CONFIG_SUNRPC=m | ||
2990 | CONFIG_SUNRPC_GSS=m | ||
2991 | CONFIG_SUNRPC_BIND34=y | ||
2992 | CONFIG_RPCSEC_GSS_KRB5=m | ||
2993 | CONFIG_RPCSEC_GSS_SPKM3=m | ||
2994 | # CONFIG_SMB_FS is not set | ||
2995 | CONFIG_CIFS=m | ||
2996 | # CONFIG_CIFS_STATS is not set | ||
2997 | CONFIG_CIFS_WEAK_PW_HASH=y | ||
2998 | CONFIG_CIFS_XATTR=y | ||
2999 | CONFIG_CIFS_POSIX=y | ||
3000 | # CONFIG_CIFS_DEBUG2 is not set | ||
3001 | CONFIG_CIFS_EXPERIMENTAL=y | ||
3002 | CONFIG_CIFS_UPCALL=y | ||
3003 | CONFIG_CIFS_DFS_UPCALL=y | ||
3004 | CONFIG_NCP_FS=m | ||
3005 | CONFIG_NCPFS_PACKET_SIGNING=y | ||
3006 | CONFIG_NCPFS_IOCTL_LOCKING=y | ||
3007 | CONFIG_NCPFS_STRONG=y | ||
3008 | CONFIG_NCPFS_NFS_NS=y | ||
3009 | CONFIG_NCPFS_OS2_NS=y | ||
3010 | CONFIG_NCPFS_SMALLDOS=y | ||
3011 | CONFIG_NCPFS_NLS=y | ||
3012 | CONFIG_NCPFS_EXTRAS=y | ||
3013 | CONFIG_CODA_FS=m | ||
3014 | # CONFIG_CODA_FS_OLD_API is not set | ||
3015 | # CONFIG_AFS_FS is not set | ||
3016 | CONFIG_9P_FS=m | ||
3017 | |||
3018 | # | ||
3019 | # Partition Types | ||
3020 | # | ||
3021 | CONFIG_PARTITION_ADVANCED=y | ||
3022 | # CONFIG_ACORN_PARTITION is not set | ||
3023 | CONFIG_OSF_PARTITION=y | ||
3024 | CONFIG_AMIGA_PARTITION=y | ||
3025 | # CONFIG_ATARI_PARTITION is not set | ||
3026 | CONFIG_MAC_PARTITION=y | ||
3027 | CONFIG_MSDOS_PARTITION=y | ||
3028 | CONFIG_BSD_DISKLABEL=y | ||
3029 | CONFIG_MINIX_SUBPARTITION=y | ||
3030 | CONFIG_SOLARIS_X86_PARTITION=y | ||
3031 | CONFIG_UNIXWARE_DISKLABEL=y | ||
3032 | # CONFIG_LDM_PARTITION is not set | ||
3033 | CONFIG_SGI_PARTITION=y | ||
3034 | # CONFIG_ULTRIX_PARTITION is not set | ||
3035 | CONFIG_SUN_PARTITION=y | ||
3036 | CONFIG_KARMA_PARTITION=y | ||
3037 | CONFIG_EFI_PARTITION=y | ||
3038 | # CONFIG_SYSV68_PARTITION is not set | ||
3039 | CONFIG_NLS=y | ||
3040 | CONFIG_NLS_DEFAULT="utf8" | ||
3041 | CONFIG_NLS_CODEPAGE_437=y | ||
3042 | CONFIG_NLS_CODEPAGE_737=m | ||
3043 | CONFIG_NLS_CODEPAGE_775=m | ||
3044 | CONFIG_NLS_CODEPAGE_850=m | ||
3045 | CONFIG_NLS_CODEPAGE_852=m | ||
3046 | CONFIG_NLS_CODEPAGE_855=m | ||
3047 | CONFIG_NLS_CODEPAGE_857=m | ||
3048 | CONFIG_NLS_CODEPAGE_860=m | ||
3049 | CONFIG_NLS_CODEPAGE_861=m | ||
3050 | CONFIG_NLS_CODEPAGE_862=m | ||
3051 | CONFIG_NLS_CODEPAGE_863=m | ||
3052 | CONFIG_NLS_CODEPAGE_864=m | ||
3053 | CONFIG_NLS_CODEPAGE_865=m | ||
3054 | CONFIG_NLS_CODEPAGE_866=m | ||
3055 | CONFIG_NLS_CODEPAGE_869=m | ||
3056 | CONFIG_NLS_CODEPAGE_936=m | ||
3057 | CONFIG_NLS_CODEPAGE_950=m | ||
3058 | CONFIG_NLS_CODEPAGE_932=m | ||
3059 | CONFIG_NLS_CODEPAGE_949=m | ||
3060 | CONFIG_NLS_CODEPAGE_874=m | ||
3061 | CONFIG_NLS_ISO8859_8=m | ||
3062 | CONFIG_NLS_CODEPAGE_1250=m | ||
3063 | CONFIG_NLS_CODEPAGE_1251=m | ||
3064 | CONFIG_NLS_ASCII=y | ||
3065 | CONFIG_NLS_ISO8859_1=m | ||
3066 | CONFIG_NLS_ISO8859_2=m | ||
3067 | CONFIG_NLS_ISO8859_3=m | ||
3068 | CONFIG_NLS_ISO8859_4=m | ||
3069 | CONFIG_NLS_ISO8859_5=m | ||
3070 | CONFIG_NLS_ISO8859_6=m | ||
3071 | CONFIG_NLS_ISO8859_7=m | ||
3072 | CONFIG_NLS_ISO8859_9=m | ||
3073 | CONFIG_NLS_ISO8859_13=m | ||
3074 | CONFIG_NLS_ISO8859_14=m | ||
3075 | CONFIG_NLS_ISO8859_15=m | ||
3076 | CONFIG_NLS_KOI8_R=m | ||
3077 | CONFIG_NLS_KOI8_U=m | ||
3078 | CONFIG_NLS_UTF8=m | ||
3079 | CONFIG_DLM=m | ||
3080 | CONFIG_DLM_DEBUG=y | ||
3081 | CONFIG_QE_GPIO=y | ||
3082 | |||
3083 | # | ||
3084 | # Library routines | ||
3085 | # | ||
3086 | CONFIG_BITREVERSE=y | ||
3087 | # CONFIG_GENERIC_FIND_FIRST_BIT is not set | ||
3088 | CONFIG_CRC_CCITT=m | ||
3089 | CONFIG_CRC16=m | ||
3090 | CONFIG_CRC_T10DIF=m | ||
3091 | CONFIG_CRC_ITU_T=m | ||
3092 | CONFIG_CRC32=y | ||
3093 | # CONFIG_CRC7 is not set | ||
3094 | CONFIG_LIBCRC32C=m | ||
3095 | CONFIG_ZLIB_INFLATE=y | ||
3096 | CONFIG_ZLIB_DEFLATE=m | ||
3097 | CONFIG_LZO_COMPRESS=m | ||
3098 | CONFIG_LZO_DECOMPRESS=m | ||
3099 | CONFIG_TEXTSEARCH=y | ||
3100 | CONFIG_TEXTSEARCH_KMP=m | ||
3101 | CONFIG_TEXTSEARCH_BM=m | ||
3102 | CONFIG_TEXTSEARCH_FSM=m | ||
3103 | CONFIG_PLIST=y | ||
3104 | CONFIG_HAS_IOMEM=y | ||
3105 | CONFIG_HAS_IOPORT=y | ||
3106 | CONFIG_HAS_DMA=y | ||
3107 | CONFIG_HAVE_LMB=y | ||
3108 | |||
3109 | # | ||
3110 | # Kernel hacking | ||
3111 | # | ||
3112 | # CONFIG_PRINTK_TIME is not set | ||
3113 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | ||
3114 | CONFIG_ENABLE_MUST_CHECK=y | ||
3115 | CONFIG_FRAME_WARN=1024 | ||
3116 | CONFIG_MAGIC_SYSRQ=y | ||
3117 | CONFIG_UNUSED_SYMBOLS=y | ||
3118 | CONFIG_DEBUG_FS=y | ||
3119 | CONFIG_HEADERS_CHECK=y | ||
3120 | CONFIG_DEBUG_KERNEL=y | ||
3121 | CONFIG_DEBUG_SHIRQ=y | ||
3122 | CONFIG_DETECT_SOFTLOCKUP=y | ||
3123 | CONFIG_SCHED_DEBUG=y | ||
3124 | CONFIG_SCHEDSTATS=y | ||
3125 | CONFIG_TIMER_STATS=y | ||
3126 | CONFIG_DEBUG_OBJECTS=y | ||
3127 | # CONFIG_DEBUG_OBJECTS_SELFTEST is not set | ||
3128 | CONFIG_DEBUG_OBJECTS_FREE=y | ||
3129 | CONFIG_DEBUG_OBJECTS_TIMERS=y | ||
3130 | CONFIG_SLUB_DEBUG_ON=y | ||
3131 | # CONFIG_SLUB_STATS is not set | ||
3132 | CONFIG_DEBUG_RT_MUTEXES=y | ||
3133 | CONFIG_DEBUG_PI_LIST=y | ||
3134 | # CONFIG_RT_MUTEX_TESTER is not set | ||
3135 | CONFIG_DEBUG_SPINLOCK=y | ||
3136 | CONFIG_DEBUG_MUTEXES=y | ||
3137 | CONFIG_DEBUG_SPINLOCK_SLEEP=y | ||
3138 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
3139 | CONFIG_STACKTRACE=y | ||
3140 | # CONFIG_DEBUG_KOBJECT is not set | ||
3141 | CONFIG_DEBUG_HIGHMEM=y | ||
3142 | CONFIG_DEBUG_BUGVERBOSE=y | ||
3143 | CONFIG_DEBUG_INFO=y | ||
3144 | CONFIG_DEBUG_VM=y | ||
3145 | CONFIG_DEBUG_WRITECOUNT=y | ||
3146 | CONFIG_DEBUG_LIST=y | ||
3147 | CONFIG_DEBUG_SG=y | ||
3148 | CONFIG_FRAME_POINTER=y | ||
3149 | CONFIG_BOOT_PRINTK_DELAY=y | ||
3150 | # CONFIG_RCU_TORTURE_TEST is not set | ||
3151 | # CONFIG_KPROBES_SANITY_TEST is not set | ||
3152 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
3153 | # CONFIG_LKDTM is not set | ||
3154 | CONFIG_FAULT_INJECTION=y | ||
3155 | CONFIG_FAILSLAB=y | ||
3156 | CONFIG_FAIL_PAGE_ALLOC=y | ||
3157 | CONFIG_FAIL_MAKE_REQUEST=y | ||
3158 | CONFIG_FAULT_INJECTION_DEBUG_FS=y | ||
3159 | CONFIG_FAULT_INJECTION_STACKTRACE_FILTER=y | ||
3160 | CONFIG_LATENCYTOP=y | ||
3161 | CONFIG_HAVE_FTRACE=y | ||
3162 | CONFIG_HAVE_DYNAMIC_FTRACE=y | ||
3163 | CONFIG_TRACER_MAX_TRACE=y | ||
3164 | CONFIG_TRACING=y | ||
3165 | CONFIG_FTRACE=y | ||
3166 | CONFIG_SCHED_TRACER=y | ||
3167 | CONFIG_CONTEXT_SWITCH_TRACER=y | ||
3168 | CONFIG_DYNAMIC_FTRACE=y | ||
3169 | # CONFIG_FTRACE_STARTUP_TEST is not set | ||
3170 | # CONFIG_FIREWIRE_OHCI_REMOTE_DMA is not set | ||
3171 | # CONFIG_SAMPLES is not set | ||
3172 | CONFIG_DEBUG_STACKOVERFLOW=y | ||
3173 | CONFIG_DEBUG_STACK_USAGE=y | ||
3174 | CONFIG_DEBUGGER=y | ||
3175 | # CONFIG_CODE_PATCHING_SELFTEST is not set | ||
3176 | # CONFIG_FTR_FIXUP_SELFTEST is not set | ||
3177 | # CONFIG_KGDB_CONSOLE is not set | ||
3178 | CONFIG_XMON=y | ||
3179 | # CONFIG_XMON_DEFAULT is not set | ||
3180 | CONFIG_XMON_DISASSEMBLY=y | ||
3181 | CONFIG_IRQSTACKS=y | ||
3182 | # CONFIG_VIRQ_DEBUG is not set | ||
3183 | # CONFIG_BDI_SWITCH is not set | ||
3184 | CONFIG_BOOTX_TEXT=y | ||
3185 | # CONFIG_PPC_EARLY_DEBUG is not set | ||
3186 | |||
3187 | # | ||
3188 | # Security options | ||
3189 | # | ||
3190 | CONFIG_KEYS=y | ||
3191 | CONFIG_KEYS_DEBUG_PROC_KEYS=y | ||
3192 | CONFIG_SECURITY=y | ||
3193 | CONFIG_SECURITY_NETWORK=y | ||
3194 | CONFIG_SECURITY_NETWORK_XFRM=y | ||
3195 | CONFIG_SECURITY_FILE_CAPABILITIES=y | ||
3196 | # CONFIG_SECURITY_ROOTPLUG is not set | ||
3197 | CONFIG_SECURITY_DEFAULT_MMAP_MIN_ADDR=65536 | ||
3198 | CONFIG_SECURITY_SELINUX=y | ||
3199 | CONFIG_SECURITY_SELINUX_BOOTPARAM=y | ||
3200 | CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1 | ||
3201 | CONFIG_SECURITY_SELINUX_DISABLE=y | ||
3202 | CONFIG_SECURITY_SELINUX_DEVELOP=y | ||
3203 | CONFIG_SECURITY_SELINUX_AVC_STATS=y | ||
3204 | CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1 | ||
3205 | CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT=y | ||
3206 | # CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set | ||
3207 | # CONFIG_SECURITY_SMACK is not set | ||
3208 | CONFIG_XOR_BLOCKS=m | ||
3209 | CONFIG_ASYNC_CORE=m | ||
3210 | CONFIG_ASYNC_MEMCPY=m | ||
3211 | CONFIG_ASYNC_XOR=m | ||
3212 | CONFIG_CRYPTO=y | ||
3213 | |||
3214 | # | ||
3215 | # Crypto core or helper | ||
3216 | # | ||
3217 | CONFIG_CRYPTO_ALGAPI=y | ||
3218 | CONFIG_CRYPTO_AEAD=m | ||
3219 | CONFIG_CRYPTO_BLKCIPHER=m | ||
3220 | CONFIG_CRYPTO_HASH=y | ||
3221 | CONFIG_CRYPTO_MANAGER=y | ||
3222 | CONFIG_CRYPTO_GF128MUL=m | ||
3223 | CONFIG_CRYPTO_NULL=m | ||
3224 | # CONFIG_CRYPTO_CRYPTD is not set | ||
3225 | CONFIG_CRYPTO_AUTHENC=m | ||
3226 | CONFIG_CRYPTO_TEST=m | ||
3227 | |||
3228 | # | ||
3229 | # Authenticated Encryption with Associated Data | ||
3230 | # | ||
3231 | CONFIG_CRYPTO_CCM=m | ||
3232 | CONFIG_CRYPTO_GCM=m | ||
3233 | CONFIG_CRYPTO_SEQIV=m | ||
3234 | |||
3235 | # | ||
3236 | # Block modes | ||
3237 | # | ||
3238 | CONFIG_CRYPTO_CBC=m | ||
3239 | CONFIG_CRYPTO_CTR=m | ||
3240 | CONFIG_CRYPTO_CTS=m | ||
3241 | CONFIG_CRYPTO_ECB=m | ||
3242 | CONFIG_CRYPTO_LRW=m | ||
3243 | CONFIG_CRYPTO_PCBC=m | ||
3244 | CONFIG_CRYPTO_XTS=m | ||
3245 | |||
3246 | # | ||
3247 | # Hash modes | ||
3248 | # | ||
3249 | CONFIG_CRYPTO_HMAC=y | ||
3250 | CONFIG_CRYPTO_XCBC=m | ||
3251 | |||
3252 | # | ||
3253 | # Digest | ||
3254 | # | ||
3255 | CONFIG_CRYPTO_CRC32C=m | ||
3256 | CONFIG_CRYPTO_MD4=m | ||
3257 | CONFIG_CRYPTO_MD5=y | ||
3258 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
3259 | CONFIG_CRYPTO_RMD128=m | ||
3260 | CONFIG_CRYPTO_RMD160=m | ||
3261 | CONFIG_CRYPTO_RMD256=m | ||
3262 | CONFIG_CRYPTO_RMD320=m | ||
3263 | CONFIG_CRYPTO_SHA1=y | ||
3264 | CONFIG_CRYPTO_SHA256=m | ||
3265 | CONFIG_CRYPTO_SHA512=m | ||
3266 | CONFIG_CRYPTO_TGR192=m | ||
3267 | CONFIG_CRYPTO_WP512=m | ||
3268 | |||
3269 | # | ||
3270 | # Ciphers | ||
3271 | # | ||
3272 | CONFIG_CRYPTO_AES=m | ||
3273 | CONFIG_CRYPTO_ANUBIS=m | ||
3274 | CONFIG_CRYPTO_ARC4=m | ||
3275 | CONFIG_CRYPTO_BLOWFISH=m | ||
3276 | CONFIG_CRYPTO_CAMELLIA=m | ||
3277 | CONFIG_CRYPTO_CAST5=m | ||
3278 | CONFIG_CRYPTO_CAST6=m | ||
3279 | CONFIG_CRYPTO_DES=m | ||
3280 | CONFIG_CRYPTO_FCRYPT=m | ||
3281 | CONFIG_CRYPTO_KHAZAD=m | ||
3282 | CONFIG_CRYPTO_SALSA20=m | ||
3283 | CONFIG_CRYPTO_SEED=m | ||
3284 | CONFIG_CRYPTO_SERPENT=m | ||
3285 | CONFIG_CRYPTO_TEA=m | ||
3286 | CONFIG_CRYPTO_TWOFISH=m | ||
3287 | CONFIG_CRYPTO_TWOFISH_COMMON=m | ||
3288 | |||
3289 | # | ||
3290 | # Compression | ||
3291 | # | ||
3292 | CONFIG_CRYPTO_DEFLATE=m | ||
3293 | CONFIG_CRYPTO_LZO=m | ||
3294 | CONFIG_CRYPTO_HW=y | ||
3295 | CONFIG_CRYPTO_DEV_HIFN_795X=m | ||
3296 | CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y | ||
3297 | CONFIG_CRYPTO_DEV_TALITOS=m | ||
3298 | CONFIG_PPC_CLOCK=y | ||
3299 | CONFIG_PPC_LIB_RHEAP=y | ||
3300 | CONFIG_VIRTUALIZATION=y | ||
3301 | CONFIG_VIRTIO=m | ||
3302 | CONFIG_VIRTIO_RING=m | ||
3303 | CONFIG_VIRTIO_PCI=m | ||
3304 | CONFIG_VIRTIO_BALLOON=m | ||
diff --git a/arch/powerpc/configs/ps3_defconfig b/arch/powerpc/configs/ps3_defconfig index 71d79e428d20..f9a3d3b394cf 100644 --- a/arch/powerpc/configs/ps3_defconfig +++ b/arch/powerpc/configs/ps3_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.25 | 3 | # Linux kernel version: 2.6.26 |
4 | # Mon Apr 28 12:39:10 2008 | 4 | # Wed Jul 16 13:59:24 2008 |
5 | # | 5 | # |
6 | CONFIG_PPC64=y | 6 | CONFIG_PPC64=y |
7 | 7 | ||
@@ -14,8 +14,9 @@ CONFIG_POWER4=y | |||
14 | CONFIG_TUNE_CELL=y | 14 | CONFIG_TUNE_CELL=y |
15 | CONFIG_PPC_FPU=y | 15 | CONFIG_PPC_FPU=y |
16 | CONFIG_ALTIVEC=y | 16 | CONFIG_ALTIVEC=y |
17 | # CONFIG_VSX is not set | ||
17 | CONFIG_PPC_STD_MMU=y | 18 | CONFIG_PPC_STD_MMU=y |
18 | # CONFIG_PPC_MM_SLICES is not set | 19 | CONFIG_PPC_MM_SLICES=y |
19 | CONFIG_VIRT_CPU_ACCOUNTING=y | 20 | CONFIG_VIRT_CPU_ACCOUNTING=y |
20 | CONFIG_SMP=y | 21 | CONFIG_SMP=y |
21 | CONFIG_NR_CPUS=2 | 22 | CONFIG_NR_CPUS=2 |
@@ -31,6 +32,7 @@ CONFIG_GENERIC_HARDIRQS=y | |||
31 | CONFIG_HAVE_SETUP_PER_CPU_AREA=y | 32 | CONFIG_HAVE_SETUP_PER_CPU_AREA=y |
32 | CONFIG_IRQ_PER_CPU=y | 33 | CONFIG_IRQ_PER_CPU=y |
33 | CONFIG_STACKTRACE_SUPPORT=y | 34 | CONFIG_STACKTRACE_SUPPORT=y |
35 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
34 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | 36 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y |
35 | CONFIG_LOCKDEP_SUPPORT=y | 37 | CONFIG_LOCKDEP_SUPPORT=y |
36 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y | 38 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y |
@@ -90,6 +92,7 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y | |||
90 | CONFIG_SYSCTL=y | 92 | CONFIG_SYSCTL=y |
91 | # CONFIG_EMBEDDED is not set | 93 | # CONFIG_EMBEDDED is not set |
92 | CONFIG_SYSCTL_SYSCALL=y | 94 | CONFIG_SYSCTL_SYSCALL=y |
95 | CONFIG_SYSCTL_SYSCALL_CHECK=y | ||
93 | CONFIG_KALLSYMS=y | 96 | CONFIG_KALLSYMS=y |
94 | CONFIG_KALLSYMS_ALL=y | 97 | CONFIG_KALLSYMS_ALL=y |
95 | CONFIG_KALLSYMS_EXTRA_PASS=y | 98 | CONFIG_KALLSYMS_EXTRA_PASS=y |
@@ -117,12 +120,15 @@ CONFIG_HAVE_OPROFILE=y | |||
117 | # CONFIG_KPROBES is not set | 120 | # CONFIG_KPROBES is not set |
118 | CONFIG_HAVE_KPROBES=y | 121 | CONFIG_HAVE_KPROBES=y |
119 | CONFIG_HAVE_KRETPROBES=y | 122 | CONFIG_HAVE_KRETPROBES=y |
123 | CONFIG_HAVE_DMA_ATTRS=y | ||
124 | CONFIG_USE_GENERIC_SMP_HELPERS=y | ||
120 | CONFIG_PROC_PAGE_MONITOR=y | 125 | CONFIG_PROC_PAGE_MONITOR=y |
121 | CONFIG_SLABINFO=y | 126 | CONFIG_SLABINFO=y |
122 | CONFIG_RT_MUTEXES=y | 127 | CONFIG_RT_MUTEXES=y |
123 | # CONFIG_TINY_SHMEM is not set | 128 | # CONFIG_TINY_SHMEM is not set |
124 | CONFIG_BASE_SMALL=0 | 129 | CONFIG_BASE_SMALL=0 |
125 | CONFIG_MODULES=y | 130 | CONFIG_MODULES=y |
131 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
126 | CONFIG_MODULE_UNLOAD=y | 132 | CONFIG_MODULE_UNLOAD=y |
127 | # CONFIG_MODULE_FORCE_UNLOAD is not set | 133 | # CONFIG_MODULE_FORCE_UNLOAD is not set |
128 | # CONFIG_MODVERSIONS is not set | 134 | # CONFIG_MODVERSIONS is not set |
@@ -132,6 +138,7 @@ CONFIG_STOP_MACHINE=y | |||
132 | CONFIG_BLOCK=y | 138 | CONFIG_BLOCK=y |
133 | # CONFIG_BLK_DEV_IO_TRACE is not set | 139 | # CONFIG_BLK_DEV_IO_TRACE is not set |
134 | CONFIG_BLK_DEV_BSG=y | 140 | CONFIG_BLK_DEV_BSG=y |
141 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
135 | CONFIG_BLOCK_COMPAT=y | 142 | CONFIG_BLOCK_COMPAT=y |
136 | 143 | ||
137 | # | 144 | # |
@@ -152,13 +159,8 @@ CONFIG_CLASSIC_RCU=y | |||
152 | # Platform support | 159 | # Platform support |
153 | # | 160 | # |
154 | CONFIG_PPC_MULTIPLATFORM=y | 161 | CONFIG_PPC_MULTIPLATFORM=y |
155 | # CONFIG_PPC_82xx is not set | ||
156 | # CONFIG_PPC_83xx is not set | ||
157 | # CONFIG_PPC_86xx is not set | ||
158 | # CONFIG_PPC_PSERIES is not set | 162 | # CONFIG_PPC_PSERIES is not set |
159 | # CONFIG_PPC_ISERIES is not set | 163 | # CONFIG_PPC_ISERIES is not set |
160 | # CONFIG_PPC_MPC512x is not set | ||
161 | # CONFIG_PPC_MPC5121 is not set | ||
162 | # CONFIG_PPC_PMAC is not set | 164 | # CONFIG_PPC_PMAC is not set |
163 | # CONFIG_PPC_MAPLE is not set | 165 | # CONFIG_PPC_MAPLE is not set |
164 | # CONFIG_PPC_PASEMI is not set | 166 | # CONFIG_PPC_PASEMI is not set |
@@ -187,6 +189,7 @@ CONFIG_PPC_CELL=y | |||
187 | # Cell Broadband Engine options | 189 | # Cell Broadband Engine options |
188 | # | 190 | # |
189 | CONFIG_SPU_FS=y | 191 | CONFIG_SPU_FS=y |
192 | CONFIG_SPU_FS_64K_LS=y | ||
190 | CONFIG_SPU_BASE=y | 193 | CONFIG_SPU_BASE=y |
191 | # CONFIG_PQ2ADS is not set | 194 | # CONFIG_PQ2ADS is not set |
192 | # CONFIG_IPIC is not set | 195 | # CONFIG_IPIC is not set |
@@ -222,6 +225,7 @@ CONFIG_PREEMPT_NONE=y | |||
222 | CONFIG_BINFMT_ELF=y | 225 | CONFIG_BINFMT_ELF=y |
223 | CONFIG_COMPAT_BINFMT_ELF=y | 226 | CONFIG_COMPAT_BINFMT_ELF=y |
224 | CONFIG_BINFMT_MISC=y | 227 | CONFIG_BINFMT_MISC=y |
228 | CONFIG_HUGETLB_PAGE_SIZE_VARIABLE=y | ||
225 | # CONFIG_IOMMU_VMERGE is not set | 229 | # CONFIG_IOMMU_VMERGE is not set |
226 | CONFIG_IOMMU_HELPER=y | 230 | CONFIG_IOMMU_HELPER=y |
227 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | 231 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y |
@@ -248,18 +252,22 @@ CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y | |||
248 | # CONFIG_SPARSEMEM_VMEMMAP is not set | 252 | # CONFIG_SPARSEMEM_VMEMMAP is not set |
249 | CONFIG_MEMORY_HOTPLUG=y | 253 | CONFIG_MEMORY_HOTPLUG=y |
250 | CONFIG_MEMORY_HOTPLUG_SPARSE=y | 254 | CONFIG_MEMORY_HOTPLUG_SPARSE=y |
255 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
251 | CONFIG_SPLIT_PTLOCK_CPUS=4 | 256 | CONFIG_SPLIT_PTLOCK_CPUS=4 |
252 | CONFIG_RESOURCES_64BIT=y | 257 | CONFIG_RESOURCES_64BIT=y |
253 | CONFIG_ZONE_DMA_FLAG=1 | 258 | CONFIG_ZONE_DMA_FLAG=1 |
254 | CONFIG_BOUNCE=y | 259 | CONFIG_BOUNCE=y |
255 | CONFIG_ARCH_MEMORY_PROBE=y | 260 | CONFIG_ARCH_MEMORY_PROBE=y |
256 | # CONFIG_PPC_HAS_HASH_64K is not set | 261 | CONFIG_PPC_HAS_HASH_64K=y |
257 | # CONFIG_PPC_64K_PAGES is not set | 262 | # CONFIG_PPC_64K_PAGES is not set |
258 | CONFIG_FORCE_MAX_ZONEORDER=13 | 263 | CONFIG_FORCE_MAX_ZONEORDER=13 |
259 | # CONFIG_SCHED_SMT is not set | 264 | CONFIG_SCHED_SMT=y |
260 | CONFIG_PROC_DEVICETREE=y | 265 | CONFIG_PROC_DEVICETREE=y |
261 | # CONFIG_CMDLINE_BOOL is not set | 266 | # CONFIG_CMDLINE_BOOL is not set |
262 | # CONFIG_PM is not set | 267 | CONFIG_EXTRA_TARGETS="" |
268 | CONFIG_PM=y | ||
269 | CONFIG_PM_DEBUG=y | ||
270 | # CONFIG_PM_VERBOSE is not set | ||
263 | # CONFIG_SECCOMP is not set | 271 | # CONFIG_SECCOMP is not set |
264 | CONFIG_ISA_DMA_API=y | 272 | CONFIG_ISA_DMA_API=y |
265 | 273 | ||
@@ -273,6 +281,7 @@ CONFIG_GENERIC_ISA_DMA=y | |||
273 | # CONFIG_PCI_SYSCALL is not set | 281 | # CONFIG_PCI_SYSCALL is not set |
274 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 282 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
275 | # CONFIG_PCCARD is not set | 283 | # CONFIG_PCCARD is not set |
284 | # CONFIG_HAS_RAPIDIO is not set | ||
276 | CONFIG_PAGE_OFFSET=0xc000000000000000 | 285 | CONFIG_PAGE_OFFSET=0xc000000000000000 |
277 | CONFIG_KERNEL_START=0xc000000000000000 | 286 | CONFIG_KERNEL_START=0xc000000000000000 |
278 | CONFIG_PHYSICAL_START=0x00000000 | 287 | CONFIG_PHYSICAL_START=0x00000000 |
@@ -412,6 +421,8 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | |||
412 | CONFIG_STANDALONE=y | 421 | CONFIG_STANDALONE=y |
413 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 422 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
414 | CONFIG_FW_LOADER=m | 423 | CONFIG_FW_LOADER=m |
424 | # CONFIG_FIRMWARE_IN_KERNEL is not set | ||
425 | CONFIG_EXTRA_FIRMWARE="" | ||
415 | # CONFIG_DEBUG_DRIVER is not set | 426 | # CONFIG_DEBUG_DRIVER is not set |
416 | # CONFIG_DEBUG_DEVRES is not set | 427 | # CONFIG_DEBUG_DEVRES is not set |
417 | # CONFIG_SYS_HYPERVISOR is not set | 428 | # CONFIG_SYS_HYPERVISOR is not set |
@@ -478,6 +489,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
478 | # CONFIG_SCSI_SAS_LIBSAS is not set | 489 | # CONFIG_SCSI_SAS_LIBSAS is not set |
479 | # CONFIG_SCSI_SRP_ATTRS is not set | 490 | # CONFIG_SCSI_SRP_ATTRS is not set |
480 | # CONFIG_SCSI_LOWLEVEL is not set | 491 | # CONFIG_SCSI_LOWLEVEL is not set |
492 | # CONFIG_SCSI_DH is not set | ||
481 | # CONFIG_ATA is not set | 493 | # CONFIG_ATA is not set |
482 | # CONFIG_MD is not set | 494 | # CONFIG_MD is not set |
483 | # CONFIG_MACINTOSH_DRIVERS is not set | 495 | # CONFIG_MACINTOSH_DRIVERS is not set |
@@ -533,8 +545,18 @@ CONFIG_USB_NET_MCS7830=m | |||
533 | # CONFIG_USB_NET_CDC_SUBSET is not set | 545 | # CONFIG_USB_NET_CDC_SUBSET is not set |
534 | # CONFIG_USB_NET_ZAURUS is not set | 546 | # CONFIG_USB_NET_ZAURUS is not set |
535 | # CONFIG_WAN is not set | 547 | # CONFIG_WAN is not set |
536 | # CONFIG_PPP is not set | 548 | CONFIG_PPP=m |
549 | CONFIG_PPP_MULTILINK=y | ||
550 | # CONFIG_PPP_FILTER is not set | ||
551 | CONFIG_PPP_ASYNC=m | ||
552 | # CONFIG_PPP_SYNC_TTY is not set | ||
553 | CONFIG_PPP_DEFLATE=m | ||
554 | # CONFIG_PPP_BSDCOMP is not set | ||
555 | # CONFIG_PPP_MPPE is not set | ||
556 | CONFIG_PPPOE=m | ||
557 | # CONFIG_PPPOL2TP is not set | ||
537 | # CONFIG_SLIP is not set | 558 | # CONFIG_SLIP is not set |
559 | CONFIG_SLHC=m | ||
538 | # CONFIG_NETCONSOLE is not set | 560 | # CONFIG_NETCONSOLE is not set |
539 | # CONFIG_NETPOLL is not set | 561 | # CONFIG_NETPOLL is not set |
540 | # CONFIG_NET_POLL_CONTROLLER is not set | 562 | # CONFIG_NET_POLL_CONTROLLER is not set |
@@ -603,6 +625,7 @@ CONFIG_VT=y | |||
603 | CONFIG_VT_CONSOLE=y | 625 | CONFIG_VT_CONSOLE=y |
604 | CONFIG_HW_CONSOLE=y | 626 | CONFIG_HW_CONSOLE=y |
605 | CONFIG_VT_HW_CONSOLE_BINDING=y | 627 | CONFIG_VT_HW_CONSOLE_BINDING=y |
628 | CONFIG_DEVKMEM=y | ||
606 | # CONFIG_SERIAL_NONSTANDARD is not set | 629 | # CONFIG_SERIAL_NONSTANDARD is not set |
607 | 630 | ||
608 | # | 631 | # |
@@ -618,23 +641,17 @@ CONFIG_LEGACY_PTYS=y | |||
618 | CONFIG_LEGACY_PTY_COUNT=16 | 641 | CONFIG_LEGACY_PTY_COUNT=16 |
619 | # CONFIG_IPMI_HANDLER is not set | 642 | # CONFIG_IPMI_HANDLER is not set |
620 | # CONFIG_HW_RANDOM is not set | 643 | # CONFIG_HW_RANDOM is not set |
621 | CONFIG_GEN_RTC=y | ||
622 | # CONFIG_GEN_RTC_X is not set | ||
623 | # CONFIG_R3964 is not set | 644 | # CONFIG_R3964 is not set |
624 | # CONFIG_RAW_DRIVER is not set | 645 | # CONFIG_RAW_DRIVER is not set |
625 | # CONFIG_HANGCHECK_TIMER is not set | 646 | # CONFIG_HANGCHECK_TIMER is not set |
626 | # CONFIG_TCG_TPM is not set | 647 | # CONFIG_TCG_TPM is not set |
627 | # CONFIG_I2C is not set | 648 | # CONFIG_I2C is not set |
628 | |||
629 | # | ||
630 | # SPI support | ||
631 | # | ||
632 | # CONFIG_SPI is not set | 649 | # CONFIG_SPI is not set |
633 | # CONFIG_SPI_MASTER is not set | ||
634 | # CONFIG_W1 is not set | 650 | # CONFIG_W1 is not set |
635 | # CONFIG_POWER_SUPPLY is not set | 651 | # CONFIG_POWER_SUPPLY is not set |
636 | # CONFIG_HWMON is not set | 652 | # CONFIG_HWMON is not set |
637 | # CONFIG_THERMAL is not set | 653 | # CONFIG_THERMAL is not set |
654 | # CONFIG_THERMAL_HWMON is not set | ||
638 | # CONFIG_WATCHDOG is not set | 655 | # CONFIG_WATCHDOG is not set |
639 | 656 | ||
640 | # | 657 | # |
@@ -652,8 +669,17 @@ CONFIG_SSB_POSSIBLE=y | |||
652 | # | 669 | # |
653 | # Multimedia devices | 670 | # Multimedia devices |
654 | # | 671 | # |
672 | |||
673 | # | ||
674 | # Multimedia core support | ||
675 | # | ||
655 | # CONFIG_VIDEO_DEV is not set | 676 | # CONFIG_VIDEO_DEV is not set |
656 | # CONFIG_DVB_CORE is not set | 677 | # CONFIG_DVB_CORE is not set |
678 | # CONFIG_VIDEO_MEDIA is not set | ||
679 | |||
680 | # | ||
681 | # Multimedia drivers | ||
682 | # | ||
657 | # CONFIG_DAB is not set | 683 | # CONFIG_DAB is not set |
658 | 684 | ||
659 | # | 685 | # |
@@ -671,8 +697,8 @@ CONFIG_FB=y | |||
671 | CONFIG_FB_SYS_FILLRECT=y | 697 | CONFIG_FB_SYS_FILLRECT=y |
672 | CONFIG_FB_SYS_COPYAREA=y | 698 | CONFIG_FB_SYS_COPYAREA=y |
673 | CONFIG_FB_SYS_IMAGEBLIT=y | 699 | CONFIG_FB_SYS_IMAGEBLIT=y |
700 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
674 | CONFIG_FB_SYS_FOPS=y | 701 | CONFIG_FB_SYS_FOPS=y |
675 | CONFIG_FB_DEFERRED_IO=y | ||
676 | # CONFIG_FB_SVGALIB is not set | 702 | # CONFIG_FB_SVGALIB is not set |
677 | # CONFIG_FB_MACMODES is not set | 703 | # CONFIG_FB_MACMODES is not set |
678 | # CONFIG_FB_BACKLIGHT is not set | 704 | # CONFIG_FB_BACKLIGHT is not set |
@@ -712,18 +738,12 @@ CONFIG_FB_LOGO_EXTRA=y | |||
712 | # CONFIG_LOGO_LINUX_MONO is not set | 738 | # CONFIG_LOGO_LINUX_MONO is not set |
713 | # CONFIG_LOGO_LINUX_VGA16 is not set | 739 | # CONFIG_LOGO_LINUX_VGA16 is not set |
714 | CONFIG_LOGO_LINUX_CLUT224=y | 740 | CONFIG_LOGO_LINUX_CLUT224=y |
715 | |||
716 | # | ||
717 | # Sound | ||
718 | # | ||
719 | CONFIG_SOUND=m | 741 | CONFIG_SOUND=m |
720 | |||
721 | # | ||
722 | # Advanced Linux Sound Architecture | ||
723 | # | ||
724 | CONFIG_SND=m | 742 | CONFIG_SND=m |
725 | CONFIG_SND_TIMER=m | 743 | CONFIG_SND_TIMER=m |
726 | CONFIG_SND_PCM=m | 744 | CONFIG_SND_PCM=m |
745 | CONFIG_SND_HWDEP=m | ||
746 | CONFIG_SND_RAWMIDI=m | ||
727 | # CONFIG_SND_SEQUENCER is not set | 747 | # CONFIG_SND_SEQUENCER is not set |
728 | # CONFIG_SND_MIXER_OSS is not set | 748 | # CONFIG_SND_MIXER_OSS is not set |
729 | # CONFIG_SND_PCM_OSS is not set | 749 | # CONFIG_SND_PCM_OSS is not set |
@@ -732,53 +752,20 @@ CONFIG_SND_SUPPORT_OLD_API=y | |||
732 | CONFIG_SND_VERBOSE_PROCFS=y | 752 | CONFIG_SND_VERBOSE_PROCFS=y |
733 | # CONFIG_SND_VERBOSE_PRINTK is not set | 753 | # CONFIG_SND_VERBOSE_PRINTK is not set |
734 | # CONFIG_SND_DEBUG is not set | 754 | # CONFIG_SND_DEBUG is not set |
735 | 755 | # CONFIG_SND_DRIVERS is not set | |
736 | # | 756 | CONFIG_SND_PPC=y |
737 | # Generic devices | ||
738 | # | ||
739 | # CONFIG_SND_DUMMY is not set | ||
740 | # CONFIG_SND_MTPAV is not set | ||
741 | # CONFIG_SND_SERIAL_U16550 is not set | ||
742 | # CONFIG_SND_MPU401 is not set | ||
743 | |||
744 | # | ||
745 | # ALSA PowerMac devices | ||
746 | # | ||
747 | |||
748 | # | ||
749 | # ALSA PowerMac requires I2C | ||
750 | # | ||
751 | |||
752 | # | ||
753 | # ALSA PowerPC devices | ||
754 | # | ||
755 | CONFIG_SND_PS3=m | 757 | CONFIG_SND_PS3=m |
756 | CONFIG_SND_PS3_DEFAULT_START_DELAY=2000 | 758 | CONFIG_SND_PS3_DEFAULT_START_DELAY=2000 |
757 | 759 | CONFIG_SND_USB=y | |
758 | # | 760 | CONFIG_SND_USB_AUDIO=m |
759 | # USB devices | ||
760 | # | ||
761 | # CONFIG_SND_USB_AUDIO is not set | ||
762 | # CONFIG_SND_USB_USX2Y is not set | 761 | # CONFIG_SND_USB_USX2Y is not set |
763 | # CONFIG_SND_USB_CAIAQ is not set | 762 | # CONFIG_SND_USB_CAIAQ is not set |
764 | |||
765 | # | ||
766 | # System on Chip audio support | ||
767 | # | ||
768 | # CONFIG_SND_SOC is not set | 763 | # CONFIG_SND_SOC is not set |
769 | |||
770 | # | ||
771 | # ALSA SoC audio for Freescale SOCs | ||
772 | # | ||
773 | |||
774 | # | ||
775 | # Open Sound System | ||
776 | # | ||
777 | # CONFIG_SOUND_PRIME is not set | 764 | # CONFIG_SOUND_PRIME is not set |
778 | CONFIG_HID_SUPPORT=y | 765 | CONFIG_HID_SUPPORT=y |
779 | CONFIG_HID=y | 766 | CONFIG_HID=y |
780 | # CONFIG_HID_DEBUG is not set | 767 | # CONFIG_HID_DEBUG is not set |
781 | # CONFIG_HIDRAW is not set | 768 | CONFIG_HIDRAW=y |
782 | 769 | ||
783 | # | 770 | # |
784 | # USB Input Devices | 771 | # USB Input Devices |
@@ -807,17 +794,20 @@ CONFIG_USB=m | |||
807 | CONFIG_USB_DEVICEFS=y | 794 | CONFIG_USB_DEVICEFS=y |
808 | # CONFIG_USB_DEVICE_CLASS is not set | 795 | # CONFIG_USB_DEVICE_CLASS is not set |
809 | # CONFIG_USB_DYNAMIC_MINORS is not set | 796 | # CONFIG_USB_DYNAMIC_MINORS is not set |
797 | CONFIG_USB_SUSPEND=y | ||
810 | # CONFIG_USB_OTG is not set | 798 | # CONFIG_USB_OTG is not set |
811 | 799 | ||
812 | # | 800 | # |
813 | # USB Host Controller Drivers | 801 | # USB Host Controller Drivers |
814 | # | 802 | # |
803 | # CONFIG_USB_C67X00_HCD is not set | ||
815 | CONFIG_USB_EHCI_HCD=m | 804 | CONFIG_USB_EHCI_HCD=m |
816 | # CONFIG_USB_EHCI_ROOT_HUB_TT is not set | 805 | # CONFIG_USB_EHCI_ROOT_HUB_TT is not set |
817 | # CONFIG_USB_EHCI_TT_NEWSCHED is not set | 806 | # CONFIG_USB_EHCI_TT_NEWSCHED is not set |
818 | CONFIG_USB_EHCI_BIG_ENDIAN_MMIO=y | 807 | CONFIG_USB_EHCI_BIG_ENDIAN_MMIO=y |
819 | # CONFIG_USB_EHCI_HCD_PPC_OF is not set | 808 | # CONFIG_USB_EHCI_HCD_PPC_OF is not set |
820 | # CONFIG_USB_ISP116X_HCD is not set | 809 | # CONFIG_USB_ISP116X_HCD is not set |
810 | # CONFIG_USB_ISP1760_HCD is not set | ||
821 | CONFIG_USB_OHCI_HCD=m | 811 | CONFIG_USB_OHCI_HCD=m |
822 | # CONFIG_USB_OHCI_HCD_PPC_OF is not set | 812 | # CONFIG_USB_OHCI_HCD_PPC_OF is not set |
823 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set | 813 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set |
@@ -831,6 +821,7 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
831 | # | 821 | # |
832 | # CONFIG_USB_ACM is not set | 822 | # CONFIG_USB_ACM is not set |
833 | # CONFIG_USB_PRINTER is not set | 823 | # CONFIG_USB_PRINTER is not set |
824 | # CONFIG_USB_WDM is not set | ||
834 | 825 | ||
835 | # | 826 | # |
836 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | 827 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' |
@@ -890,12 +881,45 @@ CONFIG_USB_MON=y | |||
890 | # CONFIG_USB_TRANCEVIBRATOR is not set | 881 | # CONFIG_USB_TRANCEVIBRATOR is not set |
891 | # CONFIG_USB_IOWARRIOR is not set | 882 | # CONFIG_USB_IOWARRIOR is not set |
892 | # CONFIG_USB_TEST is not set | 883 | # CONFIG_USB_TEST is not set |
884 | # CONFIG_USB_ISIGHTFW is not set | ||
893 | # CONFIG_USB_GADGET is not set | 885 | # CONFIG_USB_GADGET is not set |
894 | # CONFIG_MMC is not set | 886 | # CONFIG_MMC is not set |
895 | # CONFIG_MEMSTICK is not set | 887 | # CONFIG_MEMSTICK is not set |
896 | # CONFIG_NEW_LEDS is not set | 888 | # CONFIG_NEW_LEDS is not set |
889 | # CONFIG_ACCESSIBILITY is not set | ||
897 | # CONFIG_EDAC is not set | 890 | # CONFIG_EDAC is not set |
898 | # CONFIG_RTC_CLASS is not set | 891 | CONFIG_RTC_LIB=m |
892 | CONFIG_RTC_CLASS=m | ||
893 | |||
894 | # | ||
895 | # RTC interfaces | ||
896 | # | ||
897 | CONFIG_RTC_INTF_SYSFS=y | ||
898 | CONFIG_RTC_INTF_PROC=y | ||
899 | CONFIG_RTC_INTF_DEV=y | ||
900 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
901 | # CONFIG_RTC_DRV_TEST is not set | ||
902 | |||
903 | # | ||
904 | # SPI RTC drivers | ||
905 | # | ||
906 | |||
907 | # | ||
908 | # Platform RTC drivers | ||
909 | # | ||
910 | # CONFIG_RTC_DRV_CMOS is not set | ||
911 | # CONFIG_RTC_DRV_DS1511 is not set | ||
912 | # CONFIG_RTC_DRV_DS1553 is not set | ||
913 | # CONFIG_RTC_DRV_DS1742 is not set | ||
914 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
915 | # CONFIG_RTC_DRV_M48T86 is not set | ||
916 | # CONFIG_RTC_DRV_M48T59 is not set | ||
917 | # CONFIG_RTC_DRV_V3020 is not set | ||
918 | |||
919 | # | ||
920 | # on-CPU RTC drivers | ||
921 | # | ||
922 | CONFIG_RTC_DRV_PPC=m | ||
899 | # CONFIG_DMADEVICES is not set | 923 | # CONFIG_DMADEVICES is not set |
900 | # CONFIG_UIO is not set | 924 | # CONFIG_UIO is not set |
901 | 925 | ||
@@ -911,6 +935,7 @@ CONFIG_EXT3_FS_XATTR=y | |||
911 | # CONFIG_EXT3_FS_SECURITY is not set | 935 | # CONFIG_EXT3_FS_SECURITY is not set |
912 | # CONFIG_EXT4DEV_FS is not set | 936 | # CONFIG_EXT4DEV_FS is not set |
913 | CONFIG_JBD=y | 937 | CONFIG_JBD=y |
938 | # CONFIG_JBD_DEBUG is not set | ||
914 | CONFIG_FS_MBCACHE=y | 939 | CONFIG_FS_MBCACHE=y |
915 | # CONFIG_REISERFS_FS is not set | 940 | # CONFIG_REISERFS_FS is not set |
916 | # CONFIG_JFS_FS is not set | 941 | # CONFIG_JFS_FS is not set |
@@ -959,8 +984,8 @@ CONFIG_PROC_SYSCTL=y | |||
959 | CONFIG_SYSFS=y | 984 | CONFIG_SYSFS=y |
960 | CONFIG_TMPFS=y | 985 | CONFIG_TMPFS=y |
961 | # CONFIG_TMPFS_POSIX_ACL is not set | 986 | # CONFIG_TMPFS_POSIX_ACL is not set |
962 | # CONFIG_HUGETLBFS is not set | 987 | CONFIG_HUGETLBFS=y |
963 | # CONFIG_HUGETLB_PAGE is not set | 988 | CONFIG_HUGETLB_PAGE=y |
964 | # CONFIG_CONFIGFS_FS is not set | 989 | # CONFIG_CONFIGFS_FS is not set |
965 | 990 | ||
966 | # | 991 | # |
@@ -1059,12 +1084,15 @@ CONFIG_NLS_ISO8859_1=y | |||
1059 | # | 1084 | # |
1060 | CONFIG_BITREVERSE=y | 1085 | CONFIG_BITREVERSE=y |
1061 | # CONFIG_GENERIC_FIND_FIRST_BIT is not set | 1086 | # CONFIG_GENERIC_FIND_FIRST_BIT is not set |
1062 | # CONFIG_CRC_CCITT is not set | 1087 | CONFIG_CRC_CCITT=m |
1063 | # CONFIG_CRC16 is not set | 1088 | # CONFIG_CRC16 is not set |
1089 | # CONFIG_CRC_T10DIF is not set | ||
1064 | CONFIG_CRC_ITU_T=m | 1090 | CONFIG_CRC_ITU_T=m |
1065 | CONFIG_CRC32=y | 1091 | CONFIG_CRC32=y |
1066 | # CONFIG_CRC7 is not set | 1092 | # CONFIG_CRC7 is not set |
1067 | # CONFIG_LIBCRC32C is not set | 1093 | # CONFIG_LIBCRC32C is not set |
1094 | CONFIG_ZLIB_INFLATE=m | ||
1095 | CONFIG_ZLIB_DEFLATE=m | ||
1068 | CONFIG_LZO_COMPRESS=m | 1096 | CONFIG_LZO_COMPRESS=m |
1069 | CONFIG_LZO_DECOMPRESS=m | 1097 | CONFIG_LZO_DECOMPRESS=m |
1070 | CONFIG_PLIST=y | 1098 | CONFIG_PLIST=y |
@@ -1082,7 +1110,7 @@ CONFIG_ENABLE_MUST_CHECK=y | |||
1082 | CONFIG_FRAME_WARN=2048 | 1110 | CONFIG_FRAME_WARN=2048 |
1083 | CONFIG_MAGIC_SYSRQ=y | 1111 | CONFIG_MAGIC_SYSRQ=y |
1084 | # CONFIG_UNUSED_SYMBOLS is not set | 1112 | # CONFIG_UNUSED_SYMBOLS is not set |
1085 | # CONFIG_DEBUG_FS is not set | 1113 | CONFIG_DEBUG_FS=y |
1086 | # CONFIG_HEADERS_CHECK is not set | 1114 | # CONFIG_HEADERS_CHECK is not set |
1087 | CONFIG_DEBUG_KERNEL=y | 1115 | CONFIG_DEBUG_KERNEL=y |
1088 | # CONFIG_DEBUG_SHIRQ is not set | 1116 | # CONFIG_DEBUG_SHIRQ is not set |
@@ -1090,33 +1118,49 @@ CONFIG_DETECT_SOFTLOCKUP=y | |||
1090 | CONFIG_SCHED_DEBUG=y | 1118 | CONFIG_SCHED_DEBUG=y |
1091 | # CONFIG_SCHEDSTATS is not set | 1119 | # CONFIG_SCHEDSTATS is not set |
1092 | # CONFIG_TIMER_STATS is not set | 1120 | # CONFIG_TIMER_STATS is not set |
1121 | # CONFIG_DEBUG_OBJECTS is not set | ||
1093 | # CONFIG_DEBUG_SLAB is not set | 1122 | # CONFIG_DEBUG_SLAB is not set |
1094 | # CONFIG_DEBUG_RT_MUTEXES is not set | 1123 | # CONFIG_DEBUG_RT_MUTEXES is not set |
1095 | # CONFIG_RT_MUTEX_TESTER is not set | 1124 | # CONFIG_RT_MUTEX_TESTER is not set |
1096 | CONFIG_DEBUG_SPINLOCK=y | 1125 | CONFIG_DEBUG_SPINLOCK=y |
1097 | CONFIG_DEBUG_MUTEXES=y | 1126 | CONFIG_DEBUG_MUTEXES=y |
1098 | # CONFIG_DEBUG_LOCK_ALLOC is not set | 1127 | CONFIG_DEBUG_LOCK_ALLOC=y |
1099 | # CONFIG_PROVE_LOCKING is not set | 1128 | CONFIG_PROVE_LOCKING=y |
1129 | CONFIG_LOCKDEP=y | ||
1100 | # CONFIG_LOCK_STAT is not set | 1130 | # CONFIG_LOCK_STAT is not set |
1131 | CONFIG_DEBUG_LOCKDEP=y | ||
1132 | CONFIG_TRACE_IRQFLAGS=y | ||
1101 | CONFIG_DEBUG_SPINLOCK_SLEEP=y | 1133 | CONFIG_DEBUG_SPINLOCK_SLEEP=y |
1102 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | 1134 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set |
1135 | CONFIG_STACKTRACE=y | ||
1103 | # CONFIG_DEBUG_KOBJECT is not set | 1136 | # CONFIG_DEBUG_KOBJECT is not set |
1104 | CONFIG_DEBUG_BUGVERBOSE=y | 1137 | CONFIG_DEBUG_BUGVERBOSE=y |
1105 | CONFIG_DEBUG_INFO=y | 1138 | CONFIG_DEBUG_INFO=y |
1106 | # CONFIG_DEBUG_VM is not set | 1139 | # CONFIG_DEBUG_VM is not set |
1107 | # CONFIG_DEBUG_WRITECOUNT is not set | 1140 | CONFIG_DEBUG_WRITECOUNT=y |
1108 | CONFIG_DEBUG_LIST=y | 1141 | CONFIG_DEBUG_LIST=y |
1109 | # CONFIG_DEBUG_SG is not set | 1142 | # CONFIG_DEBUG_SG is not set |
1143 | CONFIG_FRAME_POINTER=y | ||
1110 | # CONFIG_BOOT_PRINTK_DELAY is not set | 1144 | # CONFIG_BOOT_PRINTK_DELAY is not set |
1111 | # CONFIG_RCU_TORTURE_TEST is not set | 1145 | # CONFIG_RCU_TORTURE_TEST is not set |
1112 | # CONFIG_BACKTRACE_SELF_TEST is not set | 1146 | # CONFIG_BACKTRACE_SELF_TEST is not set |
1113 | # CONFIG_FAULT_INJECTION is not set | 1147 | # CONFIG_FAULT_INJECTION is not set |
1148 | # CONFIG_LATENCYTOP is not set | ||
1149 | CONFIG_HAVE_FTRACE=y | ||
1150 | CONFIG_HAVE_DYNAMIC_FTRACE=y | ||
1151 | # CONFIG_FTRACE is not set | ||
1152 | # CONFIG_IRQSOFF_TRACER is not set | ||
1153 | # CONFIG_SCHED_TRACER is not set | ||
1154 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | ||
1114 | # CONFIG_SAMPLES is not set | 1155 | # CONFIG_SAMPLES is not set |
1115 | CONFIG_DEBUG_STACKOVERFLOW=y | 1156 | CONFIG_DEBUG_STACKOVERFLOW=y |
1116 | # CONFIG_DEBUG_STACK_USAGE is not set | 1157 | # CONFIG_DEBUG_STACK_USAGE is not set |
1117 | # CONFIG_DEBUG_PAGEALLOC is not set | 1158 | # CONFIG_DEBUG_PAGEALLOC is not set |
1118 | # CONFIG_DEBUGGER is not set | 1159 | # CONFIG_DEBUGGER is not set |
1160 | # CONFIG_CODE_PATCHING_SELFTEST is not set | ||
1161 | # CONFIG_FTR_FIXUP_SELFTEST is not set | ||
1119 | CONFIG_IRQSTACKS=y | 1162 | CONFIG_IRQSTACKS=y |
1163 | # CONFIG_VIRQ_DEBUG is not set | ||
1120 | # CONFIG_BOOTX_TEXT is not set | 1164 | # CONFIG_BOOTX_TEXT is not set |
1121 | # CONFIG_PPC_EARLY_DEBUG is not set | 1165 | # CONFIG_PPC_EARLY_DEBUG is not set |
1122 | 1166 | ||
@@ -1172,6 +1216,10 @@ CONFIG_CRYPTO_PCBC=m | |||
1172 | # CONFIG_CRYPTO_MD4 is not set | 1216 | # CONFIG_CRYPTO_MD4 is not set |
1173 | CONFIG_CRYPTO_MD5=y | 1217 | CONFIG_CRYPTO_MD5=y |
1174 | CONFIG_CRYPTO_MICHAEL_MIC=m | 1218 | CONFIG_CRYPTO_MICHAEL_MIC=m |
1219 | # CONFIG_CRYPTO_RMD128 is not set | ||
1220 | # CONFIG_CRYPTO_RMD160 is not set | ||
1221 | # CONFIG_CRYPTO_RMD256 is not set | ||
1222 | # CONFIG_CRYPTO_RMD320 is not set | ||
1175 | # CONFIG_CRYPTO_SHA1 is not set | 1223 | # CONFIG_CRYPTO_SHA1 is not set |
1176 | # CONFIG_CRYPTO_SHA256 is not set | 1224 | # CONFIG_CRYPTO_SHA256 is not set |
1177 | # CONFIG_CRYPTO_SHA512 is not set | 1225 | # CONFIG_CRYPTO_SHA512 is not set |
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index bf0b1fd0ec34..1a4094704b1f 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -74,6 +74,7 @@ obj-y += time.o prom.o traps.o setup-common.o \ | |||
74 | misc_$(CONFIG_WORD_SIZE).o | 74 | misc_$(CONFIG_WORD_SIZE).o |
75 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o | 75 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o |
76 | obj-$(CONFIG_PPC64) += dma_64.o iommu.o | 76 | obj-$(CONFIG_PPC64) += dma_64.o iommu.o |
77 | obj-$(CONFIG_KGDB) += kgdb.o | ||
77 | obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o | 78 | obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o |
78 | obj-$(CONFIG_MODULES) += ppc_ksyms.o | 79 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
79 | obj-$(CONFIG_BOOTX_TEXT) += btext.o | 80 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index f7f3c215d06f..25c273c761d1 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
@@ -23,6 +23,9 @@ | |||
23 | struct cpu_spec* cur_cpu_spec = NULL; | 23 | struct cpu_spec* cur_cpu_spec = NULL; |
24 | EXPORT_SYMBOL(cur_cpu_spec); | 24 | EXPORT_SYMBOL(cur_cpu_spec); |
25 | 25 | ||
26 | /* The platform string corresponding to the real PVR */ | ||
27 | const char *powerpc_base_platform; | ||
28 | |||
26 | /* NOTE: | 29 | /* NOTE: |
27 | * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's | 30 | * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's |
28 | * the responsibility of the appropriate CPU save/restore functions to | 31 | * the responsibility of the appropriate CPU save/restore functions to |
@@ -355,6 +358,7 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
355 | .icache_bsize = 128, | 358 | .icache_bsize = 128, |
356 | .dcache_bsize = 128, | 359 | .dcache_bsize = 128, |
357 | .machine_check = machine_check_generic, | 360 | .machine_check = machine_check_generic, |
361 | .oprofile_cpu_type = "ppc64/compat-power5+", | ||
358 | .platform = "power5+", | 362 | .platform = "power5+", |
359 | }, | 363 | }, |
360 | { /* Power6 */ | 364 | { /* Power6 */ |
@@ -386,6 +390,7 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
386 | .icache_bsize = 128, | 390 | .icache_bsize = 128, |
387 | .dcache_bsize = 128, | 391 | .dcache_bsize = 128, |
388 | .machine_check = machine_check_generic, | 392 | .machine_check = machine_check_generic, |
393 | .oprofile_cpu_type = "ppc64/compat-power6", | ||
389 | .platform = "power6", | 394 | .platform = "power6", |
390 | }, | 395 | }, |
391 | { /* 2.06-compliant processor, i.e. Power7 "architected" mode */ | 396 | { /* 2.06-compliant processor, i.e. Power7 "architected" mode */ |
@@ -397,6 +402,7 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
397 | .icache_bsize = 128, | 402 | .icache_bsize = 128, |
398 | .dcache_bsize = 128, | 403 | .dcache_bsize = 128, |
399 | .machine_check = machine_check_generic, | 404 | .machine_check = machine_check_generic, |
405 | .oprofile_cpu_type = "ppc64/compat-power7", | ||
400 | .platform = "power7", | 406 | .platform = "power7", |
401 | }, | 407 | }, |
402 | { /* Power7 */ | 408 | { /* Power7 */ |
@@ -1629,9 +1635,34 @@ struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr) | |||
1629 | t->cpu_setup = s->cpu_setup; | 1635 | t->cpu_setup = s->cpu_setup; |
1630 | t->cpu_restore = s->cpu_restore; | 1636 | t->cpu_restore = s->cpu_restore; |
1631 | t->platform = s->platform; | 1637 | t->platform = s->platform; |
1638 | /* | ||
1639 | * If we have passed through this logic once | ||
1640 | * before and have pulled the default case | ||
1641 | * because the real PVR was not found inside | ||
1642 | * cpu_specs[], then we are possibly running in | ||
1643 | * compatibility mode. In that case, let the | ||
1644 | * oprofiler know which set of compatibility | ||
1645 | * counters to pull from by making sure the | ||
1646 | * oprofile_cpu_type string is set to that of | ||
1647 | * compatibility mode. If the oprofile_cpu_type | ||
1648 | * already has a value, then we are possibly | ||
1649 | * overriding a real PVR with a logical one, and, | ||
1650 | * in that case, keep the current value for | ||
1651 | * oprofile_cpu_type. | ||
1652 | */ | ||
1653 | if (t->oprofile_cpu_type == NULL) | ||
1654 | t->oprofile_cpu_type = s->oprofile_cpu_type; | ||
1632 | } else | 1655 | } else |
1633 | *t = *s; | 1656 | *t = *s; |
1634 | *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec; | 1657 | *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec; |
1658 | |||
1659 | /* | ||
1660 | * Set the base platform string once; assumes | ||
1661 | * we're called with real pvr first. | ||
1662 | */ | ||
1663 | if (*PTRRELOC(&powerpc_base_platform) == NULL) | ||
1664 | *PTRRELOC(&powerpc_base_platform) = t->platform; | ||
1665 | |||
1635 | #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE) | 1666 | #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE) |
1636 | /* ppc64 and booke expect identify_cpu to also call | 1667 | /* ppc64 and booke expect identify_cpu to also call |
1637 | * setup_cpu for that processor. I will consolidate | 1668 | * setup_cpu for that processor. I will consolidate |
diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index da52269aec1e..81c8324a4a3c 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S | |||
@@ -148,7 +148,7 @@ transfer_to_handler: | |||
148 | /* Check to see if the dbcr0 register is set up to debug. Use the | 148 | /* Check to see if the dbcr0 register is set up to debug. Use the |
149 | internal debug mode bit to do this. */ | 149 | internal debug mode bit to do this. */ |
150 | lwz r12,THREAD_DBCR0(r12) | 150 | lwz r12,THREAD_DBCR0(r12) |
151 | andis. r12,r12,DBCR0_IDM@h | 151 | andis. r12,r12,(DBCR0_IDM | DBSR_DAC1R | DBSR_DAC1W)@h |
152 | beq+ 3f | 152 | beq+ 3f |
153 | /* From user and task is ptraced - load up global dbcr0 */ | 153 | /* From user and task is ptraced - load up global dbcr0 */ |
154 | li r12,-1 /* clear all pending debug events */ | 154 | li r12,-1 /* clear all pending debug events */ |
@@ -292,7 +292,7 @@ syscall_exit_cont: | |||
292 | /* If the process has its own DBCR0 value, load it up. The internal | 292 | /* If the process has its own DBCR0 value, load it up. The internal |
293 | debug mode bit tells us that dbcr0 should be loaded. */ | 293 | debug mode bit tells us that dbcr0 should be loaded. */ |
294 | lwz r0,THREAD+THREAD_DBCR0(r2) | 294 | lwz r0,THREAD+THREAD_DBCR0(r2) |
295 | andis. r10,r0,DBCR0_IDM@h | 295 | andis. r10,r0,(DBCR0_IDM | DBSR_DAC1R | DBSR_DAC1W)@h |
296 | bnel- load_dbcr0 | 296 | bnel- load_dbcr0 |
297 | #endif | 297 | #endif |
298 | #ifdef CONFIG_44x | 298 | #ifdef CONFIG_44x |
@@ -720,7 +720,7 @@ restore_user: | |||
720 | /* Check whether this process has its own DBCR0 value. The internal | 720 | /* Check whether this process has its own DBCR0 value. The internal |
721 | debug mode bit tells us that dbcr0 should be loaded. */ | 721 | debug mode bit tells us that dbcr0 should be loaded. */ |
722 | lwz r0,THREAD+THREAD_DBCR0(r2) | 722 | lwz r0,THREAD+THREAD_DBCR0(r2) |
723 | andis. r10,r0,DBCR0_IDM@h | 723 | andis. r10,r0,(DBCR0_IDM | DBSR_DAC1R | DBSR_DAC1W)@h |
724 | bnel- load_dbcr0 | 724 | bnel- load_dbcr0 |
725 | #endif | 725 | #endif |
726 | 726 | ||
diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S index c4268500e856..3cb52fa0eda3 100644 --- a/arch/powerpc/kernel/head_fsl_booke.S +++ b/arch/powerpc/kernel/head_fsl_booke.S | |||
@@ -151,16 +151,11 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
151 | /* Invalidate TLB0 */ | 151 | /* Invalidate TLB0 */ |
152 | li r6,0x04 | 152 | li r6,0x04 |
153 | tlbivax 0,r6 | 153 | tlbivax 0,r6 |
154 | #ifdef CONFIG_SMP | 154 | TLBSYNC |
155 | tlbsync | ||
156 | #endif | ||
157 | /* Invalidate TLB1 */ | 155 | /* Invalidate TLB1 */ |
158 | li r6,0x0c | 156 | li r6,0x0c |
159 | tlbivax 0,r6 | 157 | tlbivax 0,r6 |
160 | #ifdef CONFIG_SMP | 158 | TLBSYNC |
161 | tlbsync | ||
162 | #endif | ||
163 | msync | ||
164 | 159 | ||
165 | /* 3. Setup a temp mapping and jump to it */ | 160 | /* 3. Setup a temp mapping and jump to it */ |
166 | andi. r5, r3, 0x1 /* Find an entry not used and is non-zero */ | 161 | andi. r5, r3, 0x1 /* Find an entry not used and is non-zero */ |
@@ -238,10 +233,7 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
238 | /* Invalidate TLB1 */ | 233 | /* Invalidate TLB1 */ |
239 | li r9,0x0c | 234 | li r9,0x0c |
240 | tlbivax 0,r9 | 235 | tlbivax 0,r9 |
241 | #ifdef CONFIG_SMP | 236 | TLBSYNC |
242 | tlbsync | ||
243 | #endif | ||
244 | msync | ||
245 | 237 | ||
246 | /* 6. Setup KERNELBASE mapping in TLB1[0] */ | 238 | /* 6. Setup KERNELBASE mapping in TLB1[0] */ |
247 | lis r6,0x1000 /* Set MAS0(TLBSEL) = TLB1(1), ESEL = 0 */ | 239 | lis r6,0x1000 /* Set MAS0(TLBSEL) = TLB1(1), ESEL = 0 */ |
@@ -283,10 +275,7 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
283 | /* Invalidate TLB1 */ | 275 | /* Invalidate TLB1 */ |
284 | li r9,0x0c | 276 | li r9,0x0c |
285 | tlbivax 0,r9 | 277 | tlbivax 0,r9 |
286 | #ifdef CONFIG_SMP | 278 | TLBSYNC |
287 | tlbsync | ||
288 | #endif | ||
289 | msync | ||
290 | 279 | ||
291 | /* Establish the interrupt vector offsets */ | 280 | /* Establish the interrupt vector offsets */ |
292 | SET_IVOR(0, CriticalInput); | 281 | SET_IVOR(0, CriticalInput); |
@@ -483,90 +472,16 @@ interrupt_base: | |||
483 | 472 | ||
484 | /* Data Storage Interrupt */ | 473 | /* Data Storage Interrupt */ |
485 | START_EXCEPTION(DataStorage) | 474 | START_EXCEPTION(DataStorage) |
486 | mtspr SPRN_SPRG0, r10 /* Save some working registers */ | 475 | NORMAL_EXCEPTION_PROLOG |
487 | mtspr SPRN_SPRG1, r11 | 476 | mfspr r5,SPRN_ESR /* Grab the ESR, save it, pass arg3 */ |
488 | mtspr SPRN_SPRG4W, r12 | 477 | stw r5,_ESR(r11) |
489 | mtspr SPRN_SPRG5W, r13 | 478 | mfspr r4,SPRN_DEAR /* Grab the DEAR, save it, pass arg2 */ |
490 | mfcr r11 | 479 | andis. r10,r5,(ESR_ILK|ESR_DLK)@h |
491 | mtspr SPRN_SPRG7W, r11 | 480 | bne 1f |
492 | 481 | EXC_XFER_EE_LITE(0x0300, handle_page_fault) | |
493 | /* | 482 | 1: |
494 | * Check if it was a store fault, if not then bail | 483 | addi r3,r1,STACK_FRAME_OVERHEAD |
495 | * because a user tried to access a kernel or | 484 | EXC_XFER_EE_LITE(0x0300, CacheLockingException) |
496 | * read-protected page. Otherwise, get the | ||
497 | * offending address and handle it. | ||
498 | */ | ||
499 | mfspr r10, SPRN_ESR | ||
500 | andis. r10, r10, ESR_ST@h | ||
501 | beq 2f | ||
502 | |||
503 | mfspr r10, SPRN_DEAR /* Get faulting address */ | ||
504 | |||
505 | /* If we are faulting a kernel address, we have to use the | ||
506 | * kernel page tables. | ||
507 | */ | ||
508 | lis r11, PAGE_OFFSET@h | ||
509 | cmplw 0, r10, r11 | ||
510 | bge 2f | ||
511 | |||
512 | /* Get the PGD for the current thread */ | ||
513 | 3: | ||
514 | mfspr r11,SPRN_SPRG3 | ||
515 | lwz r11,PGDIR(r11) | ||
516 | 4: | ||
517 | FIND_PTE | ||
518 | |||
519 | /* Are _PAGE_USER & _PAGE_RW set & _PAGE_HWWRITE not? */ | ||
520 | andi. r13, r11, _PAGE_RW|_PAGE_USER|_PAGE_HWWRITE | ||
521 | cmpwi 0, r13, _PAGE_RW|_PAGE_USER | ||
522 | bne 2f /* Bail if not */ | ||
523 | |||
524 | /* Update 'changed'. */ | ||
525 | ori r11, r11, _PAGE_DIRTY|_PAGE_ACCESSED|_PAGE_HWWRITE | ||
526 | stw r11, PTE_FLAGS_OFFSET(r12) /* Update Linux page table */ | ||
527 | |||
528 | /* MAS2 not updated as the entry does exist in the tlb, this | ||
529 | fault taken to detect state transition (eg: COW -> DIRTY) | ||
530 | */ | ||
531 | andi. r11, r11, _PAGE_HWEXEC | ||
532 | rlwimi r11, r11, 31, 27, 27 /* SX <- _PAGE_HWEXEC */ | ||
533 | ori r11, r11, (MAS3_UW|MAS3_SW|MAS3_UR|MAS3_SR)@l /* set static perms */ | ||
534 | |||
535 | /* update search PID in MAS6, AS = 0 */ | ||
536 | mfspr r12, SPRN_PID0 | ||
537 | slwi r12, r12, 16 | ||
538 | mtspr SPRN_MAS6, r12 | ||
539 | |||
540 | /* find the TLB index that caused the fault. It has to be here. */ | ||
541 | tlbsx 0, r10 | ||
542 | |||
543 | /* only update the perm bits, assume the RPN is fine */ | ||
544 | mfspr r12, SPRN_MAS3 | ||
545 | rlwimi r12, r11, 0, 20, 31 | ||
546 | mtspr SPRN_MAS3,r12 | ||
547 | tlbwe | ||
548 | |||
549 | /* Done...restore registers and get out of here. */ | ||
550 | mfspr r11, SPRN_SPRG7R | ||
551 | mtcr r11 | ||
552 | mfspr r13, SPRN_SPRG5R | ||
553 | mfspr r12, SPRN_SPRG4R | ||
554 | mfspr r11, SPRN_SPRG1 | ||
555 | mfspr r10, SPRN_SPRG0 | ||
556 | rfi /* Force context change */ | ||
557 | |||
558 | 2: | ||
559 | /* | ||
560 | * The bailout. Restore registers to pre-exception conditions | ||
561 | * and call the heavyweights to help us out. | ||
562 | */ | ||
563 | mfspr r11, SPRN_SPRG7R | ||
564 | mtcr r11 | ||
565 | mfspr r13, SPRN_SPRG5R | ||
566 | mfspr r12, SPRN_SPRG4R | ||
567 | mfspr r11, SPRN_SPRG1 | ||
568 | mfspr r10, SPRN_SPRG0 | ||
569 | b data_access | ||
570 | 485 | ||
571 | /* Instruction Storage Interrupt */ | 486 | /* Instruction Storage Interrupt */ |
572 | INSTRUCTION_STORAGE_EXCEPTION | 487 | INSTRUCTION_STORAGE_EXCEPTION |
@@ -645,15 +560,30 @@ interrupt_base: | |||
645 | lwz r11,PGDIR(r11) | 560 | lwz r11,PGDIR(r11) |
646 | 561 | ||
647 | 4: | 562 | 4: |
563 | /* Mask of required permission bits. Note that while we | ||
564 | * do copy ESR:ST to _PAGE_RW position as trying to write | ||
565 | * to an RO page is pretty common, we don't do it with | ||
566 | * _PAGE_DIRTY. We could do it, but it's a fairly rare | ||
567 | * event so I'd rather take the overhead when it happens | ||
568 | * rather than adding an instruction here. We should measure | ||
569 | * whether the whole thing is worth it in the first place | ||
570 | * as we could avoid loading SPRN_ESR completely in the first | ||
571 | * place... | ||
572 | * | ||
573 | * TODO: Is it worth doing that mfspr & rlwimi in the first | ||
574 | * place or can we save a couple of instructions here ? | ||
575 | */ | ||
576 | mfspr r12,SPRN_ESR | ||
577 | li r13,_PAGE_PRESENT|_PAGE_ACCESSED | ||
578 | rlwimi r13,r12,11,29,29 | ||
579 | |||
648 | FIND_PTE | 580 | FIND_PTE |
649 | andi. r13, r11, _PAGE_PRESENT /* Is the page present? */ | 581 | andc. r13,r13,r11 /* Check permission */ |
650 | beq 2f /* Bail if not present */ | 582 | bne 2f /* Bail if permission mismach */ |
651 | 583 | ||
652 | #ifdef CONFIG_PTE_64BIT | 584 | #ifdef CONFIG_PTE_64BIT |
653 | lwz r13, 0(r12) | 585 | lwz r13, 0(r12) |
654 | #endif | 586 | #endif |
655 | ori r11, r11, _PAGE_ACCESSED | ||
656 | stw r11, PTE_FLAGS_OFFSET(r12) | ||
657 | 587 | ||
658 | /* Jump to common tlb load */ | 588 | /* Jump to common tlb load */ |
659 | b finish_tlb_load | 589 | b finish_tlb_load |
@@ -667,7 +597,7 @@ interrupt_base: | |||
667 | mfspr r12, SPRN_SPRG4R | 597 | mfspr r12, SPRN_SPRG4R |
668 | mfspr r11, SPRN_SPRG1 | 598 | mfspr r11, SPRN_SPRG1 |
669 | mfspr r10, SPRN_SPRG0 | 599 | mfspr r10, SPRN_SPRG0 |
670 | b data_access | 600 | b DataStorage |
671 | 601 | ||
672 | /* Instruction TLB Error Interrupt */ | 602 | /* Instruction TLB Error Interrupt */ |
673 | /* | 603 | /* |
@@ -705,15 +635,16 @@ interrupt_base: | |||
705 | lwz r11,PGDIR(r11) | 635 | lwz r11,PGDIR(r11) |
706 | 636 | ||
707 | 4: | 637 | 4: |
638 | /* Make up the required permissions */ | ||
639 | li r13,_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_HWEXEC | ||
640 | |||
708 | FIND_PTE | 641 | FIND_PTE |
709 | andi. r13, r11, _PAGE_PRESENT /* Is the page present? */ | 642 | andc. r13,r13,r11 /* Check permission */ |
710 | beq 2f /* Bail if not present */ | 643 | bne 2f /* Bail if permission mismach */ |
711 | 644 | ||
712 | #ifdef CONFIG_PTE_64BIT | 645 | #ifdef CONFIG_PTE_64BIT |
713 | lwz r13, 0(r12) | 646 | lwz r13, 0(r12) |
714 | #endif | 647 | #endif |
715 | ori r11, r11, _PAGE_ACCESSED | ||
716 | stw r11, PTE_FLAGS_OFFSET(r12) | ||
717 | 648 | ||
718 | /* Jump to common TLB load point */ | 649 | /* Jump to common TLB load point */ |
719 | b finish_tlb_load | 650 | b finish_tlb_load |
@@ -768,29 +699,13 @@ interrupt_base: | |||
768 | * Local functions | 699 | * Local functions |
769 | */ | 700 | */ |
770 | 701 | ||
771 | /* | ||
772 | * Data TLB exceptions will bail out to this point | ||
773 | * if they can't resolve the lightweight TLB fault. | ||
774 | */ | ||
775 | data_access: | ||
776 | NORMAL_EXCEPTION_PROLOG | ||
777 | mfspr r5,SPRN_ESR /* Grab the ESR, save it, pass arg3 */ | ||
778 | stw r5,_ESR(r11) | ||
779 | mfspr r4,SPRN_DEAR /* Grab the DEAR, save it, pass arg2 */ | ||
780 | andis. r10,r5,(ESR_ILK|ESR_DLK)@h | ||
781 | bne 1f | ||
782 | EXC_XFER_EE_LITE(0x0300, handle_page_fault) | ||
783 | 1: | ||
784 | addi r3,r1,STACK_FRAME_OVERHEAD | ||
785 | EXC_XFER_EE_LITE(0x0300, CacheLockingException) | ||
786 | |||
787 | /* | 702 | /* |
788 | |||
789 | * Both the instruction and data TLB miss get to this | 703 | * Both the instruction and data TLB miss get to this |
790 | * point to load the TLB. | 704 | * point to load the TLB. |
791 | * r10 - EA of fault | 705 | * r10 - EA of fault |
792 | * r11 - TLB (info from Linux PTE) | 706 | * r11 - TLB (info from Linux PTE) |
793 | * r12, r13 - available to use | 707 | * r12 - available to use |
708 | * r13 - upper bits of PTE (if PTE_64BIT) or available to use | ||
794 | * CR5 - results of addr >= PAGE_OFFSET | 709 | * CR5 - results of addr >= PAGE_OFFSET |
795 | * MAS0, MAS1 - loaded with proper value when we get here | 710 | * MAS0, MAS1 - loaded with proper value when we get here |
796 | * MAS2, MAS3 - will need additional info from Linux PTE | 711 | * MAS2, MAS3 - will need additional info from Linux PTE |
@@ -812,20 +727,14 @@ finish_tlb_load: | |||
812 | #endif | 727 | #endif |
813 | mtspr SPRN_MAS2, r12 | 728 | mtspr SPRN_MAS2, r12 |
814 | 729 | ||
815 | bge 5, 1f | 730 | li r10, (_PAGE_HWEXEC | _PAGE_PRESENT) |
816 | 731 | rlwimi r10, r11, 31, 29, 29 /* extract _PAGE_DIRTY into SW */ | |
817 | /* is user addr */ | 732 | and r12, r11, r10 |
818 | andi. r12, r11, (_PAGE_USER | _PAGE_HWWRITE | _PAGE_HWEXEC) | ||
819 | andi. r10, r11, _PAGE_USER /* Test for _PAGE_USER */ | 733 | andi. r10, r11, _PAGE_USER /* Test for _PAGE_USER */ |
820 | srwi r10, r12, 1 | 734 | slwi r10, r12, 1 |
821 | or r12, r12, r10 /* Copy user perms into supervisor */ | 735 | or r10, r10, r12 |
822 | iseleq r12, 0, r12 | 736 | iseleq r12, r12, r10 |
823 | b 2f | 737 | |
824 | |||
825 | /* is kernel addr */ | ||
826 | 1: rlwinm r12, r11, 31, 29, 29 /* Extract _PAGE_HWWRITE into SW */ | ||
827 | ori r12, r12, (MAS3_SX | MAS3_SR) | ||
828 | |||
829 | #ifdef CONFIG_PTE_64BIT | 738 | #ifdef CONFIG_PTE_64BIT |
830 | 2: rlwimi r12, r13, 24, 0, 7 /* grab RPN[32:39] */ | 739 | 2: rlwimi r12, r13, 24, 0, 7 /* grab RPN[32:39] */ |
831 | rlwimi r12, r11, 24, 8, 19 /* grab RPN[40:51] */ | 740 | rlwimi r12, r11, 24, 8, 19 /* grab RPN[40:51] */ |
diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index c3cf0e8f3ac1..d308a9f70f1b 100644 --- a/arch/powerpc/kernel/idle.c +++ b/arch/powerpc/kernel/idle.c | |||
@@ -60,7 +60,7 @@ void cpu_idle(void) | |||
60 | 60 | ||
61 | set_thread_flag(TIF_POLLING_NRFLAG); | 61 | set_thread_flag(TIF_POLLING_NRFLAG); |
62 | while (1) { | 62 | while (1) { |
63 | tick_nohz_stop_sched_tick(); | 63 | tick_nohz_stop_sched_tick(1); |
64 | while (!need_resched() && !cpu_should_die()) { | 64 | while (!need_resched() && !cpu_should_die()) { |
65 | ppc64_runlatch_off(); | 65 | ppc64_runlatch_off(); |
66 | 66 | ||
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c index 8c68ee9e5d1c..550a19399bfa 100644 --- a/arch/powerpc/kernel/iommu.c +++ b/arch/powerpc/kernel/iommu.c | |||
@@ -49,6 +49,8 @@ static int novmerge = 1; | |||
49 | 49 | ||
50 | static int protect4gb = 1; | 50 | static int protect4gb = 1; |
51 | 51 | ||
52 | static void __iommu_free(struct iommu_table *, dma_addr_t, unsigned int); | ||
53 | |||
52 | static inline unsigned long iommu_num_pages(unsigned long vaddr, | 54 | static inline unsigned long iommu_num_pages(unsigned long vaddr, |
53 | unsigned long slen) | 55 | unsigned long slen) |
54 | { | 56 | { |
@@ -186,10 +188,12 @@ static unsigned long iommu_range_alloc(struct device *dev, | |||
186 | static dma_addr_t iommu_alloc(struct device *dev, struct iommu_table *tbl, | 188 | static dma_addr_t iommu_alloc(struct device *dev, struct iommu_table *tbl, |
187 | void *page, unsigned int npages, | 189 | void *page, unsigned int npages, |
188 | enum dma_data_direction direction, | 190 | enum dma_data_direction direction, |
189 | unsigned long mask, unsigned int align_order) | 191 | unsigned long mask, unsigned int align_order, |
192 | struct dma_attrs *attrs) | ||
190 | { | 193 | { |
191 | unsigned long entry, flags; | 194 | unsigned long entry, flags; |
192 | dma_addr_t ret = DMA_ERROR_CODE; | 195 | dma_addr_t ret = DMA_ERROR_CODE; |
196 | int build_fail; | ||
193 | 197 | ||
194 | spin_lock_irqsave(&(tbl->it_lock), flags); | 198 | spin_lock_irqsave(&(tbl->it_lock), flags); |
195 | 199 | ||
@@ -204,9 +208,21 @@ static dma_addr_t iommu_alloc(struct device *dev, struct iommu_table *tbl, | |||
204 | ret = entry << IOMMU_PAGE_SHIFT; /* Set the return dma address */ | 208 | ret = entry << IOMMU_PAGE_SHIFT; /* Set the return dma address */ |
205 | 209 | ||
206 | /* Put the TCEs in the HW table */ | 210 | /* Put the TCEs in the HW table */ |
207 | ppc_md.tce_build(tbl, entry, npages, (unsigned long)page & IOMMU_PAGE_MASK, | 211 | build_fail = ppc_md.tce_build(tbl, entry, npages, |
208 | direction); | 212 | (unsigned long)page & IOMMU_PAGE_MASK, |
213 | direction, attrs); | ||
214 | |||
215 | /* ppc_md.tce_build() only returns non-zero for transient errors. | ||
216 | * Clean up the table bitmap in this case and return | ||
217 | * DMA_ERROR_CODE. For all other errors the functionality is | ||
218 | * not altered. | ||
219 | */ | ||
220 | if (unlikely(build_fail)) { | ||
221 | __iommu_free(tbl, ret, npages); | ||
209 | 222 | ||
223 | spin_unlock_irqrestore(&(tbl->it_lock), flags); | ||
224 | return DMA_ERROR_CODE; | ||
225 | } | ||
210 | 226 | ||
211 | /* Flush/invalidate TLB caches if necessary */ | 227 | /* Flush/invalidate TLB caches if necessary */ |
212 | if (ppc_md.tce_flush) | 228 | if (ppc_md.tce_flush) |
@@ -275,7 +291,7 @@ int iommu_map_sg(struct device *dev, struct iommu_table *tbl, | |||
275 | dma_addr_t dma_next = 0, dma_addr; | 291 | dma_addr_t dma_next = 0, dma_addr; |
276 | unsigned long flags; | 292 | unsigned long flags; |
277 | struct scatterlist *s, *outs, *segstart; | 293 | struct scatterlist *s, *outs, *segstart; |
278 | int outcount, incount, i; | 294 | int outcount, incount, i, build_fail = 0; |
279 | unsigned int align; | 295 | unsigned int align; |
280 | unsigned long handle; | 296 | unsigned long handle; |
281 | unsigned int max_seg_size; | 297 | unsigned int max_seg_size; |
@@ -336,7 +352,11 @@ int iommu_map_sg(struct device *dev, struct iommu_table *tbl, | |||
336 | npages, entry, dma_addr); | 352 | npages, entry, dma_addr); |
337 | 353 | ||
338 | /* Insert into HW table */ | 354 | /* Insert into HW table */ |
339 | ppc_md.tce_build(tbl, entry, npages, vaddr & IOMMU_PAGE_MASK, direction); | 355 | build_fail = ppc_md.tce_build(tbl, entry, npages, |
356 | vaddr & IOMMU_PAGE_MASK, | ||
357 | direction, attrs); | ||
358 | if(unlikely(build_fail)) | ||
359 | goto failure; | ||
340 | 360 | ||
341 | /* If we are in an open segment, try merging */ | 361 | /* If we are in an open segment, try merging */ |
342 | if (segstart != s) { | 362 | if (segstart != s) { |
@@ -573,7 +593,8 @@ dma_addr_t iommu_map_single(struct device *dev, struct iommu_table *tbl, | |||
573 | align = PAGE_SHIFT - IOMMU_PAGE_SHIFT; | 593 | align = PAGE_SHIFT - IOMMU_PAGE_SHIFT; |
574 | 594 | ||
575 | dma_handle = iommu_alloc(dev, tbl, vaddr, npages, direction, | 595 | dma_handle = iommu_alloc(dev, tbl, vaddr, npages, direction, |
576 | mask >> IOMMU_PAGE_SHIFT, align); | 596 | mask >> IOMMU_PAGE_SHIFT, align, |
597 | attrs); | ||
577 | if (dma_handle == DMA_ERROR_CODE) { | 598 | if (dma_handle == DMA_ERROR_CODE) { |
578 | if (printk_ratelimit()) { | 599 | if (printk_ratelimit()) { |
579 | printk(KERN_INFO "iommu_alloc failed, " | 600 | printk(KERN_INFO "iommu_alloc failed, " |
@@ -642,7 +663,7 @@ void *iommu_alloc_coherent(struct device *dev, struct iommu_table *tbl, | |||
642 | nio_pages = size >> IOMMU_PAGE_SHIFT; | 663 | nio_pages = size >> IOMMU_PAGE_SHIFT; |
643 | io_order = get_iommu_order(size); | 664 | io_order = get_iommu_order(size); |
644 | mapping = iommu_alloc(dev, tbl, ret, nio_pages, DMA_BIDIRECTIONAL, | 665 | mapping = iommu_alloc(dev, tbl, ret, nio_pages, DMA_BIDIRECTIONAL, |
645 | mask >> IOMMU_PAGE_SHIFT, io_order); | 666 | mask >> IOMMU_PAGE_SHIFT, io_order, NULL); |
646 | if (mapping == DMA_ERROR_CODE) { | 667 | if (mapping == DMA_ERROR_CODE) { |
647 | free_pages((unsigned long)ret, order); | 668 | free_pages((unsigned long)ret, order); |
648 | return NULL; | 669 | return NULL; |
diff --git a/arch/powerpc/kernel/kgdb.c b/arch/powerpc/kernel/kgdb.c new file mode 100644 index 000000000000..b4fdf2f2743c --- /dev/null +++ b/arch/powerpc/kernel/kgdb.c | |||
@@ -0,0 +1,410 @@ | |||
1 | /* | ||
2 | * PowerPC backend to the KGDB stub. | ||
3 | * | ||
4 | * 1998 (c) Michael AK Tesch (tesch@cs.wisc.edu) | ||
5 | * Copyright (C) 2003 Timesys Corporation. | ||
6 | * Copyright (C) 2004-2006 MontaVista Software, Inc. | ||
7 | * PPC64 Mods (C) 2005 Frank Rowand (frowand@mvista.com) | ||
8 | * PPC32 support restored by Vitaly Wool <vwool@ru.mvista.com> and | ||
9 | * Sergei Shtylyov <sshtylyov@ru.mvista.com> | ||
10 | * Copyright (C) 2007-2008 Wind River Systems, Inc. | ||
11 | * | ||
12 | * This file is licensed under the terms of the GNU General Public License | ||
13 | * version 2. This program as licensed "as is" without any warranty of any | ||
14 | * kind, whether express or implied. | ||
15 | */ | ||
16 | |||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/kgdb.h> | ||
20 | #include <linux/smp.h> | ||
21 | #include <linux/signal.h> | ||
22 | #include <linux/ptrace.h> | ||
23 | #include <asm/current.h> | ||
24 | #include <asm/processor.h> | ||
25 | #include <asm/machdep.h> | ||
26 | |||
27 | /* | ||
28 | * This table contains the mapping between PowerPC hardware trap types, and | ||
29 | * signals, which are primarily what GDB understands. GDB and the kernel | ||
30 | * don't always agree on values, so we use constants taken from gdb-6.2. | ||
31 | */ | ||
32 | static struct hard_trap_info | ||
33 | { | ||
34 | unsigned int tt; /* Trap type code for powerpc */ | ||
35 | unsigned char signo; /* Signal that we map this trap into */ | ||
36 | } hard_trap_info[] = { | ||
37 | { 0x0100, 0x02 /* SIGINT */ }, /* system reset */ | ||
38 | { 0x0200, 0x0b /* SIGSEGV */ }, /* machine check */ | ||
39 | { 0x0300, 0x0b /* SIGSEGV */ }, /* data access */ | ||
40 | { 0x0400, 0x0b /* SIGSEGV */ }, /* instruction access */ | ||
41 | { 0x0500, 0x02 /* SIGINT */ }, /* external interrupt */ | ||
42 | { 0x0600, 0x0a /* SIGBUS */ }, /* alignment */ | ||
43 | { 0x0700, 0x05 /* SIGTRAP */ }, /* program check */ | ||
44 | { 0x0800, 0x08 /* SIGFPE */ }, /* fp unavailable */ | ||
45 | { 0x0900, 0x0e /* SIGALRM */ }, /* decrementer */ | ||
46 | { 0x0c00, 0x14 /* SIGCHLD */ }, /* system call */ | ||
47 | #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) | ||
48 | { 0x2002, 0x05 /* SIGTRAP */ }, /* debug */ | ||
49 | #if defined(CONFIG_FSL_BOOKE) | ||
50 | { 0x2010, 0x08 /* SIGFPE */ }, /* spe unavailable */ | ||
51 | { 0x2020, 0x08 /* SIGFPE */ }, /* spe unavailable */ | ||
52 | { 0x2030, 0x08 /* SIGFPE */ }, /* spe fp data */ | ||
53 | { 0x2040, 0x08 /* SIGFPE */ }, /* spe fp data */ | ||
54 | { 0x2050, 0x08 /* SIGFPE */ }, /* spe fp round */ | ||
55 | { 0x2060, 0x0e /* SIGILL */ }, /* performace monitor */ | ||
56 | { 0x2900, 0x08 /* SIGFPE */ }, /* apu unavailable */ | ||
57 | { 0x3100, 0x0e /* SIGALRM */ }, /* fixed interval timer */ | ||
58 | { 0x3200, 0x02 /* SIGINT */ }, /* watchdog */ | ||
59 | #else /* ! CONFIG_FSL_BOOKE */ | ||
60 | { 0x1000, 0x0e /* SIGALRM */ }, /* prog interval timer */ | ||
61 | { 0x1010, 0x0e /* SIGALRM */ }, /* fixed interval timer */ | ||
62 | { 0x1020, 0x02 /* SIGINT */ }, /* watchdog */ | ||
63 | { 0x2010, 0x08 /* SIGFPE */ }, /* fp unavailable */ | ||
64 | { 0x2020, 0x08 /* SIGFPE */ }, /* ap unavailable */ | ||
65 | #endif | ||
66 | #else /* ! (defined(CONFIG_40x) || defined(CONFIG_BOOKE)) */ | ||
67 | { 0x0d00, 0x05 /* SIGTRAP */ }, /* single-step */ | ||
68 | #if defined(CONFIG_8xx) | ||
69 | { 0x1000, 0x04 /* SIGILL */ }, /* software emulation */ | ||
70 | #else /* ! CONFIG_8xx */ | ||
71 | { 0x0f00, 0x04 /* SIGILL */ }, /* performance monitor */ | ||
72 | { 0x0f20, 0x08 /* SIGFPE */ }, /* altivec unavailable */ | ||
73 | { 0x1300, 0x05 /* SIGTRAP */ }, /* instruction address break */ | ||
74 | #if defined(CONFIG_PPC64) | ||
75 | { 0x1200, 0x05 /* SIGILL */ }, /* system error */ | ||
76 | { 0x1500, 0x04 /* SIGILL */ }, /* soft patch */ | ||
77 | { 0x1600, 0x04 /* SIGILL */ }, /* maintenance */ | ||
78 | { 0x1700, 0x08 /* SIGFPE */ }, /* altivec assist */ | ||
79 | { 0x1800, 0x04 /* SIGILL */ }, /* thermal */ | ||
80 | #else /* ! CONFIG_PPC64 */ | ||
81 | { 0x1400, 0x02 /* SIGINT */ }, /* SMI */ | ||
82 | { 0x1600, 0x08 /* SIGFPE */ }, /* altivec assist */ | ||
83 | { 0x1700, 0x04 /* SIGILL */ }, /* TAU */ | ||
84 | { 0x2000, 0x05 /* SIGTRAP */ }, /* run mode */ | ||
85 | #endif | ||
86 | #endif | ||
87 | #endif | ||
88 | { 0x0000, 0x00 } /* Must be last */ | ||
89 | }; | ||
90 | |||
91 | static int computeSignal(unsigned int tt) | ||
92 | { | ||
93 | struct hard_trap_info *ht; | ||
94 | |||
95 | for (ht = hard_trap_info; ht->tt && ht->signo; ht++) | ||
96 | if (ht->tt == tt) | ||
97 | return ht->signo; | ||
98 | |||
99 | return SIGHUP; /* default for things we don't know about */ | ||
100 | } | ||
101 | |||
102 | static int kgdb_call_nmi_hook(struct pt_regs *regs) | ||
103 | { | ||
104 | kgdb_nmicallback(raw_smp_processor_id(), regs); | ||
105 | return 0; | ||
106 | } | ||
107 | |||
108 | #ifdef CONFIG_SMP | ||
109 | void kgdb_roundup_cpus(unsigned long flags) | ||
110 | { | ||
111 | smp_send_debugger_break(MSG_ALL_BUT_SELF); | ||
112 | } | ||
113 | #endif | ||
114 | |||
115 | /* KGDB functions to use existing PowerPC64 hooks. */ | ||
116 | static int kgdb_debugger(struct pt_regs *regs) | ||
117 | { | ||
118 | return kgdb_handle_exception(0, computeSignal(TRAP(regs)), 0, regs); | ||
119 | } | ||
120 | |||
121 | static int kgdb_handle_breakpoint(struct pt_regs *regs) | ||
122 | { | ||
123 | if (user_mode(regs)) | ||
124 | return 0; | ||
125 | |||
126 | if (kgdb_handle_exception(0, SIGTRAP, 0, regs) != 0) | ||
127 | return 0; | ||
128 | |||
129 | if (*(u32 *) (regs->nip) == *(u32 *) (&arch_kgdb_ops.gdb_bpt_instr)) | ||
130 | regs->nip += 4; | ||
131 | |||
132 | return 1; | ||
133 | } | ||
134 | |||
135 | static int kgdb_singlestep(struct pt_regs *regs) | ||
136 | { | ||
137 | struct thread_info *thread_info, *exception_thread_info; | ||
138 | |||
139 | if (user_mode(regs)) | ||
140 | return 0; | ||
141 | |||
142 | /* | ||
143 | * On Book E and perhaps other processsors, singlestep is handled on | ||
144 | * the critical exception stack. This causes current_thread_info() | ||
145 | * to fail, since it it locates the thread_info by masking off | ||
146 | * the low bits of the current stack pointer. We work around | ||
147 | * this issue by copying the thread_info from the kernel stack | ||
148 | * before calling kgdb_handle_exception, and copying it back | ||
149 | * afterwards. On most processors the copy is avoided since | ||
150 | * exception_thread_info == thread_info. | ||
151 | */ | ||
152 | thread_info = (struct thread_info *)(regs->gpr[1] & ~(THREAD_SIZE-1)); | ||
153 | exception_thread_info = current_thread_info(); | ||
154 | |||
155 | if (thread_info != exception_thread_info) | ||
156 | memcpy(exception_thread_info, thread_info, sizeof *thread_info); | ||
157 | |||
158 | kgdb_handle_exception(0, SIGTRAP, 0, regs); | ||
159 | |||
160 | if (thread_info != exception_thread_info) | ||
161 | memcpy(thread_info, exception_thread_info, sizeof *thread_info); | ||
162 | |||
163 | return 1; | ||
164 | } | ||
165 | |||
166 | static int kgdb_iabr_match(struct pt_regs *regs) | ||
167 | { | ||
168 | if (user_mode(regs)) | ||
169 | return 0; | ||
170 | |||
171 | if (kgdb_handle_exception(0, computeSignal(TRAP(regs)), 0, regs) != 0) | ||
172 | return 0; | ||
173 | return 1; | ||
174 | } | ||
175 | |||
176 | static int kgdb_dabr_match(struct pt_regs *regs) | ||
177 | { | ||
178 | if (user_mode(regs)) | ||
179 | return 0; | ||
180 | |||
181 | if (kgdb_handle_exception(0, computeSignal(TRAP(regs)), 0, regs) != 0) | ||
182 | return 0; | ||
183 | return 1; | ||
184 | } | ||
185 | |||
186 | #define PACK64(ptr, src) do { *(ptr++) = (src); } while (0) | ||
187 | |||
188 | #define PACK32(ptr, src) do { \ | ||
189 | u32 *ptr32; \ | ||
190 | ptr32 = (u32 *)ptr; \ | ||
191 | *(ptr32++) = (src); \ | ||
192 | ptr = (unsigned long *)ptr32; \ | ||
193 | } while (0) | ||
194 | |||
195 | |||
196 | void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) | ||
197 | { | ||
198 | unsigned long *ptr = gdb_regs; | ||
199 | int reg; | ||
200 | |||
201 | memset(gdb_regs, 0, NUMREGBYTES); | ||
202 | |||
203 | for (reg = 0; reg < 32; reg++) | ||
204 | PACK64(ptr, regs->gpr[reg]); | ||
205 | |||
206 | #ifdef CONFIG_FSL_BOOKE | ||
207 | #ifdef CONFIG_SPE | ||
208 | for (reg = 0; reg < 32; reg++) | ||
209 | PACK64(ptr, current->thread.evr[reg]); | ||
210 | #else | ||
211 | ptr += 32; | ||
212 | #endif | ||
213 | #else | ||
214 | /* fp registers not used by kernel, leave zero */ | ||
215 | ptr += 32 * 8 / sizeof(long); | ||
216 | #endif | ||
217 | |||
218 | PACK64(ptr, regs->nip); | ||
219 | PACK64(ptr, regs->msr); | ||
220 | PACK32(ptr, regs->ccr); | ||
221 | PACK64(ptr, regs->link); | ||
222 | PACK64(ptr, regs->ctr); | ||
223 | PACK32(ptr, regs->xer); | ||
224 | |||
225 | BUG_ON((unsigned long)ptr > | ||
226 | (unsigned long)(((void *)gdb_regs) + NUMREGBYTES)); | ||
227 | } | ||
228 | |||
229 | void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) | ||
230 | { | ||
231 | struct pt_regs *regs = (struct pt_regs *)(p->thread.ksp + | ||
232 | STACK_FRAME_OVERHEAD); | ||
233 | unsigned long *ptr = gdb_regs; | ||
234 | int reg; | ||
235 | |||
236 | memset(gdb_regs, 0, NUMREGBYTES); | ||
237 | |||
238 | /* Regs GPR0-2 */ | ||
239 | for (reg = 0; reg < 3; reg++) | ||
240 | PACK64(ptr, regs->gpr[reg]); | ||
241 | |||
242 | /* Regs GPR3-13 are caller saved, not in regs->gpr[] */ | ||
243 | ptr += 11; | ||
244 | |||
245 | /* Regs GPR14-31 */ | ||
246 | for (reg = 14; reg < 32; reg++) | ||
247 | PACK64(ptr, regs->gpr[reg]); | ||
248 | |||
249 | #ifdef CONFIG_FSL_BOOKE | ||
250 | #ifdef CONFIG_SPE | ||
251 | for (reg = 0; reg < 32; reg++) | ||
252 | PACK64(ptr, p->thread.evr[reg]); | ||
253 | #else | ||
254 | ptr += 32; | ||
255 | #endif | ||
256 | #else | ||
257 | /* fp registers not used by kernel, leave zero */ | ||
258 | ptr += 32 * 8 / sizeof(long); | ||
259 | #endif | ||
260 | |||
261 | PACK64(ptr, regs->nip); | ||
262 | PACK64(ptr, regs->msr); | ||
263 | PACK32(ptr, regs->ccr); | ||
264 | PACK64(ptr, regs->link); | ||
265 | PACK64(ptr, regs->ctr); | ||
266 | PACK32(ptr, regs->xer); | ||
267 | |||
268 | BUG_ON((unsigned long)ptr > | ||
269 | (unsigned long)(((void *)gdb_regs) + NUMREGBYTES)); | ||
270 | } | ||
271 | |||
272 | #define UNPACK64(dest, ptr) do { dest = *(ptr++); } while (0) | ||
273 | |||
274 | #define UNPACK32(dest, ptr) do { \ | ||
275 | u32 *ptr32; \ | ||
276 | ptr32 = (u32 *)ptr; \ | ||
277 | dest = *(ptr32++); \ | ||
278 | ptr = (unsigned long *)ptr32; \ | ||
279 | } while (0) | ||
280 | |||
281 | void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) | ||
282 | { | ||
283 | unsigned long *ptr = gdb_regs; | ||
284 | int reg; | ||
285 | #ifdef CONFIG_SPE | ||
286 | union { | ||
287 | u32 v32[2]; | ||
288 | u64 v64; | ||
289 | } acc; | ||
290 | #endif | ||
291 | |||
292 | for (reg = 0; reg < 32; reg++) | ||
293 | UNPACK64(regs->gpr[reg], ptr); | ||
294 | |||
295 | #ifdef CONFIG_FSL_BOOKE | ||
296 | #ifdef CONFIG_SPE | ||
297 | for (reg = 0; reg < 32; reg++) | ||
298 | UNPACK64(current->thread.evr[reg], ptr); | ||
299 | #else | ||
300 | ptr += 32; | ||
301 | #endif | ||
302 | #else | ||
303 | /* fp registers not used by kernel, leave zero */ | ||
304 | ptr += 32 * 8 / sizeof(int); | ||
305 | #endif | ||
306 | |||
307 | UNPACK64(regs->nip, ptr); | ||
308 | UNPACK64(regs->msr, ptr); | ||
309 | UNPACK32(regs->ccr, ptr); | ||
310 | UNPACK64(regs->link, ptr); | ||
311 | UNPACK64(regs->ctr, ptr); | ||
312 | UNPACK32(regs->xer, ptr); | ||
313 | |||
314 | BUG_ON((unsigned long)ptr > | ||
315 | (unsigned long)(((void *)gdb_regs) + NUMREGBYTES)); | ||
316 | } | ||
317 | |||
318 | /* | ||
319 | * This function does PowerPC specific procesing for interfacing to gdb. | ||
320 | */ | ||
321 | int kgdb_arch_handle_exception(int vector, int signo, int err_code, | ||
322 | char *remcom_in_buffer, char *remcom_out_buffer, | ||
323 | struct pt_regs *linux_regs) | ||
324 | { | ||
325 | char *ptr = &remcom_in_buffer[1]; | ||
326 | unsigned long addr; | ||
327 | |||
328 | switch (remcom_in_buffer[0]) { | ||
329 | /* | ||
330 | * sAA..AA Step one instruction from AA..AA | ||
331 | * This will return an error to gdb .. | ||
332 | */ | ||
333 | case 's': | ||
334 | case 'c': | ||
335 | /* handle the optional parameter */ | ||
336 | if (kgdb_hex2long(&ptr, &addr)) | ||
337 | linux_regs->nip = addr; | ||
338 | |||
339 | atomic_set(&kgdb_cpu_doing_single_step, -1); | ||
340 | /* set the trace bit if we're stepping */ | ||
341 | if (remcom_in_buffer[0] == 's') { | ||
342 | #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) | ||
343 | mtspr(SPRN_DBCR0, | ||
344 | mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); | ||
345 | linux_regs->msr |= MSR_DE; | ||
346 | #else | ||
347 | linux_regs->msr |= MSR_SE; | ||
348 | #endif | ||
349 | kgdb_single_step = 1; | ||
350 | if (kgdb_contthread) | ||
351 | atomic_set(&kgdb_cpu_doing_single_step, | ||
352 | raw_smp_processor_id()); | ||
353 | } | ||
354 | return 0; | ||
355 | } | ||
356 | |||
357 | return -1; | ||
358 | } | ||
359 | |||
360 | /* | ||
361 | * Global data | ||
362 | */ | ||
363 | struct kgdb_arch arch_kgdb_ops = { | ||
364 | .gdb_bpt_instr = {0x7d, 0x82, 0x10, 0x08}, | ||
365 | }; | ||
366 | |||
367 | static int kgdb_not_implemented(struct pt_regs *regs) | ||
368 | { | ||
369 | return 0; | ||
370 | } | ||
371 | |||
372 | static void *old__debugger_ipi; | ||
373 | static void *old__debugger; | ||
374 | static void *old__debugger_bpt; | ||
375 | static void *old__debugger_sstep; | ||
376 | static void *old__debugger_iabr_match; | ||
377 | static void *old__debugger_dabr_match; | ||
378 | static void *old__debugger_fault_handler; | ||
379 | |||
380 | int kgdb_arch_init(void) | ||
381 | { | ||
382 | old__debugger_ipi = __debugger_ipi; | ||
383 | old__debugger = __debugger; | ||
384 | old__debugger_bpt = __debugger_bpt; | ||
385 | old__debugger_sstep = __debugger_sstep; | ||
386 | old__debugger_iabr_match = __debugger_iabr_match; | ||
387 | old__debugger_dabr_match = __debugger_dabr_match; | ||
388 | old__debugger_fault_handler = __debugger_fault_handler; | ||
389 | |||
390 | __debugger_ipi = kgdb_call_nmi_hook; | ||
391 | __debugger = kgdb_debugger; | ||
392 | __debugger_bpt = kgdb_handle_breakpoint; | ||
393 | __debugger_sstep = kgdb_singlestep; | ||
394 | __debugger_iabr_match = kgdb_iabr_match; | ||
395 | __debugger_dabr_match = kgdb_dabr_match; | ||
396 | __debugger_fault_handler = kgdb_not_implemented; | ||
397 | |||
398 | return 0; | ||
399 | } | ||
400 | |||
401 | void kgdb_arch_exit(void) | ||
402 | { | ||
403 | __debugger_ipi = old__debugger_ipi; | ||
404 | __debugger = old__debugger; | ||
405 | __debugger_bpt = old__debugger_bpt; | ||
406 | __debugger_sstep = old__debugger_sstep; | ||
407 | __debugger_iabr_match = old__debugger_iabr_match; | ||
408 | __debugger_dabr_match = old__debugger_dabr_match; | ||
409 | __debugger_fault_handler = old__debugger_fault_handler; | ||
410 | } | ||
diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c index 4ba2af125450..de79915452c8 100644 --- a/arch/powerpc/kernel/kprobes.c +++ b/arch/powerpc/kernel/kprobes.c | |||
@@ -144,7 +144,6 @@ static void __kprobes set_current_kprobe(struct kprobe *p, struct pt_regs *regs, | |||
144 | kcb->kprobe_saved_msr = regs->msr; | 144 | kcb->kprobe_saved_msr = regs->msr; |
145 | } | 145 | } |
146 | 146 | ||
147 | /* Called with kretprobe_lock held */ | ||
148 | void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, | 147 | void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, |
149 | struct pt_regs *regs) | 148 | struct pt_regs *regs) |
150 | { | 149 | { |
@@ -312,8 +311,7 @@ static int __kprobes trampoline_probe_handler(struct kprobe *p, | |||
312 | unsigned long trampoline_address =(unsigned long)&kretprobe_trampoline; | 311 | unsigned long trampoline_address =(unsigned long)&kretprobe_trampoline; |
313 | 312 | ||
314 | INIT_HLIST_HEAD(&empty_rp); | 313 | INIT_HLIST_HEAD(&empty_rp); |
315 | spin_lock_irqsave(&kretprobe_lock, flags); | 314 | kretprobe_hash_lock(current, &head, &flags); |
316 | head = kretprobe_inst_table_head(current); | ||
317 | 315 | ||
318 | /* | 316 | /* |
319 | * It is possible to have multiple instances associated with a given | 317 | * It is possible to have multiple instances associated with a given |
@@ -352,7 +350,7 @@ static int __kprobes trampoline_probe_handler(struct kprobe *p, | |||
352 | regs->nip = orig_ret_address; | 350 | regs->nip = orig_ret_address; |
353 | 351 | ||
354 | reset_current_kprobe(); | 352 | reset_current_kprobe(); |
355 | spin_unlock_irqrestore(&kretprobe_lock, flags); | 353 | kretprobe_hash_unlock(current, &flags); |
356 | preempt_enable_no_resched(); | 354 | preempt_enable_no_resched(); |
357 | 355 | ||
358 | hlist_for_each_entry_safe(ri, node, tmp, &empty_rp, hlist) { | 356 | hlist_for_each_entry_safe(ri, node, tmp, &empty_rp, hlist) { |
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c index 827a5726a035..9f856a0c3e38 100644 --- a/arch/powerpc/kernel/lparcfg.c +++ b/arch/powerpc/kernel/lparcfg.c | |||
@@ -34,8 +34,9 @@ | |||
34 | #include <asm/time.h> | 34 | #include <asm/time.h> |
35 | #include <asm/prom.h> | 35 | #include <asm/prom.h> |
36 | #include <asm/vdso_datapage.h> | 36 | #include <asm/vdso_datapage.h> |
37 | #include <asm/vio.h> | ||
37 | 38 | ||
38 | #define MODULE_VERS "1.7" | 39 | #define MODULE_VERS "1.8" |
39 | #define MODULE_NAME "lparcfg" | 40 | #define MODULE_NAME "lparcfg" |
40 | 41 | ||
41 | /* #define LPARCFG_DEBUG */ | 42 | /* #define LPARCFG_DEBUG */ |
@@ -129,32 +130,46 @@ static int iseries_lparcfg_data(struct seq_file *m, void *v) | |||
129 | /* | 130 | /* |
130 | * Methods used to fetch LPAR data when running on a pSeries platform. | 131 | * Methods used to fetch LPAR data when running on a pSeries platform. |
131 | */ | 132 | */ |
132 | static void log_plpar_hcall_return(unsigned long rc, char *tag) | 133 | /** |
134 | * h_get_mpp | ||
135 | * H_GET_MPP hcall returns info in 7 parms | ||
136 | */ | ||
137 | int h_get_mpp(struct hvcall_mpp_data *mpp_data) | ||
133 | { | 138 | { |
134 | switch(rc) { | 139 | int rc; |
135 | case 0: | 140 | unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; |
136 | return; | 141 | |
137 | case H_HARDWARE: | 142 | rc = plpar_hcall9(H_GET_MPP, retbuf); |
138 | printk(KERN_INFO "plpar-hcall (%s) " | 143 | |
139 | "Hardware fault\n", tag); | 144 | mpp_data->entitled_mem = retbuf[0]; |
140 | return; | 145 | mpp_data->mapped_mem = retbuf[1]; |
141 | case H_FUNCTION: | 146 | |
142 | printk(KERN_INFO "plpar-hcall (%s) " | 147 | mpp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; |
143 | "Function not allowed\n", tag); | 148 | mpp_data->pool_num = retbuf[2] & 0xffff; |
144 | return; | 149 | |
145 | case H_AUTHORITY: | 150 | mpp_data->mem_weight = (retbuf[3] >> 7 * 8) & 0xff; |
146 | printk(KERN_INFO "plpar-hcall (%s) " | 151 | mpp_data->unallocated_mem_weight = (retbuf[3] >> 6 * 8) & 0xff; |
147 | "Not authorized to this function\n", tag); | 152 | mpp_data->unallocated_entitlement = retbuf[3] & 0xffffffffffff; |
148 | return; | 153 | |
149 | case H_PARAMETER: | 154 | mpp_data->pool_size = retbuf[4]; |
150 | printk(KERN_INFO "plpar-hcall (%s) " | 155 | mpp_data->loan_request = retbuf[5]; |
151 | "Bad parameter(s)\n",tag); | 156 | mpp_data->backing_mem = retbuf[6]; |
152 | return; | 157 | |
153 | default: | 158 | return rc; |
154 | printk(KERN_INFO "plpar-hcall (%s) " | ||
155 | "Unexpected rc(0x%lx)\n", tag, rc); | ||
156 | } | ||
157 | } | 159 | } |
160 | EXPORT_SYMBOL(h_get_mpp); | ||
161 | |||
162 | struct hvcall_ppp_data { | ||
163 | u64 entitlement; | ||
164 | u64 unallocated_entitlement; | ||
165 | u16 group_num; | ||
166 | u16 pool_num; | ||
167 | u8 capped; | ||
168 | u8 weight; | ||
169 | u8 unallocated_weight; | ||
170 | u16 active_procs_in_pool; | ||
171 | u16 active_system_procs; | ||
172 | }; | ||
158 | 173 | ||
159 | /* | 174 | /* |
160 | * H_GET_PPP hcall returns info in 4 parms. | 175 | * H_GET_PPP hcall returns info in 4 parms. |
@@ -176,27 +191,30 @@ static void log_plpar_hcall_return(unsigned long rc, char *tag) | |||
176 | * XXXX - Active processors in Physical Processor Pool. | 191 | * XXXX - Active processors in Physical Processor Pool. |
177 | * XXXX - Processors active on platform. | 192 | * XXXX - Processors active on platform. |
178 | */ | 193 | */ |
179 | static unsigned int h_get_ppp(unsigned long *entitled, | 194 | static unsigned int h_get_ppp(struct hvcall_ppp_data *ppp_data) |
180 | unsigned long *unallocated, | ||
181 | unsigned long *aggregation, | ||
182 | unsigned long *resource) | ||
183 | { | 195 | { |
184 | unsigned long rc; | 196 | unsigned long rc; |
185 | unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; | 197 | unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; |
186 | 198 | ||
187 | rc = plpar_hcall(H_GET_PPP, retbuf); | 199 | rc = plpar_hcall(H_GET_PPP, retbuf); |
188 | 200 | ||
189 | *entitled = retbuf[0]; | 201 | ppp_data->entitlement = retbuf[0]; |
190 | *unallocated = retbuf[1]; | 202 | ppp_data->unallocated_entitlement = retbuf[1]; |
191 | *aggregation = retbuf[2]; | 203 | |
192 | *resource = retbuf[3]; | 204 | ppp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; |
205 | ppp_data->pool_num = retbuf[2] & 0xffff; | ||
193 | 206 | ||
194 | log_plpar_hcall_return(rc, "H_GET_PPP"); | 207 | ppp_data->capped = (retbuf[3] >> 6 * 8) & 0x01; |
208 | ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; | ||
209 | ppp_data->unallocated_weight = (retbuf[3] >> 4 * 8) & 0xff; | ||
210 | ppp_data->active_procs_in_pool = (retbuf[3] >> 2 * 8) & 0xffff; | ||
211 | ppp_data->active_system_procs = retbuf[3] & 0xffff; | ||
195 | 212 | ||
196 | return rc; | 213 | return rc; |
197 | } | 214 | } |
198 | 215 | ||
199 | static void h_pic(unsigned long *pool_idle_time, unsigned long *num_procs) | 216 | static unsigned h_pic(unsigned long *pool_idle_time, |
217 | unsigned long *num_procs) | ||
200 | { | 218 | { |
201 | unsigned long rc; | 219 | unsigned long rc; |
202 | unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; | 220 | unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; |
@@ -206,8 +224,87 @@ static void h_pic(unsigned long *pool_idle_time, unsigned long *num_procs) | |||
206 | *pool_idle_time = retbuf[0]; | 224 | *pool_idle_time = retbuf[0]; |
207 | *num_procs = retbuf[1]; | 225 | *num_procs = retbuf[1]; |
208 | 226 | ||
209 | if (rc != H_AUTHORITY) | 227 | return rc; |
210 | log_plpar_hcall_return(rc, "H_PIC"); | 228 | } |
229 | |||
230 | /* | ||
231 | * parse_ppp_data | ||
232 | * Parse out the data returned from h_get_ppp and h_pic | ||
233 | */ | ||
234 | static void parse_ppp_data(struct seq_file *m) | ||
235 | { | ||
236 | struct hvcall_ppp_data ppp_data; | ||
237 | int rc; | ||
238 | |||
239 | rc = h_get_ppp(&ppp_data); | ||
240 | if (rc) | ||
241 | return; | ||
242 | |||
243 | seq_printf(m, "partition_entitled_capacity=%ld\n", | ||
244 | ppp_data.entitlement); | ||
245 | seq_printf(m, "group=%d\n", ppp_data.group_num); | ||
246 | seq_printf(m, "system_active_processors=%d\n", | ||
247 | ppp_data.active_system_procs); | ||
248 | |||
249 | /* pool related entries are apropriate for shared configs */ | ||
250 | if (lppaca[0].shared_proc) { | ||
251 | unsigned long pool_idle_time, pool_procs; | ||
252 | |||
253 | seq_printf(m, "pool=%d\n", ppp_data.pool_num); | ||
254 | |||
255 | /* report pool_capacity in percentage */ | ||
256 | seq_printf(m, "pool_capacity=%d\n", | ||
257 | ppp_data.active_procs_in_pool * 100); | ||
258 | |||
259 | h_pic(&pool_idle_time, &pool_procs); | ||
260 | seq_printf(m, "pool_idle_time=%ld\n", pool_idle_time); | ||
261 | seq_printf(m, "pool_num_procs=%ld\n", pool_procs); | ||
262 | } | ||
263 | |||
264 | seq_printf(m, "unallocated_capacity_weight=%d\n", | ||
265 | ppp_data.unallocated_weight); | ||
266 | seq_printf(m, "capacity_weight=%d\n", ppp_data.weight); | ||
267 | seq_printf(m, "capped=%d\n", ppp_data.capped); | ||
268 | seq_printf(m, "unallocated_capacity=%ld\n", | ||
269 | ppp_data.unallocated_entitlement); | ||
270 | } | ||
271 | |||
272 | /** | ||
273 | * parse_mpp_data | ||
274 | * Parse out data returned from h_get_mpp | ||
275 | */ | ||
276 | static void parse_mpp_data(struct seq_file *m) | ||
277 | { | ||
278 | struct hvcall_mpp_data mpp_data; | ||
279 | int rc; | ||
280 | |||
281 | rc = h_get_mpp(&mpp_data); | ||
282 | if (rc) | ||
283 | return; | ||
284 | |||
285 | seq_printf(m, "entitled_memory=%ld\n", mpp_data.entitled_mem); | ||
286 | |||
287 | if (mpp_data.mapped_mem != -1) | ||
288 | seq_printf(m, "mapped_entitled_memory=%ld\n", | ||
289 | mpp_data.mapped_mem); | ||
290 | |||
291 | seq_printf(m, "entitled_memory_group_number=%d\n", mpp_data.group_num); | ||
292 | seq_printf(m, "entitled_memory_pool_number=%d\n", mpp_data.pool_num); | ||
293 | |||
294 | seq_printf(m, "entitled_memory_weight=%d\n", mpp_data.mem_weight); | ||
295 | seq_printf(m, "unallocated_entitled_memory_weight=%d\n", | ||
296 | mpp_data.unallocated_mem_weight); | ||
297 | seq_printf(m, "unallocated_io_mapping_entitlement=%ld\n", | ||
298 | mpp_data.unallocated_entitlement); | ||
299 | |||
300 | if (mpp_data.pool_size != -1) | ||
301 | seq_printf(m, "entitled_memory_pool_size=%ld bytes\n", | ||
302 | mpp_data.pool_size); | ||
303 | |||
304 | seq_printf(m, "entitled_memory_loan_request=%ld\n", | ||
305 | mpp_data.loan_request); | ||
306 | |||
307 | seq_printf(m, "backing_memory=%ld bytes\n", mpp_data.backing_mem); | ||
211 | } | 308 | } |
212 | 309 | ||
213 | #define SPLPAR_CHARACTERISTICS_TOKEN 20 | 310 | #define SPLPAR_CHARACTERISTICS_TOKEN 20 |
@@ -313,6 +410,25 @@ static int lparcfg_count_active_processors(void) | |||
313 | return count; | 410 | return count; |
314 | } | 411 | } |
315 | 412 | ||
413 | static void pseries_cmo_data(struct seq_file *m) | ||
414 | { | ||
415 | int cpu; | ||
416 | unsigned long cmo_faults = 0; | ||
417 | unsigned long cmo_fault_time = 0; | ||
418 | |||
419 | if (!firmware_has_feature(FW_FEATURE_CMO)) | ||
420 | return; | ||
421 | |||
422 | for_each_possible_cpu(cpu) { | ||
423 | cmo_faults += lppaca[cpu].cmo_faults; | ||
424 | cmo_fault_time += lppaca[cpu].cmo_fault_time; | ||
425 | } | ||
426 | |||
427 | seq_printf(m, "cmo_faults=%lu\n", cmo_faults); | ||
428 | seq_printf(m, "cmo_fault_time_usec=%lu\n", | ||
429 | cmo_fault_time / tb_ticks_per_usec); | ||
430 | } | ||
431 | |||
316 | static int pseries_lparcfg_data(struct seq_file *m, void *v) | 432 | static int pseries_lparcfg_data(struct seq_file *m, void *v) |
317 | { | 433 | { |
318 | int partition_potential_processors; | 434 | int partition_potential_processors; |
@@ -334,60 +450,13 @@ static int pseries_lparcfg_data(struct seq_file *m, void *v) | |||
334 | partition_active_processors = lparcfg_count_active_processors(); | 450 | partition_active_processors = lparcfg_count_active_processors(); |
335 | 451 | ||
336 | if (firmware_has_feature(FW_FEATURE_SPLPAR)) { | 452 | if (firmware_has_feature(FW_FEATURE_SPLPAR)) { |
337 | unsigned long h_entitled, h_unallocated; | ||
338 | unsigned long h_aggregation, h_resource; | ||
339 | unsigned long pool_idle_time, pool_procs; | ||
340 | unsigned long purr; | ||
341 | |||
342 | h_get_ppp(&h_entitled, &h_unallocated, &h_aggregation, | ||
343 | &h_resource); | ||
344 | |||
345 | seq_printf(m, "R4=0x%lx\n", h_entitled); | ||
346 | seq_printf(m, "R5=0x%lx\n", h_unallocated); | ||
347 | seq_printf(m, "R6=0x%lx\n", h_aggregation); | ||
348 | seq_printf(m, "R7=0x%lx\n", h_resource); | ||
349 | |||
350 | purr = get_purr(); | ||
351 | |||
352 | /* this call handles the ibm,get-system-parameter contents */ | 453 | /* this call handles the ibm,get-system-parameter contents */ |
353 | parse_system_parameter_string(m); | 454 | parse_system_parameter_string(m); |
455 | parse_ppp_data(m); | ||
456 | parse_mpp_data(m); | ||
457 | pseries_cmo_data(m); | ||
354 | 458 | ||
355 | seq_printf(m, "partition_entitled_capacity=%ld\n", h_entitled); | 459 | seq_printf(m, "purr=%ld\n", get_purr()); |
356 | |||
357 | seq_printf(m, "group=%ld\n", (h_aggregation >> 2 * 8) & 0xffff); | ||
358 | |||
359 | seq_printf(m, "system_active_processors=%ld\n", | ||
360 | (h_resource >> 0 * 8) & 0xffff); | ||
361 | |||
362 | /* pool related entries are apropriate for shared configs */ | ||
363 | if (lppaca[0].shared_proc) { | ||
364 | |||
365 | h_pic(&pool_idle_time, &pool_procs); | ||
366 | |||
367 | seq_printf(m, "pool=%ld\n", | ||
368 | (h_aggregation >> 0 * 8) & 0xffff); | ||
369 | |||
370 | /* report pool_capacity in percentage */ | ||
371 | seq_printf(m, "pool_capacity=%ld\n", | ||
372 | ((h_resource >> 2 * 8) & 0xffff) * 100); | ||
373 | |||
374 | seq_printf(m, "pool_idle_time=%ld\n", pool_idle_time); | ||
375 | |||
376 | seq_printf(m, "pool_num_procs=%ld\n", pool_procs); | ||
377 | } | ||
378 | |||
379 | seq_printf(m, "unallocated_capacity_weight=%ld\n", | ||
380 | (h_resource >> 4 * 8) & 0xFF); | ||
381 | |||
382 | seq_printf(m, "capacity_weight=%ld\n", | ||
383 | (h_resource >> 5 * 8) & 0xFF); | ||
384 | |||
385 | seq_printf(m, "capped=%ld\n", (h_resource >> 6 * 8) & 0x01); | ||
386 | |||
387 | seq_printf(m, "unallocated_capacity=%ld\n", h_unallocated); | ||
388 | |||
389 | seq_printf(m, "purr=%ld\n", purr); | ||
390 | |||
391 | } else { /* non SPLPAR case */ | 460 | } else { /* non SPLPAR case */ |
392 | 461 | ||
393 | seq_printf(m, "system_active_processors=%d\n", | 462 | seq_printf(m, "system_active_processors=%d\n", |
@@ -414,6 +483,83 @@ static int pseries_lparcfg_data(struct seq_file *m, void *v) | |||
414 | return 0; | 483 | return 0; |
415 | } | 484 | } |
416 | 485 | ||
486 | static ssize_t update_ppp(u64 *entitlement, u8 *weight) | ||
487 | { | ||
488 | struct hvcall_ppp_data ppp_data; | ||
489 | u8 new_weight; | ||
490 | u64 new_entitled; | ||
491 | ssize_t retval; | ||
492 | |||
493 | /* Get our current parameters */ | ||
494 | retval = h_get_ppp(&ppp_data); | ||
495 | if (retval) | ||
496 | return retval; | ||
497 | |||
498 | if (entitlement) { | ||
499 | new_weight = ppp_data.weight; | ||
500 | new_entitled = *entitlement; | ||
501 | } else if (weight) { | ||
502 | new_weight = *weight; | ||
503 | new_entitled = ppp_data.entitlement; | ||
504 | } else | ||
505 | return -EINVAL; | ||
506 | |||
507 | pr_debug("%s: current_entitled = %lu, current_weight = %u\n", | ||
508 | __FUNCTION__, ppp_data.entitlement, ppp_data.weight); | ||
509 | |||
510 | pr_debug("%s: new_entitled = %lu, new_weight = %u\n", | ||
511 | __FUNCTION__, new_entitled, new_weight); | ||
512 | |||
513 | retval = plpar_hcall_norets(H_SET_PPP, new_entitled, new_weight); | ||
514 | return retval; | ||
515 | } | ||
516 | |||
517 | /** | ||
518 | * update_mpp | ||
519 | * | ||
520 | * Update the memory entitlement and weight for the partition. Caller must | ||
521 | * specify either a new entitlement or weight, not both, to be updated | ||
522 | * since the h_set_mpp call takes both entitlement and weight as parameters. | ||
523 | */ | ||
524 | static ssize_t update_mpp(u64 *entitlement, u8 *weight) | ||
525 | { | ||
526 | struct hvcall_mpp_data mpp_data; | ||
527 | u64 new_entitled; | ||
528 | u8 new_weight; | ||
529 | ssize_t rc; | ||
530 | |||
531 | if (entitlement) { | ||
532 | /* Check with vio to ensure the new memory entitlement | ||
533 | * can be handled. | ||
534 | */ | ||
535 | rc = vio_cmo_entitlement_update(*entitlement); | ||
536 | if (rc) | ||
537 | return rc; | ||
538 | } | ||
539 | |||
540 | rc = h_get_mpp(&mpp_data); | ||
541 | if (rc) | ||
542 | return rc; | ||
543 | |||
544 | if (entitlement) { | ||
545 | new_weight = mpp_data.mem_weight; | ||
546 | new_entitled = *entitlement; | ||
547 | } else if (weight) { | ||
548 | new_weight = *weight; | ||
549 | new_entitled = mpp_data.entitled_mem; | ||
550 | } else | ||
551 | return -EINVAL; | ||
552 | |||
553 | pr_debug("%s: current_entitled = %lu, current_weight = %u\n", | ||
554 | __FUNCTION__, mpp_data.entitled_mem, mpp_data.mem_weight); | ||
555 | |||
556 | pr_debug("%s: new_entitled = %lu, new_weight = %u\n", | ||
557 | __FUNCTION__, new_entitled, new_weight); | ||
558 | |||
559 | rc = plpar_hcall_norets(H_SET_MPP, new_entitled, new_weight); | ||
560 | return rc; | ||
561 | } | ||
562 | |||
417 | /* | 563 | /* |
418 | * Interface for changing system parameters (variable capacity weight | 564 | * Interface for changing system parameters (variable capacity weight |
419 | * and entitled capacity). Format of input is "param_name=value"; | 565 | * and entitled capacity). Format of input is "param_name=value"; |
@@ -427,35 +573,27 @@ static int pseries_lparcfg_data(struct seq_file *m, void *v) | |||
427 | static ssize_t lparcfg_write(struct file *file, const char __user * buf, | 573 | static ssize_t lparcfg_write(struct file *file, const char __user * buf, |
428 | size_t count, loff_t * off) | 574 | size_t count, loff_t * off) |
429 | { | 575 | { |
430 | char *kbuf; | 576 | int kbuf_sz = 64; |
577 | char kbuf[kbuf_sz]; | ||
431 | char *tmp; | 578 | char *tmp; |
432 | u64 new_entitled, *new_entitled_ptr = &new_entitled; | 579 | u64 new_entitled, *new_entitled_ptr = &new_entitled; |
433 | u8 new_weight, *new_weight_ptr = &new_weight; | 580 | u8 new_weight, *new_weight_ptr = &new_weight; |
434 | 581 | ssize_t retval; | |
435 | unsigned long current_entitled; /* parameters for h_get_ppp */ | ||
436 | unsigned long dummy; | ||
437 | unsigned long resource; | ||
438 | u8 current_weight; | ||
439 | |||
440 | ssize_t retval = -ENOMEM; | ||
441 | 582 | ||
442 | if (!firmware_has_feature(FW_FEATURE_SPLPAR) || | 583 | if (!firmware_has_feature(FW_FEATURE_SPLPAR) || |
443 | firmware_has_feature(FW_FEATURE_ISERIES)) | 584 | firmware_has_feature(FW_FEATURE_ISERIES)) |
444 | return -EINVAL; | 585 | return -EINVAL; |
445 | 586 | ||
446 | kbuf = kmalloc(count, GFP_KERNEL); | 587 | if (count > kbuf_sz) |
447 | if (!kbuf) | 588 | return -EINVAL; |
448 | goto out; | ||
449 | 589 | ||
450 | retval = -EFAULT; | ||
451 | if (copy_from_user(kbuf, buf, count)) | 590 | if (copy_from_user(kbuf, buf, count)) |
452 | goto out; | 591 | return -EFAULT; |
453 | 592 | ||
454 | retval = -EINVAL; | ||
455 | kbuf[count - 1] = '\0'; | 593 | kbuf[count - 1] = '\0'; |
456 | tmp = strchr(kbuf, '='); | 594 | tmp = strchr(kbuf, '='); |
457 | if (!tmp) | 595 | if (!tmp) |
458 | goto out; | 596 | return -EINVAL; |
459 | 597 | ||
460 | *tmp++ = '\0'; | 598 | *tmp++ = '\0'; |
461 | 599 | ||
@@ -463,34 +601,32 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf, | |||
463 | char *endp; | 601 | char *endp; |
464 | *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); | 602 | *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); |
465 | if (endp == tmp) | 603 | if (endp == tmp) |
466 | goto out; | 604 | return -EINVAL; |
467 | new_weight_ptr = ¤t_weight; | 605 | |
606 | retval = update_ppp(new_entitled_ptr, NULL); | ||
468 | } else if (!strcmp(kbuf, "capacity_weight")) { | 607 | } else if (!strcmp(kbuf, "capacity_weight")) { |
469 | char *endp; | 608 | char *endp; |
470 | *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); | 609 | *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); |
471 | if (endp == tmp) | 610 | if (endp == tmp) |
472 | goto out; | 611 | return -EINVAL; |
473 | new_entitled_ptr = ¤t_entitled; | ||
474 | } else | ||
475 | goto out; | ||
476 | |||
477 | /* Get our current parameters */ | ||
478 | retval = h_get_ppp(¤t_entitled, &dummy, &dummy, &resource); | ||
479 | if (retval) { | ||
480 | retval = -EIO; | ||
481 | goto out; | ||
482 | } | ||
483 | |||
484 | current_weight = (resource >> 5 * 8) & 0xFF; | ||
485 | 612 | ||
486 | pr_debug("%s: current_entitled = %lu, current_weight = %u\n", | 613 | retval = update_ppp(NULL, new_weight_ptr); |
487 | __func__, current_entitled, current_weight); | 614 | } else if (!strcmp(kbuf, "entitled_memory")) { |
615 | char *endp; | ||
616 | *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10); | ||
617 | if (endp == tmp) | ||
618 | return -EINVAL; | ||
488 | 619 | ||
489 | pr_debug("%s: new_entitled = %lu, new_weight = %u\n", | 620 | retval = update_mpp(new_entitled_ptr, NULL); |
490 | __func__, *new_entitled_ptr, *new_weight_ptr); | 621 | } else if (!strcmp(kbuf, "entitled_memory_weight")) { |
622 | char *endp; | ||
623 | *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10); | ||
624 | if (endp == tmp) | ||
625 | return -EINVAL; | ||
491 | 626 | ||
492 | retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr, | 627 | retval = update_mpp(NULL, new_weight_ptr); |
493 | *new_weight_ptr); | 628 | } else |
629 | return -EINVAL; | ||
494 | 630 | ||
495 | if (retval == H_SUCCESS || retval == H_CONSTRAINED) { | 631 | if (retval == H_SUCCESS || retval == H_CONSTRAINED) { |
496 | retval = count; | 632 | retval = count; |
@@ -506,8 +642,6 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf, | |||
506 | retval = -EIO; | 642 | retval = -EIO; |
507 | } | 643 | } |
508 | 644 | ||
509 | out: | ||
510 | kfree(kbuf); | ||
511 | return retval; | 645 | return retval; |
512 | } | 646 | } |
513 | 647 | ||
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 063cdd413049..224e9a11765c 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -598,6 +598,7 @@ void __devinit pci_process_bridge_OF_ranges(struct pci_controller *hose, | |||
598 | res->start = pci_addr; | 598 | res->start = pci_addr; |
599 | break; | 599 | break; |
600 | case 2: /* PCI Memory space */ | 600 | case 2: /* PCI Memory space */ |
601 | case 3: /* PCI 64 bits Memory space */ | ||
601 | printk(KERN_INFO | 602 | printk(KERN_INFO |
602 | " MEM 0x%016llx..0x%016llx -> 0x%016llx %s\n", | 603 | " MEM 0x%016llx..0x%016llx -> 0x%016llx %s\n", |
603 | cpu_addr, cpu_addr + size - 1, pci_addr, | 604 | cpu_addr, cpu_addr + size - 1, pci_addr, |
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 219f3634115e..db2497ccc111 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -47,6 +47,8 @@ | |||
47 | #ifdef CONFIG_PPC64 | 47 | #ifdef CONFIG_PPC64 |
48 | #include <asm/firmware.h> | 48 | #include <asm/firmware.h> |
49 | #endif | 49 | #endif |
50 | #include <linux/kprobes.h> | ||
51 | #include <linux/kdebug.h> | ||
50 | 52 | ||
51 | extern unsigned long _get_SP(void); | 53 | extern unsigned long _get_SP(void); |
52 | 54 | ||
@@ -239,6 +241,35 @@ void discard_lazy_cpu_state(void) | |||
239 | } | 241 | } |
240 | #endif /* CONFIG_SMP */ | 242 | #endif /* CONFIG_SMP */ |
241 | 243 | ||
244 | void do_dabr(struct pt_regs *regs, unsigned long address, | ||
245 | unsigned long error_code) | ||
246 | { | ||
247 | siginfo_t info; | ||
248 | |||
249 | if (notify_die(DIE_DABR_MATCH, "dabr_match", regs, error_code, | ||
250 | 11, SIGSEGV) == NOTIFY_STOP) | ||
251 | return; | ||
252 | |||
253 | if (debugger_dabr_match(regs)) | ||
254 | return; | ||
255 | |||
256 | /* Clear the DAC and struct entries. One shot trigger */ | ||
257 | #if (defined(CONFIG_44x) || defined(CONFIG_BOOKE)) | ||
258 | mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) & ~(DBSR_DAC1R | DBSR_DAC1W | ||
259 | | DBCR0_IDM)); | ||
260 | #endif | ||
261 | |||
262 | /* Clear the DABR */ | ||
263 | set_dabr(0); | ||
264 | |||
265 | /* Deliver the signal to userspace */ | ||
266 | info.si_signo = SIGTRAP; | ||
267 | info.si_errno = 0; | ||
268 | info.si_code = TRAP_HWBKPT; | ||
269 | info.si_addr = (void __user *)address; | ||
270 | force_sig_info(SIGTRAP, &info, current); | ||
271 | } | ||
272 | |||
242 | static DEFINE_PER_CPU(unsigned long, current_dabr); | 273 | static DEFINE_PER_CPU(unsigned long, current_dabr); |
243 | 274 | ||
244 | int set_dabr(unsigned long dabr) | 275 | int set_dabr(unsigned long dabr) |
@@ -254,6 +285,11 @@ int set_dabr(unsigned long dabr) | |||
254 | #if defined(CONFIG_PPC64) || defined(CONFIG_6xx) | 285 | #if defined(CONFIG_PPC64) || defined(CONFIG_6xx) |
255 | mtspr(SPRN_DABR, dabr); | 286 | mtspr(SPRN_DABR, dabr); |
256 | #endif | 287 | #endif |
288 | |||
289 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | ||
290 | mtspr(SPRN_DAC1, dabr); | ||
291 | #endif | ||
292 | |||
257 | return 0; | 293 | return 0; |
258 | } | 294 | } |
259 | 295 | ||
@@ -337,6 +373,12 @@ struct task_struct *__switch_to(struct task_struct *prev, | |||
337 | if (unlikely(__get_cpu_var(current_dabr) != new->thread.dabr)) | 373 | if (unlikely(__get_cpu_var(current_dabr) != new->thread.dabr)) |
338 | set_dabr(new->thread.dabr); | 374 | set_dabr(new->thread.dabr); |
339 | 375 | ||
376 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | ||
377 | /* If new thread DAC (HW breakpoint) is the same then leave it */ | ||
378 | if (new->thread.dabr) | ||
379 | set_dabr(new->thread.dabr); | ||
380 | #endif | ||
381 | |||
340 | new_thread = &new->thread; | 382 | new_thread = &new->thread; |
341 | old_thread = ¤t->thread; | 383 | old_thread = ¤t->thread; |
342 | 384 | ||
@@ -525,6 +567,10 @@ void flush_thread(void) | |||
525 | if (current->thread.dabr) { | 567 | if (current->thread.dabr) { |
526 | current->thread.dabr = 0; | 568 | current->thread.dabr = 0; |
527 | set_dabr(0); | 569 | set_dabr(0); |
570 | |||
571 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | ||
572 | current->thread.dbcr0 &= ~(DBSR_DAC1R | DBSR_DAC1W); | ||
573 | #endif | ||
528 | } | 574 | } |
529 | } | 575 | } |
530 | 576 | ||
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 1ea8c8d3ce89..c4ab2195b9cb 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c | |||
@@ -643,6 +643,11 @@ static void __init early_cmdline_parse(void) | |||
643 | #else | 643 | #else |
644 | #define OV5_MSI 0x00 | 644 | #define OV5_MSI 0x00 |
645 | #endif /* CONFIG_PCI_MSI */ | 645 | #endif /* CONFIG_PCI_MSI */ |
646 | #ifdef CONFIG_PPC_SMLPAR | ||
647 | #define OV5_CMO 0x80 /* Cooperative Memory Overcommitment */ | ||
648 | #else | ||
649 | #define OV5_CMO 0x00 | ||
650 | #endif | ||
646 | 651 | ||
647 | /* | 652 | /* |
648 | * The architecture vector has an array of PVR mask/value pairs, | 653 | * The architecture vector has an array of PVR mask/value pairs, |
@@ -687,10 +692,12 @@ static unsigned char ibm_architecture_vec[] = { | |||
687 | 0, /* don't halt */ | 692 | 0, /* don't halt */ |
688 | 693 | ||
689 | /* option vector 5: PAPR/OF options */ | 694 | /* option vector 5: PAPR/OF options */ |
690 | 3 - 2, /* length */ | 695 | 5 - 2, /* length */ |
691 | 0, /* don't ignore, don't halt */ | 696 | 0, /* don't ignore, don't halt */ |
692 | OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY | | 697 | OV5_LPAR | OV5_SPLPAR | OV5_LARGE_PAGES | OV5_DRCONF_MEMORY | |
693 | OV5_DONATE_DEDICATE_CPU | OV5_MSI, | 698 | OV5_DONATE_DEDICATE_CPU | OV5_MSI, |
699 | 0, | ||
700 | OV5_CMO, | ||
694 | }; | 701 | }; |
695 | 702 | ||
696 | /* Old method - ELF header with PT_NOTE sections */ | 703 | /* Old method - ELF header with PT_NOTE sections */ |
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c index 90eb3a3e383e..bc1fb27368af 100644 --- a/arch/powerpc/kernel/prom_parse.c +++ b/arch/powerpc/kernel/prom_parse.c | |||
@@ -128,12 +128,35 @@ static void of_bus_pci_count_cells(struct device_node *np, | |||
128 | *sizec = 2; | 128 | *sizec = 2; |
129 | } | 129 | } |
130 | 130 | ||
131 | static unsigned int of_bus_pci_get_flags(const u32 *addr) | ||
132 | { | ||
133 | unsigned int flags = 0; | ||
134 | u32 w = addr[0]; | ||
135 | |||
136 | switch((w >> 24) & 0x03) { | ||
137 | case 0x01: | ||
138 | flags |= IORESOURCE_IO; | ||
139 | break; | ||
140 | case 0x02: /* 32 bits */ | ||
141 | case 0x03: /* 64 bits */ | ||
142 | flags |= IORESOURCE_MEM; | ||
143 | break; | ||
144 | } | ||
145 | if (w & 0x40000000) | ||
146 | flags |= IORESOURCE_PREFETCH; | ||
147 | return flags; | ||
148 | } | ||
149 | |||
131 | static u64 of_bus_pci_map(u32 *addr, const u32 *range, int na, int ns, int pna) | 150 | static u64 of_bus_pci_map(u32 *addr, const u32 *range, int na, int ns, int pna) |
132 | { | 151 | { |
133 | u64 cp, s, da; | 152 | u64 cp, s, da; |
153 | unsigned int af, rf; | ||
154 | |||
155 | af = of_bus_pci_get_flags(addr); | ||
156 | rf = of_bus_pci_get_flags(range); | ||
134 | 157 | ||
135 | /* Check address type match */ | 158 | /* Check address type match */ |
136 | if ((addr[0] ^ range[0]) & 0x03000000) | 159 | if ((af ^ rf) & (IORESOURCE_MEM | IORESOURCE_IO)) |
137 | return OF_BAD_ADDR; | 160 | return OF_BAD_ADDR; |
138 | 161 | ||
139 | /* Read address values, skipping high cell */ | 162 | /* Read address values, skipping high cell */ |
@@ -153,25 +176,6 @@ static int of_bus_pci_translate(u32 *addr, u64 offset, int na) | |||
153 | return of_bus_default_translate(addr + 1, offset, na - 1); | 176 | return of_bus_default_translate(addr + 1, offset, na - 1); |
154 | } | 177 | } |
155 | 178 | ||
156 | static unsigned int of_bus_pci_get_flags(const u32 *addr) | ||
157 | { | ||
158 | unsigned int flags = 0; | ||
159 | u32 w = addr[0]; | ||
160 | |||
161 | switch((w >> 24) & 0x03) { | ||
162 | case 0x01: | ||
163 | flags |= IORESOURCE_IO; | ||
164 | break; | ||
165 | case 0x02: /* 32 bits */ | ||
166 | case 0x03: /* 64 bits */ | ||
167 | flags |= IORESOURCE_MEM; | ||
168 | break; | ||
169 | } | ||
170 | if (w & 0x40000000) | ||
171 | flags |= IORESOURCE_PREFETCH; | ||
172 | return flags; | ||
173 | } | ||
174 | |||
175 | const u32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size, | 179 | const u32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size, |
176 | unsigned int *flags) | 180 | unsigned int *flags) |
177 | { | 181 | { |
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index 8feb93e7890c..a5d0e78779c8 100644 --- a/arch/powerpc/kernel/ptrace.c +++ b/arch/powerpc/kernel/ptrace.c | |||
@@ -703,7 +703,7 @@ void user_enable_single_step(struct task_struct *task) | |||
703 | 703 | ||
704 | if (regs != NULL) { | 704 | if (regs != NULL) { |
705 | #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) | 705 | #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) |
706 | task->thread.dbcr0 = DBCR0_IDM | DBCR0_IC; | 706 | task->thread.dbcr0 |= DBCR0_IDM | DBCR0_IC; |
707 | regs->msr |= MSR_DE; | 707 | regs->msr |= MSR_DE; |
708 | #else | 708 | #else |
709 | regs->msr |= MSR_SE; | 709 | regs->msr |= MSR_SE; |
@@ -716,9 +716,16 @@ void user_disable_single_step(struct task_struct *task) | |||
716 | { | 716 | { |
717 | struct pt_regs *regs = task->thread.regs; | 717 | struct pt_regs *regs = task->thread.regs; |
718 | 718 | ||
719 | |||
720 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | ||
721 | /* If DAC then do not single step, skip */ | ||
722 | if (task->thread.dabr) | ||
723 | return; | ||
724 | #endif | ||
725 | |||
719 | if (regs != NULL) { | 726 | if (regs != NULL) { |
720 | #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) | 727 | #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) |
721 | task->thread.dbcr0 = 0; | 728 | task->thread.dbcr0 &= ~(DBCR0_IC | DBCR0_IDM); |
722 | regs->msr &= ~MSR_DE; | 729 | regs->msr &= ~MSR_DE; |
723 | #else | 730 | #else |
724 | regs->msr &= ~MSR_SE; | 731 | regs->msr &= ~MSR_SE; |
@@ -727,22 +734,75 @@ void user_disable_single_step(struct task_struct *task) | |||
727 | clear_tsk_thread_flag(task, TIF_SINGLESTEP); | 734 | clear_tsk_thread_flag(task, TIF_SINGLESTEP); |
728 | } | 735 | } |
729 | 736 | ||
730 | static int ptrace_set_debugreg(struct task_struct *task, unsigned long addr, | 737 | int ptrace_set_debugreg(struct task_struct *task, unsigned long addr, |
731 | unsigned long data) | 738 | unsigned long data) |
732 | { | 739 | { |
733 | /* We only support one DABR and no IABRS at the moment */ | 740 | /* For ppc64 we support one DABR and no IABR's at the moment (ppc64). |
741 | * For embedded processors we support one DAC and no IAC's at the | ||
742 | * moment. | ||
743 | */ | ||
734 | if (addr > 0) | 744 | if (addr > 0) |
735 | return -EINVAL; | 745 | return -EINVAL; |
736 | 746 | ||
737 | /* The bottom 3 bits are flags */ | ||
738 | if ((data & ~0x7UL) >= TASK_SIZE) | 747 | if ((data & ~0x7UL) >= TASK_SIZE) |
739 | return -EIO; | 748 | return -EIO; |
740 | 749 | ||
741 | /* Ensure translation is on */ | 750 | #ifdef CONFIG_PPC64 |
751 | |||
752 | /* For processors using DABR (i.e. 970), the bottom 3 bits are flags. | ||
753 | * It was assumed, on previous implementations, that 3 bits were | ||
754 | * passed together with the data address, fitting the design of the | ||
755 | * DABR register, as follows: | ||
756 | * | ||
757 | * bit 0: Read flag | ||
758 | * bit 1: Write flag | ||
759 | * bit 2: Breakpoint translation | ||
760 | * | ||
761 | * Thus, we use them here as so. | ||
762 | */ | ||
763 | |||
764 | /* Ensure breakpoint translation bit is set */ | ||
742 | if (data && !(data & DABR_TRANSLATION)) | 765 | if (data && !(data & DABR_TRANSLATION)) |
743 | return -EIO; | 766 | return -EIO; |
744 | 767 | ||
768 | /* Move contents to the DABR register */ | ||
745 | task->thread.dabr = data; | 769 | task->thread.dabr = data; |
770 | |||
771 | #endif | ||
772 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | ||
773 | |||
774 | /* As described above, it was assumed 3 bits were passed with the data | ||
775 | * address, but we will assume only the mode bits will be passed | ||
776 | * as to not cause alignment restrictions for DAC-based processors. | ||
777 | */ | ||
778 | |||
779 | /* DAC's hold the whole address without any mode flags */ | ||
780 | task->thread.dabr = data & ~0x3UL; | ||
781 | |||
782 | if (task->thread.dabr == 0) { | ||
783 | task->thread.dbcr0 &= ~(DBSR_DAC1R | DBSR_DAC1W | DBCR0_IDM); | ||
784 | task->thread.regs->msr &= ~MSR_DE; | ||
785 | return 0; | ||
786 | } | ||
787 | |||
788 | /* Read or Write bits must be set */ | ||
789 | |||
790 | if (!(data & 0x3UL)) | ||
791 | return -EINVAL; | ||
792 | |||
793 | /* Set the Internal Debugging flag (IDM bit 1) for the DBCR0 | ||
794 | register */ | ||
795 | task->thread.dbcr0 = DBCR0_IDM; | ||
796 | |||
797 | /* Check for write and read flags and set DBCR0 | ||
798 | accordingly */ | ||
799 | if (data & 0x1UL) | ||
800 | task->thread.dbcr0 |= DBSR_DAC1R; | ||
801 | if (data & 0x2UL) | ||
802 | task->thread.dbcr0 |= DBSR_DAC1W; | ||
803 | |||
804 | task->thread.regs->msr |= MSR_DE; | ||
805 | #endif | ||
746 | return 0; | 806 | return 0; |
747 | } | 807 | } |
748 | 808 | ||
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 4efebe88e64a..066e65c59b58 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -43,10 +43,6 @@ | |||
43 | 43 | ||
44 | #define DBG(fmt...) | 44 | #define DBG(fmt...) |
45 | 45 | ||
46 | #if defined CONFIG_KGDB | ||
47 | #include <asm/kgdb.h> | ||
48 | #endif | ||
49 | |||
50 | extern void bootx_init(unsigned long r4, unsigned long phys); | 46 | extern void bootx_init(unsigned long r4, unsigned long phys); |
51 | 47 | ||
52 | int boot_cpuid; | 48 | int boot_cpuid; |
@@ -302,18 +298,6 @@ void __init setup_arch(char **cmdline_p) | |||
302 | 298 | ||
303 | xmon_setup(); | 299 | xmon_setup(); |
304 | 300 | ||
305 | #if defined(CONFIG_KGDB) | ||
306 | if (ppc_md.kgdb_map_scc) | ||
307 | ppc_md.kgdb_map_scc(); | ||
308 | set_debug_traps(); | ||
309 | if (strstr(cmd_line, "gdb")) { | ||
310 | if (ppc_md.progress) | ||
311 | ppc_md.progress("setup_arch: kgdb breakpoint", 0x4000); | ||
312 | printk("kgdb breakpoint activated\n"); | ||
313 | breakpoint(); | ||
314 | } | ||
315 | #endif | ||
316 | |||
317 | /* | 301 | /* |
318 | * Set cache line size based on type of cpu as a default. | 302 | * Set cache line size based on type of cpu as a default. |
319 | * Systems with OF can look in the properties on the cpu node(s) | 303 | * Systems with OF can look in the properties on the cpu node(s) |
diff --git a/arch/powerpc/kernel/signal.c b/arch/powerpc/kernel/signal.c index ad55488939c3..7aada783ec6a 100644 --- a/arch/powerpc/kernel/signal.c +++ b/arch/powerpc/kernel/signal.c | |||
@@ -145,8 +145,12 @@ int do_signal(sigset_t *oldset, struct pt_regs *regs) | |||
145 | * user space. The DABR will have been cleared if it | 145 | * user space. The DABR will have been cleared if it |
146 | * triggered inside the kernel. | 146 | * triggered inside the kernel. |
147 | */ | 147 | */ |
148 | if (current->thread.dabr) | 148 | if (current->thread.dabr) { |
149 | set_dabr(current->thread.dabr); | 149 | set_dabr(current->thread.dabr); |
150 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | ||
151 | mtspr(SPRN_DBCR0, current->thread.dbcr0); | ||
152 | #endif | ||
153 | } | ||
150 | 154 | ||
151 | if (is32) { | 155 | if (is32) { |
152 | if (ka.sa.sa_flags & SA_SIGINFO) | 156 | if (ka.sa.sa_flags & SA_SIGINFO) |
diff --git a/arch/powerpc/kernel/stacktrace.c b/arch/powerpc/kernel/stacktrace.c index 071bee3ec749..f2589645870a 100644 --- a/arch/powerpc/kernel/stacktrace.c +++ b/arch/powerpc/kernel/stacktrace.c | |||
@@ -59,6 +59,6 @@ EXPORT_SYMBOL_GPL(save_stack_trace); | |||
59 | 59 | ||
60 | void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) | 60 | void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) |
61 | { | 61 | { |
62 | save_context_stack(trace, tsk->thread.regs->gpr[1], tsk, 0); | 62 | save_context_stack(trace, tsk->thread.ksp, tsk, 0); |
63 | } | 63 | } |
64 | EXPORT_SYMBOL_GPL(save_stack_trace_tsk); | 64 | EXPORT_SYMBOL_GPL(save_stack_trace_tsk); |
diff --git a/arch/powerpc/kernel/suspend.c b/arch/powerpc/kernel/suspend.c index 8cee57107541..6fc6328dc626 100644 --- a/arch/powerpc/kernel/suspend.c +++ b/arch/powerpc/kernel/suspend.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org> | 7 | * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org> |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/mm.h> | ||
10 | #include <asm/page.h> | 11 | #include <asm/page.h> |
11 | 12 | ||
12 | /* References to section boundaries */ | 13 | /* References to section boundaries */ |
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index c8127f832df0..800e5e9a087b 100644 --- a/arch/powerpc/kernel/sysfs.c +++ b/arch/powerpc/kernel/sysfs.c | |||
@@ -28,7 +28,9 @@ static DEFINE_PER_CPU(struct cpu, cpu_devices); | |||
28 | /* Time in microseconds we delay before sleeping in the idle loop */ | 28 | /* Time in microseconds we delay before sleeping in the idle loop */ |
29 | DEFINE_PER_CPU(unsigned long, smt_snooze_delay) = { 100 }; | 29 | DEFINE_PER_CPU(unsigned long, smt_snooze_delay) = { 100 }; |
30 | 30 | ||
31 | static ssize_t store_smt_snooze_delay(struct sys_device *dev, const char *buf, | 31 | static ssize_t store_smt_snooze_delay(struct sys_device *dev, |
32 | struct sysdev_attribute *attr, | ||
33 | const char *buf, | ||
32 | size_t count) | 34 | size_t count) |
33 | { | 35 | { |
34 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); | 36 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); |
@@ -44,7 +46,9 @@ static ssize_t store_smt_snooze_delay(struct sys_device *dev, const char *buf, | |||
44 | return count; | 46 | return count; |
45 | } | 47 | } |
46 | 48 | ||
47 | static ssize_t show_smt_snooze_delay(struct sys_device *dev, char *buf) | 49 | static ssize_t show_smt_snooze_delay(struct sys_device *dev, |
50 | struct sysdev_attribute *attr, | ||
51 | char *buf) | ||
48 | { | 52 | { |
49 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); | 53 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); |
50 | 54 | ||
@@ -152,14 +156,17 @@ static unsigned long write_##NAME(unsigned long val) \ | |||
152 | mtspr(ADDRESS, val); \ | 156 | mtspr(ADDRESS, val); \ |
153 | return 0; \ | 157 | return 0; \ |
154 | } \ | 158 | } \ |
155 | static ssize_t show_##NAME(struct sys_device *dev, char *buf) \ | 159 | static ssize_t show_##NAME(struct sys_device *dev, \ |
160 | struct sysdev_attribute *attr, \ | ||
161 | char *buf) \ | ||
156 | { \ | 162 | { \ |
157 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); \ | 163 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); \ |
158 | unsigned long val = run_on_cpu(cpu->sysdev.id, read_##NAME, 0); \ | 164 | unsigned long val = run_on_cpu(cpu->sysdev.id, read_##NAME, 0); \ |
159 | return sprintf(buf, "%lx\n", val); \ | 165 | return sprintf(buf, "%lx\n", val); \ |
160 | } \ | 166 | } \ |
161 | static ssize_t __used \ | 167 | static ssize_t __used \ |
162 | store_##NAME(struct sys_device *dev, const char *buf, size_t count) \ | 168 | store_##NAME(struct sys_device *dev, struct sysdev_attribute *attr, \ |
169 | const char *buf, size_t count) \ | ||
163 | { \ | 170 | { \ |
164 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); \ | 171 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); \ |
165 | unsigned long val; \ | 172 | unsigned long val; \ |
@@ -522,7 +529,8 @@ static void register_nodes(void) | |||
522 | #endif | 529 | #endif |
523 | 530 | ||
524 | /* Only valid if CPU is present. */ | 531 | /* Only valid if CPU is present. */ |
525 | static ssize_t show_physical_id(struct sys_device *dev, char *buf) | 532 | static ssize_t show_physical_id(struct sys_device *dev, |
533 | struct sysdev_attribute *attr, char *buf) | ||
526 | { | 534 | { |
527 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); | 535 | struct cpu *cpu = container_of(dev, struct cpu, sysdev); |
528 | 536 | ||
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 878fbddb6ae1..81ccb8dd1a54 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c | |||
@@ -1067,6 +1067,22 @@ void __kprobes DebugException(struct pt_regs *regs, unsigned long debug_status) | |||
1067 | } | 1067 | } |
1068 | 1068 | ||
1069 | _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); | 1069 | _exception(SIGTRAP, regs, TRAP_TRACE, regs->nip); |
1070 | } else if (debug_status & (DBSR_DAC1R | DBSR_DAC1W)) { | ||
1071 | regs->msr &= ~MSR_DE; | ||
1072 | |||
1073 | if (user_mode(regs)) { | ||
1074 | current->thread.dbcr0 &= ~(DBSR_DAC1R | DBSR_DAC1W | | ||
1075 | DBCR0_IDM); | ||
1076 | } else { | ||
1077 | /* Disable DAC interupts */ | ||
1078 | mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) & ~(DBSR_DAC1R | | ||
1079 | DBSR_DAC1W | DBCR0_IDM)); | ||
1080 | |||
1081 | /* Clear the DAC event */ | ||
1082 | mtspr(SPRN_DBSR, (DBSR_DAC1R | DBSR_DAC1W)); | ||
1083 | } | ||
1084 | /* Setup and send the trap to the handler */ | ||
1085 | do_dabr(regs, mfspr(SPRN_DAC1), debug_status); | ||
1070 | } | 1086 | } |
1071 | } | 1087 | } |
1072 | #endif /* CONFIG_4xx || CONFIG_BOOKE */ | 1088 | #endif /* CONFIG_4xx || CONFIG_BOOKE */ |
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index b77f8af7ddde..ade8aeaa2e70 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -1,11 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * IBM PowerPC Virtual I/O Infrastructure Support. | 2 | * IBM PowerPC Virtual I/O Infrastructure Support. |
3 | * | 3 | * |
4 | * Copyright (c) 2003-2005 IBM Corp. | 4 | * Copyright (c) 2003,2008 IBM Corp. |
5 | * Dave Engebretsen engebret@us.ibm.com | 5 | * Dave Engebretsen engebret@us.ibm.com |
6 | * Santiago Leon santil@us.ibm.com | 6 | * Santiago Leon santil@us.ibm.com |
7 | * Hollis Blanchard <hollisb@us.ibm.com> | 7 | * Hollis Blanchard <hollisb@us.ibm.com> |
8 | * Stephen Rothwell | 8 | * Stephen Rothwell |
9 | * Robert Jennings <rcjenn@us.ibm.com> | ||
9 | * | 10 | * |
10 | * This program is free software; you can redistribute it and/or | 11 | * This program is free software; you can redistribute it and/or |
11 | * modify it under the terms of the GNU General Public License | 12 | * modify it under the terms of the GNU General Public License |
@@ -46,6 +47,996 @@ static struct vio_dev vio_bus_device = { /* fake "parent" device */ | |||
46 | .dev.bus = &vio_bus_type, | 47 | .dev.bus = &vio_bus_type, |
47 | }; | 48 | }; |
48 | 49 | ||
50 | #ifdef CONFIG_PPC_SMLPAR | ||
51 | /** | ||
52 | * vio_cmo_pool - A pool of IO memory for CMO use | ||
53 | * | ||
54 | * @size: The size of the pool in bytes | ||
55 | * @free: The amount of free memory in the pool | ||
56 | */ | ||
57 | struct vio_cmo_pool { | ||
58 | size_t size; | ||
59 | size_t free; | ||
60 | }; | ||
61 | |||
62 | /* How many ms to delay queued balance work */ | ||
63 | #define VIO_CMO_BALANCE_DELAY 100 | ||
64 | |||
65 | /* Portion out IO memory to CMO devices by this chunk size */ | ||
66 | #define VIO_CMO_BALANCE_CHUNK 131072 | ||
67 | |||
68 | /** | ||
69 | * vio_cmo_dev_entry - A device that is CMO-enabled and requires entitlement | ||
70 | * | ||
71 | * @vio_dev: struct vio_dev pointer | ||
72 | * @list: pointer to other devices on bus that are being tracked | ||
73 | */ | ||
74 | struct vio_cmo_dev_entry { | ||
75 | struct vio_dev *viodev; | ||
76 | struct list_head list; | ||
77 | }; | ||
78 | |||
79 | /** | ||
80 | * vio_cmo - VIO bus accounting structure for CMO entitlement | ||
81 | * | ||
82 | * @lock: spinlock for entire structure | ||
83 | * @balance_q: work queue for balancing system entitlement | ||
84 | * @device_list: list of CMO-enabled devices requiring entitlement | ||
85 | * @entitled: total system entitlement in bytes | ||
86 | * @reserve: pool of memory from which devices reserve entitlement, incl. spare | ||
87 | * @excess: pool of excess entitlement not needed for device reserves or spare | ||
88 | * @spare: IO memory for device hotplug functionality | ||
89 | * @min: minimum necessary for system operation | ||
90 | * @desired: desired memory for system operation | ||
91 | * @curr: bytes currently allocated | ||
92 | * @high: high water mark for IO data usage | ||
93 | */ | ||
94 | struct vio_cmo { | ||
95 | spinlock_t lock; | ||
96 | struct delayed_work balance_q; | ||
97 | struct list_head device_list; | ||
98 | size_t entitled; | ||
99 | struct vio_cmo_pool reserve; | ||
100 | struct vio_cmo_pool excess; | ||
101 | size_t spare; | ||
102 | size_t min; | ||
103 | size_t desired; | ||
104 | size_t curr; | ||
105 | size_t high; | ||
106 | } vio_cmo; | ||
107 | |||
108 | /** | ||
109 | * vio_cmo_OF_devices - Count the number of OF devices that have DMA windows | ||
110 | */ | ||
111 | static int vio_cmo_num_OF_devs(void) | ||
112 | { | ||
113 | struct device_node *node_vroot; | ||
114 | int count = 0; | ||
115 | |||
116 | /* | ||
117 | * Count the number of vdevice entries with an | ||
118 | * ibm,my-dma-window OF property | ||
119 | */ | ||
120 | node_vroot = of_find_node_by_name(NULL, "vdevice"); | ||
121 | if (node_vroot) { | ||
122 | struct device_node *of_node; | ||
123 | struct property *prop; | ||
124 | |||
125 | for_each_child_of_node(node_vroot, of_node) { | ||
126 | prop = of_find_property(of_node, "ibm,my-dma-window", | ||
127 | NULL); | ||
128 | if (prop) | ||
129 | count++; | ||
130 | } | ||
131 | } | ||
132 | of_node_put(node_vroot); | ||
133 | return count; | ||
134 | } | ||
135 | |||
136 | /** | ||
137 | * vio_cmo_alloc - allocate IO memory for CMO-enable devices | ||
138 | * | ||
139 | * @viodev: VIO device requesting IO memory | ||
140 | * @size: size of allocation requested | ||
141 | * | ||
142 | * Allocations come from memory reserved for the devices and any excess | ||
143 | * IO memory available to all devices. The spare pool used to service | ||
144 | * hotplug must be equal to %VIO_CMO_MIN_ENT for the excess pool to be | ||
145 | * made available. | ||
146 | * | ||
147 | * Return codes: | ||
148 | * 0 for successful allocation and -ENOMEM for a failure | ||
149 | */ | ||
150 | static inline int vio_cmo_alloc(struct vio_dev *viodev, size_t size) | ||
151 | { | ||
152 | unsigned long flags; | ||
153 | size_t reserve_free = 0; | ||
154 | size_t excess_free = 0; | ||
155 | int ret = -ENOMEM; | ||
156 | |||
157 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
158 | |||
159 | /* Determine the amount of free entitlement available in reserve */ | ||
160 | if (viodev->cmo.entitled > viodev->cmo.allocated) | ||
161 | reserve_free = viodev->cmo.entitled - viodev->cmo.allocated; | ||
162 | |||
163 | /* If spare is not fulfilled, the excess pool can not be used. */ | ||
164 | if (vio_cmo.spare >= VIO_CMO_MIN_ENT) | ||
165 | excess_free = vio_cmo.excess.free; | ||
166 | |||
167 | /* The request can be satisfied */ | ||
168 | if ((reserve_free + excess_free) >= size) { | ||
169 | vio_cmo.curr += size; | ||
170 | if (vio_cmo.curr > vio_cmo.high) | ||
171 | vio_cmo.high = vio_cmo.curr; | ||
172 | viodev->cmo.allocated += size; | ||
173 | size -= min(reserve_free, size); | ||
174 | vio_cmo.excess.free -= size; | ||
175 | ret = 0; | ||
176 | } | ||
177 | |||
178 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
179 | return ret; | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * vio_cmo_dealloc - deallocate IO memory from CMO-enable devices | ||
184 | * @viodev: VIO device freeing IO memory | ||
185 | * @size: size of deallocation | ||
186 | * | ||
187 | * IO memory is freed by the device back to the correct memory pools. | ||
188 | * The spare pool is replenished first from either memory pool, then | ||
189 | * the reserve pool is used to reduce device entitlement, the excess | ||
190 | * pool is used to increase the reserve pool toward the desired entitlement | ||
191 | * target, and then the remaining memory is returned to the pools. | ||
192 | * | ||
193 | */ | ||
194 | static inline void vio_cmo_dealloc(struct vio_dev *viodev, size_t size) | ||
195 | { | ||
196 | unsigned long flags; | ||
197 | size_t spare_needed = 0; | ||
198 | size_t excess_freed = 0; | ||
199 | size_t reserve_freed = size; | ||
200 | size_t tmp; | ||
201 | int balance = 0; | ||
202 | |||
203 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
204 | vio_cmo.curr -= size; | ||
205 | |||
206 | /* Amount of memory freed from the excess pool */ | ||
207 | if (viodev->cmo.allocated > viodev->cmo.entitled) { | ||
208 | excess_freed = min(reserve_freed, (viodev->cmo.allocated - | ||
209 | viodev->cmo.entitled)); | ||
210 | reserve_freed -= excess_freed; | ||
211 | } | ||
212 | |||
213 | /* Remove allocation from device */ | ||
214 | viodev->cmo.allocated -= (reserve_freed + excess_freed); | ||
215 | |||
216 | /* Spare is a subset of the reserve pool, replenish it first. */ | ||
217 | spare_needed = VIO_CMO_MIN_ENT - vio_cmo.spare; | ||
218 | |||
219 | /* | ||
220 | * Replenish the spare in the reserve pool from the excess pool. | ||
221 | * This moves entitlement into the reserve pool. | ||
222 | */ | ||
223 | if (spare_needed && excess_freed) { | ||
224 | tmp = min(excess_freed, spare_needed); | ||
225 | vio_cmo.excess.size -= tmp; | ||
226 | vio_cmo.reserve.size += tmp; | ||
227 | vio_cmo.spare += tmp; | ||
228 | excess_freed -= tmp; | ||
229 | spare_needed -= tmp; | ||
230 | balance = 1; | ||
231 | } | ||
232 | |||
233 | /* | ||
234 | * Replenish the spare in the reserve pool from the reserve pool. | ||
235 | * This removes entitlement from the device down to VIO_CMO_MIN_ENT, | ||
236 | * if needed, and gives it to the spare pool. The amount of used | ||
237 | * memory in this pool does not change. | ||
238 | */ | ||
239 | if (spare_needed && reserve_freed) { | ||
240 | tmp = min(spare_needed, min(reserve_freed, | ||
241 | (viodev->cmo.entitled - | ||
242 | VIO_CMO_MIN_ENT))); | ||
243 | |||
244 | vio_cmo.spare += tmp; | ||
245 | viodev->cmo.entitled -= tmp; | ||
246 | reserve_freed -= tmp; | ||
247 | spare_needed -= tmp; | ||
248 | balance = 1; | ||
249 | } | ||
250 | |||
251 | /* | ||
252 | * Increase the reserve pool until the desired allocation is met. | ||
253 | * Move an allocation freed from the excess pool into the reserve | ||
254 | * pool and schedule a balance operation. | ||
255 | */ | ||
256 | if (excess_freed && (vio_cmo.desired > vio_cmo.reserve.size)) { | ||
257 | tmp = min(excess_freed, (vio_cmo.desired - vio_cmo.reserve.size)); | ||
258 | |||
259 | vio_cmo.excess.size -= tmp; | ||
260 | vio_cmo.reserve.size += tmp; | ||
261 | excess_freed -= tmp; | ||
262 | balance = 1; | ||
263 | } | ||
264 | |||
265 | /* Return memory from the excess pool to that pool */ | ||
266 | if (excess_freed) | ||
267 | vio_cmo.excess.free += excess_freed; | ||
268 | |||
269 | if (balance) | ||
270 | schedule_delayed_work(&vio_cmo.balance_q, VIO_CMO_BALANCE_DELAY); | ||
271 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
272 | } | ||
273 | |||
274 | /** | ||
275 | * vio_cmo_entitlement_update - Manage system entitlement changes | ||
276 | * | ||
277 | * @new_entitlement: new system entitlement to attempt to accommodate | ||
278 | * | ||
279 | * Increases in entitlement will be used to fulfill the spare entitlement | ||
280 | * and the rest is given to the excess pool. Decreases, if they are | ||
281 | * possible, come from the excess pool and from unused device entitlement | ||
282 | * | ||
283 | * Returns: 0 on success, -ENOMEM when change can not be made | ||
284 | */ | ||
285 | int vio_cmo_entitlement_update(size_t new_entitlement) | ||
286 | { | ||
287 | struct vio_dev *viodev; | ||
288 | struct vio_cmo_dev_entry *dev_ent; | ||
289 | unsigned long flags; | ||
290 | size_t avail, delta, tmp; | ||
291 | |||
292 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
293 | |||
294 | /* Entitlement increases */ | ||
295 | if (new_entitlement > vio_cmo.entitled) { | ||
296 | delta = new_entitlement - vio_cmo.entitled; | ||
297 | |||
298 | /* Fulfill spare allocation */ | ||
299 | if (vio_cmo.spare < VIO_CMO_MIN_ENT) { | ||
300 | tmp = min(delta, (VIO_CMO_MIN_ENT - vio_cmo.spare)); | ||
301 | vio_cmo.spare += tmp; | ||
302 | vio_cmo.reserve.size += tmp; | ||
303 | delta -= tmp; | ||
304 | } | ||
305 | |||
306 | /* Remaining new allocation goes to the excess pool */ | ||
307 | vio_cmo.entitled += delta; | ||
308 | vio_cmo.excess.size += delta; | ||
309 | vio_cmo.excess.free += delta; | ||
310 | |||
311 | goto out; | ||
312 | } | ||
313 | |||
314 | /* Entitlement decreases */ | ||
315 | delta = vio_cmo.entitled - new_entitlement; | ||
316 | avail = vio_cmo.excess.free; | ||
317 | |||
318 | /* | ||
319 | * Need to check how much unused entitlement each device can | ||
320 | * sacrifice to fulfill entitlement change. | ||
321 | */ | ||
322 | list_for_each_entry(dev_ent, &vio_cmo.device_list, list) { | ||
323 | if (avail >= delta) | ||
324 | break; | ||
325 | |||
326 | viodev = dev_ent->viodev; | ||
327 | if ((viodev->cmo.entitled > viodev->cmo.allocated) && | ||
328 | (viodev->cmo.entitled > VIO_CMO_MIN_ENT)) | ||
329 | avail += viodev->cmo.entitled - | ||
330 | max_t(size_t, viodev->cmo.allocated, | ||
331 | VIO_CMO_MIN_ENT); | ||
332 | } | ||
333 | |||
334 | if (delta <= avail) { | ||
335 | vio_cmo.entitled -= delta; | ||
336 | |||
337 | /* Take entitlement from the excess pool first */ | ||
338 | tmp = min(vio_cmo.excess.free, delta); | ||
339 | vio_cmo.excess.size -= tmp; | ||
340 | vio_cmo.excess.free -= tmp; | ||
341 | delta -= tmp; | ||
342 | |||
343 | /* | ||
344 | * Remove all but VIO_CMO_MIN_ENT bytes from devices | ||
345 | * until entitlement change is served | ||
346 | */ | ||
347 | list_for_each_entry(dev_ent, &vio_cmo.device_list, list) { | ||
348 | if (!delta) | ||
349 | break; | ||
350 | |||
351 | viodev = dev_ent->viodev; | ||
352 | tmp = 0; | ||
353 | if ((viodev->cmo.entitled > viodev->cmo.allocated) && | ||
354 | (viodev->cmo.entitled > VIO_CMO_MIN_ENT)) | ||
355 | tmp = viodev->cmo.entitled - | ||
356 | max_t(size_t, viodev->cmo.allocated, | ||
357 | VIO_CMO_MIN_ENT); | ||
358 | viodev->cmo.entitled -= min(tmp, delta); | ||
359 | delta -= min(tmp, delta); | ||
360 | } | ||
361 | } else { | ||
362 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
363 | return -ENOMEM; | ||
364 | } | ||
365 | |||
366 | out: | ||
367 | schedule_delayed_work(&vio_cmo.balance_q, 0); | ||
368 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
369 | return 0; | ||
370 | } | ||
371 | |||
372 | /** | ||
373 | * vio_cmo_balance - Balance entitlement among devices | ||
374 | * | ||
375 | * @work: work queue structure for this operation | ||
376 | * | ||
377 | * Any system entitlement above the minimum needed for devices, or | ||
378 | * already allocated to devices, can be distributed to the devices. | ||
379 | * The list of devices is iterated through to recalculate the desired | ||
380 | * entitlement level and to determine how much entitlement above the | ||
381 | * minimum entitlement is allocated to devices. | ||
382 | * | ||
383 | * Small chunks of the available entitlement are given to devices until | ||
384 | * their requirements are fulfilled or there is no entitlement left to give. | ||
385 | * Upon completion sizes of the reserve and excess pools are calculated. | ||
386 | * | ||
387 | * The system minimum entitlement level is also recalculated here. | ||
388 | * Entitlement will be reserved for devices even after vio_bus_remove to | ||
389 | * accommodate reloading the driver. The OF tree is walked to count the | ||
390 | * number of devices present and this will remove entitlement for devices | ||
391 | * that have actually left the system after having vio_bus_remove called. | ||
392 | */ | ||
393 | static void vio_cmo_balance(struct work_struct *work) | ||
394 | { | ||
395 | struct vio_cmo *cmo; | ||
396 | struct vio_dev *viodev; | ||
397 | struct vio_cmo_dev_entry *dev_ent; | ||
398 | unsigned long flags; | ||
399 | size_t avail = 0, level, chunk, need; | ||
400 | int devcount = 0, fulfilled; | ||
401 | |||
402 | cmo = container_of(work, struct vio_cmo, balance_q.work); | ||
403 | |||
404 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
405 | |||
406 | /* Calculate minimum entitlement and fulfill spare */ | ||
407 | cmo->min = vio_cmo_num_OF_devs() * VIO_CMO_MIN_ENT; | ||
408 | BUG_ON(cmo->min > cmo->entitled); | ||
409 | cmo->spare = min_t(size_t, VIO_CMO_MIN_ENT, (cmo->entitled - cmo->min)); | ||
410 | cmo->min += cmo->spare; | ||
411 | cmo->desired = cmo->min; | ||
412 | |||
413 | /* | ||
414 | * Determine how much entitlement is available and reset device | ||
415 | * entitlements | ||
416 | */ | ||
417 | avail = cmo->entitled - cmo->spare; | ||
418 | list_for_each_entry(dev_ent, &vio_cmo.device_list, list) { | ||
419 | viodev = dev_ent->viodev; | ||
420 | devcount++; | ||
421 | viodev->cmo.entitled = VIO_CMO_MIN_ENT; | ||
422 | cmo->desired += (viodev->cmo.desired - VIO_CMO_MIN_ENT); | ||
423 | avail -= max_t(size_t, viodev->cmo.allocated, VIO_CMO_MIN_ENT); | ||
424 | } | ||
425 | |||
426 | /* | ||
427 | * Having provided each device with the minimum entitlement, loop | ||
428 | * over the devices portioning out the remaining entitlement | ||
429 | * until there is nothing left. | ||
430 | */ | ||
431 | level = VIO_CMO_MIN_ENT; | ||
432 | while (avail) { | ||
433 | fulfilled = 0; | ||
434 | list_for_each_entry(dev_ent, &vio_cmo.device_list, list) { | ||
435 | viodev = dev_ent->viodev; | ||
436 | |||
437 | if (viodev->cmo.desired <= level) { | ||
438 | fulfilled++; | ||
439 | continue; | ||
440 | } | ||
441 | |||
442 | /* | ||
443 | * Give the device up to VIO_CMO_BALANCE_CHUNK | ||
444 | * bytes of entitlement, but do not exceed the | ||
445 | * desired level of entitlement for the device. | ||
446 | */ | ||
447 | chunk = min_t(size_t, avail, VIO_CMO_BALANCE_CHUNK); | ||
448 | chunk = min(chunk, (viodev->cmo.desired - | ||
449 | viodev->cmo.entitled)); | ||
450 | viodev->cmo.entitled += chunk; | ||
451 | |||
452 | /* | ||
453 | * If the memory for this entitlement increase was | ||
454 | * already allocated to the device it does not come | ||
455 | * from the available pool being portioned out. | ||
456 | */ | ||
457 | need = max(viodev->cmo.allocated, viodev->cmo.entitled)- | ||
458 | max(viodev->cmo.allocated, level); | ||
459 | avail -= need; | ||
460 | |||
461 | } | ||
462 | if (fulfilled == devcount) | ||
463 | break; | ||
464 | level += VIO_CMO_BALANCE_CHUNK; | ||
465 | } | ||
466 | |||
467 | /* Calculate new reserve and excess pool sizes */ | ||
468 | cmo->reserve.size = cmo->min; | ||
469 | cmo->excess.free = 0; | ||
470 | cmo->excess.size = 0; | ||
471 | need = 0; | ||
472 | list_for_each_entry(dev_ent, &vio_cmo.device_list, list) { | ||
473 | viodev = dev_ent->viodev; | ||
474 | /* Calculated reserve size above the minimum entitlement */ | ||
475 | if (viodev->cmo.entitled) | ||
476 | cmo->reserve.size += (viodev->cmo.entitled - | ||
477 | VIO_CMO_MIN_ENT); | ||
478 | /* Calculated used excess entitlement */ | ||
479 | if (viodev->cmo.allocated > viodev->cmo.entitled) | ||
480 | need += viodev->cmo.allocated - viodev->cmo.entitled; | ||
481 | } | ||
482 | cmo->excess.size = cmo->entitled - cmo->reserve.size; | ||
483 | cmo->excess.free = cmo->excess.size - need; | ||
484 | |||
485 | cancel_delayed_work(container_of(work, struct delayed_work, work)); | ||
486 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
487 | } | ||
488 | |||
489 | static void *vio_dma_iommu_alloc_coherent(struct device *dev, size_t size, | ||
490 | dma_addr_t *dma_handle, gfp_t flag) | ||
491 | { | ||
492 | struct vio_dev *viodev = to_vio_dev(dev); | ||
493 | void *ret; | ||
494 | |||
495 | if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE))) { | ||
496 | atomic_inc(&viodev->cmo.allocs_failed); | ||
497 | return NULL; | ||
498 | } | ||
499 | |||
500 | ret = dma_iommu_ops.alloc_coherent(dev, size, dma_handle, flag); | ||
501 | if (unlikely(ret == NULL)) { | ||
502 | vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE)); | ||
503 | atomic_inc(&viodev->cmo.allocs_failed); | ||
504 | } | ||
505 | |||
506 | return ret; | ||
507 | } | ||
508 | |||
509 | static void vio_dma_iommu_free_coherent(struct device *dev, size_t size, | ||
510 | void *vaddr, dma_addr_t dma_handle) | ||
511 | { | ||
512 | struct vio_dev *viodev = to_vio_dev(dev); | ||
513 | |||
514 | dma_iommu_ops.free_coherent(dev, size, vaddr, dma_handle); | ||
515 | |||
516 | vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE)); | ||
517 | } | ||
518 | |||
519 | static dma_addr_t vio_dma_iommu_map_single(struct device *dev, void *vaddr, | ||
520 | size_t size, | ||
521 | enum dma_data_direction direction, | ||
522 | struct dma_attrs *attrs) | ||
523 | { | ||
524 | struct vio_dev *viodev = to_vio_dev(dev); | ||
525 | dma_addr_t ret = DMA_ERROR_CODE; | ||
526 | |||
527 | if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE))) { | ||
528 | atomic_inc(&viodev->cmo.allocs_failed); | ||
529 | return ret; | ||
530 | } | ||
531 | |||
532 | ret = dma_iommu_ops.map_single(dev, vaddr, size, direction, attrs); | ||
533 | if (unlikely(dma_mapping_error(ret))) { | ||
534 | vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE)); | ||
535 | atomic_inc(&viodev->cmo.allocs_failed); | ||
536 | } | ||
537 | |||
538 | return ret; | ||
539 | } | ||
540 | |||
541 | static void vio_dma_iommu_unmap_single(struct device *dev, | ||
542 | dma_addr_t dma_handle, size_t size, | ||
543 | enum dma_data_direction direction, | ||
544 | struct dma_attrs *attrs) | ||
545 | { | ||
546 | struct vio_dev *viodev = to_vio_dev(dev); | ||
547 | |||
548 | dma_iommu_ops.unmap_single(dev, dma_handle, size, direction, attrs); | ||
549 | |||
550 | vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE)); | ||
551 | } | ||
552 | |||
553 | static int vio_dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, | ||
554 | int nelems, enum dma_data_direction direction, | ||
555 | struct dma_attrs *attrs) | ||
556 | { | ||
557 | struct vio_dev *viodev = to_vio_dev(dev); | ||
558 | struct scatterlist *sgl; | ||
559 | int ret, count = 0; | ||
560 | size_t alloc_size = 0; | ||
561 | |||
562 | for (sgl = sglist; count < nelems; count++, sgl++) | ||
563 | alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE); | ||
564 | |||
565 | if (vio_cmo_alloc(viodev, alloc_size)) { | ||
566 | atomic_inc(&viodev->cmo.allocs_failed); | ||
567 | return 0; | ||
568 | } | ||
569 | |||
570 | ret = dma_iommu_ops.map_sg(dev, sglist, nelems, direction, attrs); | ||
571 | |||
572 | if (unlikely(!ret)) { | ||
573 | vio_cmo_dealloc(viodev, alloc_size); | ||
574 | atomic_inc(&viodev->cmo.allocs_failed); | ||
575 | } | ||
576 | |||
577 | for (sgl = sglist, count = 0; count < ret; count++, sgl++) | ||
578 | alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE); | ||
579 | if (alloc_size) | ||
580 | vio_cmo_dealloc(viodev, alloc_size); | ||
581 | |||
582 | return ret; | ||
583 | } | ||
584 | |||
585 | static void vio_dma_iommu_unmap_sg(struct device *dev, | ||
586 | struct scatterlist *sglist, int nelems, | ||
587 | enum dma_data_direction direction, | ||
588 | struct dma_attrs *attrs) | ||
589 | { | ||
590 | struct vio_dev *viodev = to_vio_dev(dev); | ||
591 | struct scatterlist *sgl; | ||
592 | size_t alloc_size = 0; | ||
593 | int count = 0; | ||
594 | |||
595 | for (sgl = sglist; count < nelems; count++, sgl++) | ||
596 | alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE); | ||
597 | |||
598 | dma_iommu_ops.unmap_sg(dev, sglist, nelems, direction, attrs); | ||
599 | |||
600 | vio_cmo_dealloc(viodev, alloc_size); | ||
601 | } | ||
602 | |||
603 | struct dma_mapping_ops vio_dma_mapping_ops = { | ||
604 | .alloc_coherent = vio_dma_iommu_alloc_coherent, | ||
605 | .free_coherent = vio_dma_iommu_free_coherent, | ||
606 | .map_single = vio_dma_iommu_map_single, | ||
607 | .unmap_single = vio_dma_iommu_unmap_single, | ||
608 | .map_sg = vio_dma_iommu_map_sg, | ||
609 | .unmap_sg = vio_dma_iommu_unmap_sg, | ||
610 | }; | ||
611 | |||
612 | /** | ||
613 | * vio_cmo_set_dev_desired - Set desired entitlement for a device | ||
614 | * | ||
615 | * @viodev: struct vio_dev for device to alter | ||
616 | * @new_desired: new desired entitlement level in bytes | ||
617 | * | ||
618 | * For use by devices to request a change to their entitlement at runtime or | ||
619 | * through sysfs. The desired entitlement level is changed and a balancing | ||
620 | * of system resources is scheduled to run in the future. | ||
621 | */ | ||
622 | void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) | ||
623 | { | ||
624 | unsigned long flags; | ||
625 | struct vio_cmo_dev_entry *dev_ent; | ||
626 | int found = 0; | ||
627 | |||
628 | if (!firmware_has_feature(FW_FEATURE_CMO)) | ||
629 | return; | ||
630 | |||
631 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
632 | if (desired < VIO_CMO_MIN_ENT) | ||
633 | desired = VIO_CMO_MIN_ENT; | ||
634 | |||
635 | /* | ||
636 | * Changes will not be made for devices not in the device list. | ||
637 | * If it is not in the device list, then no driver is loaded | ||
638 | * for the device and it can not receive entitlement. | ||
639 | */ | ||
640 | list_for_each_entry(dev_ent, &vio_cmo.device_list, list) | ||
641 | if (viodev == dev_ent->viodev) { | ||
642 | found = 1; | ||
643 | break; | ||
644 | } | ||
645 | if (!found) | ||
646 | return; | ||
647 | |||
648 | /* Increase/decrease in desired device entitlement */ | ||
649 | if (desired >= viodev->cmo.desired) { | ||
650 | /* Just bump the bus and device values prior to a balance*/ | ||
651 | vio_cmo.desired += desired - viodev->cmo.desired; | ||
652 | viodev->cmo.desired = desired; | ||
653 | } else { | ||
654 | /* Decrease bus and device values for desired entitlement */ | ||
655 | vio_cmo.desired -= viodev->cmo.desired - desired; | ||
656 | viodev->cmo.desired = desired; | ||
657 | /* | ||
658 | * If less entitlement is desired than current entitlement, move | ||
659 | * any reserve memory in the change region to the excess pool. | ||
660 | */ | ||
661 | if (viodev->cmo.entitled > desired) { | ||
662 | vio_cmo.reserve.size -= viodev->cmo.entitled - desired; | ||
663 | vio_cmo.excess.size += viodev->cmo.entitled - desired; | ||
664 | /* | ||
665 | * If entitlement moving from the reserve pool to the | ||
666 | * excess pool is currently unused, add to the excess | ||
667 | * free counter. | ||
668 | */ | ||
669 | if (viodev->cmo.allocated < viodev->cmo.entitled) | ||
670 | vio_cmo.excess.free += viodev->cmo.entitled - | ||
671 | max(viodev->cmo.allocated, desired); | ||
672 | viodev->cmo.entitled = desired; | ||
673 | } | ||
674 | } | ||
675 | schedule_delayed_work(&vio_cmo.balance_q, 0); | ||
676 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
677 | } | ||
678 | |||
679 | /** | ||
680 | * vio_cmo_bus_probe - Handle CMO specific bus probe activities | ||
681 | * | ||
682 | * @viodev - Pointer to struct vio_dev for device | ||
683 | * | ||
684 | * Determine the devices IO memory entitlement needs, attempting | ||
685 | * to satisfy the system minimum entitlement at first and scheduling | ||
686 | * a balance operation to take care of the rest at a later time. | ||
687 | * | ||
688 | * Returns: 0 on success, -EINVAL when device doesn't support CMO, and | ||
689 | * -ENOMEM when entitlement is not available for device or | ||
690 | * device entry. | ||
691 | * | ||
692 | */ | ||
693 | static int vio_cmo_bus_probe(struct vio_dev *viodev) | ||
694 | { | ||
695 | struct vio_cmo_dev_entry *dev_ent; | ||
696 | struct device *dev = &viodev->dev; | ||
697 | struct vio_driver *viodrv = to_vio_driver(dev->driver); | ||
698 | unsigned long flags; | ||
699 | size_t size; | ||
700 | |||
701 | /* | ||
702 | * Check to see that device has a DMA window and configure | ||
703 | * entitlement for the device. | ||
704 | */ | ||
705 | if (of_get_property(viodev->dev.archdata.of_node, | ||
706 | "ibm,my-dma-window", NULL)) { | ||
707 | /* Check that the driver is CMO enabled and get desired DMA */ | ||
708 | if (!viodrv->get_desired_dma) { | ||
709 | dev_err(dev, "%s: device driver does not support CMO\n", | ||
710 | __func__); | ||
711 | return -EINVAL; | ||
712 | } | ||
713 | |||
714 | viodev->cmo.desired = IOMMU_PAGE_ALIGN(viodrv->get_desired_dma(viodev)); | ||
715 | if (viodev->cmo.desired < VIO_CMO_MIN_ENT) | ||
716 | viodev->cmo.desired = VIO_CMO_MIN_ENT; | ||
717 | size = VIO_CMO_MIN_ENT; | ||
718 | |||
719 | dev_ent = kmalloc(sizeof(struct vio_cmo_dev_entry), | ||
720 | GFP_KERNEL); | ||
721 | if (!dev_ent) | ||
722 | return -ENOMEM; | ||
723 | |||
724 | dev_ent->viodev = viodev; | ||
725 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
726 | list_add(&dev_ent->list, &vio_cmo.device_list); | ||
727 | } else { | ||
728 | viodev->cmo.desired = 0; | ||
729 | size = 0; | ||
730 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
731 | } | ||
732 | |||
733 | /* | ||
734 | * If the needs for vio_cmo.min have not changed since they | ||
735 | * were last set, the number of devices in the OF tree has | ||
736 | * been constant and the IO memory for this is already in | ||
737 | * the reserve pool. | ||
738 | */ | ||
739 | if (vio_cmo.min == ((vio_cmo_num_OF_devs() + 1) * | ||
740 | VIO_CMO_MIN_ENT)) { | ||
741 | /* Updated desired entitlement if device requires it */ | ||
742 | if (size) | ||
743 | vio_cmo.desired += (viodev->cmo.desired - | ||
744 | VIO_CMO_MIN_ENT); | ||
745 | } else { | ||
746 | size_t tmp; | ||
747 | |||
748 | tmp = vio_cmo.spare + vio_cmo.excess.free; | ||
749 | if (tmp < size) { | ||
750 | dev_err(dev, "%s: insufficient free " | ||
751 | "entitlement to add device. " | ||
752 | "Need %lu, have %lu\n", __func__, | ||
753 | size, (vio_cmo.spare + tmp)); | ||
754 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
755 | return -ENOMEM; | ||
756 | } | ||
757 | |||
758 | /* Use excess pool first to fulfill request */ | ||
759 | tmp = min(size, vio_cmo.excess.free); | ||
760 | vio_cmo.excess.free -= tmp; | ||
761 | vio_cmo.excess.size -= tmp; | ||
762 | vio_cmo.reserve.size += tmp; | ||
763 | |||
764 | /* Use spare if excess pool was insufficient */ | ||
765 | vio_cmo.spare -= size - tmp; | ||
766 | |||
767 | /* Update bus accounting */ | ||
768 | vio_cmo.min += size; | ||
769 | vio_cmo.desired += viodev->cmo.desired; | ||
770 | } | ||
771 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
772 | return 0; | ||
773 | } | ||
774 | |||
775 | /** | ||
776 | * vio_cmo_bus_remove - Handle CMO specific bus removal activities | ||
777 | * | ||
778 | * @viodev - Pointer to struct vio_dev for device | ||
779 | * | ||
780 | * Remove the device from the cmo device list. The minimum entitlement | ||
781 | * will be reserved for the device as long as it is in the system. The | ||
782 | * rest of the entitlement the device had been allocated will be returned | ||
783 | * to the system. | ||
784 | */ | ||
785 | static void vio_cmo_bus_remove(struct vio_dev *viodev) | ||
786 | { | ||
787 | struct vio_cmo_dev_entry *dev_ent; | ||
788 | unsigned long flags; | ||
789 | size_t tmp; | ||
790 | |||
791 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
792 | if (viodev->cmo.allocated) { | ||
793 | dev_err(&viodev->dev, "%s: device had %lu bytes of IO " | ||
794 | "allocated after remove operation.\n", | ||
795 | __func__, viodev->cmo.allocated); | ||
796 | BUG(); | ||
797 | } | ||
798 | |||
799 | /* | ||
800 | * Remove the device from the device list being maintained for | ||
801 | * CMO enabled devices. | ||
802 | */ | ||
803 | list_for_each_entry(dev_ent, &vio_cmo.device_list, list) | ||
804 | if (viodev == dev_ent->viodev) { | ||
805 | list_del(&dev_ent->list); | ||
806 | kfree(dev_ent); | ||
807 | break; | ||
808 | } | ||
809 | |||
810 | /* | ||
811 | * Devices may not require any entitlement and they do not need | ||
812 | * to be processed. Otherwise, return the device's entitlement | ||
813 | * back to the pools. | ||
814 | */ | ||
815 | if (viodev->cmo.entitled) { | ||
816 | /* | ||
817 | * This device has not yet left the OF tree, it's | ||
818 | * minimum entitlement remains in vio_cmo.min and | ||
819 | * vio_cmo.desired | ||
820 | */ | ||
821 | vio_cmo.desired -= (viodev->cmo.desired - VIO_CMO_MIN_ENT); | ||
822 | |||
823 | /* | ||
824 | * Save min allocation for device in reserve as long | ||
825 | * as it exists in OF tree as determined by later | ||
826 | * balance operation | ||
827 | */ | ||
828 | viodev->cmo.entitled -= VIO_CMO_MIN_ENT; | ||
829 | |||
830 | /* Replenish spare from freed reserve pool */ | ||
831 | if (viodev->cmo.entitled && (vio_cmo.spare < VIO_CMO_MIN_ENT)) { | ||
832 | tmp = min(viodev->cmo.entitled, (VIO_CMO_MIN_ENT - | ||
833 | vio_cmo.spare)); | ||
834 | vio_cmo.spare += tmp; | ||
835 | viodev->cmo.entitled -= tmp; | ||
836 | } | ||
837 | |||
838 | /* Remaining reserve goes to excess pool */ | ||
839 | vio_cmo.excess.size += viodev->cmo.entitled; | ||
840 | vio_cmo.excess.free += viodev->cmo.entitled; | ||
841 | vio_cmo.reserve.size -= viodev->cmo.entitled; | ||
842 | |||
843 | /* | ||
844 | * Until the device is removed it will keep a | ||
845 | * minimum entitlement; this will guarantee that | ||
846 | * a module unload/load will result in a success. | ||
847 | */ | ||
848 | viodev->cmo.entitled = VIO_CMO_MIN_ENT; | ||
849 | viodev->cmo.desired = VIO_CMO_MIN_ENT; | ||
850 | atomic_set(&viodev->cmo.allocs_failed, 0); | ||
851 | } | ||
852 | |||
853 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
854 | } | ||
855 | |||
856 | static void vio_cmo_set_dma_ops(struct vio_dev *viodev) | ||
857 | { | ||
858 | vio_dma_mapping_ops.dma_supported = dma_iommu_ops.dma_supported; | ||
859 | viodev->dev.archdata.dma_ops = &vio_dma_mapping_ops; | ||
860 | } | ||
861 | |||
862 | /** | ||
863 | * vio_cmo_bus_init - CMO entitlement initialization at bus init time | ||
864 | * | ||
865 | * Set up the reserve and excess entitlement pools based on available | ||
866 | * system entitlement and the number of devices in the OF tree that | ||
867 | * require entitlement in the reserve pool. | ||
868 | */ | ||
869 | static void vio_cmo_bus_init(void) | ||
870 | { | ||
871 | struct hvcall_mpp_data mpp_data; | ||
872 | int err; | ||
873 | |||
874 | memset(&vio_cmo, 0, sizeof(struct vio_cmo)); | ||
875 | spin_lock_init(&vio_cmo.lock); | ||
876 | INIT_LIST_HEAD(&vio_cmo.device_list); | ||
877 | INIT_DELAYED_WORK(&vio_cmo.balance_q, vio_cmo_balance); | ||
878 | |||
879 | /* Get current system entitlement */ | ||
880 | err = h_get_mpp(&mpp_data); | ||
881 | |||
882 | /* | ||
883 | * On failure, continue with entitlement set to 0, will panic() | ||
884 | * later when spare is reserved. | ||
885 | */ | ||
886 | if (err != H_SUCCESS) { | ||
887 | printk(KERN_ERR "%s: unable to determine system IO "\ | ||
888 | "entitlement. (%d)\n", __func__, err); | ||
889 | vio_cmo.entitled = 0; | ||
890 | } else { | ||
891 | vio_cmo.entitled = mpp_data.entitled_mem; | ||
892 | } | ||
893 | |||
894 | /* Set reservation and check against entitlement */ | ||
895 | vio_cmo.spare = VIO_CMO_MIN_ENT; | ||
896 | vio_cmo.reserve.size = vio_cmo.spare; | ||
897 | vio_cmo.reserve.size += (vio_cmo_num_OF_devs() * | ||
898 | VIO_CMO_MIN_ENT); | ||
899 | if (vio_cmo.reserve.size > vio_cmo.entitled) { | ||
900 | printk(KERN_ERR "%s: insufficient system entitlement\n", | ||
901 | __func__); | ||
902 | panic("%s: Insufficient system entitlement", __func__); | ||
903 | } | ||
904 | |||
905 | /* Set the remaining accounting variables */ | ||
906 | vio_cmo.excess.size = vio_cmo.entitled - vio_cmo.reserve.size; | ||
907 | vio_cmo.excess.free = vio_cmo.excess.size; | ||
908 | vio_cmo.min = vio_cmo.reserve.size; | ||
909 | vio_cmo.desired = vio_cmo.reserve.size; | ||
910 | } | ||
911 | |||
912 | /* sysfs device functions and data structures for CMO */ | ||
913 | |||
914 | #define viodev_cmo_rd_attr(name) \ | ||
915 | static ssize_t viodev_cmo_##name##_show(struct device *dev, \ | ||
916 | struct device_attribute *attr, \ | ||
917 | char *buf) \ | ||
918 | { \ | ||
919 | return sprintf(buf, "%lu\n", to_vio_dev(dev)->cmo.name); \ | ||
920 | } | ||
921 | |||
922 | static ssize_t viodev_cmo_allocs_failed_show(struct device *dev, | ||
923 | struct device_attribute *attr, char *buf) | ||
924 | { | ||
925 | struct vio_dev *viodev = to_vio_dev(dev); | ||
926 | return sprintf(buf, "%d\n", atomic_read(&viodev->cmo.allocs_failed)); | ||
927 | } | ||
928 | |||
929 | static ssize_t viodev_cmo_allocs_failed_reset(struct device *dev, | ||
930 | struct device_attribute *attr, const char *buf, size_t count) | ||
931 | { | ||
932 | struct vio_dev *viodev = to_vio_dev(dev); | ||
933 | atomic_set(&viodev->cmo.allocs_failed, 0); | ||
934 | return count; | ||
935 | } | ||
936 | |||
937 | static ssize_t viodev_cmo_desired_set(struct device *dev, | ||
938 | struct device_attribute *attr, const char *buf, size_t count) | ||
939 | { | ||
940 | struct vio_dev *viodev = to_vio_dev(dev); | ||
941 | size_t new_desired; | ||
942 | int ret; | ||
943 | |||
944 | ret = strict_strtoul(buf, 10, &new_desired); | ||
945 | if (ret) | ||
946 | return ret; | ||
947 | |||
948 | vio_cmo_set_dev_desired(viodev, new_desired); | ||
949 | return count; | ||
950 | } | ||
951 | |||
952 | viodev_cmo_rd_attr(desired); | ||
953 | viodev_cmo_rd_attr(entitled); | ||
954 | viodev_cmo_rd_attr(allocated); | ||
955 | |||
956 | static ssize_t name_show(struct device *, struct device_attribute *, char *); | ||
957 | static ssize_t devspec_show(struct device *, struct device_attribute *, char *); | ||
958 | static struct device_attribute vio_cmo_dev_attrs[] = { | ||
959 | __ATTR_RO(name), | ||
960 | __ATTR_RO(devspec), | ||
961 | __ATTR(cmo_desired, S_IWUSR|S_IRUSR|S_IWGRP|S_IRGRP|S_IROTH, | ||
962 | viodev_cmo_desired_show, viodev_cmo_desired_set), | ||
963 | __ATTR(cmo_entitled, S_IRUGO, viodev_cmo_entitled_show, NULL), | ||
964 | __ATTR(cmo_allocated, S_IRUGO, viodev_cmo_allocated_show, NULL), | ||
965 | __ATTR(cmo_allocs_failed, S_IWUSR|S_IRUSR|S_IWGRP|S_IRGRP|S_IROTH, | ||
966 | viodev_cmo_allocs_failed_show, viodev_cmo_allocs_failed_reset), | ||
967 | __ATTR_NULL | ||
968 | }; | ||
969 | |||
970 | /* sysfs bus functions and data structures for CMO */ | ||
971 | |||
972 | #define viobus_cmo_rd_attr(name) \ | ||
973 | static ssize_t \ | ||
974 | viobus_cmo_##name##_show(struct bus_type *bt, char *buf) \ | ||
975 | { \ | ||
976 | return sprintf(buf, "%lu\n", vio_cmo.name); \ | ||
977 | } | ||
978 | |||
979 | #define viobus_cmo_pool_rd_attr(name, var) \ | ||
980 | static ssize_t \ | ||
981 | viobus_cmo_##name##_pool_show_##var(struct bus_type *bt, char *buf) \ | ||
982 | { \ | ||
983 | return sprintf(buf, "%lu\n", vio_cmo.name.var); \ | ||
984 | } | ||
985 | |||
986 | static ssize_t viobus_cmo_high_reset(struct bus_type *bt, const char *buf, | ||
987 | size_t count) | ||
988 | { | ||
989 | unsigned long flags; | ||
990 | |||
991 | spin_lock_irqsave(&vio_cmo.lock, flags); | ||
992 | vio_cmo.high = vio_cmo.curr; | ||
993 | spin_unlock_irqrestore(&vio_cmo.lock, flags); | ||
994 | |||
995 | return count; | ||
996 | } | ||
997 | |||
998 | viobus_cmo_rd_attr(entitled); | ||
999 | viobus_cmo_pool_rd_attr(reserve, size); | ||
1000 | viobus_cmo_pool_rd_attr(excess, size); | ||
1001 | viobus_cmo_pool_rd_attr(excess, free); | ||
1002 | viobus_cmo_rd_attr(spare); | ||
1003 | viobus_cmo_rd_attr(min); | ||
1004 | viobus_cmo_rd_attr(desired); | ||
1005 | viobus_cmo_rd_attr(curr); | ||
1006 | viobus_cmo_rd_attr(high); | ||
1007 | |||
1008 | static struct bus_attribute vio_cmo_bus_attrs[] = { | ||
1009 | __ATTR(cmo_entitled, S_IRUGO, viobus_cmo_entitled_show, NULL), | ||
1010 | __ATTR(cmo_reserve_size, S_IRUGO, viobus_cmo_reserve_pool_show_size, NULL), | ||
1011 | __ATTR(cmo_excess_size, S_IRUGO, viobus_cmo_excess_pool_show_size, NULL), | ||
1012 | __ATTR(cmo_excess_free, S_IRUGO, viobus_cmo_excess_pool_show_free, NULL), | ||
1013 | __ATTR(cmo_spare, S_IRUGO, viobus_cmo_spare_show, NULL), | ||
1014 | __ATTR(cmo_min, S_IRUGO, viobus_cmo_min_show, NULL), | ||
1015 | __ATTR(cmo_desired, S_IRUGO, viobus_cmo_desired_show, NULL), | ||
1016 | __ATTR(cmo_curr, S_IRUGO, viobus_cmo_curr_show, NULL), | ||
1017 | __ATTR(cmo_high, S_IWUSR|S_IRUSR|S_IWGRP|S_IRGRP|S_IROTH, | ||
1018 | viobus_cmo_high_show, viobus_cmo_high_reset), | ||
1019 | __ATTR_NULL | ||
1020 | }; | ||
1021 | |||
1022 | static void vio_cmo_sysfs_init(void) | ||
1023 | { | ||
1024 | vio_bus_type.dev_attrs = vio_cmo_dev_attrs; | ||
1025 | vio_bus_type.bus_attrs = vio_cmo_bus_attrs; | ||
1026 | } | ||
1027 | #else /* CONFIG_PPC_SMLPAR */ | ||
1028 | /* Dummy functions for iSeries platform */ | ||
1029 | int vio_cmo_entitlement_update(size_t new_entitlement) { return 0; } | ||
1030 | void vio_cmo_set_dev_desired(struct vio_dev *viodev, size_t desired) {} | ||
1031 | static int vio_cmo_bus_probe(struct vio_dev *viodev) { return 0; } | ||
1032 | static void vio_cmo_bus_remove(struct vio_dev *viodev) {} | ||
1033 | static void vio_cmo_set_dma_ops(struct vio_dev *viodev) {} | ||
1034 | static void vio_cmo_bus_init() {} | ||
1035 | static void vio_cmo_sysfs_init() { } | ||
1036 | #endif /* CONFIG_PPC_SMLPAR */ | ||
1037 | EXPORT_SYMBOL(vio_cmo_entitlement_update); | ||
1038 | EXPORT_SYMBOL(vio_cmo_set_dev_desired); | ||
1039 | |||
49 | static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) | 1040 | static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) |
50 | { | 1041 | { |
51 | const unsigned char *dma_window; | 1042 | const unsigned char *dma_window; |
@@ -114,8 +1105,17 @@ static int vio_bus_probe(struct device *dev) | |||
114 | return error; | 1105 | return error; |
115 | 1106 | ||
116 | id = vio_match_device(viodrv->id_table, viodev); | 1107 | id = vio_match_device(viodrv->id_table, viodev); |
117 | if (id) | 1108 | if (id) { |
1109 | memset(&viodev->cmo, 0, sizeof(viodev->cmo)); | ||
1110 | if (firmware_has_feature(FW_FEATURE_CMO)) { | ||
1111 | error = vio_cmo_bus_probe(viodev); | ||
1112 | if (error) | ||
1113 | return error; | ||
1114 | } | ||
118 | error = viodrv->probe(viodev, id); | 1115 | error = viodrv->probe(viodev, id); |
1116 | if (error) | ||
1117 | vio_cmo_bus_remove(viodev); | ||
1118 | } | ||
119 | 1119 | ||
120 | return error; | 1120 | return error; |
121 | } | 1121 | } |
@@ -125,12 +1125,23 @@ static int vio_bus_remove(struct device *dev) | |||
125 | { | 1125 | { |
126 | struct vio_dev *viodev = to_vio_dev(dev); | 1126 | struct vio_dev *viodev = to_vio_dev(dev); |
127 | struct vio_driver *viodrv = to_vio_driver(dev->driver); | 1127 | struct vio_driver *viodrv = to_vio_driver(dev->driver); |
1128 | struct device *devptr; | ||
1129 | int ret = 1; | ||
1130 | |||
1131 | /* | ||
1132 | * Hold a reference to the device after the remove function is called | ||
1133 | * to allow for CMO accounting cleanup for the device. | ||
1134 | */ | ||
1135 | devptr = get_device(dev); | ||
128 | 1136 | ||
129 | if (viodrv->remove) | 1137 | if (viodrv->remove) |
130 | return viodrv->remove(viodev); | 1138 | ret = viodrv->remove(viodev); |
1139 | |||
1140 | if (!ret && firmware_has_feature(FW_FEATURE_CMO)) | ||
1141 | vio_cmo_bus_remove(viodev); | ||
131 | 1142 | ||
132 | /* driver can't remove */ | 1143 | put_device(devptr); |
133 | return 1; | 1144 | return ret; |
134 | } | 1145 | } |
135 | 1146 | ||
136 | /** | 1147 | /** |
@@ -215,7 +1226,11 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node) | |||
215 | viodev->unit_address = *unit_address; | 1226 | viodev->unit_address = *unit_address; |
216 | } | 1227 | } |
217 | viodev->dev.archdata.of_node = of_node_get(of_node); | 1228 | viodev->dev.archdata.of_node = of_node_get(of_node); |
218 | viodev->dev.archdata.dma_ops = &dma_iommu_ops; | 1229 | |
1230 | if (firmware_has_feature(FW_FEATURE_CMO)) | ||
1231 | vio_cmo_set_dma_ops(viodev); | ||
1232 | else | ||
1233 | viodev->dev.archdata.dma_ops = &dma_iommu_ops; | ||
219 | viodev->dev.archdata.dma_data = vio_build_iommu_table(viodev); | 1234 | viodev->dev.archdata.dma_data = vio_build_iommu_table(viodev); |
220 | viodev->dev.archdata.numa_node = of_node_to_nid(of_node); | 1235 | viodev->dev.archdata.numa_node = of_node_to_nid(of_node); |
221 | 1236 | ||
@@ -245,6 +1260,9 @@ static int __init vio_bus_init(void) | |||
245 | int err; | 1260 | int err; |
246 | struct device_node *node_vroot; | 1261 | struct device_node *node_vroot; |
247 | 1262 | ||
1263 | if (firmware_has_feature(FW_FEATURE_CMO)) | ||
1264 | vio_cmo_sysfs_init(); | ||
1265 | |||
248 | err = bus_register(&vio_bus_type); | 1266 | err = bus_register(&vio_bus_type); |
249 | if (err) { | 1267 | if (err) { |
250 | printk(KERN_ERR "failed to register VIO bus\n"); | 1268 | printk(KERN_ERR "failed to register VIO bus\n"); |
@@ -262,6 +1280,9 @@ static int __init vio_bus_init(void) | |||
262 | return err; | 1280 | return err; |
263 | } | 1281 | } |
264 | 1282 | ||
1283 | if (firmware_has_feature(FW_FEATURE_CMO)) | ||
1284 | vio_cmo_bus_init(); | ||
1285 | |||
265 | node_vroot = of_find_node_by_name(NULL, "vdevice"); | 1286 | node_vroot = of_find_node_by_name(NULL, "vdevice"); |
266 | if (node_vroot) { | 1287 | if (node_vroot) { |
267 | struct device_node *of_node; | 1288 | struct device_node *of_node; |
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 87a72c66ce27..4a8ce62fe112 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
@@ -9,6 +9,25 @@ | |||
9 | 9 | ||
10 | ENTRY(_stext) | 10 | ENTRY(_stext) |
11 | 11 | ||
12 | PHDRS { | ||
13 | kernel PT_LOAD FLAGS(7); /* RWX */ | ||
14 | notes PT_NOTE FLAGS(0); | ||
15 | dummy PT_NOTE FLAGS(0); | ||
16 | |||
17 | /* binutils < 2.18 has a bug that makes it misbehave when taking an | ||
18 | ELF file with all segments at load address 0 as input. This | ||
19 | happens when running "strip" on vmlinux, because of the AT() magic | ||
20 | in this linker script. People using GCC >= 4.2 won't run into | ||
21 | this problem, because the "build-id" support will put some data | ||
22 | into the "notes" segment (at a non-zero load address). | ||
23 | |||
24 | To work around this, we force some data into both the "dummy" | ||
25 | segment and the kernel segment, so the dummy segment will get a | ||
26 | non-zero load address. It's not enough to always create the | ||
27 | "notes" segment, since if nothing gets assigned to it, its load | ||
28 | address will be zero. */ | ||
29 | } | ||
30 | |||
12 | #ifdef CONFIG_PPC64 | 31 | #ifdef CONFIG_PPC64 |
13 | OUTPUT_ARCH(powerpc:common64) | 32 | OUTPUT_ARCH(powerpc:common64) |
14 | jiffies = jiffies_64; | 33 | jiffies = jiffies_64; |
@@ -50,7 +69,7 @@ SECTIONS | |||
50 | . = ALIGN(PAGE_SIZE); | 69 | . = ALIGN(PAGE_SIZE); |
51 | _etext = .; | 70 | _etext = .; |
52 | PROVIDE32 (etext = .); | 71 | PROVIDE32 (etext = .); |
53 | } | 72 | } :kernel |
54 | 73 | ||
55 | /* Read-only data */ | 74 | /* Read-only data */ |
56 | RODATA | 75 | RODATA |
@@ -62,7 +81,13 @@ SECTIONS | |||
62 | __stop___ex_table = .; | 81 | __stop___ex_table = .; |
63 | } | 82 | } |
64 | 83 | ||
65 | NOTES | 84 | NOTES :kernel :notes |
85 | |||
86 | /* The dummy segment contents for the bug workaround mentioned above | ||
87 | near PHDRS. */ | ||
88 | .dummy : AT(ADDR(.dummy) - LOAD_OFFSET) { | ||
89 | LONG(0xf177) | ||
90 | } :kernel :dummy | ||
66 | 91 | ||
67 | /* | 92 | /* |
68 | * Init sections discarded at runtime | 93 | * Init sections discarded at runtime |
@@ -74,7 +99,7 @@ SECTIONS | |||
74 | _sinittext = .; | 99 | _sinittext = .; |
75 | INIT_TEXT | 100 | INIT_TEXT |
76 | _einittext = .; | 101 | _einittext = .; |
77 | } | 102 | } :kernel |
78 | 103 | ||
79 | /* .exit.text is discarded at runtime, not link time, | 104 | /* .exit.text is discarded at runtime, not link time, |
80 | * to deal with references from __bug_table | 105 | * to deal with references from __bug_table |
diff --git a/arch/powerpc/lib/code-patching.c b/arch/powerpc/lib/code-patching.c index 0559fe086eb4..7c975d43e3f3 100644 --- a/arch/powerpc/lib/code-patching.c +++ b/arch/powerpc/lib/code-patching.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
11 | #include <linux/vmalloc.h> | 11 | #include <linux/vmalloc.h> |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/mm.h> | ||
13 | #include <asm/page.h> | 14 | #include <asm/page.h> |
14 | #include <asm/code-patching.h> | 15 | #include <asm/code-patching.h> |
15 | 16 | ||
diff --git a/arch/powerpc/lib/feature-fixups.c b/arch/powerpc/lib/feature-fixups.c index 4e43702b9813..8c5a03be31e0 100644 --- a/arch/powerpc/lib/feature-fixups.c +++ b/arch/powerpc/lib/feature-fixups.c | |||
@@ -99,7 +99,7 @@ void do_feature_fixups(unsigned long value, void *fixup_start, void *fixup_end) | |||
99 | 99 | ||
100 | for (; fcur < fend; fcur++) { | 100 | for (; fcur < fend; fcur++) { |
101 | if (patch_feature_section(value, fcur)) { | 101 | if (patch_feature_section(value, fcur)) { |
102 | __WARN(); | 102 | WARN_ON(1); |
103 | printk("Unable to patch feature section at %p - %p" \ | 103 | printk("Unable to patch feature section at %p - %p" \ |
104 | " with %p - %p\n", | 104 | " with %p - %p\n", |
105 | calc_addr(fcur, fcur->start_off), | 105 | calc_addr(fcur, fcur->start_off), |
diff --git a/arch/powerpc/lib/string.S b/arch/powerpc/lib/string.S index 49eb1f1a2bb4..64e2e499e32a 100644 --- a/arch/powerpc/lib/string.S +++ b/arch/powerpc/lib/string.S | |||
@@ -13,13 +13,7 @@ | |||
13 | #include <asm/ppc_asm.h> | 13 | #include <asm/ppc_asm.h> |
14 | 14 | ||
15 | .section __ex_table,"a" | 15 | .section __ex_table,"a" |
16 | #ifdef CONFIG_PPC64 | 16 | PPC_LONG_ALIGN |
17 | .align 3 | ||
18 | #define EXTBL .llong | ||
19 | #else | ||
20 | .align 2 | ||
21 | #define EXTBL .long | ||
22 | #endif | ||
23 | .text | 17 | .text |
24 | 18 | ||
25 | _GLOBAL(strcpy) | 19 | _GLOBAL(strcpy) |
@@ -160,9 +154,9 @@ _GLOBAL(__clear_user) | |||
160 | blr | 154 | blr |
161 | 155 | ||
162 | .section __ex_table,"a" | 156 | .section __ex_table,"a" |
163 | EXTBL 11b,90b | 157 | PPC_LONG 11b,90b |
164 | EXTBL 1b,91b | 158 | PPC_LONG 1b,91b |
165 | EXTBL 8b,92b | 159 | PPC_LONG 8b,92b |
166 | .text | 160 | .text |
167 | 161 | ||
168 | _GLOBAL(__strncpy_from_user) | 162 | _GLOBAL(__strncpy_from_user) |
@@ -183,7 +177,7 @@ _GLOBAL(__strncpy_from_user) | |||
183 | blr | 177 | blr |
184 | 178 | ||
185 | .section __ex_table,"a" | 179 | .section __ex_table,"a" |
186 | EXTBL 1b,99b | 180 | PPC_LONG 1b,99b |
187 | .text | 181 | .text |
188 | 182 | ||
189 | /* r3 = str, r4 = len (> 0), r5 = top (highest addr) */ | 183 | /* r3 = str, r4 = len (> 0), r5 = top (highest addr) */ |
@@ -208,4 +202,4 @@ _GLOBAL(__strnlen_user) | |||
208 | blr | 202 | blr |
209 | 203 | ||
210 | .section __ex_table,"a" | 204 | .section __ex_table,"a" |
211 | EXTBL 1b,99b | 205 | PPC_LONG 1b,99b |
diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 1707d00331fc..565b7a237c84 100644 --- a/arch/powerpc/mm/fault.c +++ b/arch/powerpc/mm/fault.c | |||
@@ -100,31 +100,6 @@ static int store_updates_sp(struct pt_regs *regs) | |||
100 | return 0; | 100 | return 0; |
101 | } | 101 | } |
102 | 102 | ||
103 | #if !(defined(CONFIG_4xx) || defined(CONFIG_BOOKE)) | ||
104 | static void do_dabr(struct pt_regs *regs, unsigned long address, | ||
105 | unsigned long error_code) | ||
106 | { | ||
107 | siginfo_t info; | ||
108 | |||
109 | if (notify_die(DIE_DABR_MATCH, "dabr_match", regs, error_code, | ||
110 | 11, SIGSEGV) == NOTIFY_STOP) | ||
111 | return; | ||
112 | |||
113 | if (debugger_dabr_match(regs)) | ||
114 | return; | ||
115 | |||
116 | /* Clear the DABR */ | ||
117 | set_dabr(0); | ||
118 | |||
119 | /* Deliver the signal to userspace */ | ||
120 | info.si_signo = SIGTRAP; | ||
121 | info.si_errno = 0; | ||
122 | info.si_code = TRAP_HWBKPT; | ||
123 | info.si_addr = (void __user *)address; | ||
124 | force_sig_info(SIGTRAP, &info, current); | ||
125 | } | ||
126 | #endif /* !(CONFIG_4xx || CONFIG_BOOKE)*/ | ||
127 | |||
128 | /* | 103 | /* |
129 | * For 600- and 800-family processors, the error_code parameter is DSISR | 104 | * For 600- and 800-family processors, the error_code parameter is DSISR |
130 | * for a data fault, SRR1 for an instruction fault. For 400-family processors | 105 | * for a data fault, SRR1 for an instruction fault. For 400-family processors |
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 8d3b58ebd38e..5ce5a4dcd008 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c | |||
@@ -68,6 +68,7 @@ | |||
68 | 68 | ||
69 | #define KB (1024) | 69 | #define KB (1024) |
70 | #define MB (1024*KB) | 70 | #define MB (1024*KB) |
71 | #define GB (1024L*MB) | ||
71 | 72 | ||
72 | /* | 73 | /* |
73 | * Note: pte --> Linux PTE | 74 | * Note: pte --> Linux PTE |
@@ -102,7 +103,6 @@ int mmu_kernel_ssize = MMU_SEGSIZE_256M; | |||
102 | int mmu_highuser_ssize = MMU_SEGSIZE_256M; | 103 | int mmu_highuser_ssize = MMU_SEGSIZE_256M; |
103 | u16 mmu_slb_size = 64; | 104 | u16 mmu_slb_size = 64; |
104 | #ifdef CONFIG_HUGETLB_PAGE | 105 | #ifdef CONFIG_HUGETLB_PAGE |
105 | int mmu_huge_psize = MMU_PAGE_16M; | ||
106 | unsigned int HPAGE_SHIFT; | 106 | unsigned int HPAGE_SHIFT; |
107 | #endif | 107 | #endif |
108 | #ifdef CONFIG_PPC_64K_PAGES | 108 | #ifdef CONFIG_PPC_64K_PAGES |
@@ -329,6 +329,44 @@ static int __init htab_dt_scan_page_sizes(unsigned long node, | |||
329 | return 0; | 329 | return 0; |
330 | } | 330 | } |
331 | 331 | ||
332 | /* Scan for 16G memory blocks that have been set aside for huge pages | ||
333 | * and reserve those blocks for 16G huge pages. | ||
334 | */ | ||
335 | static int __init htab_dt_scan_hugepage_blocks(unsigned long node, | ||
336 | const char *uname, int depth, | ||
337 | void *data) { | ||
338 | char *type = of_get_flat_dt_prop(node, "device_type", NULL); | ||
339 | unsigned long *addr_prop; | ||
340 | u32 *page_count_prop; | ||
341 | unsigned int expected_pages; | ||
342 | long unsigned int phys_addr; | ||
343 | long unsigned int block_size; | ||
344 | |||
345 | /* We are scanning "memory" nodes only */ | ||
346 | if (type == NULL || strcmp(type, "memory") != 0) | ||
347 | return 0; | ||
348 | |||
349 | /* This property is the log base 2 of the number of virtual pages that | ||
350 | * will represent this memory block. */ | ||
351 | page_count_prop = of_get_flat_dt_prop(node, "ibm,expected#pages", NULL); | ||
352 | if (page_count_prop == NULL) | ||
353 | return 0; | ||
354 | expected_pages = (1 << page_count_prop[0]); | ||
355 | addr_prop = of_get_flat_dt_prop(node, "reg", NULL); | ||
356 | if (addr_prop == NULL) | ||
357 | return 0; | ||
358 | phys_addr = addr_prop[0]; | ||
359 | block_size = addr_prop[1]; | ||
360 | if (block_size != (16 * GB)) | ||
361 | return 0; | ||
362 | printk(KERN_INFO "Huge page(16GB) memory: " | ||
363 | "addr = 0x%lX size = 0x%lX pages = %d\n", | ||
364 | phys_addr, block_size, expected_pages); | ||
365 | lmb_reserve(phys_addr, block_size * expected_pages); | ||
366 | add_gpage(phys_addr, block_size, expected_pages); | ||
367 | return 0; | ||
368 | } | ||
369 | |||
332 | static void __init htab_init_page_sizes(void) | 370 | static void __init htab_init_page_sizes(void) |
333 | { | 371 | { |
334 | int rc; | 372 | int rc; |
@@ -418,15 +456,18 @@ static void __init htab_init_page_sizes(void) | |||
418 | ); | 456 | ); |
419 | 457 | ||
420 | #ifdef CONFIG_HUGETLB_PAGE | 458 | #ifdef CONFIG_HUGETLB_PAGE |
421 | /* Init large page size. Currently, we pick 16M or 1M depending | 459 | /* Reserve 16G huge page memory sections for huge pages */ |
460 | of_scan_flat_dt(htab_dt_scan_hugepage_blocks, NULL); | ||
461 | |||
462 | /* Set default large page size. Currently, we pick 16M or 1M depending | ||
422 | * on what is available | 463 | * on what is available |
423 | */ | 464 | */ |
424 | if (mmu_psize_defs[MMU_PAGE_16M].shift) | 465 | if (mmu_psize_defs[MMU_PAGE_16M].shift) |
425 | set_huge_psize(MMU_PAGE_16M); | 466 | HPAGE_SHIFT = mmu_psize_defs[MMU_PAGE_16M].shift; |
426 | /* With 4k/4level pagetables, we can't (for now) cope with a | 467 | /* With 4k/4level pagetables, we can't (for now) cope with a |
427 | * huge page size < PMD_SIZE */ | 468 | * huge page size < PMD_SIZE */ |
428 | else if (mmu_psize_defs[MMU_PAGE_1M].shift) | 469 | else if (mmu_psize_defs[MMU_PAGE_1M].shift) |
429 | set_huge_psize(MMU_PAGE_1M); | 470 | HPAGE_SHIFT = mmu_psize_defs[MMU_PAGE_1M].shift; |
430 | #endif /* CONFIG_HUGETLB_PAGE */ | 471 | #endif /* CONFIG_HUGETLB_PAGE */ |
431 | } | 472 | } |
432 | 473 | ||
@@ -847,7 +888,7 @@ int hash_page(unsigned long ea, unsigned long access, unsigned long trap) | |||
847 | 888 | ||
848 | #ifdef CONFIG_HUGETLB_PAGE | 889 | #ifdef CONFIG_HUGETLB_PAGE |
849 | /* Handle hugepage regions */ | 890 | /* Handle hugepage regions */ |
850 | if (HPAGE_SHIFT && psize == mmu_huge_psize) { | 891 | if (HPAGE_SHIFT && mmu_huge_psizes[psize]) { |
851 | DBG_LOW(" -> huge page !\n"); | 892 | DBG_LOW(" -> huge page !\n"); |
852 | return hash_huge_page(mm, access, ea, vsid, local, trap); | 893 | return hash_huge_page(mm, access, ea, vsid, local, trap); |
853 | } | 894 | } |
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 0d12fba31bc5..fb42c4dd3217 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -24,21 +24,43 @@ | |||
24 | #include <asm/cputable.h> | 24 | #include <asm/cputable.h> |
25 | #include <asm/spu.h> | 25 | #include <asm/spu.h> |
26 | 26 | ||
27 | #define HPAGE_SHIFT_64K 16 | 27 | #define PAGE_SHIFT_64K 16 |
28 | #define HPAGE_SHIFT_16M 24 | 28 | #define PAGE_SHIFT_16M 24 |
29 | #define PAGE_SHIFT_16G 34 | ||
29 | 30 | ||
30 | #define NUM_LOW_AREAS (0x100000000UL >> SID_SHIFT) | 31 | #define NUM_LOW_AREAS (0x100000000UL >> SID_SHIFT) |
31 | #define NUM_HIGH_AREAS (PGTABLE_RANGE >> HTLB_AREA_SHIFT) | 32 | #define NUM_HIGH_AREAS (PGTABLE_RANGE >> HTLB_AREA_SHIFT) |
33 | #define MAX_NUMBER_GPAGES 1024 | ||
32 | 34 | ||
33 | unsigned int hugepte_shift; | 35 | /* Tracks the 16G pages after the device tree is scanned and before the |
34 | #define PTRS_PER_HUGEPTE (1 << hugepte_shift) | 36 | * huge_boot_pages list is ready. */ |
35 | #define HUGEPTE_TABLE_SIZE (sizeof(pte_t) << hugepte_shift) | 37 | static unsigned long gpage_freearray[MAX_NUMBER_GPAGES]; |
38 | static unsigned nr_gpages; | ||
36 | 39 | ||
37 | #define HUGEPD_SHIFT (HPAGE_SHIFT + hugepte_shift) | 40 | /* Array of valid huge page sizes - non-zero value(hugepte_shift) is |
38 | #define HUGEPD_SIZE (1UL << HUGEPD_SHIFT) | 41 | * stored for the huge page sizes that are valid. |
39 | #define HUGEPD_MASK (~(HUGEPD_SIZE-1)) | 42 | */ |
43 | unsigned int mmu_huge_psizes[MMU_PAGE_COUNT] = { }; /* initialize all to 0 */ | ||
44 | |||
45 | #define hugepte_shift mmu_huge_psizes | ||
46 | #define PTRS_PER_HUGEPTE(psize) (1 << hugepte_shift[psize]) | ||
47 | #define HUGEPTE_TABLE_SIZE(psize) (sizeof(pte_t) << hugepte_shift[psize]) | ||
48 | |||
49 | #define HUGEPD_SHIFT(psize) (mmu_psize_to_shift(psize) \ | ||
50 | + hugepte_shift[psize]) | ||
51 | #define HUGEPD_SIZE(psize) (1UL << HUGEPD_SHIFT(psize)) | ||
52 | #define HUGEPD_MASK(psize) (~(HUGEPD_SIZE(psize)-1)) | ||
53 | |||
54 | /* Subtract one from array size because we don't need a cache for 4K since | ||
55 | * is not a huge page size */ | ||
56 | #define huge_pgtable_cache(psize) (pgtable_cache[HUGEPTE_CACHE_NUM \ | ||
57 | + psize-1]) | ||
58 | #define HUGEPTE_CACHE_NAME(psize) (huge_pgtable_cache_name[psize]) | ||
40 | 59 | ||
41 | #define huge_pgtable_cache (pgtable_cache[HUGEPTE_CACHE_NUM]) | 60 | static const char *huge_pgtable_cache_name[MMU_PAGE_COUNT] = { |
61 | "unused_4K", "hugepte_cache_64K", "unused_64K_AP", | ||
62 | "hugepte_cache_1M", "hugepte_cache_16M", "hugepte_cache_16G" | ||
63 | }; | ||
42 | 64 | ||
43 | /* Flag to mark huge PD pointers. This means pmd_bad() and pud_bad() | 65 | /* Flag to mark huge PD pointers. This means pmd_bad() and pud_bad() |
44 | * will choke on pointers to hugepte tables, which is handy for | 66 | * will choke on pointers to hugepte tables, which is handy for |
@@ -49,24 +71,49 @@ typedef struct { unsigned long pd; } hugepd_t; | |||
49 | 71 | ||
50 | #define hugepd_none(hpd) ((hpd).pd == 0) | 72 | #define hugepd_none(hpd) ((hpd).pd == 0) |
51 | 73 | ||
74 | static inline int shift_to_mmu_psize(unsigned int shift) | ||
75 | { | ||
76 | switch (shift) { | ||
77 | #ifndef CONFIG_PPC_64K_PAGES | ||
78 | case PAGE_SHIFT_64K: | ||
79 | return MMU_PAGE_64K; | ||
80 | #endif | ||
81 | case PAGE_SHIFT_16M: | ||
82 | return MMU_PAGE_16M; | ||
83 | case PAGE_SHIFT_16G: | ||
84 | return MMU_PAGE_16G; | ||
85 | } | ||
86 | return -1; | ||
87 | } | ||
88 | |||
89 | static inline unsigned int mmu_psize_to_shift(unsigned int mmu_psize) | ||
90 | { | ||
91 | if (mmu_psize_defs[mmu_psize].shift) | ||
92 | return mmu_psize_defs[mmu_psize].shift; | ||
93 | BUG(); | ||
94 | } | ||
95 | |||
52 | static inline pte_t *hugepd_page(hugepd_t hpd) | 96 | static inline pte_t *hugepd_page(hugepd_t hpd) |
53 | { | 97 | { |
54 | BUG_ON(!(hpd.pd & HUGEPD_OK)); | 98 | BUG_ON(!(hpd.pd & HUGEPD_OK)); |
55 | return (pte_t *)(hpd.pd & ~HUGEPD_OK); | 99 | return (pte_t *)(hpd.pd & ~HUGEPD_OK); |
56 | } | 100 | } |
57 | 101 | ||
58 | static inline pte_t *hugepte_offset(hugepd_t *hpdp, unsigned long addr) | 102 | static inline pte_t *hugepte_offset(hugepd_t *hpdp, unsigned long addr, |
103 | struct hstate *hstate) | ||
59 | { | 104 | { |
60 | unsigned long idx = ((addr >> HPAGE_SHIFT) & (PTRS_PER_HUGEPTE-1)); | 105 | unsigned int shift = huge_page_shift(hstate); |
106 | int psize = shift_to_mmu_psize(shift); | ||
107 | unsigned long idx = ((addr >> shift) & (PTRS_PER_HUGEPTE(psize)-1)); | ||
61 | pte_t *dir = hugepd_page(*hpdp); | 108 | pte_t *dir = hugepd_page(*hpdp); |
62 | 109 | ||
63 | return dir + idx; | 110 | return dir + idx; |
64 | } | 111 | } |
65 | 112 | ||
66 | static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp, | 113 | static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp, |
67 | unsigned long address) | 114 | unsigned long address, unsigned int psize) |
68 | { | 115 | { |
69 | pte_t *new = kmem_cache_alloc(huge_pgtable_cache, | 116 | pte_t *new = kmem_cache_alloc(huge_pgtable_cache(psize), |
70 | GFP_KERNEL|__GFP_REPEAT); | 117 | GFP_KERNEL|__GFP_REPEAT); |
71 | 118 | ||
72 | if (! new) | 119 | if (! new) |
@@ -74,7 +121,7 @@ static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp, | |||
74 | 121 | ||
75 | spin_lock(&mm->page_table_lock); | 122 | spin_lock(&mm->page_table_lock); |
76 | if (!hugepd_none(*hpdp)) | 123 | if (!hugepd_none(*hpdp)) |
77 | kmem_cache_free(huge_pgtable_cache, new); | 124 | kmem_cache_free(huge_pgtable_cache(psize), new); |
78 | else | 125 | else |
79 | hpdp->pd = (unsigned long)new | HUGEPD_OK; | 126 | hpdp->pd = (unsigned long)new | HUGEPD_OK; |
80 | spin_unlock(&mm->page_table_lock); | 127 | spin_unlock(&mm->page_table_lock); |
@@ -83,27 +130,60 @@ static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp, | |||
83 | 130 | ||
84 | /* Base page size affects how we walk hugetlb page tables */ | 131 | /* Base page size affects how we walk hugetlb page tables */ |
85 | #ifdef CONFIG_PPC_64K_PAGES | 132 | #ifdef CONFIG_PPC_64K_PAGES |
86 | #define hpmd_offset(pud, addr) pmd_offset(pud, addr) | 133 | #define hpmd_offset(pud, addr, h) pmd_offset(pud, addr) |
87 | #define hpmd_alloc(mm, pud, addr) pmd_alloc(mm, pud, addr) | 134 | #define hpmd_alloc(mm, pud, addr, h) pmd_alloc(mm, pud, addr) |
88 | #else | 135 | #else |
89 | static inline | 136 | static inline |
90 | pmd_t *hpmd_offset(pud_t *pud, unsigned long addr) | 137 | pmd_t *hpmd_offset(pud_t *pud, unsigned long addr, struct hstate *hstate) |
91 | { | 138 | { |
92 | if (HPAGE_SHIFT == HPAGE_SHIFT_64K) | 139 | if (huge_page_shift(hstate) == PAGE_SHIFT_64K) |
93 | return pmd_offset(pud, addr); | 140 | return pmd_offset(pud, addr); |
94 | else | 141 | else |
95 | return (pmd_t *) pud; | 142 | return (pmd_t *) pud; |
96 | } | 143 | } |
97 | static inline | 144 | static inline |
98 | pmd_t *hpmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long addr) | 145 | pmd_t *hpmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long addr, |
146 | struct hstate *hstate) | ||
99 | { | 147 | { |
100 | if (HPAGE_SHIFT == HPAGE_SHIFT_64K) | 148 | if (huge_page_shift(hstate) == PAGE_SHIFT_64K) |
101 | return pmd_alloc(mm, pud, addr); | 149 | return pmd_alloc(mm, pud, addr); |
102 | else | 150 | else |
103 | return (pmd_t *) pud; | 151 | return (pmd_t *) pud; |
104 | } | 152 | } |
105 | #endif | 153 | #endif |
106 | 154 | ||
155 | /* Build list of addresses of gigantic pages. This function is used in early | ||
156 | * boot before the buddy or bootmem allocator is setup. | ||
157 | */ | ||
158 | void add_gpage(unsigned long addr, unsigned long page_size, | ||
159 | unsigned long number_of_pages) | ||
160 | { | ||
161 | if (!addr) | ||
162 | return; | ||
163 | while (number_of_pages > 0) { | ||
164 | gpage_freearray[nr_gpages] = addr; | ||
165 | nr_gpages++; | ||
166 | number_of_pages--; | ||
167 | addr += page_size; | ||
168 | } | ||
169 | } | ||
170 | |||
171 | /* Moves the gigantic page addresses from the temporary list to the | ||
172 | * huge_boot_pages list. | ||
173 | */ | ||
174 | int alloc_bootmem_huge_page(struct hstate *hstate) | ||
175 | { | ||
176 | struct huge_bootmem_page *m; | ||
177 | if (nr_gpages == 0) | ||
178 | return 0; | ||
179 | m = phys_to_virt(gpage_freearray[--nr_gpages]); | ||
180 | gpage_freearray[nr_gpages] = 0; | ||
181 | list_add(&m->list, &huge_boot_pages); | ||
182 | m->hstate = hstate; | ||
183 | return 1; | ||
184 | } | ||
185 | |||
186 | |||
107 | /* Modelled after find_linux_pte() */ | 187 | /* Modelled after find_linux_pte() */ |
108 | pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) | 188 | pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) |
109 | { | 189 | { |
@@ -111,39 +191,52 @@ pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) | |||
111 | pud_t *pu; | 191 | pud_t *pu; |
112 | pmd_t *pm; | 192 | pmd_t *pm; |
113 | 193 | ||
114 | BUG_ON(get_slice_psize(mm, addr) != mmu_huge_psize); | 194 | unsigned int psize; |
195 | unsigned int shift; | ||
196 | unsigned long sz; | ||
197 | struct hstate *hstate; | ||
198 | psize = get_slice_psize(mm, addr); | ||
199 | shift = mmu_psize_to_shift(psize); | ||
200 | sz = ((1UL) << shift); | ||
201 | hstate = size_to_hstate(sz); | ||
115 | 202 | ||
116 | addr &= HPAGE_MASK; | 203 | addr &= hstate->mask; |
117 | 204 | ||
118 | pg = pgd_offset(mm, addr); | 205 | pg = pgd_offset(mm, addr); |
119 | if (!pgd_none(*pg)) { | 206 | if (!pgd_none(*pg)) { |
120 | pu = pud_offset(pg, addr); | 207 | pu = pud_offset(pg, addr); |
121 | if (!pud_none(*pu)) { | 208 | if (!pud_none(*pu)) { |
122 | pm = hpmd_offset(pu, addr); | 209 | pm = hpmd_offset(pu, addr, hstate); |
123 | if (!pmd_none(*pm)) | 210 | if (!pmd_none(*pm)) |
124 | return hugepte_offset((hugepd_t *)pm, addr); | 211 | return hugepte_offset((hugepd_t *)pm, addr, |
212 | hstate); | ||
125 | } | 213 | } |
126 | } | 214 | } |
127 | 215 | ||
128 | return NULL; | 216 | return NULL; |
129 | } | 217 | } |
130 | 218 | ||
131 | pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr) | 219 | pte_t *huge_pte_alloc(struct mm_struct *mm, |
220 | unsigned long addr, unsigned long sz) | ||
132 | { | 221 | { |
133 | pgd_t *pg; | 222 | pgd_t *pg; |
134 | pud_t *pu; | 223 | pud_t *pu; |
135 | pmd_t *pm; | 224 | pmd_t *pm; |
136 | hugepd_t *hpdp = NULL; | 225 | hugepd_t *hpdp = NULL; |
226 | struct hstate *hstate; | ||
227 | unsigned int psize; | ||
228 | hstate = size_to_hstate(sz); | ||
137 | 229 | ||
138 | BUG_ON(get_slice_psize(mm, addr) != mmu_huge_psize); | 230 | psize = get_slice_psize(mm, addr); |
231 | BUG_ON(!mmu_huge_psizes[psize]); | ||
139 | 232 | ||
140 | addr &= HPAGE_MASK; | 233 | addr &= hstate->mask; |
141 | 234 | ||
142 | pg = pgd_offset(mm, addr); | 235 | pg = pgd_offset(mm, addr); |
143 | pu = pud_alloc(mm, pg, addr); | 236 | pu = pud_alloc(mm, pg, addr); |
144 | 237 | ||
145 | if (pu) { | 238 | if (pu) { |
146 | pm = hpmd_alloc(mm, pu, addr); | 239 | pm = hpmd_alloc(mm, pu, addr, hstate); |
147 | if (pm) | 240 | if (pm) |
148 | hpdp = (hugepd_t *)pm; | 241 | hpdp = (hugepd_t *)pm; |
149 | } | 242 | } |
@@ -151,10 +244,10 @@ pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr) | |||
151 | if (! hpdp) | 244 | if (! hpdp) |
152 | return NULL; | 245 | return NULL; |
153 | 246 | ||
154 | if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr)) | 247 | if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr, psize)) |
155 | return NULL; | 248 | return NULL; |
156 | 249 | ||
157 | return hugepte_offset(hpdp, addr); | 250 | return hugepte_offset(hpdp, addr, hstate); |
158 | } | 251 | } |
159 | 252 | ||
160 | int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep) | 253 | int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep) |
@@ -162,19 +255,22 @@ int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep) | |||
162 | return 0; | 255 | return 0; |
163 | } | 256 | } |
164 | 257 | ||
165 | static void free_hugepte_range(struct mmu_gather *tlb, hugepd_t *hpdp) | 258 | static void free_hugepte_range(struct mmu_gather *tlb, hugepd_t *hpdp, |
259 | unsigned int psize) | ||
166 | { | 260 | { |
167 | pte_t *hugepte = hugepd_page(*hpdp); | 261 | pte_t *hugepte = hugepd_page(*hpdp); |
168 | 262 | ||
169 | hpdp->pd = 0; | 263 | hpdp->pd = 0; |
170 | tlb->need_flush = 1; | 264 | tlb->need_flush = 1; |
171 | pgtable_free_tlb(tlb, pgtable_free_cache(hugepte, HUGEPTE_CACHE_NUM, | 265 | pgtable_free_tlb(tlb, pgtable_free_cache(hugepte, |
266 | HUGEPTE_CACHE_NUM+psize-1, | ||
172 | PGF_CACHENUM_MASK)); | 267 | PGF_CACHENUM_MASK)); |
173 | } | 268 | } |
174 | 269 | ||
175 | static void hugetlb_free_pmd_range(struct mmu_gather *tlb, pud_t *pud, | 270 | static void hugetlb_free_pmd_range(struct mmu_gather *tlb, pud_t *pud, |
176 | unsigned long addr, unsigned long end, | 271 | unsigned long addr, unsigned long end, |
177 | unsigned long floor, unsigned long ceiling) | 272 | unsigned long floor, unsigned long ceiling, |
273 | unsigned int psize) | ||
178 | { | 274 | { |
179 | pmd_t *pmd; | 275 | pmd_t *pmd; |
180 | unsigned long next; | 276 | unsigned long next; |
@@ -186,7 +282,7 @@ static void hugetlb_free_pmd_range(struct mmu_gather *tlb, pud_t *pud, | |||
186 | next = pmd_addr_end(addr, end); | 282 | next = pmd_addr_end(addr, end); |
187 | if (pmd_none(*pmd)) | 283 | if (pmd_none(*pmd)) |
188 | continue; | 284 | continue; |
189 | free_hugepte_range(tlb, (hugepd_t *)pmd); | 285 | free_hugepte_range(tlb, (hugepd_t *)pmd, psize); |
190 | } while (pmd++, addr = next, addr != end); | 286 | } while (pmd++, addr = next, addr != end); |
191 | 287 | ||
192 | start &= PUD_MASK; | 288 | start &= PUD_MASK; |
@@ -212,6 +308,9 @@ static void hugetlb_free_pud_range(struct mmu_gather *tlb, pgd_t *pgd, | |||
212 | pud_t *pud; | 308 | pud_t *pud; |
213 | unsigned long next; | 309 | unsigned long next; |
214 | unsigned long start; | 310 | unsigned long start; |
311 | unsigned int shift; | ||
312 | unsigned int psize = get_slice_psize(tlb->mm, addr); | ||
313 | shift = mmu_psize_to_shift(psize); | ||
215 | 314 | ||
216 | start = addr; | 315 | start = addr; |
217 | pud = pud_offset(pgd, addr); | 316 | pud = pud_offset(pgd, addr); |
@@ -220,16 +319,18 @@ static void hugetlb_free_pud_range(struct mmu_gather *tlb, pgd_t *pgd, | |||
220 | #ifdef CONFIG_PPC_64K_PAGES | 319 | #ifdef CONFIG_PPC_64K_PAGES |
221 | if (pud_none_or_clear_bad(pud)) | 320 | if (pud_none_or_clear_bad(pud)) |
222 | continue; | 321 | continue; |
223 | hugetlb_free_pmd_range(tlb, pud, addr, next, floor, ceiling); | 322 | hugetlb_free_pmd_range(tlb, pud, addr, next, floor, ceiling, |
323 | psize); | ||
224 | #else | 324 | #else |
225 | if (HPAGE_SHIFT == HPAGE_SHIFT_64K) { | 325 | if (shift == PAGE_SHIFT_64K) { |
226 | if (pud_none_or_clear_bad(pud)) | 326 | if (pud_none_or_clear_bad(pud)) |
227 | continue; | 327 | continue; |
228 | hugetlb_free_pmd_range(tlb, pud, addr, next, floor, ceiling); | 328 | hugetlb_free_pmd_range(tlb, pud, addr, next, floor, |
329 | ceiling, psize); | ||
229 | } else { | 330 | } else { |
230 | if (pud_none(*pud)) | 331 | if (pud_none(*pud)) |
231 | continue; | 332 | continue; |
232 | free_hugepte_range(tlb, (hugepd_t *)pud); | 333 | free_hugepte_range(tlb, (hugepd_t *)pud, psize); |
233 | } | 334 | } |
234 | #endif | 335 | #endif |
235 | } while (pud++, addr = next, addr != end); | 336 | } while (pud++, addr = next, addr != end); |
@@ -255,7 +356,7 @@ static void hugetlb_free_pud_range(struct mmu_gather *tlb, pgd_t *pgd, | |||
255 | * | 356 | * |
256 | * Must be called with pagetable lock held. | 357 | * Must be called with pagetable lock held. |
257 | */ | 358 | */ |
258 | void hugetlb_free_pgd_range(struct mmu_gather **tlb, | 359 | void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
259 | unsigned long addr, unsigned long end, | 360 | unsigned long addr, unsigned long end, |
260 | unsigned long floor, unsigned long ceiling) | 361 | unsigned long floor, unsigned long ceiling) |
261 | { | 362 | { |
@@ -297,31 +398,33 @@ void hugetlb_free_pgd_range(struct mmu_gather **tlb, | |||
297 | * now has no other vmas using it, so can be freed, we don't | 398 | * now has no other vmas using it, so can be freed, we don't |
298 | * bother to round floor or end up - the tests don't need that. | 399 | * bother to round floor or end up - the tests don't need that. |
299 | */ | 400 | */ |
401 | unsigned int psize = get_slice_psize(tlb->mm, addr); | ||
300 | 402 | ||
301 | addr &= HUGEPD_MASK; | 403 | addr &= HUGEPD_MASK(psize); |
302 | if (addr < floor) { | 404 | if (addr < floor) { |
303 | addr += HUGEPD_SIZE; | 405 | addr += HUGEPD_SIZE(psize); |
304 | if (!addr) | 406 | if (!addr) |
305 | return; | 407 | return; |
306 | } | 408 | } |
307 | if (ceiling) { | 409 | if (ceiling) { |
308 | ceiling &= HUGEPD_MASK; | 410 | ceiling &= HUGEPD_MASK(psize); |
309 | if (!ceiling) | 411 | if (!ceiling) |
310 | return; | 412 | return; |
311 | } | 413 | } |
312 | if (end - 1 > ceiling - 1) | 414 | if (end - 1 > ceiling - 1) |
313 | end -= HUGEPD_SIZE; | 415 | end -= HUGEPD_SIZE(psize); |
314 | if (addr > end - 1) | 416 | if (addr > end - 1) |
315 | return; | 417 | return; |
316 | 418 | ||
317 | start = addr; | 419 | start = addr; |
318 | pgd = pgd_offset((*tlb)->mm, addr); | 420 | pgd = pgd_offset(tlb->mm, addr); |
319 | do { | 421 | do { |
320 | BUG_ON(get_slice_psize((*tlb)->mm, addr) != mmu_huge_psize); | 422 | psize = get_slice_psize(tlb->mm, addr); |
423 | BUG_ON(!mmu_huge_psizes[psize]); | ||
321 | next = pgd_addr_end(addr, end); | 424 | next = pgd_addr_end(addr, end); |
322 | if (pgd_none_or_clear_bad(pgd)) | 425 | if (pgd_none_or_clear_bad(pgd)) |
323 | continue; | 426 | continue; |
324 | hugetlb_free_pud_range(*tlb, pgd, addr, next, floor, ceiling); | 427 | hugetlb_free_pud_range(tlb, pgd, addr, next, floor, ceiling); |
325 | } while (pgd++, addr = next, addr != end); | 428 | } while (pgd++, addr = next, addr != end); |
326 | } | 429 | } |
327 | 430 | ||
@@ -334,7 +437,11 @@ void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, | |||
334 | * necessary anymore if we make hpte_need_flush() get the | 437 | * necessary anymore if we make hpte_need_flush() get the |
335 | * page size from the slices | 438 | * page size from the slices |
336 | */ | 439 | */ |
337 | pte_update(mm, addr & HPAGE_MASK, ptep, ~0UL, 1); | 440 | unsigned int psize = get_slice_psize(mm, addr); |
441 | unsigned int shift = mmu_psize_to_shift(psize); | ||
442 | unsigned long sz = ((1UL) << shift); | ||
443 | struct hstate *hstate = size_to_hstate(sz); | ||
444 | pte_update(mm, addr & hstate->mask, ptep, ~0UL, 1); | ||
338 | } | 445 | } |
339 | *ptep = __pte(pte_val(pte) & ~_PAGE_HPTEFLAGS); | 446 | *ptep = __pte(pte_val(pte) & ~_PAGE_HPTEFLAGS); |
340 | } | 447 | } |
@@ -351,14 +458,19 @@ follow_huge_addr(struct mm_struct *mm, unsigned long address, int write) | |||
351 | { | 458 | { |
352 | pte_t *ptep; | 459 | pte_t *ptep; |
353 | struct page *page; | 460 | struct page *page; |
461 | unsigned int mmu_psize = get_slice_psize(mm, address); | ||
354 | 462 | ||
355 | if (get_slice_psize(mm, address) != mmu_huge_psize) | 463 | /* Verify it is a huge page else bail. */ |
464 | if (!mmu_huge_psizes[mmu_psize]) | ||
356 | return ERR_PTR(-EINVAL); | 465 | return ERR_PTR(-EINVAL); |
357 | 466 | ||
358 | ptep = huge_pte_offset(mm, address); | 467 | ptep = huge_pte_offset(mm, address); |
359 | page = pte_page(*ptep); | 468 | page = pte_page(*ptep); |
360 | if (page) | 469 | if (page) { |
361 | page += (address % HPAGE_SIZE) / PAGE_SIZE; | 470 | unsigned int shift = mmu_psize_to_shift(mmu_psize); |
471 | unsigned long sz = ((1UL) << shift); | ||
472 | page += (address % sz) / PAGE_SIZE; | ||
473 | } | ||
362 | 474 | ||
363 | return page; | 475 | return page; |
364 | } | 476 | } |
@@ -368,6 +480,11 @@ int pmd_huge(pmd_t pmd) | |||
368 | return 0; | 480 | return 0; |
369 | } | 481 | } |
370 | 482 | ||
483 | int pud_huge(pud_t pud) | ||
484 | { | ||
485 | return 0; | ||
486 | } | ||
487 | |||
371 | struct page * | 488 | struct page * |
372 | follow_huge_pmd(struct mm_struct *mm, unsigned long address, | 489 | follow_huge_pmd(struct mm_struct *mm, unsigned long address, |
373 | pmd_t *pmd, int write) | 490 | pmd_t *pmd, int write) |
@@ -381,15 +498,16 @@ unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr, | |||
381 | unsigned long len, unsigned long pgoff, | 498 | unsigned long len, unsigned long pgoff, |
382 | unsigned long flags) | 499 | unsigned long flags) |
383 | { | 500 | { |
384 | return slice_get_unmapped_area(addr, len, flags, | 501 | struct hstate *hstate = hstate_file(file); |
385 | mmu_huge_psize, 1, 0); | 502 | int mmu_psize = shift_to_mmu_psize(huge_page_shift(hstate)); |
503 | return slice_get_unmapped_area(addr, len, flags, mmu_psize, 1, 0); | ||
386 | } | 504 | } |
387 | 505 | ||
388 | /* | 506 | /* |
389 | * Called by asm hashtable.S for doing lazy icache flush | 507 | * Called by asm hashtable.S for doing lazy icache flush |
390 | */ | 508 | */ |
391 | static unsigned int hash_huge_page_do_lazy_icache(unsigned long rflags, | 509 | static unsigned int hash_huge_page_do_lazy_icache(unsigned long rflags, |
392 | pte_t pte, int trap) | 510 | pte_t pte, int trap, unsigned long sz) |
393 | { | 511 | { |
394 | struct page *page; | 512 | struct page *page; |
395 | int i; | 513 | int i; |
@@ -402,7 +520,7 @@ static unsigned int hash_huge_page_do_lazy_icache(unsigned long rflags, | |||
402 | /* page is dirty */ | 520 | /* page is dirty */ |
403 | if (!test_bit(PG_arch_1, &page->flags) && !PageReserved(page)) { | 521 | if (!test_bit(PG_arch_1, &page->flags) && !PageReserved(page)) { |
404 | if (trap == 0x400) { | 522 | if (trap == 0x400) { |
405 | for (i = 0; i < (HPAGE_SIZE / PAGE_SIZE); i++) | 523 | for (i = 0; i < (sz / PAGE_SIZE); i++) |
406 | __flush_dcache_icache(page_address(page+i)); | 524 | __flush_dcache_icache(page_address(page+i)); |
407 | set_bit(PG_arch_1, &page->flags); | 525 | set_bit(PG_arch_1, &page->flags); |
408 | } else { | 526 | } else { |
@@ -418,11 +536,16 @@ int hash_huge_page(struct mm_struct *mm, unsigned long access, | |||
418 | { | 536 | { |
419 | pte_t *ptep; | 537 | pte_t *ptep; |
420 | unsigned long old_pte, new_pte; | 538 | unsigned long old_pte, new_pte; |
421 | unsigned long va, rflags, pa; | 539 | unsigned long va, rflags, pa, sz; |
422 | long slot; | 540 | long slot; |
423 | int err = 1; | 541 | int err = 1; |
424 | int ssize = user_segment_size(ea); | 542 | int ssize = user_segment_size(ea); |
543 | unsigned int mmu_psize; | ||
544 | int shift; | ||
545 | mmu_psize = get_slice_psize(mm, ea); | ||
425 | 546 | ||
547 | if (!mmu_huge_psizes[mmu_psize]) | ||
548 | goto out; | ||
426 | ptep = huge_pte_offset(mm, ea); | 549 | ptep = huge_pte_offset(mm, ea); |
427 | 550 | ||
428 | /* Search the Linux page table for a match with va */ | 551 | /* Search the Linux page table for a match with va */ |
@@ -465,30 +588,32 @@ int hash_huge_page(struct mm_struct *mm, unsigned long access, | |||
465 | rflags = 0x2 | (!(new_pte & _PAGE_RW)); | 588 | rflags = 0x2 | (!(new_pte & _PAGE_RW)); |
466 | /* _PAGE_EXEC -> HW_NO_EXEC since it's inverted */ | 589 | /* _PAGE_EXEC -> HW_NO_EXEC since it's inverted */ |
467 | rflags |= ((new_pte & _PAGE_EXEC) ? 0 : HPTE_R_N); | 590 | rflags |= ((new_pte & _PAGE_EXEC) ? 0 : HPTE_R_N); |
591 | shift = mmu_psize_to_shift(mmu_psize); | ||
592 | sz = ((1UL) << shift); | ||
468 | if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) | 593 | if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) |
469 | /* No CPU has hugepages but lacks no execute, so we | 594 | /* No CPU has hugepages but lacks no execute, so we |
470 | * don't need to worry about that case */ | 595 | * don't need to worry about that case */ |
471 | rflags = hash_huge_page_do_lazy_icache(rflags, __pte(old_pte), | 596 | rflags = hash_huge_page_do_lazy_icache(rflags, __pte(old_pte), |
472 | trap); | 597 | trap, sz); |
473 | 598 | ||
474 | /* Check if pte already has an hpte (case 2) */ | 599 | /* Check if pte already has an hpte (case 2) */ |
475 | if (unlikely(old_pte & _PAGE_HASHPTE)) { | 600 | if (unlikely(old_pte & _PAGE_HASHPTE)) { |
476 | /* There MIGHT be an HPTE for this pte */ | 601 | /* There MIGHT be an HPTE for this pte */ |
477 | unsigned long hash, slot; | 602 | unsigned long hash, slot; |
478 | 603 | ||
479 | hash = hpt_hash(va, HPAGE_SHIFT, ssize); | 604 | hash = hpt_hash(va, shift, ssize); |
480 | if (old_pte & _PAGE_F_SECOND) | 605 | if (old_pte & _PAGE_F_SECOND) |
481 | hash = ~hash; | 606 | hash = ~hash; |
482 | slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; | 607 | slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; |
483 | slot += (old_pte & _PAGE_F_GIX) >> 12; | 608 | slot += (old_pte & _PAGE_F_GIX) >> 12; |
484 | 609 | ||
485 | if (ppc_md.hpte_updatepp(slot, rflags, va, mmu_huge_psize, | 610 | if (ppc_md.hpte_updatepp(slot, rflags, va, mmu_psize, |
486 | ssize, local) == -1) | 611 | ssize, local) == -1) |
487 | old_pte &= ~_PAGE_HPTEFLAGS; | 612 | old_pte &= ~_PAGE_HPTEFLAGS; |
488 | } | 613 | } |
489 | 614 | ||
490 | if (likely(!(old_pte & _PAGE_HASHPTE))) { | 615 | if (likely(!(old_pte & _PAGE_HASHPTE))) { |
491 | unsigned long hash = hpt_hash(va, HPAGE_SHIFT, ssize); | 616 | unsigned long hash = hpt_hash(va, shift, ssize); |
492 | unsigned long hpte_group; | 617 | unsigned long hpte_group; |
493 | 618 | ||
494 | pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; | 619 | pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; |
@@ -509,7 +634,7 @@ repeat: | |||
509 | 634 | ||
510 | /* Insert into the hash table, primary slot */ | 635 | /* Insert into the hash table, primary slot */ |
511 | slot = ppc_md.hpte_insert(hpte_group, va, pa, rflags, 0, | 636 | slot = ppc_md.hpte_insert(hpte_group, va, pa, rflags, 0, |
512 | mmu_huge_psize, ssize); | 637 | mmu_psize, ssize); |
513 | 638 | ||
514 | /* Primary is full, try the secondary */ | 639 | /* Primary is full, try the secondary */ |
515 | if (unlikely(slot == -1)) { | 640 | if (unlikely(slot == -1)) { |
@@ -517,7 +642,7 @@ repeat: | |||
517 | HPTES_PER_GROUP) & ~0x7UL; | 642 | HPTES_PER_GROUP) & ~0x7UL; |
518 | slot = ppc_md.hpte_insert(hpte_group, va, pa, rflags, | 643 | slot = ppc_md.hpte_insert(hpte_group, va, pa, rflags, |
519 | HPTE_V_SECONDARY, | 644 | HPTE_V_SECONDARY, |
520 | mmu_huge_psize, ssize); | 645 | mmu_psize, ssize); |
521 | if (slot == -1) { | 646 | if (slot == -1) { |
522 | if (mftb() & 0x1) | 647 | if (mftb() & 0x1) |
523 | hpte_group = ((hash & htab_hash_mask) * | 648 | hpte_group = ((hash & htab_hash_mask) * |
@@ -549,45 +674,54 @@ void set_huge_psize(int psize) | |||
549 | { | 674 | { |
550 | /* Check that it is a page size supported by the hardware and | 675 | /* Check that it is a page size supported by the hardware and |
551 | * that it fits within pagetable limits. */ | 676 | * that it fits within pagetable limits. */ |
552 | if (mmu_psize_defs[psize].shift && mmu_psize_defs[psize].shift < SID_SHIFT && | 677 | if (mmu_psize_defs[psize].shift && |
678 | mmu_psize_defs[psize].shift < SID_SHIFT_1T && | ||
553 | (mmu_psize_defs[psize].shift > MIN_HUGEPTE_SHIFT || | 679 | (mmu_psize_defs[psize].shift > MIN_HUGEPTE_SHIFT || |
554 | mmu_psize_defs[psize].shift == HPAGE_SHIFT_64K)) { | 680 | mmu_psize_defs[psize].shift == PAGE_SHIFT_64K || |
555 | HPAGE_SHIFT = mmu_psize_defs[psize].shift; | 681 | mmu_psize_defs[psize].shift == PAGE_SHIFT_16G)) { |
556 | mmu_huge_psize = psize; | 682 | /* Return if huge page size has already been setup or is the |
557 | #ifdef CONFIG_PPC_64K_PAGES | 683 | * same as the base page size. */ |
558 | hugepte_shift = (PMD_SHIFT-HPAGE_SHIFT); | 684 | if (mmu_huge_psizes[psize] || |
559 | #else | 685 | mmu_psize_defs[psize].shift == PAGE_SHIFT) |
560 | if (HPAGE_SHIFT == HPAGE_SHIFT_64K) | 686 | return; |
561 | hugepte_shift = (PMD_SHIFT-HPAGE_SHIFT); | 687 | hugetlb_add_hstate(mmu_psize_defs[psize].shift - PAGE_SHIFT); |
562 | else | 688 | |
563 | hugepte_shift = (PUD_SHIFT-HPAGE_SHIFT); | 689 | switch (mmu_psize_defs[psize].shift) { |
564 | #endif | 690 | case PAGE_SHIFT_64K: |
565 | 691 | /* We only allow 64k hpages with 4k base page, | |
692 | * which was checked above, and always put them | ||
693 | * at the PMD */ | ||
694 | hugepte_shift[psize] = PMD_SHIFT; | ||
695 | break; | ||
696 | case PAGE_SHIFT_16M: | ||
697 | /* 16M pages can be at two different levels | ||
698 | * of pagestables based on base page size */ | ||
699 | if (PAGE_SHIFT == PAGE_SHIFT_64K) | ||
700 | hugepte_shift[psize] = PMD_SHIFT; | ||
701 | else /* 4k base page */ | ||
702 | hugepte_shift[psize] = PUD_SHIFT; | ||
703 | break; | ||
704 | case PAGE_SHIFT_16G: | ||
705 | /* 16G pages are always at PGD level */ | ||
706 | hugepte_shift[psize] = PGDIR_SHIFT; | ||
707 | break; | ||
708 | } | ||
709 | hugepte_shift[psize] -= mmu_psize_defs[psize].shift; | ||
566 | } else | 710 | } else |
567 | HPAGE_SHIFT = 0; | 711 | hugepte_shift[psize] = 0; |
568 | } | 712 | } |
569 | 713 | ||
570 | static int __init hugepage_setup_sz(char *str) | 714 | static int __init hugepage_setup_sz(char *str) |
571 | { | 715 | { |
572 | unsigned long long size; | 716 | unsigned long long size; |
573 | int mmu_psize = -1; | 717 | int mmu_psize; |
574 | int shift; | 718 | int shift; |
575 | 719 | ||
576 | size = memparse(str, &str); | 720 | size = memparse(str, &str); |
577 | 721 | ||
578 | shift = __ffs(size); | 722 | shift = __ffs(size); |
579 | switch (shift) { | 723 | mmu_psize = shift_to_mmu_psize(shift); |
580 | #ifndef CONFIG_PPC_64K_PAGES | 724 | if (mmu_psize >= 0 && mmu_psize_defs[mmu_psize].shift) |
581 | case HPAGE_SHIFT_64K: | ||
582 | mmu_psize = MMU_PAGE_64K; | ||
583 | break; | ||
584 | #endif | ||
585 | case HPAGE_SHIFT_16M: | ||
586 | mmu_psize = MMU_PAGE_16M; | ||
587 | break; | ||
588 | } | ||
589 | |||
590 | if (mmu_psize >=0 && mmu_psize_defs[mmu_psize].shift) | ||
591 | set_huge_psize(mmu_psize); | 725 | set_huge_psize(mmu_psize); |
592 | else | 726 | else |
593 | printk(KERN_WARNING "Invalid huge page size specified(%llu)\n", size); | 727 | printk(KERN_WARNING "Invalid huge page size specified(%llu)\n", size); |
@@ -603,16 +737,31 @@ static void zero_ctor(struct kmem_cache *cache, void *addr) | |||
603 | 737 | ||
604 | static int __init hugetlbpage_init(void) | 738 | static int __init hugetlbpage_init(void) |
605 | { | 739 | { |
740 | unsigned int psize; | ||
741 | |||
606 | if (!cpu_has_feature(CPU_FTR_16M_PAGE)) | 742 | if (!cpu_has_feature(CPU_FTR_16M_PAGE)) |
607 | return -ENODEV; | 743 | return -ENODEV; |
608 | 744 | /* Add supported huge page sizes. Need to change HUGE_MAX_HSTATE | |
609 | huge_pgtable_cache = kmem_cache_create("hugepte_cache", | 745 | * and adjust PTE_NONCACHE_NUM if the number of supported huge page |
610 | HUGEPTE_TABLE_SIZE, | 746 | * sizes changes. |
611 | HUGEPTE_TABLE_SIZE, | 747 | */ |
612 | 0, | 748 | set_huge_psize(MMU_PAGE_16M); |
613 | zero_ctor); | 749 | set_huge_psize(MMU_PAGE_64K); |
614 | if (! huge_pgtable_cache) | 750 | set_huge_psize(MMU_PAGE_16G); |
615 | panic("hugetlbpage_init(): could not create hugepte cache\n"); | 751 | |
752 | for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) { | ||
753 | if (mmu_huge_psizes[psize]) { | ||
754 | huge_pgtable_cache(psize) = kmem_cache_create( | ||
755 | HUGEPTE_CACHE_NAME(psize), | ||
756 | HUGEPTE_TABLE_SIZE(psize), | ||
757 | HUGEPTE_TABLE_SIZE(psize), | ||
758 | 0, | ||
759 | zero_ctor); | ||
760 | if (!huge_pgtable_cache(psize)) | ||
761 | panic("hugetlbpage_init(): could not create %s"\ | ||
762 | "\n", HUGEPTE_CACHE_NAME(psize)); | ||
763 | } | ||
764 | } | ||
616 | 765 | ||
617 | return 0; | 766 | return 0; |
618 | } | 767 | } |
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 6ef63caca682..a41bc5aa2043 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -153,10 +153,10 @@ static const char *pgtable_cache_name[ARRAY_SIZE(pgtable_cache_size)] = { | |||
153 | }; | 153 | }; |
154 | 154 | ||
155 | #ifdef CONFIG_HUGETLB_PAGE | 155 | #ifdef CONFIG_HUGETLB_PAGE |
156 | /* Hugepages need one extra cache, initialized in hugetlbpage.c. We | 156 | /* Hugepages need an extra cache per hugepagesize, initialized in |
157 | * can't put into the tables above, because HPAGE_SHIFT is not compile | 157 | * hugetlbpage.c. We can't put into the tables above, because HPAGE_SHIFT |
158 | * time constant. */ | 158 | * is not compile time constant. */ |
159 | struct kmem_cache *pgtable_cache[ARRAY_SIZE(pgtable_cache_size)+1]; | 159 | struct kmem_cache *pgtable_cache[ARRAY_SIZE(pgtable_cache_size)+MMU_PAGE_COUNT]; |
160 | #else | 160 | #else |
161 | struct kmem_cache *pgtable_cache[ARRAY_SIZE(pgtable_cache_size)]; | 161 | struct kmem_cache *pgtable_cache[ARRAY_SIZE(pgtable_cache_size)]; |
162 | #endif | 162 | #endif |
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index cf4bffba6f7c..d9a181351332 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -39,7 +39,6 @@ EXPORT_SYMBOL(numa_cpu_lookup_table); | |||
39 | EXPORT_SYMBOL(numa_cpumask_lookup_table); | 39 | EXPORT_SYMBOL(numa_cpumask_lookup_table); |
40 | EXPORT_SYMBOL(node_data); | 40 | EXPORT_SYMBOL(node_data); |
41 | 41 | ||
42 | static bootmem_data_t __initdata plat_node_bdata[MAX_NUMNODES]; | ||
43 | static int min_common_depth; | 42 | static int min_common_depth; |
44 | static int n_mem_addr_cells, n_mem_size_cells; | 43 | static int n_mem_addr_cells, n_mem_size_cells; |
45 | 44 | ||
@@ -816,7 +815,7 @@ void __init do_init_bootmem(void) | |||
816 | dbg("node %d\n", nid); | 815 | dbg("node %d\n", nid); |
817 | dbg("NODE_DATA() = %p\n", NODE_DATA(nid)); | 816 | dbg("NODE_DATA() = %p\n", NODE_DATA(nid)); |
818 | 817 | ||
819 | NODE_DATA(nid)->bdata = &plat_node_bdata[nid]; | 818 | NODE_DATA(nid)->bdata = &bootmem_node_data[nid]; |
820 | NODE_DATA(nid)->node_start_pfn = start_pfn; | 819 | NODE_DATA(nid)->node_start_pfn = start_pfn; |
821 | NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; | 820 | NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; |
822 | 821 | ||
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index c7584072dfcc..2001abdb1912 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c | |||
@@ -145,13 +145,20 @@ void pte_free(struct mm_struct *mm, pgtable_t ptepage) | |||
145 | void __iomem * | 145 | void __iomem * |
146 | ioremap(phys_addr_t addr, unsigned long size) | 146 | ioremap(phys_addr_t addr, unsigned long size) |
147 | { | 147 | { |
148 | return __ioremap(addr, size, _PAGE_NO_CACHE); | 148 | return __ioremap(addr, size, _PAGE_NO_CACHE | _PAGE_GUARDED); |
149 | } | 149 | } |
150 | EXPORT_SYMBOL(ioremap); | 150 | EXPORT_SYMBOL(ioremap); |
151 | 151 | ||
152 | void __iomem * | 152 | void __iomem * |
153 | ioremap_flags(phys_addr_t addr, unsigned long size, unsigned long flags) | 153 | ioremap_flags(phys_addr_t addr, unsigned long size, unsigned long flags) |
154 | { | 154 | { |
155 | /* writeable implies dirty for kernel addresses */ | ||
156 | if (flags & _PAGE_RW) | ||
157 | flags |= _PAGE_DIRTY | _PAGE_HWWRITE; | ||
158 | |||
159 | /* we don't want to let _PAGE_USER and _PAGE_EXEC leak out */ | ||
160 | flags &= ~(_PAGE_USER | _PAGE_EXEC | _PAGE_HWEXEC); | ||
161 | |||
155 | return __ioremap(addr, size, flags); | 162 | return __ioremap(addr, size, flags); |
156 | } | 163 | } |
157 | EXPORT_SYMBOL(ioremap_flags); | 164 | EXPORT_SYMBOL(ioremap_flags); |
@@ -163,6 +170,14 @@ __ioremap(phys_addr_t addr, unsigned long size, unsigned long flags) | |||
163 | phys_addr_t p; | 170 | phys_addr_t p; |
164 | int err; | 171 | int err; |
165 | 172 | ||
173 | /* Make sure we have the base flags */ | ||
174 | if ((flags & _PAGE_PRESENT) == 0) | ||
175 | flags |= _PAGE_KERNEL; | ||
176 | |||
177 | /* Non-cacheable page cannot be coherent */ | ||
178 | if (flags & _PAGE_NO_CACHE) | ||
179 | flags &= ~_PAGE_COHERENT; | ||
180 | |||
166 | /* | 181 | /* |
167 | * Choose an address to map it to. | 182 | * Choose an address to map it to. |
168 | * Once the vmalloc system is running, we use it. | 183 | * Once the vmalloc system is running, we use it. |
@@ -219,11 +234,6 @@ __ioremap(phys_addr_t addr, unsigned long size, unsigned long flags) | |||
219 | v = (ioremap_bot -= size); | 234 | v = (ioremap_bot -= size); |
220 | } | 235 | } |
221 | 236 | ||
222 | if ((flags & _PAGE_PRESENT) == 0) | ||
223 | flags |= _PAGE_KERNEL; | ||
224 | if (flags & _PAGE_NO_CACHE) | ||
225 | flags |= _PAGE_GUARDED; | ||
226 | |||
227 | /* | 237 | /* |
228 | * Should check if it is a candidate for a BAT mapping | 238 | * Should check if it is a candidate for a BAT mapping |
229 | */ | 239 | */ |
diff --git a/arch/powerpc/mm/pgtable_64.c b/arch/powerpc/mm/pgtable_64.c index 3ef0ad2f9ca0..365e61ae5dbc 100644 --- a/arch/powerpc/mm/pgtable_64.c +++ b/arch/powerpc/mm/pgtable_64.c | |||
@@ -107,9 +107,18 @@ void __iomem * __ioremap_at(phys_addr_t pa, void *ea, unsigned long size, | |||
107 | { | 107 | { |
108 | unsigned long i; | 108 | unsigned long i; |
109 | 109 | ||
110 | /* Make sure we have the base flags */ | ||
110 | if ((flags & _PAGE_PRESENT) == 0) | 111 | if ((flags & _PAGE_PRESENT) == 0) |
111 | flags |= pgprot_val(PAGE_KERNEL); | 112 | flags |= pgprot_val(PAGE_KERNEL); |
112 | 113 | ||
114 | /* Non-cacheable page cannot be coherent */ | ||
115 | if (flags & _PAGE_NO_CACHE) | ||
116 | flags &= ~_PAGE_COHERENT; | ||
117 | |||
118 | /* We don't support the 4K PFN hack with ioremap */ | ||
119 | if (flags & _PAGE_4K_PFN) | ||
120 | return NULL; | ||
121 | |||
113 | WARN_ON(pa & ~PAGE_MASK); | 122 | WARN_ON(pa & ~PAGE_MASK); |
114 | WARN_ON(((unsigned long)ea) & ~PAGE_MASK); | 123 | WARN_ON(((unsigned long)ea) & ~PAGE_MASK); |
115 | WARN_ON(size & ~PAGE_MASK); | 124 | WARN_ON(size & ~PAGE_MASK); |
@@ -190,6 +199,13 @@ void __iomem * ioremap(phys_addr_t addr, unsigned long size) | |||
190 | void __iomem * ioremap_flags(phys_addr_t addr, unsigned long size, | 199 | void __iomem * ioremap_flags(phys_addr_t addr, unsigned long size, |
191 | unsigned long flags) | 200 | unsigned long flags) |
192 | { | 201 | { |
202 | /* writeable implies dirty for kernel addresses */ | ||
203 | if (flags & _PAGE_RW) | ||
204 | flags |= _PAGE_DIRTY; | ||
205 | |||
206 | /* we don't want to let _PAGE_USER and _PAGE_EXEC leak out */ | ||
207 | flags &= ~(_PAGE_USER | _PAGE_EXEC); | ||
208 | |||
193 | if (ppc_md.ioremap) | 209 | if (ppc_md.ioremap) |
194 | return ppc_md.ioremap(addr, size, flags); | 210 | return ppc_md.ioremap(addr, size, flags); |
195 | return __ioremap(addr, size, flags); | 211 | return __ioremap(addr, size, flags); |
diff --git a/arch/powerpc/mm/tlb_64.c b/arch/powerpc/mm/tlb_64.c index a01b5c608ff9..409fcc7b63ce 100644 --- a/arch/powerpc/mm/tlb_64.c +++ b/arch/powerpc/mm/tlb_64.c | |||
@@ -147,7 +147,7 @@ void hpte_need_flush(struct mm_struct *mm, unsigned long addr, | |||
147 | */ | 147 | */ |
148 | if (huge) { | 148 | if (huge) { |
149 | #ifdef CONFIG_HUGETLB_PAGE | 149 | #ifdef CONFIG_HUGETLB_PAGE |
150 | psize = mmu_huge_psize; | 150 | psize = get_slice_psize(mm, addr);; |
151 | #else | 151 | #else |
152 | BUG(); | 152 | BUG(); |
153 | psize = pte_pagesize_index(mm, addr, pte); /* shutup gcc */ | 153 | psize = pte_pagesize_index(mm, addr, pte); /* shutup gcc */ |
diff --git a/arch/powerpc/platforms/52xx/Kconfig b/arch/powerpc/platforms/52xx/Kconfig index acd2fc8cf492..696a5ee4962d 100644 --- a/arch/powerpc/platforms/52xx/Kconfig +++ b/arch/powerpc/platforms/52xx/Kconfig | |||
@@ -1,8 +1,8 @@ | |||
1 | config PPC_MPC52xx | 1 | config PPC_MPC52xx |
2 | bool "52xx-based boards" | 2 | bool "52xx-based boards" |
3 | depends on PPC_MULTIPLATFORM && PPC32 | 3 | depends on PPC_MULTIPLATFORM && PPC32 |
4 | select FSL_SOC | ||
5 | select PPC_CLOCK | 4 | select PPC_CLOCK |
5 | select PPC_PCI_CHOICE | ||
6 | 6 | ||
7 | config PPC_MPC5200_SIMPLE | 7 | config PPC_MPC5200_SIMPLE |
8 | bool "Generic support for simple MPC5200 based boards" | 8 | bool "Generic support for simple MPC5200 based boards" |
@@ -47,6 +47,7 @@ config PPC_MPC5200_BUGFIX | |||
47 | config PPC_MPC5200_GPIO | 47 | config PPC_MPC5200_GPIO |
48 | bool "MPC5200 GPIO support" | 48 | bool "MPC5200 GPIO support" |
49 | depends on PPC_MPC52xx | 49 | depends on PPC_MPC52xx |
50 | select HAVE_GPIO_LIB | 50 | select ARCH_REQUIRE_GPIOLIB |
51 | select GENERIC_GPIO | ||
51 | help | 52 | help |
52 | Enable gpiolib support for mpc5200 based boards | 53 | Enable gpiolib support for mpc5200 based boards |
diff --git a/arch/powerpc/platforms/82xx/Kconfig b/arch/powerpc/platforms/82xx/Kconfig index 1c8034bfa796..75eb1ede5497 100644 --- a/arch/powerpc/platforms/82xx/Kconfig +++ b/arch/powerpc/platforms/82xx/Kconfig | |||
@@ -30,6 +30,7 @@ config EP8248E | |||
30 | select 8272 | 30 | select 8272 |
31 | select 8260 | 31 | select 8260 |
32 | select FSL_SOC | 32 | select FSL_SOC |
33 | select PHYLIB | ||
33 | select MDIO_BITBANG | 34 | select MDIO_BITBANG |
34 | help | 35 | help |
35 | This enables support for the Embedded Planet EP8248E board. | 36 | This enables support for the Embedded Planet EP8248E board. |
diff --git a/arch/powerpc/platforms/82xx/ep8248e.c b/arch/powerpc/platforms/82xx/ep8248e.c index 373e993a5ed5..d5770fdf7f09 100644 --- a/arch/powerpc/platforms/82xx/ep8248e.c +++ b/arch/powerpc/platforms/82xx/ep8248e.c | |||
@@ -59,7 +59,6 @@ static void __init ep8248e_pic_init(void) | |||
59 | of_node_put(np); | 59 | of_node_put(np); |
60 | } | 60 | } |
61 | 61 | ||
62 | #ifdef CONFIG_FS_ENET_MDIO_FCC | ||
63 | static void ep8248e_set_mdc(struct mdiobb_ctrl *ctrl, int level) | 62 | static void ep8248e_set_mdc(struct mdiobb_ctrl *ctrl, int level) |
64 | { | 63 | { |
65 | if (level) | 64 | if (level) |
@@ -165,7 +164,6 @@ static struct of_platform_driver ep8248e_mdio_driver = { | |||
165 | .probe = ep8248e_mdio_probe, | 164 | .probe = ep8248e_mdio_probe, |
166 | .remove = ep8248e_mdio_remove, | 165 | .remove = ep8248e_mdio_remove, |
167 | }; | 166 | }; |
168 | #endif | ||
169 | 167 | ||
170 | struct cpm_pin { | 168 | struct cpm_pin { |
171 | int port, pin, flags; | 169 | int port, pin, flags; |
@@ -298,9 +296,7 @@ static __initdata struct of_device_id of_bus_ids[] = { | |||
298 | static int __init declare_of_platform_devices(void) | 296 | static int __init declare_of_platform_devices(void) |
299 | { | 297 | { |
300 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | 298 | of_platform_bus_probe(NULL, of_bus_ids, NULL); |
301 | #ifdef CONFIG_FS_ENET_MDIO_FCC | ||
302 | of_register_platform_driver(&ep8248e_mdio_driver); | 299 | of_register_platform_driver(&ep8248e_mdio_driver); |
303 | #endif | ||
304 | 300 | ||
305 | return 0; | 301 | return 0; |
306 | } | 302 | } |
diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig index 27d9bf86de01..6159c5d4e5f1 100644 --- a/arch/powerpc/platforms/83xx/Kconfig +++ b/arch/powerpc/platforms/83xx/Kconfig | |||
@@ -2,7 +2,8 @@ menuconfig PPC_83xx | |||
2 | bool "83xx-based boards" | 2 | bool "83xx-based boards" |
3 | depends on 6xx && PPC_MULTIPLATFORM | 3 | depends on 6xx && PPC_MULTIPLATFORM |
4 | select PPC_UDBG_16550 | 4 | select PPC_UDBG_16550 |
5 | select PPC_INDIRECT_PCI | 5 | select PPC_PCI_CHOICE |
6 | select FSL_PCI if PCI | ||
6 | select FSL_SOC | 7 | select FSL_SOC |
7 | select IPIC | 8 | select IPIC |
8 | 9 | ||
diff --git a/arch/powerpc/platforms/83xx/Makefile b/arch/powerpc/platforms/83xx/Makefile index f331fd7dd836..ba5028e29890 100644 --- a/arch/powerpc/platforms/83xx/Makefile +++ b/arch/powerpc/platforms/83xx/Makefile | |||
@@ -2,7 +2,7 @@ | |||
2 | # Makefile for the PowerPC 83xx linux kernel. | 2 | # Makefile for the PowerPC 83xx linux kernel. |
3 | # | 3 | # |
4 | obj-y := misc.o usb.o | 4 | obj-y := misc.o usb.o |
5 | obj-$(CONFIG_PCI) += pci.o | 5 | obj-$(CONFIG_SUSPEND) += suspend.o suspend-asm.o |
6 | obj-$(CONFIG_MPC831x_RDB) += mpc831x_rdb.o | 6 | obj-$(CONFIG_MPC831x_RDB) += mpc831x_rdb.o |
7 | obj-$(CONFIG_MPC832x_RDB) += mpc832x_rdb.o | 7 | obj-$(CONFIG_MPC832x_RDB) += mpc832x_rdb.o |
8 | obj-$(CONFIG_MPC834x_MDS) += mpc834x_mds.o | 8 | obj-$(CONFIG_MPC834x_MDS) += mpc834x_mds.o |
diff --git a/arch/powerpc/platforms/83xx/mpc831x_rdb.c b/arch/powerpc/platforms/83xx/mpc831x_rdb.c index c4db5172b27a..a428f8d1ac80 100644 --- a/arch/powerpc/platforms/83xx/mpc831x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc831x_rdb.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/time.h> | 19 | #include <asm/time.h> |
20 | #include <asm/ipic.h> | 20 | #include <asm/ipic.h> |
21 | #include <asm/udbg.h> | 21 | #include <asm/udbg.h> |
22 | #include <sysdev/fsl_pci.h> | ||
22 | 23 | ||
23 | #include "mpc83xx.h" | 24 | #include "mpc83xx.h" |
24 | 25 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc832x_mds.c b/arch/powerpc/platforms/83xx/mpc832x_mds.c index 6dbc6eabcb02..dd4be4aee314 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc832x_mds.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <asm/prom.h> | 36 | #include <asm/prom.h> |
37 | #include <asm/udbg.h> | 37 | #include <asm/udbg.h> |
38 | #include <sysdev/fsl_soc.h> | 38 | #include <sysdev/fsl_soc.h> |
39 | #include <sysdev/fsl_pci.h> | ||
39 | #include <asm/qe.h> | 40 | #include <asm/qe.h> |
40 | #include <asm/qe_ic.h> | 41 | #include <asm/qe_ic.h> |
41 | 42 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c index e7f706b624fe..f049d692d4c8 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <asm/qe.h> | 27 | #include <asm/qe.h> |
28 | #include <asm/qe_ic.h> | 28 | #include <asm/qe_ic.h> |
29 | #include <sysdev/fsl_soc.h> | 29 | #include <sysdev/fsl_soc.h> |
30 | #include <sysdev/fsl_pci.h> | ||
30 | 31 | ||
31 | #include "mpc83xx.h" | 32 | #include "mpc83xx.h" |
32 | 33 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c index 50e8f632061c..7301d77a08ee 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_itx.c +++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <asm/prom.h> | 35 | #include <asm/prom.h> |
36 | #include <asm/udbg.h> | 36 | #include <asm/udbg.h> |
37 | #include <sysdev/fsl_soc.h> | 37 | #include <sysdev/fsl_soc.h> |
38 | #include <sysdev/fsl_pci.h> | ||
38 | 39 | ||
39 | #include "mpc83xx.h" | 40 | #include "mpc83xx.h" |
40 | 41 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index 2b8a0a3f8557..30d509aa9f08 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <asm/prom.h> | 35 | #include <asm/prom.h> |
36 | #include <asm/udbg.h> | 36 | #include <asm/udbg.h> |
37 | #include <sysdev/fsl_soc.h> | 37 | #include <sysdev/fsl_soc.h> |
38 | #include <sysdev/fsl_pci.h> | ||
38 | 39 | ||
39 | #include "mpc83xx.h" | 40 | #include "mpc83xx.h" |
40 | 41 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc836x_mds.c b/arch/powerpc/platforms/83xx/mpc836x_mds.c index c2e5de60c055..75b80e836576 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc836x_mds.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <asm/prom.h> | 42 | #include <asm/prom.h> |
43 | #include <asm/udbg.h> | 43 | #include <asm/udbg.h> |
44 | #include <sysdev/fsl_soc.h> | 44 | #include <sysdev/fsl_soc.h> |
45 | #include <sysdev/fsl_pci.h> | ||
45 | #include <asm/qe.h> | 46 | #include <asm/qe.h> |
46 | #include <asm/qe_ic.h> | 47 | #include <asm/qe_ic.h> |
47 | 48 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc836x_rdk.c b/arch/powerpc/platforms/83xx/mpc836x_rdk.c index c10dec4bf178..a5273bb28e1b 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_rdk.c +++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <asm/qe.h> | 23 | #include <asm/qe.h> |
24 | #include <asm/qe_ic.h> | 24 | #include <asm/qe_ic.h> |
25 | #include <sysdev/fsl_soc.h> | 25 | #include <sysdev/fsl_soc.h> |
26 | #include <sysdev/fsl_pci.h> | ||
26 | 27 | ||
27 | #include "mpc83xx.h" | 28 | #include "mpc83xx.h" |
28 | 29 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc837x_mds.c b/arch/powerpc/platforms/83xx/mpc837x_mds.c index 64d17b0d6455..be62de23bead 100644 --- a/arch/powerpc/platforms/83xx/mpc837x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc837x_mds.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/ipic.h> | 19 | #include <asm/ipic.h> |
20 | #include <asm/udbg.h> | 20 | #include <asm/udbg.h> |
21 | #include <asm/prom.h> | 21 | #include <asm/prom.h> |
22 | #include <sysdev/fsl_pci.h> | ||
22 | 23 | ||
23 | #include "mpc83xx.h" | 24 | #include "mpc83xx.h" |
24 | 25 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc837x_rdb.c b/arch/powerpc/platforms/83xx/mpc837x_rdb.c index c00356bdb1dd..da030afa2e2c 100644 --- a/arch/powerpc/platforms/83xx/mpc837x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc837x_rdb.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <asm/time.h> | 17 | #include <asm/time.h> |
18 | #include <asm/ipic.h> | 18 | #include <asm/ipic.h> |
19 | #include <asm/udbg.h> | 19 | #include <asm/udbg.h> |
20 | #include <sysdev/fsl_pci.h> | ||
20 | 21 | ||
21 | #include "mpc83xx.h" | 22 | #include "mpc83xx.h" |
22 | 23 | ||
diff --git a/arch/powerpc/platforms/83xx/mpc83xx.h b/arch/powerpc/platforms/83xx/mpc83xx.h index 88a3b5cabb18..2a7cbabb410a 100644 --- a/arch/powerpc/platforms/83xx/mpc83xx.h +++ b/arch/powerpc/platforms/83xx/mpc83xx.h | |||
@@ -26,6 +26,8 @@ | |||
26 | #define MPC834X_SICRL_USB1 0x20000000 | 26 | #define MPC834X_SICRL_USB1 0x20000000 |
27 | #define MPC831X_SICRL_USB_MASK 0x00000c00 | 27 | #define MPC831X_SICRL_USB_MASK 0x00000c00 |
28 | #define MPC831X_SICRL_USB_ULPI 0x00000800 | 28 | #define MPC831X_SICRL_USB_ULPI 0x00000800 |
29 | #define MPC8315_SICRL_USB_MASK 0x000000fc | ||
30 | #define MPC8315_SICRL_USB_ULPI 0x00000054 | ||
29 | #define MPC837X_SICRL_USB_MASK 0xf0000000 | 31 | #define MPC837X_SICRL_USB_MASK 0xf0000000 |
30 | #define MPC837X_SICRL_USB_ULPI 0x50000000 | 32 | #define MPC837X_SICRL_USB_ULPI 0x50000000 |
31 | 33 | ||
@@ -34,6 +36,8 @@ | |||
34 | #define MPC834X_SICRH_USB_UTMI 0x00020000 | 36 | #define MPC834X_SICRH_USB_UTMI 0x00020000 |
35 | #define MPC831X_SICRH_USB_MASK 0x000000e0 | 37 | #define MPC831X_SICRH_USB_MASK 0x000000e0 |
36 | #define MPC831X_SICRH_USB_ULPI 0x000000a0 | 38 | #define MPC831X_SICRH_USB_ULPI 0x000000a0 |
39 | #define MPC8315_SICRH_USB_MASK 0x0000ff00 | ||
40 | #define MPC8315_SICRH_USB_ULPI 0x00000000 | ||
37 | 41 | ||
38 | /* USB Control Register */ | 42 | /* USB Control Register */ |
39 | #define FSL_USB2_CONTROL_OFFS 0x500 | 43 | #define FSL_USB2_CONTROL_OFFS 0x500 |
@@ -55,7 +59,6 @@ | |||
55 | * mpc83xx_* files. Mostly for use by mpc83xx_setup | 59 | * mpc83xx_* files. Mostly for use by mpc83xx_setup |
56 | */ | 60 | */ |
57 | 61 | ||
58 | extern int mpc83xx_add_bridge(struct device_node *dev); | ||
59 | extern void mpc83xx_restart(char *cmd); | 62 | extern void mpc83xx_restart(char *cmd); |
60 | extern long mpc83xx_time_init(void); | 63 | extern long mpc83xx_time_init(void); |
61 | extern int mpc834x_usb_cfg(void); | 64 | extern int mpc834x_usb_cfg(void); |
diff --git a/arch/powerpc/platforms/83xx/pci.c b/arch/powerpc/platforms/83xx/pci.c deleted file mode 100644 index 14f1080c6c9d..000000000000 --- a/arch/powerpc/platforms/83xx/pci.c +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
1 | /* | ||
2 | * FSL SoC setup code | ||
3 | * | ||
4 | * Maintained by Kumar Gala (see MAINTAINERS for contact information) | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | */ | ||
11 | |||
12 | #include <linux/stddef.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/errno.h> | ||
16 | #include <linux/pci.h> | ||
17 | #include <linux/delay.h> | ||
18 | #include <linux/irq.h> | ||
19 | #include <linux/module.h> | ||
20 | |||
21 | #include <asm/system.h> | ||
22 | #include <asm/atomic.h> | ||
23 | #include <asm/io.h> | ||
24 | #include <asm/pci-bridge.h> | ||
25 | #include <asm/prom.h> | ||
26 | #include <sysdev/fsl_soc.h> | ||
27 | |||
28 | #undef DEBUG | ||
29 | |||
30 | #ifdef DEBUG | ||
31 | #define DBG(x...) printk(x) | ||
32 | #else | ||
33 | #define DBG(x...) | ||
34 | #endif | ||
35 | |||
36 | int __init mpc83xx_add_bridge(struct device_node *dev) | ||
37 | { | ||
38 | int len; | ||
39 | struct pci_controller *hose; | ||
40 | struct resource rsrc; | ||
41 | const int *bus_range; | ||
42 | int primary = 1, has_address = 0; | ||
43 | phys_addr_t immr = get_immrbase(); | ||
44 | |||
45 | DBG("Adding PCI host bridge %s\n", dev->full_name); | ||
46 | |||
47 | /* Fetch host bridge registers address */ | ||
48 | has_address = (of_address_to_resource(dev, 0, &rsrc) == 0); | ||
49 | |||
50 | /* Get bus range if any */ | ||
51 | bus_range = of_get_property(dev, "bus-range", &len); | ||
52 | if (bus_range == NULL || len < 2 * sizeof(int)) { | ||
53 | printk(KERN_WARNING "Can't get bus-range for %s, assume" | ||
54 | " bus 0\n", dev->full_name); | ||
55 | } | ||
56 | |||
57 | ppc_pci_flags |= PPC_PCI_REASSIGN_ALL_BUS; | ||
58 | hose = pcibios_alloc_controller(dev); | ||
59 | if (!hose) | ||
60 | return -ENOMEM; | ||
61 | |||
62 | hose->first_busno = bus_range ? bus_range[0] : 0; | ||
63 | hose->last_busno = bus_range ? bus_range[1] : 0xff; | ||
64 | |||
65 | /* MPC83xx supports up to two host controllers one at 0x8500 from immrbar | ||
66 | * the other at 0x8600, we consider the 0x8500 the primary controller | ||
67 | */ | ||
68 | /* PCI 1 */ | ||
69 | if ((rsrc.start & 0xfffff) == 0x8500) { | ||
70 | setup_indirect_pci(hose, immr + 0x8300, immr + 0x8304, 0); | ||
71 | } | ||
72 | /* PCI 2 */ | ||
73 | if ((rsrc.start & 0xfffff) == 0x8600) { | ||
74 | setup_indirect_pci(hose, immr + 0x8380, immr + 0x8384, 0); | ||
75 | primary = 0; | ||
76 | } | ||
77 | |||
78 | printk(KERN_INFO "Found MPC83xx PCI host bridge at 0x%016llx. " | ||
79 | "Firmware bus number: %d->%d\n", | ||
80 | (unsigned long long)rsrc.start, hose->first_busno, | ||
81 | hose->last_busno); | ||
82 | |||
83 | DBG(" ->Hose at 0x%p, cfg_addr=0x%p,cfg_data=0x%p\n", | ||
84 | hose, hose->cfg_addr, hose->cfg_data); | ||
85 | |||
86 | /* Interpret the "ranges" property */ | ||
87 | /* This also maps the I/O region and sets isa_io/mem_base */ | ||
88 | pci_process_bridge_OF_ranges(hose, dev, primary); | ||
89 | |||
90 | return 0; | ||
91 | } | ||
diff --git a/arch/powerpc/platforms/83xx/sbc834x.c b/arch/powerpc/platforms/83xx/sbc834x.c index cf382474a83d..fc21f5c15bab 100644 --- a/arch/powerpc/platforms/83xx/sbc834x.c +++ b/arch/powerpc/platforms/83xx/sbc834x.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <asm/prom.h> | 37 | #include <asm/prom.h> |
38 | #include <asm/udbg.h> | 38 | #include <asm/udbg.h> |
39 | #include <sysdev/fsl_soc.h> | 39 | #include <sysdev/fsl_soc.h> |
40 | #include <sysdev/fsl_pci.h> | ||
40 | 41 | ||
41 | #include "mpc83xx.h" | 42 | #include "mpc83xx.h" |
42 | 43 | ||
diff --git a/arch/powerpc/platforms/83xx/suspend-asm.S b/arch/powerpc/platforms/83xx/suspend-asm.S new file mode 100644 index 000000000000..1930543c98d3 --- /dev/null +++ b/arch/powerpc/platforms/83xx/suspend-asm.S | |||
@@ -0,0 +1,533 @@ | |||
1 | /* | ||
2 | * Enter and leave deep sleep state on MPC83xx | ||
3 | * | ||
4 | * Copyright (c) 2006-2008 Freescale Semiconductor, Inc. | ||
5 | * Author: Scott Wood <scottwood@freescale.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published | ||
9 | * by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #include <asm/page.h> | ||
13 | #include <asm/ppc_asm.h> | ||
14 | #include <asm/reg.h> | ||
15 | #include <asm/asm-offsets.h> | ||
16 | |||
17 | #define SS_MEMSAVE 0x00 /* First 8 bytes of RAM */ | ||
18 | #define SS_HID 0x08 /* 3 HIDs */ | ||
19 | #define SS_IABR 0x14 /* 2 IABRs */ | ||
20 | #define SS_IBCR 0x1c | ||
21 | #define SS_DABR 0x20 /* 2 DABRs */ | ||
22 | #define SS_DBCR 0x28 | ||
23 | #define SS_SP 0x2c | ||
24 | #define SS_SR 0x30 /* 16 segment registers */ | ||
25 | #define SS_R2 0x70 | ||
26 | #define SS_MSR 0x74 | ||
27 | #define SS_SDR1 0x78 | ||
28 | #define SS_LR 0x7c | ||
29 | #define SS_SPRG 0x80 /* 4 SPRGs */ | ||
30 | #define SS_DBAT 0x90 /* 8 DBATs */ | ||
31 | #define SS_IBAT 0xd0 /* 8 IBATs */ | ||
32 | #define SS_TB 0x110 | ||
33 | #define SS_CR 0x118 | ||
34 | #define SS_GPREG 0x11c /* r12-r31 */ | ||
35 | #define STATE_SAVE_SIZE 0x16c | ||
36 | |||
37 | .section .data | ||
38 | .align 5 | ||
39 | |||
40 | mpc83xx_sleep_save_area: | ||
41 | .space STATE_SAVE_SIZE | ||
42 | immrbase: | ||
43 | .long 0 | ||
44 | |||
45 | .section .text | ||
46 | .align 5 | ||
47 | |||
48 | /* r3 = physical address of IMMR */ | ||
49 | _GLOBAL(mpc83xx_enter_deep_sleep) | ||
50 | lis r4, immrbase@ha | ||
51 | stw r3, immrbase@l(r4) | ||
52 | |||
53 | /* The first 2 words of memory are used to communicate with the | ||
54 | * bootloader, to tell it how to resume. | ||
55 | * | ||
56 | * The first word is the magic number 0xf5153ae5, and the second | ||
57 | * is the pointer to mpc83xx_deep_resume. | ||
58 | * | ||
59 | * The original content of these two words is saved in SS_MEMSAVE. | ||
60 | */ | ||
61 | |||
62 | lis r3, mpc83xx_sleep_save_area@h | ||
63 | ori r3, r3, mpc83xx_sleep_save_area@l | ||
64 | |||
65 | lis r4, KERNELBASE@h | ||
66 | lwz r5, 0(r4) | ||
67 | lwz r6, 4(r4) | ||
68 | |||
69 | stw r5, SS_MEMSAVE+0(r3) | ||
70 | stw r6, SS_MEMSAVE+4(r3) | ||
71 | |||
72 | mfspr r5, SPRN_HID0 | ||
73 | mfspr r6, SPRN_HID1 | ||
74 | mfspr r7, SPRN_HID2 | ||
75 | |||
76 | stw r5, SS_HID+0(r3) | ||
77 | stw r6, SS_HID+4(r3) | ||
78 | stw r7, SS_HID+8(r3) | ||
79 | |||
80 | mfspr r4, SPRN_IABR | ||
81 | mfspr r5, SPRN_IABR2 | ||
82 | mfspr r6, SPRN_IBCR | ||
83 | mfspr r7, SPRN_DABR | ||
84 | mfspr r8, SPRN_DABR2 | ||
85 | mfspr r9, SPRN_DBCR | ||
86 | |||
87 | stw r4, SS_IABR+0(r3) | ||
88 | stw r5, SS_IABR+4(r3) | ||
89 | stw r6, SS_IBCR(r3) | ||
90 | stw r7, SS_DABR+0(r3) | ||
91 | stw r8, SS_DABR+4(r3) | ||
92 | stw r9, SS_DBCR(r3) | ||
93 | |||
94 | mfspr r4, SPRN_SPRG0 | ||
95 | mfspr r5, SPRN_SPRG1 | ||
96 | mfspr r6, SPRN_SPRG2 | ||
97 | mfspr r7, SPRN_SPRG3 | ||
98 | mfsdr1 r8 | ||
99 | |||
100 | stw r4, SS_SPRG+0(r3) | ||
101 | stw r5, SS_SPRG+4(r3) | ||
102 | stw r6, SS_SPRG+8(r3) | ||
103 | stw r7, SS_SPRG+12(r3) | ||
104 | stw r8, SS_SDR1(r3) | ||
105 | |||
106 | mfspr r4, SPRN_DBAT0U | ||
107 | mfspr r5, SPRN_DBAT0L | ||
108 | mfspr r6, SPRN_DBAT1U | ||
109 | mfspr r7, SPRN_DBAT1L | ||
110 | |||
111 | stw r4, SS_DBAT+0x00(r3) | ||
112 | stw r5, SS_DBAT+0x04(r3) | ||
113 | stw r6, SS_DBAT+0x08(r3) | ||
114 | stw r7, SS_DBAT+0x0c(r3) | ||
115 | |||
116 | mfspr r4, SPRN_DBAT2U | ||
117 | mfspr r5, SPRN_DBAT2L | ||
118 | mfspr r6, SPRN_DBAT3U | ||
119 | mfspr r7, SPRN_DBAT3L | ||
120 | |||
121 | stw r4, SS_DBAT+0x10(r3) | ||
122 | stw r5, SS_DBAT+0x14(r3) | ||
123 | stw r6, SS_DBAT+0x18(r3) | ||
124 | stw r7, SS_DBAT+0x1c(r3) | ||
125 | |||
126 | mfspr r4, SPRN_DBAT4U | ||
127 | mfspr r5, SPRN_DBAT4L | ||
128 | mfspr r6, SPRN_DBAT5U | ||
129 | mfspr r7, SPRN_DBAT5L | ||
130 | |||
131 | stw r4, SS_DBAT+0x20(r3) | ||
132 | stw r5, SS_DBAT+0x24(r3) | ||
133 | stw r6, SS_DBAT+0x28(r3) | ||
134 | stw r7, SS_DBAT+0x2c(r3) | ||
135 | |||
136 | mfspr r4, SPRN_DBAT6U | ||
137 | mfspr r5, SPRN_DBAT6L | ||
138 | mfspr r6, SPRN_DBAT7U | ||
139 | mfspr r7, SPRN_DBAT7L | ||
140 | |||
141 | stw r4, SS_DBAT+0x30(r3) | ||
142 | stw r5, SS_DBAT+0x34(r3) | ||
143 | stw r6, SS_DBAT+0x38(r3) | ||
144 | stw r7, SS_DBAT+0x3c(r3) | ||
145 | |||
146 | mfspr r4, SPRN_IBAT0U | ||
147 | mfspr r5, SPRN_IBAT0L | ||
148 | mfspr r6, SPRN_IBAT1U | ||
149 | mfspr r7, SPRN_IBAT1L | ||
150 | |||
151 | stw r4, SS_IBAT+0x00(r3) | ||
152 | stw r5, SS_IBAT+0x04(r3) | ||
153 | stw r6, SS_IBAT+0x08(r3) | ||
154 | stw r7, SS_IBAT+0x0c(r3) | ||
155 | |||
156 | mfspr r4, SPRN_IBAT2U | ||
157 | mfspr r5, SPRN_IBAT2L | ||
158 | mfspr r6, SPRN_IBAT3U | ||
159 | mfspr r7, SPRN_IBAT3L | ||
160 | |||
161 | stw r4, SS_IBAT+0x10(r3) | ||
162 | stw r5, SS_IBAT+0x14(r3) | ||
163 | stw r6, SS_IBAT+0x18(r3) | ||
164 | stw r7, SS_IBAT+0x1c(r3) | ||
165 | |||
166 | mfspr r4, SPRN_IBAT4U | ||
167 | mfspr r5, SPRN_IBAT4L | ||
168 | mfspr r6, SPRN_IBAT5U | ||
169 | mfspr r7, SPRN_IBAT5L | ||
170 | |||
171 | stw r4, SS_IBAT+0x20(r3) | ||
172 | stw r5, SS_IBAT+0x24(r3) | ||
173 | stw r6, SS_IBAT+0x28(r3) | ||
174 | stw r7, SS_IBAT+0x2c(r3) | ||
175 | |||
176 | mfspr r4, SPRN_IBAT6U | ||
177 | mfspr r5, SPRN_IBAT6L | ||
178 | mfspr r6, SPRN_IBAT7U | ||
179 | mfspr r7, SPRN_IBAT7L | ||
180 | |||
181 | stw r4, SS_IBAT+0x30(r3) | ||
182 | stw r5, SS_IBAT+0x34(r3) | ||
183 | stw r6, SS_IBAT+0x38(r3) | ||
184 | stw r7, SS_IBAT+0x3c(r3) | ||
185 | |||
186 | mfmsr r4 | ||
187 | mflr r5 | ||
188 | mfcr r6 | ||
189 | |||
190 | stw r4, SS_MSR(r3) | ||
191 | stw r5, SS_LR(r3) | ||
192 | stw r6, SS_CR(r3) | ||
193 | stw r1, SS_SP(r3) | ||
194 | stw r2, SS_R2(r3) | ||
195 | |||
196 | 1: mftbu r4 | ||
197 | mftb r5 | ||
198 | mftbu r6 | ||
199 | cmpw r4, r6 | ||
200 | bne 1b | ||
201 | |||
202 | stw r4, SS_TB+0(r3) | ||
203 | stw r5, SS_TB+4(r3) | ||
204 | |||
205 | stmw r12, SS_GPREG(r3) | ||
206 | |||
207 | li r4, 0 | ||
208 | addi r6, r3, SS_SR-4 | ||
209 | 1: mfsrin r5, r4 | ||
210 | stwu r5, 4(r6) | ||
211 | addis r4, r4, 0x1000 | ||
212 | cmpwi r4, 0 | ||
213 | bne 1b | ||
214 | |||
215 | /* Disable machine checks and critical exceptions */ | ||
216 | mfmsr r4 | ||
217 | rlwinm r4, r4, 0, ~MSR_CE | ||
218 | rlwinm r4, r4, 0, ~MSR_ME | ||
219 | mtmsr r4 | ||
220 | isync | ||
221 | |||
222 | #define TMP_VIRT_IMMR 0xf0000000 | ||
223 | #define DEFAULT_IMMR_VALUE 0xff400000 | ||
224 | #define IMMRBAR_BASE 0x0000 | ||
225 | |||
226 | lis r4, immrbase@ha | ||
227 | lwz r4, immrbase@l(r4) | ||
228 | |||
229 | /* Use DBAT0 to address the current IMMR space */ | ||
230 | |||
231 | ori r4, r4, 0x002a | ||
232 | mtspr SPRN_DBAT0L, r4 | ||
233 | lis r8, TMP_VIRT_IMMR@h | ||
234 | ori r4, r8, 0x001e /* 1 MByte accessable from Kernel Space only */ | ||
235 | mtspr SPRN_DBAT0U, r4 | ||
236 | isync | ||
237 | |||
238 | /* Use DBAT1 to address the original IMMR space */ | ||
239 | |||
240 | lis r4, DEFAULT_IMMR_VALUE@h | ||
241 | ori r4, r4, 0x002a | ||
242 | mtspr SPRN_DBAT1L, r4 | ||
243 | lis r9, (TMP_VIRT_IMMR + 0x01000000)@h | ||
244 | ori r4, r9, 0x001e /* 1 MByte accessable from Kernel Space only */ | ||
245 | mtspr SPRN_DBAT1U, r4 | ||
246 | isync | ||
247 | |||
248 | /* Use DBAT2 to address the beginning of RAM. This isn't done | ||
249 | * using the normal virtual mapping, because with page debugging | ||
250 | * enabled it will be read-only. | ||
251 | */ | ||
252 | |||
253 | li r4, 0x0002 | ||
254 | mtspr SPRN_DBAT2L, r4 | ||
255 | lis r4, KERNELBASE@h | ||
256 | ori r4, r4, 0x001e /* 1 MByte accessable from Kernel Space only */ | ||
257 | mtspr SPRN_DBAT2U, r4 | ||
258 | isync | ||
259 | |||
260 | /* Flush the cache with our BAT, as there will be TLB misses | ||
261 | * otherwise if page debugging is enabled, and these misses | ||
262 | * will disturb the PLRU algorithm. | ||
263 | */ | ||
264 | |||
265 | bl __flush_disable_L1 | ||
266 | |||
267 | /* Keep the i-cache enabled, so the hack below for low-boot | ||
268 | * flash will work. | ||
269 | */ | ||
270 | mfspr r3, SPRN_HID0 | ||
271 | ori r3, r3, HID0_ICE | ||
272 | mtspr SPRN_HID0, r3 | ||
273 | isync | ||
274 | |||
275 | lis r6, 0xf515 | ||
276 | ori r6, r6, 0x3ae5 | ||
277 | |||
278 | lis r7, mpc83xx_deep_resume@h | ||
279 | ori r7, r7, mpc83xx_deep_resume@l | ||
280 | tophys(r7, r7) | ||
281 | |||
282 | lis r5, KERNELBASE@h | ||
283 | stw r6, 0(r5) | ||
284 | stw r7, 4(r5) | ||
285 | |||
286 | /* Reset BARs */ | ||
287 | |||
288 | li r4, 0 | ||
289 | stw r4, 0x0024(r8) | ||
290 | stw r4, 0x002c(r8) | ||
291 | stw r4, 0x0034(r8) | ||
292 | stw r4, 0x003c(r8) | ||
293 | stw r4, 0x0064(r8) | ||
294 | stw r4, 0x006c(r8) | ||
295 | |||
296 | /* Rev 1 of the 8313 has problems with wakeup events that are | ||
297 | * pending during the transition to deep sleep state (such as if | ||
298 | * the PCI host sets the state to D3 and then D0 in rapid | ||
299 | * succession). This check shrinks the race window somewhat. | ||
300 | * | ||
301 | * See erratum PCI23, though the problem is not limited | ||
302 | * to PCI. | ||
303 | */ | ||
304 | |||
305 | lwz r3, 0x0b04(r8) | ||
306 | andi. r3, r3, 1 | ||
307 | bne- mpc83xx_deep_resume | ||
308 | |||
309 | /* Move IMMR back to the default location, following the | ||
310 | * procedure specified in the MPC8313 manual. | ||
311 | */ | ||
312 | lwz r4, IMMRBAR_BASE(r8) | ||
313 | isync | ||
314 | lis r4, DEFAULT_IMMR_VALUE@h | ||
315 | stw r4, IMMRBAR_BASE(r8) | ||
316 | lis r4, KERNELBASE@h | ||
317 | lwz r4, 0(r4) | ||
318 | isync | ||
319 | lwz r4, IMMRBAR_BASE(r9) | ||
320 | mr r8, r9 | ||
321 | isync | ||
322 | |||
323 | /* Check the Reset Configuration Word to see whether flash needs | ||
324 | * to be mapped at a low address or a high address. | ||
325 | */ | ||
326 | |||
327 | lwz r4, 0x0904(r8) | ||
328 | andis. r4, r4, 0x0400 | ||
329 | li r4, 0 | ||
330 | beq boot_low | ||
331 | lis r4, 0xff80 | ||
332 | boot_low: | ||
333 | stw r4, 0x0020(r8) | ||
334 | lis r7, 0x8000 | ||
335 | ori r7, r7, 0x0016 | ||
336 | |||
337 | mfspr r5, SPRN_HID0 | ||
338 | rlwinm r5, r5, 0, ~(HID0_DOZE | HID0_NAP) | ||
339 | oris r5, r5, HID0_SLEEP@h | ||
340 | mtspr SPRN_HID0, r5 | ||
341 | isync | ||
342 | |||
343 | mfmsr r5 | ||
344 | oris r5, r5, MSR_POW@h | ||
345 | |||
346 | /* Enable the flash mapping at the appropriate address. This | ||
347 | * mapping will override the RAM mapping if booting low, so there's | ||
348 | * no need to disable the latter. This must be done inside the same | ||
349 | * cache line as setting MSR_POW, so that no instruction fetches | ||
350 | * from RAM happen after the flash mapping is turned on. | ||
351 | */ | ||
352 | |||
353 | .align 5 | ||
354 | stw r7, 0x0024(r8) | ||
355 | sync | ||
356 | isync | ||
357 | mtmsr r5 | ||
358 | isync | ||
359 | 1: b 1b | ||
360 | |||
361 | mpc83xx_deep_resume: | ||
362 | lis r4, 1f@h | ||
363 | ori r4, r4, 1f@l | ||
364 | tophys(r4, r4) | ||
365 | mtsrr0 r4 | ||
366 | |||
367 | mfmsr r4 | ||
368 | rlwinm r4, r4, 0, ~(MSR_IR | MSR_DR) | ||
369 | mtsrr1 r4 | ||
370 | |||
371 | rfi | ||
372 | |||
373 | 1: tlbia | ||
374 | bl __inval_enable_L1 | ||
375 | |||
376 | lis r3, mpc83xx_sleep_save_area@h | ||
377 | ori r3, r3, mpc83xx_sleep_save_area@l | ||
378 | tophys(r3, r3) | ||
379 | |||
380 | lwz r5, SS_MEMSAVE+0(r3) | ||
381 | lwz r6, SS_MEMSAVE+4(r3) | ||
382 | |||
383 | stw r5, 0(0) | ||
384 | stw r6, 4(0) | ||
385 | |||
386 | lwz r5, SS_HID+0(r3) | ||
387 | lwz r6, SS_HID+4(r3) | ||
388 | lwz r7, SS_HID+8(r3) | ||
389 | |||
390 | mtspr SPRN_HID0, r5 | ||
391 | mtspr SPRN_HID1, r6 | ||
392 | mtspr SPRN_HID2, r7 | ||
393 | |||
394 | lwz r4, SS_IABR+0(r3) | ||
395 | lwz r5, SS_IABR+4(r3) | ||
396 | lwz r6, SS_IBCR(r3) | ||
397 | lwz r7, SS_DABR+0(r3) | ||
398 | lwz r8, SS_DABR+4(r3) | ||
399 | lwz r9, SS_DBCR(r3) | ||
400 | |||
401 | mtspr SPRN_IABR, r4 | ||
402 | mtspr SPRN_IABR2, r5 | ||
403 | mtspr SPRN_IBCR, r6 | ||
404 | mtspr SPRN_DABR, r7 | ||
405 | mtspr SPRN_DABR2, r8 | ||
406 | mtspr SPRN_DBCR, r9 | ||
407 | |||
408 | li r4, 0 | ||
409 | addi r6, r3, SS_SR-4 | ||
410 | 1: lwzu r5, 4(r6) | ||
411 | mtsrin r5, r4 | ||
412 | addis r4, r4, 0x1000 | ||
413 | cmpwi r4, 0 | ||
414 | bne 1b | ||
415 | |||
416 | lwz r4, SS_DBAT+0x00(r3) | ||
417 | lwz r5, SS_DBAT+0x04(r3) | ||
418 | lwz r6, SS_DBAT+0x08(r3) | ||
419 | lwz r7, SS_DBAT+0x0c(r3) | ||
420 | |||
421 | mtspr SPRN_DBAT0U, r4 | ||
422 | mtspr SPRN_DBAT0L, r5 | ||
423 | mtspr SPRN_DBAT1U, r6 | ||
424 | mtspr SPRN_DBAT1L, r7 | ||
425 | |||
426 | lwz r4, SS_DBAT+0x10(r3) | ||
427 | lwz r5, SS_DBAT+0x14(r3) | ||
428 | lwz r6, SS_DBAT+0x18(r3) | ||
429 | lwz r7, SS_DBAT+0x1c(r3) | ||
430 | |||
431 | mtspr SPRN_DBAT2U, r4 | ||
432 | mtspr SPRN_DBAT2L, r5 | ||
433 | mtspr SPRN_DBAT3U, r6 | ||
434 | mtspr SPRN_DBAT3L, r7 | ||
435 | |||
436 | lwz r4, SS_DBAT+0x20(r3) | ||
437 | lwz r5, SS_DBAT+0x24(r3) | ||
438 | lwz r6, SS_DBAT+0x28(r3) | ||
439 | lwz r7, SS_DBAT+0x2c(r3) | ||
440 | |||
441 | mtspr SPRN_DBAT4U, r4 | ||
442 | mtspr SPRN_DBAT4L, r5 | ||
443 | mtspr SPRN_DBAT5U, r6 | ||
444 | mtspr SPRN_DBAT5L, r7 | ||
445 | |||
446 | lwz r4, SS_DBAT+0x30(r3) | ||
447 | lwz r5, SS_DBAT+0x34(r3) | ||
448 | lwz r6, SS_DBAT+0x38(r3) | ||
449 | lwz r7, SS_DBAT+0x3c(r3) | ||
450 | |||
451 | mtspr SPRN_DBAT6U, r4 | ||
452 | mtspr SPRN_DBAT6L, r5 | ||
453 | mtspr SPRN_DBAT7U, r6 | ||
454 | mtspr SPRN_DBAT7L, r7 | ||
455 | |||
456 | lwz r4, SS_IBAT+0x00(r3) | ||
457 | lwz r5, SS_IBAT+0x04(r3) | ||
458 | lwz r6, SS_IBAT+0x08(r3) | ||
459 | lwz r7, SS_IBAT+0x0c(r3) | ||
460 | |||
461 | mtspr SPRN_IBAT0U, r4 | ||
462 | mtspr SPRN_IBAT0L, r5 | ||
463 | mtspr SPRN_IBAT1U, r6 | ||
464 | mtspr SPRN_IBAT1L, r7 | ||
465 | |||
466 | lwz r4, SS_IBAT+0x10(r3) | ||
467 | lwz r5, SS_IBAT+0x14(r3) | ||
468 | lwz r6, SS_IBAT+0x18(r3) | ||
469 | lwz r7, SS_IBAT+0x1c(r3) | ||
470 | |||
471 | mtspr SPRN_IBAT2U, r4 | ||
472 | mtspr SPRN_IBAT2L, r5 | ||
473 | mtspr SPRN_IBAT3U, r6 | ||
474 | mtspr SPRN_IBAT3L, r7 | ||
475 | |||
476 | lwz r4, SS_IBAT+0x20(r3) | ||
477 | lwz r5, SS_IBAT+0x24(r3) | ||
478 | lwz r6, SS_IBAT+0x28(r3) | ||
479 | lwz r7, SS_IBAT+0x2c(r3) | ||
480 | |||
481 | mtspr SPRN_IBAT4U, r4 | ||
482 | mtspr SPRN_IBAT4L, r5 | ||
483 | mtspr SPRN_IBAT5U, r6 | ||
484 | mtspr SPRN_IBAT5L, r7 | ||
485 | |||
486 | lwz r4, SS_IBAT+0x30(r3) | ||
487 | lwz r5, SS_IBAT+0x34(r3) | ||
488 | lwz r6, SS_IBAT+0x38(r3) | ||
489 | lwz r7, SS_IBAT+0x3c(r3) | ||
490 | |||
491 | mtspr SPRN_IBAT6U, r4 | ||
492 | mtspr SPRN_IBAT6L, r5 | ||
493 | mtspr SPRN_IBAT7U, r6 | ||
494 | mtspr SPRN_IBAT7L, r7 | ||
495 | |||
496 | lwz r4, SS_SPRG+0(r3) | ||
497 | lwz r5, SS_SPRG+4(r3) | ||
498 | lwz r6, SS_SPRG+8(r3) | ||
499 | lwz r7, SS_SPRG+12(r3) | ||
500 | lwz r8, SS_SDR1(r3) | ||
501 | |||
502 | mtspr SPRN_SPRG0, r4 | ||
503 | mtspr SPRN_SPRG1, r5 | ||
504 | mtspr SPRN_SPRG2, r6 | ||
505 | mtspr SPRN_SPRG3, r7 | ||
506 | mtsdr1 r8 | ||
507 | |||
508 | lwz r4, SS_MSR(r3) | ||
509 | lwz r5, SS_LR(r3) | ||
510 | lwz r6, SS_CR(r3) | ||
511 | lwz r1, SS_SP(r3) | ||
512 | lwz r2, SS_R2(r3) | ||
513 | |||
514 | mtsrr1 r4 | ||
515 | mtsrr0 r5 | ||
516 | mtcr r6 | ||
517 | |||
518 | li r4, 0 | ||
519 | mtspr SPRN_TBWL, r4 | ||
520 | |||
521 | lwz r4, SS_TB+0(r3) | ||
522 | lwz r5, SS_TB+4(r3) | ||
523 | |||
524 | mtspr SPRN_TBWU, r4 | ||
525 | mtspr SPRN_TBWL, r5 | ||
526 | |||
527 | lmw r12, SS_GPREG(r3) | ||
528 | |||
529 | /* Kick decrementer */ | ||
530 | li r0, 1 | ||
531 | mtdec r0 | ||
532 | |||
533 | rfi | ||
diff --git a/arch/powerpc/platforms/83xx/suspend.c b/arch/powerpc/platforms/83xx/suspend.c new file mode 100644 index 000000000000..08e65fc8b98c --- /dev/null +++ b/arch/powerpc/platforms/83xx/suspend.c | |||
@@ -0,0 +1,388 @@ | |||
1 | /* | ||
2 | * MPC83xx suspend support | ||
3 | * | ||
4 | * Author: Scott Wood <scottwood@freescale.com> | ||
5 | * | ||
6 | * Copyright (c) 2006-2007 Freescale Semiconductor, Inc. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License version 2 as published | ||
10 | * by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/init.h> | ||
14 | #include <linux/pm.h> | ||
15 | #include <linux/types.h> | ||
16 | #include <linux/ioport.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/wait.h> | ||
19 | #include <linux/kthread.h> | ||
20 | #include <linux/freezer.h> | ||
21 | #include <linux/suspend.h> | ||
22 | #include <linux/fsl_devices.h> | ||
23 | #include <linux/of_platform.h> | ||
24 | |||
25 | #include <asm/reg.h> | ||
26 | #include <asm/io.h> | ||
27 | #include <asm/time.h> | ||
28 | #include <asm/mpc6xx.h> | ||
29 | |||
30 | #include <sysdev/fsl_soc.h> | ||
31 | |||
32 | #define PMCCR1_NEXT_STATE 0x0C /* Next state for power management */ | ||
33 | #define PMCCR1_NEXT_STATE_SHIFT 2 | ||
34 | #define PMCCR1_CURR_STATE 0x03 /* Current state for power management*/ | ||
35 | #define IMMR_RCW_OFFSET 0x900 | ||
36 | #define RCW_PCI_HOST 0x80000000 | ||
37 | |||
38 | void mpc83xx_enter_deep_sleep(phys_addr_t immrbase); | ||
39 | |||
40 | struct mpc83xx_pmc { | ||
41 | u32 config; | ||
42 | #define PMCCR_DLPEN 2 /* DDR SDRAM low power enable */ | ||
43 | #define PMCCR_SLPEN 1 /* System low power enable */ | ||
44 | |||
45 | u32 event; | ||
46 | u32 mask; | ||
47 | /* All but PMCI are deep-sleep only */ | ||
48 | #define PMCER_GPIO 0x100 | ||
49 | #define PMCER_PCI 0x080 | ||
50 | #define PMCER_USB 0x040 | ||
51 | #define PMCER_ETSEC1 0x020 | ||
52 | #define PMCER_ETSEC2 0x010 | ||
53 | #define PMCER_TIMER 0x008 | ||
54 | #define PMCER_INT1 0x004 | ||
55 | #define PMCER_INT2 0x002 | ||
56 | #define PMCER_PMCI 0x001 | ||
57 | #define PMCER_ALL 0x1FF | ||
58 | |||
59 | /* deep-sleep only */ | ||
60 | u32 config1; | ||
61 | #define PMCCR1_USE_STATE 0x80000000 | ||
62 | #define PMCCR1_PME_EN 0x00000080 | ||
63 | #define PMCCR1_ASSERT_PME 0x00000040 | ||
64 | #define PMCCR1_POWER_OFF 0x00000020 | ||
65 | |||
66 | /* deep-sleep only */ | ||
67 | u32 config2; | ||
68 | }; | ||
69 | |||
70 | struct mpc83xx_rcw { | ||
71 | u32 rcwlr; | ||
72 | u32 rcwhr; | ||
73 | }; | ||
74 | |||
75 | struct mpc83xx_clock { | ||
76 | u32 spmr; | ||
77 | u32 occr; | ||
78 | u32 sccr; | ||
79 | }; | ||
80 | |||
81 | struct pmc_type { | ||
82 | int has_deep_sleep; | ||
83 | }; | ||
84 | |||
85 | static struct of_device *pmc_dev; | ||
86 | static int has_deep_sleep, deep_sleeping; | ||
87 | static int pmc_irq; | ||
88 | static struct mpc83xx_pmc __iomem *pmc_regs; | ||
89 | static struct mpc83xx_clock __iomem *clock_regs; | ||
90 | static int is_pci_agent, wake_from_pci; | ||
91 | static phys_addr_t immrbase; | ||
92 | static int pci_pm_state; | ||
93 | static DECLARE_WAIT_QUEUE_HEAD(agent_wq); | ||
94 | |||
95 | int fsl_deep_sleep(void) | ||
96 | { | ||
97 | return deep_sleeping; | ||
98 | } | ||
99 | |||
100 | static int mpc83xx_change_state(void) | ||
101 | { | ||
102 | u32 curr_state; | ||
103 | u32 reg_cfg1 = in_be32(&pmc_regs->config1); | ||
104 | |||
105 | if (is_pci_agent) { | ||
106 | pci_pm_state = (reg_cfg1 & PMCCR1_NEXT_STATE) >> | ||
107 | PMCCR1_NEXT_STATE_SHIFT; | ||
108 | curr_state = reg_cfg1 & PMCCR1_CURR_STATE; | ||
109 | |||
110 | if (curr_state != pci_pm_state) { | ||
111 | reg_cfg1 &= ~PMCCR1_CURR_STATE; | ||
112 | reg_cfg1 |= pci_pm_state; | ||
113 | out_be32(&pmc_regs->config1, reg_cfg1); | ||
114 | |||
115 | wake_up(&agent_wq); | ||
116 | return 1; | ||
117 | } | ||
118 | } | ||
119 | |||
120 | return 0; | ||
121 | } | ||
122 | |||
123 | static irqreturn_t pmc_irq_handler(int irq, void *dev_id) | ||
124 | { | ||
125 | u32 event = in_be32(&pmc_regs->event); | ||
126 | int ret = IRQ_NONE; | ||
127 | |||
128 | if (mpc83xx_change_state()) | ||
129 | ret = IRQ_HANDLED; | ||
130 | |||
131 | if (event) { | ||
132 | out_be32(&pmc_regs->event, event); | ||
133 | ret = IRQ_HANDLED; | ||
134 | } | ||
135 | |||
136 | return ret; | ||
137 | } | ||
138 | |||
139 | static int mpc83xx_suspend_enter(suspend_state_t state) | ||
140 | { | ||
141 | int ret = -EAGAIN; | ||
142 | |||
143 | /* Don't go to sleep if there's a race where pci_pm_state changes | ||
144 | * between the agent thread checking it and the PM code disabling | ||
145 | * interrupts. | ||
146 | */ | ||
147 | if (wake_from_pci) { | ||
148 | if (pci_pm_state != (deep_sleeping ? 3 : 2)) | ||
149 | goto out; | ||
150 | |||
151 | out_be32(&pmc_regs->config1, | ||
152 | in_be32(&pmc_regs->config1) | PMCCR1_PME_EN); | ||
153 | } | ||
154 | |||
155 | /* Put the system into low-power mode and the RAM | ||
156 | * into self-refresh mode once the core goes to | ||
157 | * sleep. | ||
158 | */ | ||
159 | |||
160 | out_be32(&pmc_regs->config, PMCCR_SLPEN | PMCCR_DLPEN); | ||
161 | |||
162 | /* If it has deep sleep (i.e. it's an 831x or compatible), | ||
163 | * disable power to the core upon entering sleep mode. This will | ||
164 | * require going through the boot firmware upon a wakeup event. | ||
165 | */ | ||
166 | |||
167 | if (deep_sleeping) { | ||
168 | out_be32(&pmc_regs->mask, PMCER_ALL); | ||
169 | |||
170 | out_be32(&pmc_regs->config1, | ||
171 | in_be32(&pmc_regs->config1) | PMCCR1_POWER_OFF); | ||
172 | |||
173 | enable_kernel_fp(); | ||
174 | |||
175 | mpc83xx_enter_deep_sleep(immrbase); | ||
176 | |||
177 | out_be32(&pmc_regs->config1, | ||
178 | in_be32(&pmc_regs->config1) & ~PMCCR1_POWER_OFF); | ||
179 | |||
180 | out_be32(&pmc_regs->mask, PMCER_PMCI); | ||
181 | } else { | ||
182 | out_be32(&pmc_regs->mask, PMCER_PMCI); | ||
183 | |||
184 | mpc6xx_enter_standby(); | ||
185 | } | ||
186 | |||
187 | ret = 0; | ||
188 | |||
189 | out: | ||
190 | out_be32(&pmc_regs->config1, | ||
191 | in_be32(&pmc_regs->config1) & ~PMCCR1_PME_EN); | ||
192 | |||
193 | return ret; | ||
194 | } | ||
195 | |||
196 | static void mpc83xx_suspend_finish(void) | ||
197 | { | ||
198 | deep_sleeping = 0; | ||
199 | } | ||
200 | |||
201 | static int mpc83xx_suspend_valid(suspend_state_t state) | ||
202 | { | ||
203 | return state == PM_SUSPEND_STANDBY || state == PM_SUSPEND_MEM; | ||
204 | } | ||
205 | |||
206 | static int mpc83xx_suspend_begin(suspend_state_t state) | ||
207 | { | ||
208 | switch (state) { | ||
209 | case PM_SUSPEND_STANDBY: | ||
210 | deep_sleeping = 0; | ||
211 | return 0; | ||
212 | |||
213 | case PM_SUSPEND_MEM: | ||
214 | if (has_deep_sleep) | ||
215 | deep_sleeping = 1; | ||
216 | |||
217 | return 0; | ||
218 | |||
219 | default: | ||
220 | return -EINVAL; | ||
221 | } | ||
222 | } | ||
223 | |||
224 | static int agent_thread_fn(void *data) | ||
225 | { | ||
226 | while (1) { | ||
227 | wait_event_interruptible(agent_wq, pci_pm_state >= 2); | ||
228 | try_to_freeze(); | ||
229 | |||
230 | if (signal_pending(current) || pci_pm_state < 2) | ||
231 | continue; | ||
232 | |||
233 | /* With a preemptible kernel (or SMP), this could race with | ||
234 | * a userspace-driven suspend request. It's probably best | ||
235 | * to avoid mixing the two with such a configuration (or | ||
236 | * else fix it by adding a mutex to state_store that we can | ||
237 | * synchronize with). | ||
238 | */ | ||
239 | |||
240 | wake_from_pci = 1; | ||
241 | |||
242 | pm_suspend(pci_pm_state == 3 ? PM_SUSPEND_MEM : | ||
243 | PM_SUSPEND_STANDBY); | ||
244 | |||
245 | wake_from_pci = 0; | ||
246 | } | ||
247 | |||
248 | return 0; | ||
249 | } | ||
250 | |||
251 | static void mpc83xx_set_agent(void) | ||
252 | { | ||
253 | out_be32(&pmc_regs->config1, PMCCR1_USE_STATE); | ||
254 | out_be32(&pmc_regs->mask, PMCER_PMCI); | ||
255 | |||
256 | kthread_run(agent_thread_fn, NULL, "PCI power mgt"); | ||
257 | } | ||
258 | |||
259 | static int mpc83xx_is_pci_agent(void) | ||
260 | { | ||
261 | struct mpc83xx_rcw __iomem *rcw_regs; | ||
262 | int ret; | ||
263 | |||
264 | rcw_regs = ioremap(get_immrbase() + IMMR_RCW_OFFSET, | ||
265 | sizeof(struct mpc83xx_rcw)); | ||
266 | |||
267 | if (!rcw_regs) | ||
268 | return -ENOMEM; | ||
269 | |||
270 | ret = !(in_be32(&rcw_regs->rcwhr) & RCW_PCI_HOST); | ||
271 | |||
272 | iounmap(rcw_regs); | ||
273 | return ret; | ||
274 | } | ||
275 | |||
276 | static struct platform_suspend_ops mpc83xx_suspend_ops = { | ||
277 | .valid = mpc83xx_suspend_valid, | ||
278 | .begin = mpc83xx_suspend_begin, | ||
279 | .enter = mpc83xx_suspend_enter, | ||
280 | .finish = mpc83xx_suspend_finish, | ||
281 | }; | ||
282 | |||
283 | static int pmc_probe(struct of_device *ofdev, | ||
284 | const struct of_device_id *match) | ||
285 | { | ||
286 | struct device_node *np = ofdev->node; | ||
287 | struct resource res; | ||
288 | struct pmc_type *type = match->data; | ||
289 | int ret = 0; | ||
290 | |||
291 | if (!of_device_is_available(np)) | ||
292 | return -ENODEV; | ||
293 | |||
294 | has_deep_sleep = type->has_deep_sleep; | ||
295 | immrbase = get_immrbase(); | ||
296 | pmc_dev = ofdev; | ||
297 | |||
298 | is_pci_agent = mpc83xx_is_pci_agent(); | ||
299 | if (is_pci_agent < 0) | ||
300 | return is_pci_agent; | ||
301 | |||
302 | ret = of_address_to_resource(np, 0, &res); | ||
303 | if (ret) | ||
304 | return -ENODEV; | ||
305 | |||
306 | pmc_irq = irq_of_parse_and_map(np, 0); | ||
307 | if (pmc_irq != NO_IRQ) { | ||
308 | ret = request_irq(pmc_irq, pmc_irq_handler, IRQF_SHARED, | ||
309 | "pmc", ofdev); | ||
310 | |||
311 | if (ret) | ||
312 | return -EBUSY; | ||
313 | } | ||
314 | |||
315 | pmc_regs = ioremap(res.start, sizeof(struct mpc83xx_pmc)); | ||
316 | |||
317 | if (!pmc_regs) { | ||
318 | ret = -ENOMEM; | ||
319 | goto out; | ||
320 | } | ||
321 | |||
322 | ret = of_address_to_resource(np, 1, &res); | ||
323 | if (ret) { | ||
324 | ret = -ENODEV; | ||
325 | goto out_pmc; | ||
326 | } | ||
327 | |||
328 | clock_regs = ioremap(res.start, sizeof(struct mpc83xx_pmc)); | ||
329 | |||
330 | if (!clock_regs) { | ||
331 | ret = -ENOMEM; | ||
332 | goto out_pmc; | ||
333 | } | ||
334 | |||
335 | if (is_pci_agent) | ||
336 | mpc83xx_set_agent(); | ||
337 | |||
338 | suspend_set_ops(&mpc83xx_suspend_ops); | ||
339 | return 0; | ||
340 | |||
341 | out_pmc: | ||
342 | iounmap(pmc_regs); | ||
343 | out: | ||
344 | if (pmc_irq != NO_IRQ) | ||
345 | free_irq(pmc_irq, ofdev); | ||
346 | |||
347 | return ret; | ||
348 | } | ||
349 | |||
350 | static int pmc_remove(struct of_device *ofdev) | ||
351 | { | ||
352 | return -EPERM; | ||
353 | }; | ||
354 | |||
355 | static struct pmc_type pmc_types[] = { | ||
356 | { | ||
357 | .has_deep_sleep = 1, | ||
358 | }, | ||
359 | { | ||
360 | .has_deep_sleep = 0, | ||
361 | } | ||
362 | }; | ||
363 | |||
364 | static struct of_device_id pmc_match[] = { | ||
365 | { | ||
366 | .compatible = "fsl,mpc8313-pmc", | ||
367 | .data = &pmc_types[0], | ||
368 | }, | ||
369 | { | ||
370 | .compatible = "fsl,mpc8349-pmc", | ||
371 | .data = &pmc_types[1], | ||
372 | }, | ||
373 | {} | ||
374 | }; | ||
375 | |||
376 | static struct of_platform_driver pmc_driver = { | ||
377 | .name = "mpc83xx-pmc", | ||
378 | .match_table = pmc_match, | ||
379 | .probe = pmc_probe, | ||
380 | .remove = pmc_remove | ||
381 | }; | ||
382 | |||
383 | static int pmc_init(void) | ||
384 | { | ||
385 | return of_register_platform_driver(&pmc_driver); | ||
386 | } | ||
387 | |||
388 | module_init(pmc_init); | ||
diff --git a/arch/powerpc/platforms/83xx/usb.c b/arch/powerpc/platforms/83xx/usb.c index 64bcf0a33c71..cc99c280aad9 100644 --- a/arch/powerpc/platforms/83xx/usb.c +++ b/arch/powerpc/platforms/83xx/usb.c | |||
@@ -137,15 +137,21 @@ int mpc831x_usb_cfg(void) | |||
137 | 137 | ||
138 | /* Configure pin mux for ULPI. There is no pin mux for UTMI */ | 138 | /* Configure pin mux for ULPI. There is no pin mux for UTMI */ |
139 | if (prop && !strcmp(prop, "ulpi")) { | 139 | if (prop && !strcmp(prop, "ulpi")) { |
140 | temp = in_be32(immap + MPC83XX_SICRL_OFFS); | 140 | if (of_device_is_compatible(immr_node, "fsl,mpc8315-immr")) { |
141 | temp &= ~MPC831X_SICRL_USB_MASK; | 141 | clrsetbits_be32(immap + MPC83XX_SICRL_OFFS, |
142 | temp |= MPC831X_SICRL_USB_ULPI; | 142 | MPC8315_SICRL_USB_MASK, |
143 | out_be32(immap + MPC83XX_SICRL_OFFS, temp); | 143 | MPC8315_SICRL_USB_ULPI); |
144 | 144 | clrsetbits_be32(immap + MPC83XX_SICRH_OFFS, | |
145 | temp = in_be32(immap + MPC83XX_SICRH_OFFS); | 145 | MPC8315_SICRH_USB_MASK, |
146 | temp &= ~MPC831X_SICRH_USB_MASK; | 146 | MPC8315_SICRH_USB_ULPI); |
147 | temp |= MPC831X_SICRH_USB_ULPI; | 147 | } else { |
148 | out_be32(immap + MPC83XX_SICRH_OFFS, temp); | 148 | clrsetbits_be32(immap + MPC83XX_SICRL_OFFS, |
149 | MPC831X_SICRL_USB_MASK, | ||
150 | MPC831X_SICRL_USB_ULPI); | ||
151 | clrsetbits_be32(immap + MPC83XX_SICRH_OFFS, | ||
152 | MPC831X_SICRH_USB_MASK, | ||
153 | MPC831X_SICRH_USB_ULPI); | ||
154 | } | ||
149 | } | 155 | } |
150 | 156 | ||
151 | iounmap(immap); | 157 | iounmap(immap); |
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig index cebea5cadbc1..291675b0097a 100644 --- a/arch/powerpc/platforms/85xx/Kconfig +++ b/arch/powerpc/platforms/85xx/Kconfig | |||
@@ -2,8 +2,8 @@ menuconfig MPC85xx | |||
2 | bool "Machine Type" | 2 | bool "Machine Type" |
3 | depends on PPC_85xx | 3 | depends on PPC_85xx |
4 | select PPC_UDBG_16550 | 4 | select PPC_UDBG_16550 |
5 | select PPC_INDIRECT_PCI if PCI | ||
6 | select MPIC | 5 | select MPIC |
6 | select PPC_PCI_CHOICE | ||
7 | select FSL_PCI if PCI | 7 | select FSL_PCI if PCI |
8 | select SERIAL_8250_SHARE_IRQ if SERIAL_8250 | 8 | select SERIAL_8250_SHARE_IRQ if SERIAL_8250 |
9 | default y | 9 | default y |
@@ -86,7 +86,6 @@ config TQM8548 | |||
86 | help | 86 | help |
87 | This option enables support for the TQ Components TQM8548 board. | 87 | This option enables support for the TQ Components TQM8548 board. |
88 | select DEFAULT_UIMAGE | 88 | select DEFAULT_UIMAGE |
89 | select PPC_CPM_NEW_BINDING | ||
90 | select TQM85xx | 89 | select TQM85xx |
91 | 90 | ||
92 | config TQM8555 | 91 | config TQM8555 |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c index 25f41cd2d33a..00c535806647 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c | |||
@@ -115,7 +115,6 @@ void __init mpc85xx_ds_pic_init(void) | |||
115 | 115 | ||
116 | #ifdef CONFIG_PCI | 116 | #ifdef CONFIG_PCI |
117 | static int primary_phb_addr; | 117 | static int primary_phb_addr; |
118 | extern int uses_fsl_uli_m1575; | ||
119 | extern int uli_exclude_device(struct pci_controller *hose, | 118 | extern int uli_exclude_device(struct pci_controller *hose, |
120 | u_char bus, u_char devfn); | 119 | u_char bus, u_char devfn); |
121 | 120 | ||
@@ -161,7 +160,6 @@ static void __init mpc85xx_ds_setup_arch(void) | |||
161 | } | 160 | } |
162 | } | 161 | } |
163 | 162 | ||
164 | uses_fsl_uli_m1575 = 1; | ||
165 | ppc_md.pci_exclude_device = mpc85xx_exclude_device; | 163 | ppc_md.pci_exclude_device = mpc85xx_exclude_device; |
166 | #endif | 164 | #endif |
167 | 165 | ||
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig index 80a81e02bb55..9355a5269431 100644 --- a/arch/powerpc/platforms/86xx/Kconfig +++ b/arch/powerpc/platforms/86xx/Kconfig | |||
@@ -27,6 +27,7 @@ config SBC8641D | |||
27 | config MPC8610_HPCD | 27 | config MPC8610_HPCD |
28 | bool "Freescale MPC8610 HPCD" | 28 | bool "Freescale MPC8610 HPCD" |
29 | select DEFAULT_UIMAGE | 29 | select DEFAULT_UIMAGE |
30 | select FSL_ULI1575 | ||
30 | help | 31 | help |
31 | This option enables support for the MPC8610 HPCD board. | 32 | This option enables support for the MPC8610 HPCD board. |
32 | 33 | ||
@@ -34,6 +35,7 @@ endif | |||
34 | 35 | ||
35 | config MPC8641 | 36 | config MPC8641 |
36 | bool | 37 | bool |
38 | select PPC_PCI_CHOICE | ||
37 | select FSL_PCI if PCI | 39 | select FSL_PCI if PCI |
38 | select PPC_UDBG_16550 | 40 | select PPC_UDBG_16550 |
39 | select MPIC | 41 | select MPIC |
@@ -41,6 +43,7 @@ config MPC8641 | |||
41 | 43 | ||
42 | config MPC8610 | 44 | config MPC8610 |
43 | bool | 45 | bool |
46 | select PPC_PCI_CHOICE | ||
44 | select FSL_PCI if PCI | 47 | select FSL_PCI if PCI |
45 | select PPC_UDBG_16550 | 48 | select PPC_UDBG_16550 |
46 | select MPIC | 49 | select MPIC |
diff --git a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c index 30725302884a..5eedb710896e 100644 --- a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c +++ b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c | |||
@@ -58,93 +58,6 @@ static int __init mpc8610_declare_of_platform_devices(void) | |||
58 | } | 58 | } |
59 | machine_device_initcall(mpc86xx_hpcd, mpc8610_declare_of_platform_devices); | 59 | machine_device_initcall(mpc86xx_hpcd, mpc8610_declare_of_platform_devices); |
60 | 60 | ||
61 | #ifdef CONFIG_PCI | ||
62 | static void __devinit quirk_uli1575(struct pci_dev *dev) | ||
63 | { | ||
64 | u32 temp32; | ||
65 | |||
66 | /* Disable INTx */ | ||
67 | pci_read_config_dword(dev, 0x48, &temp32); | ||
68 | pci_write_config_dword(dev, 0x48, (temp32 | 1<<26)); | ||
69 | |||
70 | /* Enable sideband interrupt */ | ||
71 | pci_read_config_dword(dev, 0x90, &temp32); | ||
72 | pci_write_config_dword(dev, 0x90, (temp32 | 1<<22)); | ||
73 | } | ||
74 | |||
75 | static void __devinit quirk_uli5288(struct pci_dev *dev) | ||
76 | { | ||
77 | unsigned char c; | ||
78 | unsigned short temp; | ||
79 | |||
80 | /* Interrupt Disable, Needed when SATA disabled */ | ||
81 | pci_read_config_word(dev, PCI_COMMAND, &temp); | ||
82 | temp |= 1<<10; | ||
83 | pci_write_config_word(dev, PCI_COMMAND, temp); | ||
84 | |||
85 | pci_read_config_byte(dev, 0x83, &c); | ||
86 | c |= 0x80; | ||
87 | pci_write_config_byte(dev, 0x83, c); | ||
88 | |||
89 | pci_write_config_byte(dev, PCI_CLASS_PROG, 0x01); | ||
90 | pci_write_config_byte(dev, PCI_CLASS_DEVICE, 0x06); | ||
91 | |||
92 | pci_read_config_byte(dev, 0x83, &c); | ||
93 | c &= 0x7f; | ||
94 | pci_write_config_byte(dev, 0x83, c); | ||
95 | } | ||
96 | |||
97 | /* | ||
98 | * Since 8259PIC was disabled on the board, the IDE device can not | ||
99 | * use the legacy IRQ, we need to let the IDE device work under | ||
100 | * native mode and use the interrupt line like other PCI devices. | ||
101 | * IRQ14 is a sideband interrupt from IDE device to CPU and we use this | ||
102 | * as the interrupt for IDE device. | ||
103 | */ | ||
104 | static void __devinit quirk_uli5229(struct pci_dev *dev) | ||
105 | { | ||
106 | unsigned char c; | ||
107 | |||
108 | pci_read_config_byte(dev, 0x4b, &c); | ||
109 | c |= 0x10; | ||
110 | pci_write_config_byte(dev, 0x4b, c); | ||
111 | } | ||
112 | |||
113 | /* | ||
114 | * SATA interrupt pin bug fix | ||
115 | * There's a chip bug for 5288, The interrupt pin should be 2, | ||
116 | * not the read only value 1, So it use INTB#, not INTA# which | ||
117 | * actually used by the IDE device 5229. | ||
118 | * As of this bug, during the PCI initialization, 5288 read the | ||
119 | * irq of IDE device from the device tree, this function fix this | ||
120 | * bug by re-assigning a correct irq to 5288. | ||
121 | * | ||
122 | */ | ||
123 | static void __devinit final_uli5288(struct pci_dev *dev) | ||
124 | { | ||
125 | struct pci_controller *hose = pci_bus_to_host(dev->bus); | ||
126 | struct device_node *hosenode = hose ? hose->dn : NULL; | ||
127 | struct of_irq oirq; | ||
128 | int virq, pin = 2; | ||
129 | u32 laddr[3]; | ||
130 | |||
131 | if (!hosenode) | ||
132 | return; | ||
133 | |||
134 | laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8); | ||
135 | laddr[1] = laddr[2] = 0; | ||
136 | of_irq_map_raw(hosenode, &pin, 1, laddr, &oirq); | ||
137 | virq = irq_create_of_mapping(oirq.controller, oirq.specifier, | ||
138 | oirq.size); | ||
139 | dev->irq = virq; | ||
140 | } | ||
141 | |||
142 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x1575, quirk_uli1575); | ||
143 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5288, quirk_uli5288); | ||
144 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5229, quirk_uli5229); | ||
145 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x5288, final_uli5288); | ||
146 | #endif /* CONFIG_PCI */ | ||
147 | |||
148 | #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE) | 61 | #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE) |
149 | 62 | ||
150 | static u32 get_busfreq(void) | 63 | static u32 get_busfreq(void) |
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 7916599c9126..f712d9c0991b 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | |||
@@ -45,7 +45,6 @@ | |||
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #ifdef CONFIG_PCI | 47 | #ifdef CONFIG_PCI |
48 | extern int uses_fsl_uli_m1575; | ||
49 | extern int uli_exclude_device(struct pci_controller *hose, | 48 | extern int uli_exclude_device(struct pci_controller *hose, |
50 | u_char bus, u_char devfn); | 49 | u_char bus, u_char devfn); |
51 | 50 | ||
@@ -87,7 +86,6 @@ mpc86xx_hpcn_setup_arch(void) | |||
87 | fsl_add_bridge(np, 0); | 86 | fsl_add_bridge(np, 0); |
88 | } | 87 | } |
89 | 88 | ||
90 | uses_fsl_uli_m1575 = 1; | ||
91 | ppc_md.pci_exclude_device = mpc86xx_exclude_device; | 89 | ppc_md.pci_exclude_device = mpc86xx_exclude_device; |
92 | 90 | ||
93 | #endif | 91 | #endif |
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig index 690c1f46e698..1d0968775c0a 100644 --- a/arch/powerpc/platforms/Kconfig +++ b/arch/powerpc/platforms/Kconfig | |||
@@ -253,17 +253,13 @@ config CPM2 | |||
253 | depends on MPC85xx || 8260 | 253 | depends on MPC85xx || 8260 |
254 | select CPM | 254 | select CPM |
255 | select PPC_LIB_RHEAP | 255 | select PPC_LIB_RHEAP |
256 | select PPC_PCI_CHOICE | ||
256 | help | 257 | help |
257 | The CPM2 (Communications Processor Module) is a coprocessor on | 258 | The CPM2 (Communications Processor Module) is a coprocessor on |
258 | embedded CPUs made by Freescale. Selecting this option means that | 259 | embedded CPUs made by Freescale. Selecting this option means that |
259 | you wish to build a kernel for a machine with a CPM2 coprocessor | 260 | you wish to build a kernel for a machine with a CPM2 coprocessor |
260 | on it (826x, 827x, 8560). | 261 | on it (826x, 827x, 8560). |
261 | 262 | ||
262 | config PPC_CPM_NEW_BINDING | ||
263 | bool | ||
264 | depends on CPM1 || CPM2 | ||
265 | default y | ||
266 | |||
267 | config AXON_RAM | 263 | config AXON_RAM |
268 | tristate "Axon DDR2 memory device driver" | 264 | tristate "Axon DDR2 memory device driver" |
269 | depends on PPC_IBM_CELL_BLADE | 265 | depends on PPC_IBM_CELL_BLADE |
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 5bc4b611ff88..7f6512733862 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype | |||
@@ -42,12 +42,14 @@ config 40x | |||
42 | select PPC_DCR_NATIVE | 42 | select PPC_DCR_NATIVE |
43 | select PPC_UDBG_16550 | 43 | select PPC_UDBG_16550 |
44 | select 4xx_SOC | 44 | select 4xx_SOC |
45 | select PPC_PCI_CHOICE | ||
45 | 46 | ||
46 | config 44x | 47 | config 44x |
47 | bool "AMCC 44x" | 48 | bool "AMCC 44x" |
48 | select PPC_DCR_NATIVE | 49 | select PPC_DCR_NATIVE |
49 | select PPC_UDBG_16550 | 50 | select PPC_UDBG_16550 |
50 | select 4xx_SOC | 51 | select 4xx_SOC |
52 | select PPC_PCI_CHOICE | ||
51 | 53 | ||
52 | config E200 | 54 | config E200 |
53 | bool "Freescale e200" | 55 | bool "Freescale e200" |
@@ -84,9 +86,6 @@ config TUNE_CELL | |||
84 | machines. When building a kernel that is supposed to run only | 86 | machines. When building a kernel that is supposed to run only |
85 | on Cell, you should also select the POWER4_ONLY option. | 87 | on Cell, you should also select the POWER4_ONLY option. |
86 | 88 | ||
87 | config 6xx | ||
88 | bool | ||
89 | |||
90 | # this is temp to handle compat with arch=ppc | 89 | # this is temp to handle compat with arch=ppc |
91 | config 8xx | 90 | config 8xx |
92 | bool | 91 | bool |
diff --git a/arch/powerpc/platforms/cell/Kconfig b/arch/powerpc/platforms/cell/Kconfig index 3959fcfe731c..c14d7d8d96c8 100644 --- a/arch/powerpc/platforms/cell/Kconfig +++ b/arch/powerpc/platforms/cell/Kconfig | |||
@@ -83,6 +83,22 @@ config CBE_RAS | |||
83 | depends on PPC_CELL_NATIVE | 83 | depends on PPC_CELL_NATIVE |
84 | default y | 84 | default y |
85 | 85 | ||
86 | config PPC_IBM_CELL_RESETBUTTON | ||
87 | bool "IBM Cell Blade Pinhole reset button" | ||
88 | depends on CBE_RAS && PPC_IBM_CELL_BLADE | ||
89 | default y | ||
90 | help | ||
91 | Support Pinhole Resetbutton on IBM Cell blades. | ||
92 | This adds a method to trigger system reset via front panel pinhole button. | ||
93 | |||
94 | config PPC_IBM_CELL_POWERBUTTON | ||
95 | tristate "IBM Cell Blade power button" | ||
96 | depends on PPC_IBM_CELL_BLADE && PPC_PMI && INPUT_EVDEV | ||
97 | default y | ||
98 | help | ||
99 | Support Powerbutton on IBM Cell blades. | ||
100 | This will enable the powerbutton as an input device. | ||
101 | |||
86 | config CBE_THERM | 102 | config CBE_THERM |
87 | tristate "CBE thermal support" | 103 | tristate "CBE thermal support" |
88 | default m | 104 | default m |
@@ -107,6 +123,15 @@ config CBE_CPUFREQ_PMI | |||
107 | processor will not only be able to run at lower speed, | 123 | processor will not only be able to run at lower speed, |
108 | but also at lower core voltage. | 124 | but also at lower core voltage. |
109 | 125 | ||
126 | config CBE_CPUFREQ_SPU_GOVERNOR | ||
127 | tristate "CBE frequency scaling based on SPU usage" | ||
128 | depends on SPU_FS && CPU_FREQ | ||
129 | default m | ||
130 | help | ||
131 | This governor checks for spu usage to adjust the cpu frequency. | ||
132 | If no spu is running on a given cpu, that cpu will be throttled to | ||
133 | the minimal possible frequency. | ||
134 | |||
110 | endmenu | 135 | endmenu |
111 | 136 | ||
112 | config OPROFILE_CELL | 137 | config OPROFILE_CELL |
diff --git a/arch/powerpc/platforms/cell/Makefile b/arch/powerpc/platforms/cell/Makefile index c2a7e4e5ddf9..7fd830872c43 100644 --- a/arch/powerpc/platforms/cell/Makefile +++ b/arch/powerpc/platforms/cell/Makefile | |||
@@ -8,6 +8,9 @@ obj-$(CONFIG_CBE_THERM) += cbe_thermal.o | |||
8 | obj-$(CONFIG_CBE_CPUFREQ_PMI) += cbe_cpufreq_pmi.o | 8 | obj-$(CONFIG_CBE_CPUFREQ_PMI) += cbe_cpufreq_pmi.o |
9 | obj-$(CONFIG_CBE_CPUFREQ) += cbe-cpufreq.o | 9 | obj-$(CONFIG_CBE_CPUFREQ) += cbe-cpufreq.o |
10 | cbe-cpufreq-y += cbe_cpufreq_pervasive.o cbe_cpufreq.o | 10 | cbe-cpufreq-y += cbe_cpufreq_pervasive.o cbe_cpufreq.o |
11 | obj-$(CONFIG_CBE_CPUFREQ_SPU_GOVERNOR) += cpufreq_spudemand.o | ||
12 | |||
13 | obj-$(CONFIG_PPC_IBM_CELL_POWERBUTTON) += cbe_powerbutton.o | ||
11 | 14 | ||
12 | ifeq ($(CONFIG_SMP),y) | 15 | ifeq ($(CONFIG_SMP),y) |
13 | obj-$(CONFIG_PPC_CELL_NATIVE) += smp.o | 16 | obj-$(CONFIG_PPC_CELL_NATIVE) += smp.o |
diff --git a/arch/powerpc/platforms/cell/cbe_powerbutton.c b/arch/powerpc/platforms/cell/cbe_powerbutton.c new file mode 100644 index 000000000000..dcddaa5fcb66 --- /dev/null +++ b/arch/powerpc/platforms/cell/cbe_powerbutton.c | |||
@@ -0,0 +1,117 @@ | |||
1 | /* | ||
2 | * driver for powerbutton on IBM cell blades | ||
3 | * | ||
4 | * (C) Copyright IBM Corp. 2005-2008 | ||
5 | * | ||
6 | * Author: Christian Krafft <krafft@de.ibm.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2, or (at your option) | ||
11 | * any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
21 | */ | ||
22 | |||
23 | #include <linux/input.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <asm/pmi.h> | ||
26 | #include <asm/prom.h> | ||
27 | |||
28 | static struct input_dev *button_dev; | ||
29 | static struct platform_device *button_pdev; | ||
30 | |||
31 | static void cbe_powerbutton_handle_pmi(pmi_message_t pmi_msg) | ||
32 | { | ||
33 | BUG_ON(pmi_msg.type != PMI_TYPE_POWER_BUTTON); | ||
34 | |||
35 | input_report_key(button_dev, KEY_POWER, 1); | ||
36 | input_sync(button_dev); | ||
37 | input_report_key(button_dev, KEY_POWER, 0); | ||
38 | input_sync(button_dev); | ||
39 | } | ||
40 | |||
41 | static struct pmi_handler cbe_pmi_handler = { | ||
42 | .type = PMI_TYPE_POWER_BUTTON, | ||
43 | .handle_pmi_message = cbe_powerbutton_handle_pmi, | ||
44 | }; | ||
45 | |||
46 | static int __init cbe_powerbutton_init(void) | ||
47 | { | ||
48 | int ret = 0; | ||
49 | struct input_dev *dev; | ||
50 | |||
51 | if (!machine_is_compatible("IBM,CBPLUS-1.0")) { | ||
52 | printk(KERN_ERR "%s: Not a cell blade.\n", __func__); | ||
53 | ret = -ENODEV; | ||
54 | goto out; | ||
55 | } | ||
56 | |||
57 | dev = input_allocate_device(); | ||
58 | if (!dev) { | ||
59 | ret = -ENOMEM; | ||
60 | printk(KERN_ERR "%s: Not enough memory.\n", __func__); | ||
61 | goto out; | ||
62 | } | ||
63 | |||
64 | set_bit(EV_KEY, dev->evbit); | ||
65 | set_bit(KEY_POWER, dev->keybit); | ||
66 | |||
67 | dev->name = "Power Button"; | ||
68 | dev->id.bustype = BUS_HOST; | ||
69 | |||
70 | /* this makes the button look like an acpi power button | ||
71 | * no clue whether anyone relies on that though */ | ||
72 | dev->id.product = 0x02; | ||
73 | dev->phys = "LNXPWRBN/button/input0"; | ||
74 | |||
75 | button_pdev = platform_device_register_simple("power_button", 0, NULL, 0); | ||
76 | if (IS_ERR(button_pdev)) { | ||
77 | ret = PTR_ERR(button_pdev); | ||
78 | goto out_free_input; | ||
79 | } | ||
80 | |||
81 | dev->dev.parent = &button_pdev->dev; | ||
82 | ret = input_register_device(dev); | ||
83 | if (ret) { | ||
84 | printk(KERN_ERR "%s: Failed to register device\n", __func__); | ||
85 | goto out_free_pdev; | ||
86 | } | ||
87 | |||
88 | button_dev = dev; | ||
89 | |||
90 | ret = pmi_register_handler(&cbe_pmi_handler); | ||
91 | if (ret) { | ||
92 | printk(KERN_ERR "%s: Failed to register with pmi.\n", __func__); | ||
93 | goto out_free_pdev; | ||
94 | } | ||
95 | |||
96 | goto out; | ||
97 | |||
98 | out_free_pdev: | ||
99 | platform_device_unregister(button_pdev); | ||
100 | out_free_input: | ||
101 | input_free_device(dev); | ||
102 | out: | ||
103 | return ret; | ||
104 | } | ||
105 | |||
106 | static void __exit cbe_powerbutton_exit(void) | ||
107 | { | ||
108 | pmi_unregister_handler(&cbe_pmi_handler); | ||
109 | platform_device_unregister(button_pdev); | ||
110 | input_free_device(button_dev); | ||
111 | } | ||
112 | |||
113 | module_init(cbe_powerbutton_init); | ||
114 | module_exit(cbe_powerbutton_exit); | ||
115 | |||
116 | MODULE_LICENSE("GPL"); | ||
117 | MODULE_AUTHOR("Christian Krafft <krafft@de.ibm.com>"); | ||
diff --git a/arch/powerpc/platforms/cell/cbe_thermal.c b/arch/powerpc/platforms/cell/cbe_thermal.c index 4852bf312d83..4d4c8c169124 100644 --- a/arch/powerpc/platforms/cell/cbe_thermal.c +++ b/arch/powerpc/platforms/cell/cbe_thermal.c | |||
@@ -97,7 +97,8 @@ static u8 spu_read_register_value(struct sys_device *sysdev, union spe_reg __iom | |||
97 | return value.spe[spu->spe_id]; | 97 | return value.spe[spu->spe_id]; |
98 | } | 98 | } |
99 | 99 | ||
100 | static ssize_t spu_show_temp(struct sys_device *sysdev, char *buf) | 100 | static ssize_t spu_show_temp(struct sys_device *sysdev, struct sysdev_attribute *attr, |
101 | char *buf) | ||
101 | { | 102 | { |
102 | u8 value; | 103 | u8 value; |
103 | struct cbe_pmd_regs __iomem *pmd_regs; | 104 | struct cbe_pmd_regs __iomem *pmd_regs; |
@@ -146,32 +147,38 @@ static ssize_t store_throttle(struct cbe_pmd_regs __iomem *pmd_regs, const char | |||
146 | return size; | 147 | return size; |
147 | } | 148 | } |
148 | 149 | ||
149 | static ssize_t spu_show_throttle_end(struct sys_device *sysdev, char *buf) | 150 | static ssize_t spu_show_throttle_end(struct sys_device *sysdev, |
151 | struct sysdev_attribute *attr, char *buf) | ||
150 | { | 152 | { |
151 | return show_throttle(get_pmd_regs(sysdev), buf, 0); | 153 | return show_throttle(get_pmd_regs(sysdev), buf, 0); |
152 | } | 154 | } |
153 | 155 | ||
154 | static ssize_t spu_show_throttle_begin(struct sys_device *sysdev, char *buf) | 156 | static ssize_t spu_show_throttle_begin(struct sys_device *sysdev, |
157 | struct sysdev_attribute *attr, char *buf) | ||
155 | { | 158 | { |
156 | return show_throttle(get_pmd_regs(sysdev), buf, 8); | 159 | return show_throttle(get_pmd_regs(sysdev), buf, 8); |
157 | } | 160 | } |
158 | 161 | ||
159 | static ssize_t spu_show_throttle_full_stop(struct sys_device *sysdev, char *buf) | 162 | static ssize_t spu_show_throttle_full_stop(struct sys_device *sysdev, |
163 | struct sysdev_attribute *attr, char *buf) | ||
160 | { | 164 | { |
161 | return show_throttle(get_pmd_regs(sysdev), buf, 16); | 165 | return show_throttle(get_pmd_regs(sysdev), buf, 16); |
162 | } | 166 | } |
163 | 167 | ||
164 | static ssize_t spu_store_throttle_end(struct sys_device *sysdev, const char *buf, size_t size) | 168 | static ssize_t spu_store_throttle_end(struct sys_device *sysdev, |
169 | struct sysdev_attribute *attr, const char *buf, size_t size) | ||
165 | { | 170 | { |
166 | return store_throttle(get_pmd_regs(sysdev), buf, size, 0); | 171 | return store_throttle(get_pmd_regs(sysdev), buf, size, 0); |
167 | } | 172 | } |
168 | 173 | ||
169 | static ssize_t spu_store_throttle_begin(struct sys_device *sysdev, const char *buf, size_t size) | 174 | static ssize_t spu_store_throttle_begin(struct sys_device *sysdev, |
175 | struct sysdev_attribute *attr, const char *buf, size_t size) | ||
170 | { | 176 | { |
171 | return store_throttle(get_pmd_regs(sysdev), buf, size, 8); | 177 | return store_throttle(get_pmd_regs(sysdev), buf, size, 8); |
172 | } | 178 | } |
173 | 179 | ||
174 | static ssize_t spu_store_throttle_full_stop(struct sys_device *sysdev, const char *buf, size_t size) | 180 | static ssize_t spu_store_throttle_full_stop(struct sys_device *sysdev, |
181 | struct sysdev_attribute *attr, const char *buf, size_t size) | ||
175 | { | 182 | { |
176 | return store_throttle(get_pmd_regs(sysdev), buf, size, 16); | 183 | return store_throttle(get_pmd_regs(sysdev), buf, size, 16); |
177 | } | 184 | } |
@@ -192,43 +199,51 @@ static ssize_t ppe_show_temp(struct sys_device *sysdev, char *buf, int pos) | |||
192 | 199 | ||
193 | /* shows the temperature of the DTS on the PPE, | 200 | /* shows the temperature of the DTS on the PPE, |
194 | * located near the linear thermal sensor */ | 201 | * located near the linear thermal sensor */ |
195 | static ssize_t ppe_show_temp0(struct sys_device *sysdev, char *buf) | 202 | static ssize_t ppe_show_temp0(struct sys_device *sysdev, |
203 | struct sysdev_attribute *attr, char *buf) | ||
196 | { | 204 | { |
197 | return ppe_show_temp(sysdev, buf, 32); | 205 | return ppe_show_temp(sysdev, buf, 32); |
198 | } | 206 | } |
199 | 207 | ||
200 | /* shows the temperature of the second DTS on the PPE */ | 208 | /* shows the temperature of the second DTS on the PPE */ |
201 | static ssize_t ppe_show_temp1(struct sys_device *sysdev, char *buf) | 209 | static ssize_t ppe_show_temp1(struct sys_device *sysdev, |
210 | struct sysdev_attribute *attr, char *buf) | ||
202 | { | 211 | { |
203 | return ppe_show_temp(sysdev, buf, 0); | 212 | return ppe_show_temp(sysdev, buf, 0); |
204 | } | 213 | } |
205 | 214 | ||
206 | static ssize_t ppe_show_throttle_end(struct sys_device *sysdev, char *buf) | 215 | static ssize_t ppe_show_throttle_end(struct sys_device *sysdev, |
216 | struct sysdev_attribute *attr, char *buf) | ||
207 | { | 217 | { |
208 | return show_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, 32); | 218 | return show_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, 32); |
209 | } | 219 | } |
210 | 220 | ||
211 | static ssize_t ppe_show_throttle_begin(struct sys_device *sysdev, char *buf) | 221 | static ssize_t ppe_show_throttle_begin(struct sys_device *sysdev, |
222 | struct sysdev_attribute *attr, char *buf) | ||
212 | { | 223 | { |
213 | return show_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, 40); | 224 | return show_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, 40); |
214 | } | 225 | } |
215 | 226 | ||
216 | static ssize_t ppe_show_throttle_full_stop(struct sys_device *sysdev, char *buf) | 227 | static ssize_t ppe_show_throttle_full_stop(struct sys_device *sysdev, |
228 | struct sysdev_attribute *attr, char *buf) | ||
217 | { | 229 | { |
218 | return show_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, 48); | 230 | return show_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, 48); |
219 | } | 231 | } |
220 | 232 | ||
221 | static ssize_t ppe_store_throttle_end(struct sys_device *sysdev, const char *buf, size_t size) | 233 | static ssize_t ppe_store_throttle_end(struct sys_device *sysdev, |
234 | struct sysdev_attribute *attr, const char *buf, size_t size) | ||
222 | { | 235 | { |
223 | return store_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, size, 32); | 236 | return store_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, size, 32); |
224 | } | 237 | } |
225 | 238 | ||
226 | static ssize_t ppe_store_throttle_begin(struct sys_device *sysdev, const char *buf, size_t size) | 239 | static ssize_t ppe_store_throttle_begin(struct sys_device *sysdev, |
240 | struct sysdev_attribute *attr, const char *buf, size_t size) | ||
227 | { | 241 | { |
228 | return store_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, size, 40); | 242 | return store_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, size, 40); |
229 | } | 243 | } |
230 | 244 | ||
231 | static ssize_t ppe_store_throttle_full_stop(struct sys_device *sysdev, const char *buf, size_t size) | 245 | static ssize_t ppe_store_throttle_full_stop(struct sys_device *sysdev, |
246 | struct sysdev_attribute *attr, const char *buf, size_t size) | ||
232 | { | 247 | { |
233 | return store_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, size, 48); | 248 | return store_throttle(cbe_get_cpu_pmd_regs(sysdev->id), buf, size, 48); |
234 | } | 249 | } |
diff --git a/arch/powerpc/platforms/cell/cpufreq_spudemand.c b/arch/powerpc/platforms/cell/cpufreq_spudemand.c new file mode 100644 index 000000000000..a3c6c01bd6db --- /dev/null +++ b/arch/powerpc/platforms/cell/cpufreq_spudemand.c | |||
@@ -0,0 +1,184 @@ | |||
1 | /* | ||
2 | * spu aware cpufreq governor for the cell processor | ||
3 | * | ||
4 | * © Copyright IBM Corporation 2006-2008 | ||
5 | * | ||
6 | * Author: Christian Krafft <krafft@de.ibm.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2, or (at your option) | ||
11 | * any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
21 | */ | ||
22 | |||
23 | #include <linux/cpufreq.h> | ||
24 | #include <linux/sched.h> | ||
25 | #include <linux/timer.h> | ||
26 | #include <linux/workqueue.h> | ||
27 | #include <asm/atomic.h> | ||
28 | #include <asm/machdep.h> | ||
29 | #include <asm/spu.h> | ||
30 | |||
31 | #define POLL_TIME 100000 /* in µs */ | ||
32 | #define EXP 753 /* exp(-1) in fixed-point */ | ||
33 | |||
34 | struct spu_gov_info_struct { | ||
35 | unsigned long busy_spus; /* fixed-point */ | ||
36 | struct cpufreq_policy *policy; | ||
37 | struct delayed_work work; | ||
38 | unsigned int poll_int; /* µs */ | ||
39 | }; | ||
40 | static DEFINE_PER_CPU(struct spu_gov_info_struct, spu_gov_info); | ||
41 | |||
42 | static struct workqueue_struct *kspugov_wq; | ||
43 | |||
44 | static int calc_freq(struct spu_gov_info_struct *info) | ||
45 | { | ||
46 | int cpu; | ||
47 | int busy_spus; | ||
48 | |||
49 | cpu = info->policy->cpu; | ||
50 | busy_spus = atomic_read(&cbe_spu_info[cpu_to_node(cpu)].busy_spus); | ||
51 | |||
52 | CALC_LOAD(info->busy_spus, EXP, busy_spus * FIXED_1); | ||
53 | pr_debug("cpu %d: busy_spus=%d, info->busy_spus=%ld\n", | ||
54 | cpu, busy_spus, info->busy_spus); | ||
55 | |||
56 | return info->policy->max * info->busy_spus / FIXED_1; | ||
57 | } | ||
58 | |||
59 | static void spu_gov_work(struct work_struct *work) | ||
60 | { | ||
61 | struct spu_gov_info_struct *info; | ||
62 | int delay; | ||
63 | unsigned long target_freq; | ||
64 | |||
65 | info = container_of(work, struct spu_gov_info_struct, work.work); | ||
66 | |||
67 | /* after cancel_delayed_work_sync we unset info->policy */ | ||
68 | BUG_ON(info->policy == NULL); | ||
69 | |||
70 | target_freq = calc_freq(info); | ||
71 | __cpufreq_driver_target(info->policy, target_freq, CPUFREQ_RELATION_H); | ||
72 | |||
73 | delay = usecs_to_jiffies(info->poll_int); | ||
74 | queue_delayed_work_on(info->policy->cpu, kspugov_wq, &info->work, delay); | ||
75 | } | ||
76 | |||
77 | static void spu_gov_init_work(struct spu_gov_info_struct *info) | ||
78 | { | ||
79 | int delay = usecs_to_jiffies(info->poll_int); | ||
80 | INIT_DELAYED_WORK_DEFERRABLE(&info->work, spu_gov_work); | ||
81 | queue_delayed_work_on(info->policy->cpu, kspugov_wq, &info->work, delay); | ||
82 | } | ||
83 | |||
84 | static void spu_gov_cancel_work(struct spu_gov_info_struct *info) | ||
85 | { | ||
86 | cancel_delayed_work_sync(&info->work); | ||
87 | } | ||
88 | |||
89 | static int spu_gov_govern(struct cpufreq_policy *policy, unsigned int event) | ||
90 | { | ||
91 | unsigned int cpu = policy->cpu; | ||
92 | struct spu_gov_info_struct *info, *affected_info; | ||
93 | int i; | ||
94 | int ret = 0; | ||
95 | |||
96 | info = &per_cpu(spu_gov_info, cpu); | ||
97 | |||
98 | switch (event) { | ||
99 | case CPUFREQ_GOV_START: | ||
100 | if (!cpu_online(cpu)) { | ||
101 | printk(KERN_ERR "cpu %d is not online\n", cpu); | ||
102 | ret = -EINVAL; | ||
103 | break; | ||
104 | } | ||
105 | |||
106 | if (!policy->cur) { | ||
107 | printk(KERN_ERR "no cpu specified in policy\n"); | ||
108 | ret = -EINVAL; | ||
109 | break; | ||
110 | } | ||
111 | |||
112 | /* initialize spu_gov_info for all affected cpus */ | ||
113 | for_each_cpu_mask(i, policy->cpus) { | ||
114 | affected_info = &per_cpu(spu_gov_info, i); | ||
115 | affected_info->policy = policy; | ||
116 | } | ||
117 | |||
118 | info->poll_int = POLL_TIME; | ||
119 | |||
120 | /* setup timer */ | ||
121 | spu_gov_init_work(info); | ||
122 | |||
123 | break; | ||
124 | |||
125 | case CPUFREQ_GOV_STOP: | ||
126 | /* cancel timer */ | ||
127 | spu_gov_cancel_work(info); | ||
128 | |||
129 | /* clean spu_gov_info for all affected cpus */ | ||
130 | for_each_cpu_mask (i, policy->cpus) { | ||
131 | info = &per_cpu(spu_gov_info, i); | ||
132 | info->policy = NULL; | ||
133 | } | ||
134 | |||
135 | break; | ||
136 | } | ||
137 | |||
138 | return ret; | ||
139 | } | ||
140 | |||
141 | static struct cpufreq_governor spu_governor = { | ||
142 | .name = "spudemand", | ||
143 | .governor = spu_gov_govern, | ||
144 | .owner = THIS_MODULE, | ||
145 | }; | ||
146 | |||
147 | /* | ||
148 | * module init and destoy | ||
149 | */ | ||
150 | |||
151 | static int __init spu_gov_init(void) | ||
152 | { | ||
153 | int ret; | ||
154 | |||
155 | kspugov_wq = create_workqueue("kspugov"); | ||
156 | if (!kspugov_wq) { | ||
157 | printk(KERN_ERR "creation of kspugov failed\n"); | ||
158 | ret = -EFAULT; | ||
159 | goto out; | ||
160 | } | ||
161 | |||
162 | ret = cpufreq_register_governor(&spu_governor); | ||
163 | if (ret) { | ||
164 | printk(KERN_ERR "registration of governor failed\n"); | ||
165 | destroy_workqueue(kspugov_wq); | ||
166 | goto out; | ||
167 | } | ||
168 | out: | ||
169 | return ret; | ||
170 | } | ||
171 | |||
172 | static void __exit spu_gov_exit(void) | ||
173 | { | ||
174 | cpufreq_unregister_governor(&spu_governor); | ||
175 | destroy_workqueue(kspugov_wq); | ||
176 | } | ||
177 | |||
178 | |||
179 | module_init(spu_gov_init); | ||
180 | module_exit(spu_gov_exit); | ||
181 | |||
182 | MODULE_LICENSE("GPL"); | ||
183 | MODULE_AUTHOR("Christian Krafft <krafft@de.ibm.com>"); | ||
184 | |||
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index eeacb3a52ca1..e06420af5fe9 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -172,8 +172,9 @@ static void invalidate_tce_cache(struct cbe_iommu *iommu, unsigned long *pte, | |||
172 | } | 172 | } |
173 | } | 173 | } |
174 | 174 | ||
175 | static void tce_build_cell(struct iommu_table *tbl, long index, long npages, | 175 | static int tce_build_cell(struct iommu_table *tbl, long index, long npages, |
176 | unsigned long uaddr, enum dma_data_direction direction) | 176 | unsigned long uaddr, enum dma_data_direction direction, |
177 | struct dma_attrs *attrs) | ||
177 | { | 178 | { |
178 | int i; | 179 | int i; |
179 | unsigned long *io_pte, base_pte; | 180 | unsigned long *io_pte, base_pte; |
@@ -198,6 +199,8 @@ static void tce_build_cell(struct iommu_table *tbl, long index, long npages, | |||
198 | base_pte = IOPTE_PP_W | IOPTE_PP_R | IOPTE_M | IOPTE_SO_RW | | 199 | base_pte = IOPTE_PP_W | IOPTE_PP_R | IOPTE_M | IOPTE_SO_RW | |
199 | (window->ioid & IOPTE_IOID_Mask); | 200 | (window->ioid & IOPTE_IOID_Mask); |
200 | #endif | 201 | #endif |
202 | if (unlikely(dma_get_attr(DMA_ATTR_WEAK_ORDERING, attrs))) | ||
203 | base_pte &= ~IOPTE_SO_RW; | ||
201 | 204 | ||
202 | io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); | 205 | io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset); |
203 | 206 | ||
@@ -210,6 +213,7 @@ static void tce_build_cell(struct iommu_table *tbl, long index, long npages, | |||
210 | 213 | ||
211 | pr_debug("tce_build_cell(index=%lx,n=%lx,dir=%d,base_pte=%lx)\n", | 214 | pr_debug("tce_build_cell(index=%lx,n=%lx,dir=%d,base_pte=%lx)\n", |
212 | index, npages, direction, base_pte); | 215 | index, npages, direction, base_pte); |
216 | return 0; | ||
213 | } | 217 | } |
214 | 218 | ||
215 | static void tce_free_cell(struct iommu_table *tbl, long index, long npages) | 219 | static void tce_free_cell(struct iommu_table *tbl, long index, long npages) |
@@ -519,7 +523,7 @@ cell_iommu_setup_window(struct cbe_iommu *iommu, struct device_node *np, | |||
519 | 523 | ||
520 | __set_bit(0, window->table.it_map); | 524 | __set_bit(0, window->table.it_map); |
521 | tce_build_cell(&window->table, window->table.it_offset, 1, | 525 | tce_build_cell(&window->table, window->table.it_offset, 1, |
522 | (unsigned long)iommu->pad_page, DMA_TO_DEVICE); | 526 | (unsigned long)iommu->pad_page, DMA_TO_DEVICE, NULL); |
523 | window->table.it_hint = window->table.it_blocksize; | 527 | window->table.it_hint = window->table.it_blocksize; |
524 | 528 | ||
525 | return window; | 529 | return window; |
@@ -538,7 +542,9 @@ static struct cbe_iommu *cell_iommu_for_node(int nid) | |||
538 | static unsigned long cell_dma_direct_offset; | 542 | static unsigned long cell_dma_direct_offset; |
539 | 543 | ||
540 | static unsigned long dma_iommu_fixed_base; | 544 | static unsigned long dma_iommu_fixed_base; |
541 | struct dma_mapping_ops dma_iommu_fixed_ops; | 545 | |
546 | /* iommu_fixed_is_weak is set if booted with iommu_fixed=weak */ | ||
547 | static int iommu_fixed_is_weak; | ||
542 | 548 | ||
543 | static struct iommu_table *cell_get_iommu_table(struct device *dev) | 549 | static struct iommu_table *cell_get_iommu_table(struct device *dev) |
544 | { | 550 | { |
@@ -562,6 +568,98 @@ static struct iommu_table *cell_get_iommu_table(struct device *dev) | |||
562 | return &window->table; | 568 | return &window->table; |
563 | } | 569 | } |
564 | 570 | ||
571 | /* A coherent allocation implies strong ordering */ | ||
572 | |||
573 | static void *dma_fixed_alloc_coherent(struct device *dev, size_t size, | ||
574 | dma_addr_t *dma_handle, gfp_t flag) | ||
575 | { | ||
576 | if (iommu_fixed_is_weak) | ||
577 | return iommu_alloc_coherent(dev, cell_get_iommu_table(dev), | ||
578 | size, dma_handle, | ||
579 | device_to_mask(dev), flag, | ||
580 | dev->archdata.numa_node); | ||
581 | else | ||
582 | return dma_direct_ops.alloc_coherent(dev, size, dma_handle, | ||
583 | flag); | ||
584 | } | ||
585 | |||
586 | static void dma_fixed_free_coherent(struct device *dev, size_t size, | ||
587 | void *vaddr, dma_addr_t dma_handle) | ||
588 | { | ||
589 | if (iommu_fixed_is_weak) | ||
590 | iommu_free_coherent(cell_get_iommu_table(dev), size, vaddr, | ||
591 | dma_handle); | ||
592 | else | ||
593 | dma_direct_ops.free_coherent(dev, size, vaddr, dma_handle); | ||
594 | } | ||
595 | |||
596 | static dma_addr_t dma_fixed_map_single(struct device *dev, void *ptr, | ||
597 | size_t size, | ||
598 | enum dma_data_direction direction, | ||
599 | struct dma_attrs *attrs) | ||
600 | { | ||
601 | if (iommu_fixed_is_weak == dma_get_attr(DMA_ATTR_WEAK_ORDERING, attrs)) | ||
602 | return dma_direct_ops.map_single(dev, ptr, size, direction, | ||
603 | attrs); | ||
604 | else | ||
605 | return iommu_map_single(dev, cell_get_iommu_table(dev), ptr, | ||
606 | size, device_to_mask(dev), direction, | ||
607 | attrs); | ||
608 | } | ||
609 | |||
610 | static void dma_fixed_unmap_single(struct device *dev, dma_addr_t dma_addr, | ||
611 | size_t size, | ||
612 | enum dma_data_direction direction, | ||
613 | struct dma_attrs *attrs) | ||
614 | { | ||
615 | if (iommu_fixed_is_weak == dma_get_attr(DMA_ATTR_WEAK_ORDERING, attrs)) | ||
616 | dma_direct_ops.unmap_single(dev, dma_addr, size, direction, | ||
617 | attrs); | ||
618 | else | ||
619 | iommu_unmap_single(cell_get_iommu_table(dev), dma_addr, size, | ||
620 | direction, attrs); | ||
621 | } | ||
622 | |||
623 | static int dma_fixed_map_sg(struct device *dev, struct scatterlist *sg, | ||
624 | int nents, enum dma_data_direction direction, | ||
625 | struct dma_attrs *attrs) | ||
626 | { | ||
627 | if (iommu_fixed_is_weak == dma_get_attr(DMA_ATTR_WEAK_ORDERING, attrs)) | ||
628 | return dma_direct_ops.map_sg(dev, sg, nents, direction, attrs); | ||
629 | else | ||
630 | return iommu_map_sg(dev, cell_get_iommu_table(dev), sg, nents, | ||
631 | device_to_mask(dev), direction, attrs); | ||
632 | } | ||
633 | |||
634 | static void dma_fixed_unmap_sg(struct device *dev, struct scatterlist *sg, | ||
635 | int nents, enum dma_data_direction direction, | ||
636 | struct dma_attrs *attrs) | ||
637 | { | ||
638 | if (iommu_fixed_is_weak == dma_get_attr(DMA_ATTR_WEAK_ORDERING, attrs)) | ||
639 | dma_direct_ops.unmap_sg(dev, sg, nents, direction, attrs); | ||
640 | else | ||
641 | iommu_unmap_sg(cell_get_iommu_table(dev), sg, nents, direction, | ||
642 | attrs); | ||
643 | } | ||
644 | |||
645 | static int dma_fixed_dma_supported(struct device *dev, u64 mask) | ||
646 | { | ||
647 | return mask == DMA_64BIT_MASK; | ||
648 | } | ||
649 | |||
650 | static int dma_set_mask_and_switch(struct device *dev, u64 dma_mask); | ||
651 | |||
652 | struct dma_mapping_ops dma_iommu_fixed_ops = { | ||
653 | .alloc_coherent = dma_fixed_alloc_coherent, | ||
654 | .free_coherent = dma_fixed_free_coherent, | ||
655 | .map_single = dma_fixed_map_single, | ||
656 | .unmap_single = dma_fixed_unmap_single, | ||
657 | .map_sg = dma_fixed_map_sg, | ||
658 | .unmap_sg = dma_fixed_unmap_sg, | ||
659 | .dma_supported = dma_fixed_dma_supported, | ||
660 | .set_dma_mask = dma_set_mask_and_switch, | ||
661 | }; | ||
662 | |||
565 | static void cell_dma_dev_setup_fixed(struct device *dev); | 663 | static void cell_dma_dev_setup_fixed(struct device *dev); |
566 | 664 | ||
567 | static void cell_dma_dev_setup(struct device *dev) | 665 | static void cell_dma_dev_setup(struct device *dev) |
@@ -918,9 +1016,16 @@ static void cell_iommu_setup_fixed_ptab(struct cbe_iommu *iommu, | |||
918 | 1016 | ||
919 | pr_debug("iommu: mapping 0x%lx pages from 0x%lx\n", fsize, fbase); | 1017 | pr_debug("iommu: mapping 0x%lx pages from 0x%lx\n", fsize, fbase); |
920 | 1018 | ||
921 | base_pte = IOPTE_PP_W | IOPTE_PP_R | IOPTE_M | IOPTE_SO_RW | 1019 | base_pte = IOPTE_PP_W | IOPTE_PP_R | IOPTE_M |
922 | | (cell_iommu_get_ioid(np) & IOPTE_IOID_Mask); | 1020 | | (cell_iommu_get_ioid(np) & IOPTE_IOID_Mask); |
923 | 1021 | ||
1022 | if (iommu_fixed_is_weak) | ||
1023 | pr_info("IOMMU: Using weak ordering for fixed mapping\n"); | ||
1024 | else { | ||
1025 | pr_info("IOMMU: Using strong ordering for fixed mapping\n"); | ||
1026 | base_pte |= IOPTE_SO_RW; | ||
1027 | } | ||
1028 | |||
924 | for (uaddr = 0; uaddr < fsize; uaddr += (1 << 24)) { | 1029 | for (uaddr = 0; uaddr < fsize; uaddr += (1 << 24)) { |
925 | /* Don't touch the dynamic region */ | 1030 | /* Don't touch the dynamic region */ |
926 | ioaddr = uaddr + fbase; | 1031 | ioaddr = uaddr + fbase; |
@@ -1036,9 +1141,6 @@ static int __init cell_iommu_fixed_mapping_init(void) | |||
1036 | cell_iommu_setup_window(iommu, np, dbase, dsize, 0); | 1141 | cell_iommu_setup_window(iommu, np, dbase, dsize, 0); |
1037 | } | 1142 | } |
1038 | 1143 | ||
1039 | dma_iommu_fixed_ops = dma_direct_ops; | ||
1040 | dma_iommu_fixed_ops.set_dma_mask = dma_set_mask_and_switch; | ||
1041 | |||
1042 | dma_iommu_ops.set_dma_mask = dma_set_mask_and_switch; | 1144 | dma_iommu_ops.set_dma_mask = dma_set_mask_and_switch; |
1043 | set_pci_dma_ops(&dma_iommu_ops); | 1145 | set_pci_dma_ops(&dma_iommu_ops); |
1044 | 1146 | ||
@@ -1049,9 +1151,23 @@ static int iommu_fixed_disabled; | |||
1049 | 1151 | ||
1050 | static int __init setup_iommu_fixed(char *str) | 1152 | static int __init setup_iommu_fixed(char *str) |
1051 | { | 1153 | { |
1154 | struct device_node *pciep; | ||
1155 | |||
1052 | if (strcmp(str, "off") == 0) | 1156 | if (strcmp(str, "off") == 0) |
1053 | iommu_fixed_disabled = 1; | 1157 | iommu_fixed_disabled = 1; |
1054 | 1158 | ||
1159 | /* If we can find a pcie-endpoint in the device tree assume that | ||
1160 | * we're on a triblade or a CAB so by default the fixed mapping | ||
1161 | * should be set to be weakly ordered; but only if the boot | ||
1162 | * option WASN'T set for strong ordering | ||
1163 | */ | ||
1164 | pciep = of_find_node_by_type(NULL, "pcie-endpoint"); | ||
1165 | |||
1166 | if (strcmp(str, "weak") == 0 || (pciep && strcmp(str, "strong") != 0)) | ||
1167 | iommu_fixed_is_weak = 1; | ||
1168 | |||
1169 | of_node_put(pciep); | ||
1170 | |||
1055 | return 1; | 1171 | return 1; |
1056 | } | 1172 | } |
1057 | __setup("iommu_fixed=", setup_iommu_fixed); | 1173 | __setup("iommu_fixed=", setup_iommu_fixed); |
diff --git a/arch/powerpc/platforms/cell/pervasive.c b/arch/powerpc/platforms/cell/pervasive.c index 8a3631ce912b..efdacc829576 100644 --- a/arch/powerpc/platforms/cell/pervasive.c +++ b/arch/powerpc/platforms/cell/pervasive.c | |||
@@ -38,8 +38,6 @@ | |||
38 | 38 | ||
39 | #include "pervasive.h" | 39 | #include "pervasive.h" |
40 | 40 | ||
41 | static int sysreset_hack; | ||
42 | |||
43 | static void cbe_power_save(void) | 41 | static void cbe_power_save(void) |
44 | { | 42 | { |
45 | unsigned long ctrl, thread_switch_control; | 43 | unsigned long ctrl, thread_switch_control; |
@@ -87,9 +85,6 @@ static void cbe_power_save(void) | |||
87 | 85 | ||
88 | static int cbe_system_reset_exception(struct pt_regs *regs) | 86 | static int cbe_system_reset_exception(struct pt_regs *regs) |
89 | { | 87 | { |
90 | int cpu; | ||
91 | struct cbe_pmd_regs __iomem *pmd; | ||
92 | |||
93 | switch (regs->msr & SRR1_WAKEMASK) { | 88 | switch (regs->msr & SRR1_WAKEMASK) { |
94 | case SRR1_WAKEEE: | 89 | case SRR1_WAKEEE: |
95 | do_IRQ(regs); | 90 | do_IRQ(regs); |
@@ -98,19 +93,7 @@ static int cbe_system_reset_exception(struct pt_regs *regs) | |||
98 | timer_interrupt(regs); | 93 | timer_interrupt(regs); |
99 | break; | 94 | break; |
100 | case SRR1_WAKEMT: | 95 | case SRR1_WAKEMT: |
101 | /* | 96 | return cbe_sysreset_hack(); |
102 | * The BMC can inject user triggered system reset exceptions, | ||
103 | * but cannot set the system reset reason in srr1, | ||
104 | * so check an extra register here. | ||
105 | */ | ||
106 | if (sysreset_hack && (cpu = smp_processor_id()) == 0) { | ||
107 | pmd = cbe_get_cpu_pmd_regs(cpu); | ||
108 | if (in_be64(&pmd->ras_esc_0) & 0xffff) { | ||
109 | out_be64(&pmd->ras_esc_0, 0); | ||
110 | return 0; | ||
111 | } | ||
112 | } | ||
113 | break; | ||
114 | #ifdef CONFIG_CBE_RAS | 97 | #ifdef CONFIG_CBE_RAS |
115 | case SRR1_WAKESYSERR: | 98 | case SRR1_WAKESYSERR: |
116 | cbe_system_error_exception(regs); | 99 | cbe_system_error_exception(regs); |
@@ -134,8 +117,6 @@ void __init cbe_pervasive_init(void) | |||
134 | if (!cpu_has_feature(CPU_FTR_PAUSE_ZERO)) | 117 | if (!cpu_has_feature(CPU_FTR_PAUSE_ZERO)) |
135 | return; | 118 | return; |
136 | 119 | ||
137 | sysreset_hack = machine_is_compatible("IBM,CBPLUS-1.0"); | ||
138 | |||
139 | for_each_possible_cpu(cpu) { | 120 | for_each_possible_cpu(cpu) { |
140 | struct cbe_pmd_regs __iomem *regs = cbe_get_cpu_pmd_regs(cpu); | 121 | struct cbe_pmd_regs __iomem *regs = cbe_get_cpu_pmd_regs(cpu); |
141 | if (!regs) | 122 | if (!regs) |
@@ -144,12 +125,6 @@ void __init cbe_pervasive_init(void) | |||
144 | /* Enable Pause(0) control bit */ | 125 | /* Enable Pause(0) control bit */ |
145 | out_be64(®s->pmcr, in_be64(®s->pmcr) | | 126 | out_be64(®s->pmcr, in_be64(®s->pmcr) | |
146 | CBE_PMD_PAUSE_ZERO_CONTROL); | 127 | CBE_PMD_PAUSE_ZERO_CONTROL); |
147 | |||
148 | /* Enable JTAG system-reset hack */ | ||
149 | if (sysreset_hack) | ||
150 | out_be32(®s->fir_mode_reg, | ||
151 | in_be32(®s->fir_mode_reg) | | ||
152 | CBE_PMD_FIR_MODE_M8); | ||
153 | } | 128 | } |
154 | 129 | ||
155 | ppc_md.power_save = cbe_power_save; | 130 | ppc_md.power_save = cbe_power_save; |
diff --git a/arch/powerpc/platforms/cell/pervasive.h b/arch/powerpc/platforms/cell/pervasive.h index 7b50947f8044..fd4d7b7092b4 100644 --- a/arch/powerpc/platforms/cell/pervasive.h +++ b/arch/powerpc/platforms/cell/pervasive.h | |||
@@ -30,4 +30,13 @@ extern void cbe_system_error_exception(struct pt_regs *regs); | |||
30 | extern void cbe_maintenance_exception(struct pt_regs *regs); | 30 | extern void cbe_maintenance_exception(struct pt_regs *regs); |
31 | extern void cbe_thermal_exception(struct pt_regs *regs); | 31 | extern void cbe_thermal_exception(struct pt_regs *regs); |
32 | 32 | ||
33 | #ifdef CONFIG_PPC_IBM_CELL_RESETBUTTON | ||
34 | extern int cbe_sysreset_hack(void); | ||
35 | #else | ||
36 | static inline int cbe_sysreset_hack(void) | ||
37 | { | ||
38 | return 1; | ||
39 | } | ||
40 | #endif /* CONFIG_PPC_IBM_CELL_RESETBUTTON */ | ||
41 | |||
33 | #endif | 42 | #endif |
diff --git a/arch/powerpc/platforms/cell/ras.c b/arch/powerpc/platforms/cell/ras.c index 505f9b9bdf0c..2a14b052abcd 100644 --- a/arch/powerpc/platforms/cell/ras.c +++ b/arch/powerpc/platforms/cell/ras.c | |||
@@ -236,6 +236,52 @@ static struct notifier_block cbe_ptcal_reboot_notifier = { | |||
236 | .notifier_call = cbe_ptcal_notify_reboot | 236 | .notifier_call = cbe_ptcal_notify_reboot |
237 | }; | 237 | }; |
238 | 238 | ||
239 | #ifdef CONFIG_PPC_IBM_CELL_RESETBUTTON | ||
240 | static int sysreset_hack; | ||
241 | |||
242 | static int __init cbe_sysreset_init(void) | ||
243 | { | ||
244 | struct cbe_pmd_regs __iomem *regs; | ||
245 | |||
246 | sysreset_hack = machine_is_compatible("IBM,CBPLUS-1.0"); | ||
247 | if (!sysreset_hack) | ||
248 | return 0; | ||
249 | |||
250 | regs = cbe_get_cpu_pmd_regs(0); | ||
251 | if (!regs) | ||
252 | return 0; | ||
253 | |||
254 | /* Enable JTAG system-reset hack */ | ||
255 | out_be32(®s->fir_mode_reg, | ||
256 | in_be32(®s->fir_mode_reg) | | ||
257 | CBE_PMD_FIR_MODE_M8); | ||
258 | |||
259 | return 0; | ||
260 | } | ||
261 | device_initcall(cbe_sysreset_init); | ||
262 | |||
263 | int cbe_sysreset_hack(void) | ||
264 | { | ||
265 | struct cbe_pmd_regs __iomem *regs; | ||
266 | |||
267 | /* | ||
268 | * The BMC can inject user triggered system reset exceptions, | ||
269 | * but cannot set the system reset reason in srr1, | ||
270 | * so check an extra register here. | ||
271 | */ | ||
272 | if (sysreset_hack && (smp_processor_id() == 0)) { | ||
273 | regs = cbe_get_cpu_pmd_regs(0); | ||
274 | if (!regs) | ||
275 | return 0; | ||
276 | if (in_be64(®s->ras_esc_0) & 0x0000ffff) { | ||
277 | out_be64(®s->ras_esc_0, 0); | ||
278 | return 0; | ||
279 | } | ||
280 | } | ||
281 | return 1; | ||
282 | } | ||
283 | #endif /* CONFIG_PPC_IBM_CELL_RESETBUTTON */ | ||
284 | |||
239 | int __init cbe_ptcal_init(void) | 285 | int __init cbe_ptcal_init(void) |
240 | { | 286 | { |
241 | int ret; | 287 | int ret; |
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index 78f905bc6a42..a5bdb89a17c3 100644 --- a/arch/powerpc/platforms/cell/spu_base.c +++ b/arch/powerpc/platforms/cell/spu_base.c | |||
@@ -703,7 +703,8 @@ static unsigned long long spu_acct_time(struct spu *spu, | |||
703 | } | 703 | } |
704 | 704 | ||
705 | 705 | ||
706 | static ssize_t spu_stat_show(struct sys_device *sysdev, char *buf) | 706 | static ssize_t spu_stat_show(struct sys_device *sysdev, |
707 | struct sysdev_attribute *attr, char *buf) | ||
707 | { | 708 | { |
708 | struct spu *spu = container_of(sysdev, struct spu, sysdev); | 709 | struct spu *spu = container_of(sysdev, struct spu, sysdev); |
709 | 710 | ||
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index 99c73066b82f..010a51f59796 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -288,9 +288,32 @@ spufs_mem_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
288 | return VM_FAULT_NOPAGE; | 288 | return VM_FAULT_NOPAGE; |
289 | } | 289 | } |
290 | 290 | ||
291 | static int spufs_mem_mmap_access(struct vm_area_struct *vma, | ||
292 | unsigned long address, | ||
293 | void *buf, int len, int write) | ||
294 | { | ||
295 | struct spu_context *ctx = vma->vm_file->private_data; | ||
296 | unsigned long offset = address - vma->vm_start; | ||
297 | char *local_store; | ||
298 | |||
299 | if (write && !(vma->vm_flags & VM_WRITE)) | ||
300 | return -EACCES; | ||
301 | if (spu_acquire(ctx)) | ||
302 | return -EINTR; | ||
303 | if ((offset + len) > vma->vm_end) | ||
304 | len = vma->vm_end - offset; | ||
305 | local_store = ctx->ops->get_ls(ctx); | ||
306 | if (write) | ||
307 | memcpy_toio(local_store + offset, buf, len); | ||
308 | else | ||
309 | memcpy_fromio(buf, local_store + offset, len); | ||
310 | spu_release(ctx); | ||
311 | return len; | ||
312 | } | ||
291 | 313 | ||
292 | static struct vm_operations_struct spufs_mem_mmap_vmops = { | 314 | static struct vm_operations_struct spufs_mem_mmap_vmops = { |
293 | .fault = spufs_mem_mmap_fault, | 315 | .fault = spufs_mem_mmap_fault, |
316 | .access = spufs_mem_mmap_access, | ||
294 | }; | 317 | }; |
295 | 318 | ||
296 | static int spufs_mem_mmap(struct file *file, struct vm_area_struct *vma) | 319 | static int spufs_mem_mmap(struct file *file, struct vm_area_struct *vma) |
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index 34654743363d..2deeeba7eccf 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c | |||
@@ -312,11 +312,28 @@ static struct spu *aff_ref_location(struct spu_context *ctx, int mem_aff, | |||
312 | */ | 312 | */ |
313 | node = cpu_to_node(raw_smp_processor_id()); | 313 | node = cpu_to_node(raw_smp_processor_id()); |
314 | for (n = 0; n < MAX_NUMNODES; n++, node++) { | 314 | for (n = 0; n < MAX_NUMNODES; n++, node++) { |
315 | int available_spus; | ||
316 | |||
315 | node = (node < MAX_NUMNODES) ? node : 0; | 317 | node = (node < MAX_NUMNODES) ? node : 0; |
316 | if (!node_allowed(ctx, node)) | 318 | if (!node_allowed(ctx, node)) |
317 | continue; | 319 | continue; |
320 | |||
321 | available_spus = 0; | ||
318 | mutex_lock(&cbe_spu_info[node].list_mutex); | 322 | mutex_lock(&cbe_spu_info[node].list_mutex); |
319 | list_for_each_entry(spu, &cbe_spu_info[node].spus, cbe_list) { | 323 | list_for_each_entry(spu, &cbe_spu_info[node].spus, cbe_list) { |
324 | if (spu->ctx && spu->ctx->gang | ||
325 | && spu->ctx->aff_offset == 0) | ||
326 | available_spus -= | ||
327 | (spu->ctx->gang->contexts - 1); | ||
328 | else | ||
329 | available_spus++; | ||
330 | } | ||
331 | if (available_spus < ctx->gang->contexts) { | ||
332 | mutex_unlock(&cbe_spu_info[node].list_mutex); | ||
333 | continue; | ||
334 | } | ||
335 | |||
336 | list_for_each_entry(spu, &cbe_spu_info[node].spus, cbe_list) { | ||
320 | if ((!mem_aff || spu->has_mem_affinity) && | 337 | if ((!mem_aff || spu->has_mem_affinity) && |
321 | sched_spu(spu)) { | 338 | sched_spu(spu)) { |
322 | mutex_unlock(&cbe_spu_info[node].list_mutex); | 339 | mutex_unlock(&cbe_spu_info[node].list_mutex); |
@@ -389,6 +406,9 @@ static int has_affinity(struct spu_context *ctx) | |||
389 | if (list_empty(&ctx->aff_list)) | 406 | if (list_empty(&ctx->aff_list)) |
390 | return 0; | 407 | return 0; |
391 | 408 | ||
409 | if (atomic_read(&ctx->gang->aff_sched_count) == 0) | ||
410 | ctx->gang->aff_ref_spu = NULL; | ||
411 | |||
392 | if (!gang->aff_ref_spu) { | 412 | if (!gang->aff_ref_spu) { |
393 | if (!(gang->aff_flags & AFF_MERGED)) | 413 | if (!(gang->aff_flags & AFF_MERGED)) |
394 | aff_merge_remaining_ctxs(gang); | 414 | aff_merge_remaining_ctxs(gang); |
@@ -416,14 +436,8 @@ static void spu_unbind_context(struct spu *spu, struct spu_context *ctx) | |||
416 | if (spu->ctx->flags & SPU_CREATE_NOSCHED) | 436 | if (spu->ctx->flags & SPU_CREATE_NOSCHED) |
417 | atomic_dec(&cbe_spu_info[spu->node].reserved_spus); | 437 | atomic_dec(&cbe_spu_info[spu->node].reserved_spus); |
418 | 438 | ||
419 | if (ctx->gang){ | 439 | if (ctx->gang) |
420 | mutex_lock(&ctx->gang->aff_mutex); | 440 | atomic_dec_if_positive(&ctx->gang->aff_sched_count); |
421 | if (has_affinity(ctx)) { | ||
422 | if (atomic_dec_and_test(&ctx->gang->aff_sched_count)) | ||
423 | ctx->gang->aff_ref_spu = NULL; | ||
424 | } | ||
425 | mutex_unlock(&ctx->gang->aff_mutex); | ||
426 | } | ||
427 | 441 | ||
428 | spu_switch_notify(spu, NULL); | 442 | spu_switch_notify(spu, NULL); |
429 | spu_unmap_mappings(ctx); | 443 | spu_unmap_mappings(ctx); |
@@ -562,10 +576,7 @@ static struct spu *spu_get_idle(struct spu_context *ctx) | |||
562 | goto found; | 576 | goto found; |
563 | mutex_unlock(&cbe_spu_info[node].list_mutex); | 577 | mutex_unlock(&cbe_spu_info[node].list_mutex); |
564 | 578 | ||
565 | mutex_lock(&ctx->gang->aff_mutex); | 579 | atomic_dec(&ctx->gang->aff_sched_count); |
566 | if (atomic_dec_and_test(&ctx->gang->aff_sched_count)) | ||
567 | ctx->gang->aff_ref_spu = NULL; | ||
568 | mutex_unlock(&ctx->gang->aff_mutex); | ||
569 | goto not_found; | 580 | goto not_found; |
570 | } | 581 | } |
571 | mutex_unlock(&ctx->gang->aff_mutex); | 582 | mutex_unlock(&ctx->gang->aff_mutex); |
diff --git a/arch/powerpc/platforms/cell/spufs/sputrace.c b/arch/powerpc/platforms/cell/spufs/sputrace.c index 8c0e95766a62..92d20e993ede 100644 --- a/arch/powerpc/platforms/cell/spufs/sputrace.c +++ b/arch/powerpc/platforms/cell/spufs/sputrace.c | |||
@@ -196,8 +196,7 @@ static int __init sputrace_init(void) | |||
196 | struct proc_dir_entry *entry; | 196 | struct proc_dir_entry *entry; |
197 | int i, error = -ENOMEM; | 197 | int i, error = -ENOMEM; |
198 | 198 | ||
199 | sputrace_log = kcalloc(sizeof(struct sputrace), | 199 | sputrace_log = kcalloc(bufsize, sizeof(struct sputrace), GFP_KERNEL); |
200 | bufsize, GFP_KERNEL); | ||
201 | if (!sputrace_log) | 200 | if (!sputrace_log) |
202 | goto out; | 201 | goto out; |
203 | 202 | ||
diff --git a/arch/powerpc/platforms/chrp/pci.c b/arch/powerpc/platforms/chrp/pci.c index 609c46db4a1b..768c262b9368 100644 --- a/arch/powerpc/platforms/chrp/pci.c +++ b/arch/powerpc/platforms/chrp/pci.c | |||
@@ -367,7 +367,7 @@ static void chrp_pci_fixup_vt8231_ata(struct pci_dev *viaide) | |||
367 | viaisa = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231, NULL); | 367 | viaisa = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231, NULL); |
368 | if (!viaisa) | 368 | if (!viaisa) |
369 | return; | 369 | return; |
370 | printk("Fixing VIA IDE, force legacy mode on '%s'\n", viaide->dev.bus_id); | 370 | dev_info(&viaide->dev, "Fixing VIA IDE, force legacy mode on\n"); |
371 | 371 | ||
372 | pci_read_config_byte(viaide, PCI_CLASS_PROG, &progif); | 372 | pci_read_config_byte(viaide, PCI_CLASS_PROG, &progif); |
373 | pci_write_config_byte(viaide, PCI_CLASS_PROG, progif & ~0x5); | 373 | pci_write_config_byte(viaide, PCI_CLASS_PROG, progif & ~0x5); |
diff --git a/arch/powerpc/platforms/fsl_uli1575.c b/arch/powerpc/platforms/fsl_uli1575.c index afc9141be63e..ef74a0763ec1 100644 --- a/arch/powerpc/platforms/fsl_uli1575.c +++ b/arch/powerpc/platforms/fsl_uli1575.c | |||
@@ -51,15 +51,13 @@ u8 uli_pirq_to_irq[8] = { | |||
51 | ULI_8259_NONE, /* PIRQH */ | 51 | ULI_8259_NONE, /* PIRQH */ |
52 | }; | 52 | }; |
53 | 53 | ||
54 | /* set in board code if you want this quirks to do something */ | ||
55 | int uses_fsl_uli_m1575; | ||
56 | |||
57 | /* Bridge */ | 54 | /* Bridge */ |
58 | static void __devinit early_uli5249(struct pci_dev *dev) | 55 | static void __devinit early_uli5249(struct pci_dev *dev) |
59 | { | 56 | { |
60 | unsigned char temp; | 57 | unsigned char temp; |
61 | 58 | ||
62 | if (!uses_fsl_uli_m1575) | 59 | if (!machine_is(mpc86xx_hpcn) && !machine_is(mpc8544_ds) && |
60 | !machine_is(mpc8572_ds)) | ||
63 | return; | 61 | return; |
64 | 62 | ||
65 | pci_write_config_word(dev, PCI_COMMAND, PCI_COMMAND_IO | | 63 | pci_write_config_word(dev, PCI_COMMAND, PCI_COMMAND_IO | |
@@ -82,7 +80,8 @@ static void __devinit quirk_uli1575(struct pci_dev *dev) | |||
82 | { | 80 | { |
83 | int i; | 81 | int i; |
84 | 82 | ||
85 | if (!uses_fsl_uli_m1575) | 83 | if (!machine_is(mpc86xx_hpcn) && !machine_is(mpc8544_ds) && |
84 | !machine_is(mpc8572_ds)) | ||
86 | return; | 85 | return; |
87 | 86 | ||
88 | /* | 87 | /* |
@@ -150,7 +149,8 @@ static void __devinit quirk_final_uli1575(struct pci_dev *dev) | |||
150 | * IRQ 14: Edge | 149 | * IRQ 14: Edge |
151 | * IRQ 15: Edge | 150 | * IRQ 15: Edge |
152 | */ | 151 | */ |
153 | if (!uses_fsl_uli_m1575) | 152 | if (!machine_is(mpc86xx_hpcn) && !machine_is(mpc8544_ds) && |
153 | !machine_is(mpc8572_ds)) | ||
154 | return; | 154 | return; |
155 | 155 | ||
156 | outb(0xfa, 0x4d0); | 156 | outb(0xfa, 0x4d0); |
@@ -176,7 +176,8 @@ static void __devinit quirk_uli5288(struct pci_dev *dev) | |||
176 | unsigned char c; | 176 | unsigned char c; |
177 | unsigned int d; | 177 | unsigned int d; |
178 | 178 | ||
179 | if (!uses_fsl_uli_m1575) | 179 | if (!machine_is(mpc86xx_hpcn) && !machine_is(mpc8544_ds) && |
180 | !machine_is(mpc8572_ds)) | ||
180 | return; | 181 | return; |
181 | 182 | ||
182 | /* read/write lock */ | 183 | /* read/write lock */ |
@@ -200,7 +201,8 @@ static void __devinit quirk_uli5229(struct pci_dev *dev) | |||
200 | { | 201 | { |
201 | unsigned short temp; | 202 | unsigned short temp; |
202 | 203 | ||
203 | if (!uses_fsl_uli_m1575) | 204 | if (!machine_is(mpc86xx_hpcn) && !machine_is(mpc8544_ds) && |
205 | !machine_is(mpc8572_ds)) | ||
204 | return; | 206 | return; |
205 | 207 | ||
206 | pci_write_config_word(dev, PCI_COMMAND, PCI_COMMAND_INTX_DISABLE | | 208 | pci_write_config_word(dev, PCI_COMMAND, PCI_COMMAND_INTX_DISABLE | |
@@ -221,7 +223,7 @@ static void __devinit quirk_final_uli5249(struct pci_dev *dev) | |||
221 | for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { | 223 | for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { |
222 | if ((bus->resource[i]) && | 224 | if ((bus->resource[i]) && |
223 | (bus->resource[i]->flags & IORESOURCE_MEM)) { | 225 | (bus->resource[i]->flags & IORESOURCE_MEM)) { |
224 | dummy = ioremap(bus->resource[i]->start, 0x4); | 226 | dummy = ioremap(bus->resource[i]->end - 3, 0x4); |
225 | if (dummy) { | 227 | if (dummy) { |
226 | in_8(dummy); | 228 | in_8(dummy); |
227 | iounmap(dummy); | 229 | iounmap(dummy); |
@@ -238,6 +240,103 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5229, quirk_uli5229); | |||
238 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x5249, quirk_final_uli5249); | 240 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x5249, quirk_final_uli5249); |
239 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x1575, quirk_final_uli1575); | 241 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x1575, quirk_final_uli1575); |
240 | 242 | ||
243 | static void __devinit hpcd_quirk_uli1575(struct pci_dev *dev) | ||
244 | { | ||
245 | u32 temp32; | ||
246 | |||
247 | if (!machine_is(mpc86xx_hpcd)) | ||
248 | return; | ||
249 | |||
250 | /* Disable INTx */ | ||
251 | pci_read_config_dword(dev, 0x48, &temp32); | ||
252 | pci_write_config_dword(dev, 0x48, (temp32 | 1<<26)); | ||
253 | |||
254 | /* Enable sideband interrupt */ | ||
255 | pci_read_config_dword(dev, 0x90, &temp32); | ||
256 | pci_write_config_dword(dev, 0x90, (temp32 | 1<<22)); | ||
257 | } | ||
258 | |||
259 | static void __devinit hpcd_quirk_uli5288(struct pci_dev *dev) | ||
260 | { | ||
261 | unsigned char c; | ||
262 | unsigned short temp; | ||
263 | |||
264 | if (!machine_is(mpc86xx_hpcd)) | ||
265 | return; | ||
266 | |||
267 | /* Interrupt Disable, Needed when SATA disabled */ | ||
268 | pci_read_config_word(dev, PCI_COMMAND, &temp); | ||
269 | temp |= 1<<10; | ||
270 | pci_write_config_word(dev, PCI_COMMAND, temp); | ||
271 | |||
272 | pci_read_config_byte(dev, 0x83, &c); | ||
273 | c |= 0x80; | ||
274 | pci_write_config_byte(dev, 0x83, c); | ||
275 | |||
276 | pci_write_config_byte(dev, PCI_CLASS_PROG, 0x01); | ||
277 | pci_write_config_byte(dev, PCI_CLASS_DEVICE, 0x06); | ||
278 | |||
279 | pci_read_config_byte(dev, 0x83, &c); | ||
280 | c &= 0x7f; | ||
281 | pci_write_config_byte(dev, 0x83, c); | ||
282 | } | ||
283 | |||
284 | /* | ||
285 | * Since 8259PIC was disabled on the board, the IDE device can not | ||
286 | * use the legacy IRQ, we need to let the IDE device work under | ||
287 | * native mode and use the interrupt line like other PCI devices. | ||
288 | * IRQ14 is a sideband interrupt from IDE device to CPU and we use this | ||
289 | * as the interrupt for IDE device. | ||
290 | */ | ||
291 | static void __devinit hpcd_quirk_uli5229(struct pci_dev *dev) | ||
292 | { | ||
293 | unsigned char c; | ||
294 | |||
295 | if (!machine_is(mpc86xx_hpcd)) | ||
296 | return; | ||
297 | |||
298 | pci_read_config_byte(dev, 0x4b, &c); | ||
299 | c |= 0x10; | ||
300 | pci_write_config_byte(dev, 0x4b, c); | ||
301 | } | ||
302 | |||
303 | /* | ||
304 | * SATA interrupt pin bug fix | ||
305 | * There's a chip bug for 5288, The interrupt pin should be 2, | ||
306 | * not the read only value 1, So it use INTB#, not INTA# which | ||
307 | * actually used by the IDE device 5229. | ||
308 | * As of this bug, during the PCI initialization, 5288 read the | ||
309 | * irq of IDE device from the device tree, this function fix this | ||
310 | * bug by re-assigning a correct irq to 5288. | ||
311 | * | ||
312 | */ | ||
313 | static void __devinit hpcd_final_uli5288(struct pci_dev *dev) | ||
314 | { | ||
315 | struct pci_controller *hose = pci_bus_to_host(dev->bus); | ||
316 | struct device_node *hosenode = hose ? hose->dn : NULL; | ||
317 | struct of_irq oirq; | ||
318 | int virq, pin = 2; | ||
319 | u32 laddr[3]; | ||
320 | |||
321 | if (!machine_is(mpc86xx_hpcd)) | ||
322 | return; | ||
323 | |||
324 | if (!hosenode) | ||
325 | return; | ||
326 | |||
327 | laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8); | ||
328 | laddr[1] = laddr[2] = 0; | ||
329 | of_irq_map_raw(hosenode, &pin, 1, laddr, &oirq); | ||
330 | virq = irq_create_of_mapping(oirq.controller, oirq.specifier, | ||
331 | oirq.size); | ||
332 | dev->irq = virq; | ||
333 | } | ||
334 | |||
335 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x1575, hpcd_quirk_uli1575); | ||
336 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5288, hpcd_quirk_uli5288); | ||
337 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5229, hpcd_quirk_uli5229); | ||
338 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x5288, hpcd_final_uli5288); | ||
339 | |||
241 | int uli_exclude_device(struct pci_controller *hose, | 340 | int uli_exclude_device(struct pci_controller *hose, |
242 | u_char bus, u_char devfn) | 341 | u_char bus, u_char devfn) |
243 | { | 342 | { |
diff --git a/arch/powerpc/platforms/iseries/Kconfig b/arch/powerpc/platforms/iseries/Kconfig index 761d9e971fc4..ea3e541ac74f 100644 --- a/arch/powerpc/platforms/iseries/Kconfig +++ b/arch/powerpc/platforms/iseries/Kconfig | |||
@@ -2,6 +2,7 @@ config PPC_ISERIES | |||
2 | bool "IBM Legacy iSeries" | 2 | bool "IBM Legacy iSeries" |
3 | depends on PPC_MULTIPLATFORM && PPC64 | 3 | depends on PPC_MULTIPLATFORM && PPC64 |
4 | select PPC_INDIRECT_IO | 4 | select PPC_INDIRECT_IO |
5 | select PPC_PCI_CHOICE if EMBEDDED | ||
5 | 6 | ||
6 | menu "iSeries device drivers" | 7 | menu "iSeries device drivers" |
7 | depends on PPC_ISERIES | 8 | depends on PPC_ISERIES |
diff --git a/arch/powerpc/platforms/iseries/iommu.c b/arch/powerpc/platforms/iseries/iommu.c index ab5d8687c3cf..bb464d1211b2 100644 --- a/arch/powerpc/platforms/iseries/iommu.c +++ b/arch/powerpc/platforms/iseries/iommu.c | |||
@@ -41,8 +41,9 @@ | |||
41 | #include <asm/iseries/hv_call_event.h> | 41 | #include <asm/iseries/hv_call_event.h> |
42 | #include <asm/iseries/iommu.h> | 42 | #include <asm/iseries/iommu.h> |
43 | 43 | ||
44 | static void tce_build_iSeries(struct iommu_table *tbl, long index, long npages, | 44 | static int tce_build_iSeries(struct iommu_table *tbl, long index, long npages, |
45 | unsigned long uaddr, enum dma_data_direction direction) | 45 | unsigned long uaddr, enum dma_data_direction direction, |
46 | struct dma_attrs *attrs) | ||
46 | { | 47 | { |
47 | u64 rc; | 48 | u64 rc; |
48 | u64 tce, rpn; | 49 | u64 tce, rpn; |
@@ -70,6 +71,7 @@ static void tce_build_iSeries(struct iommu_table *tbl, long index, long npages, | |||
70 | index++; | 71 | index++; |
71 | uaddr += TCE_PAGE_SIZE; | 72 | uaddr += TCE_PAGE_SIZE; |
72 | } | 73 | } |
74 | return 0; | ||
73 | } | 75 | } |
74 | 76 | ||
75 | static void tce_free_iSeries(struct iommu_table *tbl, long index, long npages) | 77 | static void tce_free_iSeries(struct iommu_table *tbl, long index, long npages) |
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c index b72120751bbe..70b688c1aefb 100644 --- a/arch/powerpc/platforms/iseries/setup.c +++ b/arch/powerpc/platforms/iseries/setup.c | |||
@@ -561,7 +561,7 @@ static void yield_shared_processor(void) | |||
561 | static void iseries_shared_idle(void) | 561 | static void iseries_shared_idle(void) |
562 | { | 562 | { |
563 | while (1) { | 563 | while (1) { |
564 | tick_nohz_stop_sched_tick(); | 564 | tick_nohz_stop_sched_tick(1); |
565 | while (!need_resched() && !hvlpevent_is_pending()) { | 565 | while (!need_resched() && !hvlpevent_is_pending()) { |
566 | local_irq_disable(); | 566 | local_irq_disable(); |
567 | ppc64_runlatch_off(); | 567 | ppc64_runlatch_off(); |
@@ -591,7 +591,7 @@ static void iseries_dedicated_idle(void) | |||
591 | set_thread_flag(TIF_POLLING_NRFLAG); | 591 | set_thread_flag(TIF_POLLING_NRFLAG); |
592 | 592 | ||
593 | while (1) { | 593 | while (1) { |
594 | tick_nohz_stop_sched_tick(); | 594 | tick_nohz_stop_sched_tick(1); |
595 | if (!need_resched()) { | 595 | if (!need_resched()) { |
596 | while (!need_resched()) { | 596 | while (!need_resched()) { |
597 | ppc64_runlatch_off(); | 597 | ppc64_runlatch_off(); |
diff --git a/arch/powerpc/platforms/pasemi/iommu.c b/arch/powerpc/platforms/pasemi/iommu.c index 86967bdd8774..a0ff03a3d8da 100644 --- a/arch/powerpc/platforms/pasemi/iommu.c +++ b/arch/powerpc/platforms/pasemi/iommu.c | |||
@@ -83,9 +83,10 @@ static u32 *iob_l2_base; | |||
83 | static struct iommu_table iommu_table_iobmap; | 83 | static struct iommu_table iommu_table_iobmap; |
84 | static int iommu_table_iobmap_inited; | 84 | static int iommu_table_iobmap_inited; |
85 | 85 | ||
86 | static void iobmap_build(struct iommu_table *tbl, long index, | 86 | static int iobmap_build(struct iommu_table *tbl, long index, |
87 | long npages, unsigned long uaddr, | 87 | long npages, unsigned long uaddr, |
88 | enum dma_data_direction direction) | 88 | enum dma_data_direction direction, |
89 | struct dma_attrs *attrs) | ||
89 | { | 90 | { |
90 | u32 *ip; | 91 | u32 *ip; |
91 | u32 rpn; | 92 | u32 rpn; |
@@ -107,6 +108,7 @@ static void iobmap_build(struct iommu_table *tbl, long index, | |||
107 | uaddr += IOBMAP_PAGE_SIZE; | 108 | uaddr += IOBMAP_PAGE_SIZE; |
108 | bus_addr += IOBMAP_PAGE_SIZE; | 109 | bus_addr += IOBMAP_PAGE_SIZE; |
109 | } | 110 | } |
111 | return 0; | ||
110 | } | 112 | } |
111 | 113 | ||
112 | 114 | ||
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 00bd0166d07f..31635446901a 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -97,8 +97,6 @@ extern struct machdep_calls pmac_md; | |||
97 | int sccdbg; | 97 | int sccdbg; |
98 | #endif | 98 | #endif |
99 | 99 | ||
100 | extern void zs_kgdb_hook(int tty_num); | ||
101 | |||
102 | sys_ctrler_t sys_ctrler = SYS_CTRLER_UNKNOWN; | 100 | sys_ctrler_t sys_ctrler = SYS_CTRLER_UNKNOWN; |
103 | EXPORT_SYMBOL(sys_ctrler); | 101 | EXPORT_SYMBOL(sys_ctrler); |
104 | 102 | ||
@@ -329,10 +327,6 @@ static void __init pmac_setup_arch(void) | |||
329 | l2cr_init(); | 327 | l2cr_init(); |
330 | #endif /* CONFIG_PPC32 */ | 328 | #endif /* CONFIG_PPC32 */ |
331 | 329 | ||
332 | #ifdef CONFIG_KGDB | ||
333 | zs_kgdb_hook(0); | ||
334 | #endif | ||
335 | |||
336 | find_via_cuda(); | 330 | find_via_cuda(); |
337 | find_via_pmu(); | 331 | find_via_pmu(); |
338 | smu_init(); | 332 | smu_init(); |
diff --git a/arch/powerpc/platforms/ps3/Kconfig b/arch/powerpc/platforms/ps3/Kconfig index a5f4e95dfc3d..920cf7a454b1 100644 --- a/arch/powerpc/platforms/ps3/Kconfig +++ b/arch/powerpc/platforms/ps3/Kconfig | |||
@@ -8,6 +8,7 @@ config PPC_PS3 | |||
8 | select USB_ARCH_HAS_EHCI | 8 | select USB_ARCH_HAS_EHCI |
9 | select USB_EHCI_BIG_ENDIAN_MMIO | 9 | select USB_EHCI_BIG_ENDIAN_MMIO |
10 | select MEMORY_HOTPLUG | 10 | select MEMORY_HOTPLUG |
11 | select PPC_PCI_CHOICE | ||
11 | help | 12 | help |
12 | This option enables support for the Sony PS3 game console | 13 | This option enables support for the Sony PS3 game console |
13 | and other platforms using the PS3 hypervisor. Enabling this | 14 | and other platforms using the PS3 hypervisor. Enabling this |
diff --git a/arch/powerpc/platforms/ps3/device-init.c b/arch/powerpc/platforms/ps3/device-init.c index 3866debfa3c4..ffdd8e963fbd 100644 --- a/arch/powerpc/platforms/ps3/device-init.c +++ b/arch/powerpc/platforms/ps3/device-init.c | |||
@@ -486,6 +486,7 @@ static int __init ps3_register_graphics_devices(void) | |||
486 | return -ENOMEM; | 486 | return -ENOMEM; |
487 | 487 | ||
488 | p->dev.match_id = PS3_MATCH_ID_GRAPHICS; | 488 | p->dev.match_id = PS3_MATCH_ID_GRAPHICS; |
489 | p->dev.match_sub_id = PS3_MATCH_SUB_ID_FB; | ||
489 | p->dev.dev_type = PS3_DEVICE_TYPE_IOC0; | 490 | p->dev.dev_type = PS3_DEVICE_TYPE_IOC0; |
490 | 491 | ||
491 | result = ps3_system_bus_device_register(&p->dev); | 492 | result = ps3_system_bus_device_register(&p->dev); |
diff --git a/arch/powerpc/platforms/ps3/system-bus.c b/arch/powerpc/platforms/ps3/system-bus.c index d66c3628a112..280ee88cb0b0 100644 --- a/arch/powerpc/platforms/ps3/system-bus.c +++ b/arch/powerpc/platforms/ps3/system-bus.c | |||
@@ -347,16 +347,23 @@ static int ps3_system_bus_match(struct device *_dev, | |||
347 | struct ps3_system_bus_driver *drv = ps3_drv_to_system_bus_drv(_drv); | 347 | struct ps3_system_bus_driver *drv = ps3_drv_to_system_bus_drv(_drv); |
348 | struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); | 348 | struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev); |
349 | 349 | ||
350 | result = dev->match_id == drv->match_id; | 350 | if (!dev->match_sub_id) |
351 | result = dev->match_id == drv->match_id; | ||
352 | else | ||
353 | result = dev->match_sub_id == drv->match_sub_id && | ||
354 | dev->match_id == drv->match_id; | ||
351 | 355 | ||
352 | if (result) | 356 | if (result) |
353 | pr_info("%s:%d: dev=%u(%s), drv=%u(%s): match\n", __func__, | 357 | pr_info("%s:%d: dev=%u.%u(%s), drv=%u.%u(%s): match\n", |
354 | __LINE__, dev->match_id, dev->core.bus_id, | 358 | __func__, __LINE__, |
355 | drv->match_id, drv->core.name); | 359 | dev->match_id, dev->match_sub_id, dev->core.bus_id, |
360 | drv->match_id, drv->match_sub_id, drv->core.name); | ||
356 | else | 361 | else |
357 | pr_debug("%s:%d: dev=%u(%s), drv=%u(%s): miss\n", __func__, | 362 | pr_debug("%s:%d: dev=%u.%u(%s), drv=%u.%u(%s): miss\n", |
358 | __LINE__, dev->match_id, dev->core.bus_id, | 363 | __func__, __LINE__, |
359 | drv->match_id, drv->core.name); | 364 | dev->match_id, dev->match_sub_id, dev->core.bus_id, |
365 | drv->match_id, drv->match_sub_id, drv->core.name); | ||
366 | |||
360 | return result; | 367 | return result; |
361 | } | 368 | } |
362 | 369 | ||
diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig index 07fe5b69b9e2..97619fd51e39 100644 --- a/arch/powerpc/platforms/pseries/Kconfig +++ b/arch/powerpc/platforms/pseries/Kconfig | |||
@@ -7,6 +7,7 @@ config PPC_PSERIES | |||
7 | select RTAS_ERROR_LOGGING | 7 | select RTAS_ERROR_LOGGING |
8 | select PPC_UDBG_16550 | 8 | select PPC_UDBG_16550 |
9 | select PPC_NATIVE | 9 | select PPC_NATIVE |
10 | select PPC_PCI_CHOICE if EMBEDDED | ||
10 | default y | 11 | default y |
11 | 12 | ||
12 | config PPC_SPLPAR | 13 | config PPC_SPLPAR |
@@ -39,3 +40,26 @@ config PPC_PSERIES_DEBUG | |||
39 | depends on PPC_PSERIES && PPC_EARLY_DEBUG | 40 | depends on PPC_PSERIES && PPC_EARLY_DEBUG |
40 | bool "Enable extra debug logging in platforms/pseries" | 41 | bool "Enable extra debug logging in platforms/pseries" |
41 | default y | 42 | default y |
43 | |||
44 | config PPC_SMLPAR | ||
45 | bool "Support for shared-memory logical partitions" | ||
46 | depends on PPC_PSERIES | ||
47 | select LPARCFG | ||
48 | default n | ||
49 | help | ||
50 | Select this option to enable shared memory partition support. | ||
51 | With this option a system running in an LPAR can be given more | ||
52 | memory than physically available and will allow firmware to | ||
53 | balance memory across many LPARs. | ||
54 | |||
55 | config CMM | ||
56 | tristate "Collaborative memory management" | ||
57 | depends on PPC_SMLPAR | ||
58 | default y | ||
59 | help | ||
60 | Select this option, if you want to enable the kernel interface | ||
61 | to reduce the memory size of the system. This is accomplished | ||
62 | by allocating pages of memory and put them "on hold". This only | ||
63 | makes sense for a system running in an LPAR where the unused pages | ||
64 | will be reused for other LPARs. The interface allows firmware to | ||
65 | balance memory across many LPARs. | ||
diff --git a/arch/powerpc/platforms/pseries/Makefile b/arch/powerpc/platforms/pseries/Makefile index 554c6e42ef2a..dfe574af2dc0 100644 --- a/arch/powerpc/platforms/pseries/Makefile +++ b/arch/powerpc/platforms/pseries/Makefile | |||
@@ -24,3 +24,4 @@ obj-$(CONFIG_HVC_CONSOLE) += hvconsole.o | |||
24 | obj-$(CONFIG_HVCS) += hvcserver.o | 24 | obj-$(CONFIG_HVCS) += hvcserver.o |
25 | obj-$(CONFIG_HCALL_STATS) += hvCall_inst.o | 25 | obj-$(CONFIG_HCALL_STATS) += hvCall_inst.o |
26 | obj-$(CONFIG_PHYP_DUMP) += phyp_dump.o | 26 | obj-$(CONFIG_PHYP_DUMP) += phyp_dump.o |
27 | obj-$(CONFIG_CMM) += cmm.o | ||
diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c new file mode 100644 index 000000000000..c6b3be03168b --- /dev/null +++ b/arch/powerpc/platforms/pseries/cmm.c | |||
@@ -0,0 +1,468 @@ | |||
1 | /* | ||
2 | * Collaborative memory management interface. | ||
3 | * | ||
4 | * Copyright (C) 2008 IBM Corporation | ||
5 | * Author(s): Brian King (brking@linux.vnet.ibm.com), | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | * | ||
21 | */ | ||
22 | |||
23 | #include <linux/ctype.h> | ||
24 | #include <linux/delay.h> | ||
25 | #include <linux/errno.h> | ||
26 | #include <linux/fs.h> | ||
27 | #include <linux/init.h> | ||
28 | #include <linux/kthread.h> | ||
29 | #include <linux/module.h> | ||
30 | #include <linux/oom.h> | ||
31 | #include <linux/sched.h> | ||
32 | #include <linux/stringify.h> | ||
33 | #include <linux/swap.h> | ||
34 | #include <linux/sysdev.h> | ||
35 | #include <asm/firmware.h> | ||
36 | #include <asm/hvcall.h> | ||
37 | #include <asm/mmu.h> | ||
38 | #include <asm/pgalloc.h> | ||
39 | #include <asm/uaccess.h> | ||
40 | |||
41 | #include "plpar_wrappers.h" | ||
42 | |||
43 | #define CMM_DRIVER_VERSION "1.0.0" | ||
44 | #define CMM_DEFAULT_DELAY 1 | ||
45 | #define CMM_DEBUG 0 | ||
46 | #define CMM_DISABLE 0 | ||
47 | #define CMM_OOM_KB 1024 | ||
48 | #define CMM_MIN_MEM_MB 256 | ||
49 | #define KB2PAGES(_p) ((_p)>>(PAGE_SHIFT-10)) | ||
50 | #define PAGES2KB(_p) ((_p)<<(PAGE_SHIFT-10)) | ||
51 | |||
52 | static unsigned int delay = CMM_DEFAULT_DELAY; | ||
53 | static unsigned int oom_kb = CMM_OOM_KB; | ||
54 | static unsigned int cmm_debug = CMM_DEBUG; | ||
55 | static unsigned int cmm_disabled = CMM_DISABLE; | ||
56 | static unsigned long min_mem_mb = CMM_MIN_MEM_MB; | ||
57 | static struct sys_device cmm_sysdev; | ||
58 | |||
59 | MODULE_AUTHOR("Brian King <brking@linux.vnet.ibm.com>"); | ||
60 | MODULE_DESCRIPTION("IBM System p Collaborative Memory Manager"); | ||
61 | MODULE_LICENSE("GPL"); | ||
62 | MODULE_VERSION(CMM_DRIVER_VERSION); | ||
63 | |||
64 | module_param_named(delay, delay, uint, S_IRUGO | S_IWUSR); | ||
65 | MODULE_PARM_DESC(delay, "Delay (in seconds) between polls to query hypervisor paging requests. " | ||
66 | "[Default=" __stringify(CMM_DEFAULT_DELAY) "]"); | ||
67 | module_param_named(oom_kb, oom_kb, uint, S_IRUGO | S_IWUSR); | ||
68 | MODULE_PARM_DESC(oom_kb, "Amount of memory in kb to free on OOM. " | ||
69 | "[Default=" __stringify(CMM_OOM_KB) "]"); | ||
70 | module_param_named(min_mem_mb, min_mem_mb, ulong, S_IRUGO | S_IWUSR); | ||
71 | MODULE_PARM_DESC(min_mem_mb, "Minimum amount of memory (in MB) to not balloon. " | ||
72 | "[Default=" __stringify(CMM_MIN_MEM_MB) "]"); | ||
73 | module_param_named(debug, cmm_debug, uint, S_IRUGO | S_IWUSR); | ||
74 | MODULE_PARM_DESC(debug, "Enable module debugging logging. Set to 1 to enable. " | ||
75 | "[Default=" __stringify(CMM_DEBUG) "]"); | ||
76 | |||
77 | #define CMM_NR_PAGES ((PAGE_SIZE - sizeof(void *) - sizeof(unsigned long)) / sizeof(unsigned long)) | ||
78 | |||
79 | #define cmm_dbg(...) if (cmm_debug) { printk(KERN_INFO "cmm: "__VA_ARGS__); } | ||
80 | |||
81 | struct cmm_page_array { | ||
82 | struct cmm_page_array *next; | ||
83 | unsigned long index; | ||
84 | unsigned long page[CMM_NR_PAGES]; | ||
85 | }; | ||
86 | |||
87 | static unsigned long loaned_pages; | ||
88 | static unsigned long loaned_pages_target; | ||
89 | static unsigned long oom_freed_pages; | ||
90 | |||
91 | static struct cmm_page_array *cmm_page_list; | ||
92 | static DEFINE_SPINLOCK(cmm_lock); | ||
93 | |||
94 | static struct task_struct *cmm_thread_ptr; | ||
95 | |||
96 | /** | ||
97 | * cmm_alloc_pages - Allocate pages and mark them as loaned | ||
98 | * @nr: number of pages to allocate | ||
99 | * | ||
100 | * Return value: | ||
101 | * number of pages requested to be allocated which were not | ||
102 | **/ | ||
103 | static long cmm_alloc_pages(long nr) | ||
104 | { | ||
105 | struct cmm_page_array *pa, *npa; | ||
106 | unsigned long addr; | ||
107 | long rc; | ||
108 | |||
109 | cmm_dbg("Begin request for %ld pages\n", nr); | ||
110 | |||
111 | while (nr) { | ||
112 | addr = __get_free_page(GFP_NOIO | __GFP_NOWARN | | ||
113 | __GFP_NORETRY | __GFP_NOMEMALLOC); | ||
114 | if (!addr) | ||
115 | break; | ||
116 | spin_lock(&cmm_lock); | ||
117 | pa = cmm_page_list; | ||
118 | if (!pa || pa->index >= CMM_NR_PAGES) { | ||
119 | /* Need a new page for the page list. */ | ||
120 | spin_unlock(&cmm_lock); | ||
121 | npa = (struct cmm_page_array *)__get_free_page(GFP_NOIO | __GFP_NOWARN | | ||
122 | __GFP_NORETRY | __GFP_NOMEMALLOC); | ||
123 | if (!npa) { | ||
124 | pr_info("%s: Can not allocate new page list\n", __FUNCTION__); | ||
125 | free_page(addr); | ||
126 | break; | ||
127 | } | ||
128 | spin_lock(&cmm_lock); | ||
129 | pa = cmm_page_list; | ||
130 | |||
131 | if (!pa || pa->index >= CMM_NR_PAGES) { | ||
132 | npa->next = pa; | ||
133 | npa->index = 0; | ||
134 | pa = npa; | ||
135 | cmm_page_list = pa; | ||
136 | } else | ||
137 | free_page((unsigned long) npa); | ||
138 | } | ||
139 | |||
140 | if ((rc = plpar_page_set_loaned(__pa(addr)))) { | ||
141 | pr_err("%s: Can not set page to loaned. rc=%ld\n", __FUNCTION__, rc); | ||
142 | spin_unlock(&cmm_lock); | ||
143 | free_page(addr); | ||
144 | break; | ||
145 | } | ||
146 | |||
147 | pa->page[pa->index++] = addr; | ||
148 | loaned_pages++; | ||
149 | totalram_pages--; | ||
150 | spin_unlock(&cmm_lock); | ||
151 | nr--; | ||
152 | } | ||
153 | |||
154 | cmm_dbg("End request with %ld pages unfulfilled\n", nr); | ||
155 | return nr; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * cmm_free_pages - Free pages and mark them as active | ||
160 | * @nr: number of pages to free | ||
161 | * | ||
162 | * Return value: | ||
163 | * number of pages requested to be freed which were not | ||
164 | **/ | ||
165 | static long cmm_free_pages(long nr) | ||
166 | { | ||
167 | struct cmm_page_array *pa; | ||
168 | unsigned long addr; | ||
169 | |||
170 | cmm_dbg("Begin free of %ld pages.\n", nr); | ||
171 | spin_lock(&cmm_lock); | ||
172 | pa = cmm_page_list; | ||
173 | while (nr) { | ||
174 | if (!pa || pa->index <= 0) | ||
175 | break; | ||
176 | addr = pa->page[--pa->index]; | ||
177 | |||
178 | if (pa->index == 0) { | ||
179 | pa = pa->next; | ||
180 | free_page((unsigned long) cmm_page_list); | ||
181 | cmm_page_list = pa; | ||
182 | } | ||
183 | |||
184 | plpar_page_set_active(__pa(addr)); | ||
185 | free_page(addr); | ||
186 | loaned_pages--; | ||
187 | nr--; | ||
188 | totalram_pages++; | ||
189 | } | ||
190 | spin_unlock(&cmm_lock); | ||
191 | cmm_dbg("End request with %ld pages unfulfilled\n", nr); | ||
192 | return nr; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * cmm_oom_notify - OOM notifier | ||
197 | * @self: notifier block struct | ||
198 | * @dummy: not used | ||
199 | * @parm: returned - number of pages freed | ||
200 | * | ||
201 | * Return value: | ||
202 | * NOTIFY_OK | ||
203 | **/ | ||
204 | static int cmm_oom_notify(struct notifier_block *self, | ||
205 | unsigned long dummy, void *parm) | ||
206 | { | ||
207 | unsigned long *freed = parm; | ||
208 | long nr = KB2PAGES(oom_kb); | ||
209 | |||
210 | cmm_dbg("OOM processing started\n"); | ||
211 | nr = cmm_free_pages(nr); | ||
212 | loaned_pages_target = loaned_pages; | ||
213 | *freed += KB2PAGES(oom_kb) - nr; | ||
214 | oom_freed_pages += KB2PAGES(oom_kb) - nr; | ||
215 | cmm_dbg("OOM processing complete\n"); | ||
216 | return NOTIFY_OK; | ||
217 | } | ||
218 | |||
219 | /** | ||
220 | * cmm_get_mpp - Read memory performance parameters | ||
221 | * | ||
222 | * Makes hcall to query the current page loan request from the hypervisor. | ||
223 | * | ||
224 | * Return value: | ||
225 | * nothing | ||
226 | **/ | ||
227 | static void cmm_get_mpp(void) | ||
228 | { | ||
229 | int rc; | ||
230 | struct hvcall_mpp_data mpp_data; | ||
231 | unsigned long active_pages_target; | ||
232 | signed long page_loan_request; | ||
233 | |||
234 | rc = h_get_mpp(&mpp_data); | ||
235 | |||
236 | if (rc != H_SUCCESS) | ||
237 | return; | ||
238 | |||
239 | page_loan_request = div_s64((s64)mpp_data.loan_request, PAGE_SIZE); | ||
240 | loaned_pages_target = page_loan_request + loaned_pages; | ||
241 | if (loaned_pages_target > oom_freed_pages) | ||
242 | loaned_pages_target -= oom_freed_pages; | ||
243 | else | ||
244 | loaned_pages_target = 0; | ||
245 | |||
246 | active_pages_target = totalram_pages + loaned_pages - loaned_pages_target; | ||
247 | |||
248 | if ((min_mem_mb * 1024 * 1024) > (active_pages_target * PAGE_SIZE)) | ||
249 | loaned_pages_target = totalram_pages + loaned_pages - | ||
250 | ((min_mem_mb * 1024 * 1024) / PAGE_SIZE); | ||
251 | |||
252 | cmm_dbg("delta = %ld, loaned = %lu, target = %lu, oom = %lu, totalram = %lu\n", | ||
253 | page_loan_request, loaned_pages, loaned_pages_target, | ||
254 | oom_freed_pages, totalram_pages); | ||
255 | } | ||
256 | |||
257 | static struct notifier_block cmm_oom_nb = { | ||
258 | .notifier_call = cmm_oom_notify | ||
259 | }; | ||
260 | |||
261 | /** | ||
262 | * cmm_thread - CMM task thread | ||
263 | * @dummy: not used | ||
264 | * | ||
265 | * Return value: | ||
266 | * 0 | ||
267 | **/ | ||
268 | static int cmm_thread(void *dummy) | ||
269 | { | ||
270 | unsigned long timeleft; | ||
271 | |||
272 | while (1) { | ||
273 | timeleft = msleep_interruptible(delay * 1000); | ||
274 | |||
275 | if (kthread_should_stop() || timeleft) { | ||
276 | loaned_pages_target = loaned_pages; | ||
277 | break; | ||
278 | } | ||
279 | |||
280 | cmm_get_mpp(); | ||
281 | |||
282 | if (loaned_pages_target > loaned_pages) { | ||
283 | if (cmm_alloc_pages(loaned_pages_target - loaned_pages)) | ||
284 | loaned_pages_target = loaned_pages; | ||
285 | } else if (loaned_pages_target < loaned_pages) | ||
286 | cmm_free_pages(loaned_pages - loaned_pages_target); | ||
287 | } | ||
288 | return 0; | ||
289 | } | ||
290 | |||
291 | #define CMM_SHOW(name, format, args...) \ | ||
292 | static ssize_t show_##name(struct sys_device *dev, char *buf) \ | ||
293 | { \ | ||
294 | return sprintf(buf, format, ##args); \ | ||
295 | } \ | ||
296 | static SYSDEV_ATTR(name, S_IRUGO, show_##name, NULL) | ||
297 | |||
298 | CMM_SHOW(loaned_kb, "%lu\n", PAGES2KB(loaned_pages)); | ||
299 | CMM_SHOW(loaned_target_kb, "%lu\n", PAGES2KB(loaned_pages_target)); | ||
300 | |||
301 | static ssize_t show_oom_pages(struct sys_device *dev, char *buf) | ||
302 | { | ||
303 | return sprintf(buf, "%lu\n", PAGES2KB(oom_freed_pages)); | ||
304 | } | ||
305 | |||
306 | static ssize_t store_oom_pages(struct sys_device *dev, | ||
307 | const char *buf, size_t count) | ||
308 | { | ||
309 | unsigned long val = simple_strtoul (buf, NULL, 10); | ||
310 | |||
311 | if (!capable(CAP_SYS_ADMIN)) | ||
312 | return -EPERM; | ||
313 | if (val != 0) | ||
314 | return -EBADMSG; | ||
315 | |||
316 | oom_freed_pages = 0; | ||
317 | return count; | ||
318 | } | ||
319 | |||
320 | static SYSDEV_ATTR(oom_freed_kb, S_IWUSR| S_IRUGO, | ||
321 | show_oom_pages, store_oom_pages); | ||
322 | |||
323 | static struct sysdev_attribute *cmm_attrs[] = { | ||
324 | &attr_loaned_kb, | ||
325 | &attr_loaned_target_kb, | ||
326 | &attr_oom_freed_kb, | ||
327 | }; | ||
328 | |||
329 | static struct sysdev_class cmm_sysdev_class = { | ||
330 | .name = "cmm", | ||
331 | }; | ||
332 | |||
333 | /** | ||
334 | * cmm_sysfs_register - Register with sysfs | ||
335 | * | ||
336 | * Return value: | ||
337 | * 0 on success / other on failure | ||
338 | **/ | ||
339 | static int cmm_sysfs_register(struct sys_device *sysdev) | ||
340 | { | ||
341 | int i, rc; | ||
342 | |||
343 | if ((rc = sysdev_class_register(&cmm_sysdev_class))) | ||
344 | return rc; | ||
345 | |||
346 | sysdev->id = 0; | ||
347 | sysdev->cls = &cmm_sysdev_class; | ||
348 | |||
349 | if ((rc = sysdev_register(sysdev))) | ||
350 | goto class_unregister; | ||
351 | |||
352 | for (i = 0; i < ARRAY_SIZE(cmm_attrs); i++) { | ||
353 | if ((rc = sysdev_create_file(sysdev, cmm_attrs[i]))) | ||
354 | goto fail; | ||
355 | } | ||
356 | |||
357 | return 0; | ||
358 | |||
359 | fail: | ||
360 | while (--i >= 0) | ||
361 | sysdev_remove_file(sysdev, cmm_attrs[i]); | ||
362 | sysdev_unregister(sysdev); | ||
363 | class_unregister: | ||
364 | sysdev_class_unregister(&cmm_sysdev_class); | ||
365 | return rc; | ||
366 | } | ||
367 | |||
368 | /** | ||
369 | * cmm_unregister_sysfs - Unregister from sysfs | ||
370 | * | ||
371 | **/ | ||
372 | static void cmm_unregister_sysfs(struct sys_device *sysdev) | ||
373 | { | ||
374 | int i; | ||
375 | |||
376 | for (i = 0; i < ARRAY_SIZE(cmm_attrs); i++) | ||
377 | sysdev_remove_file(sysdev, cmm_attrs[i]); | ||
378 | sysdev_unregister(sysdev); | ||
379 | sysdev_class_unregister(&cmm_sysdev_class); | ||
380 | } | ||
381 | |||
382 | /** | ||
383 | * cmm_init - Module initialization | ||
384 | * | ||
385 | * Return value: | ||
386 | * 0 on success / other on failure | ||
387 | **/ | ||
388 | static int cmm_init(void) | ||
389 | { | ||
390 | int rc = -ENOMEM; | ||
391 | |||
392 | if (!firmware_has_feature(FW_FEATURE_CMO)) | ||
393 | return -EOPNOTSUPP; | ||
394 | |||
395 | if ((rc = register_oom_notifier(&cmm_oom_nb)) < 0) | ||
396 | return rc; | ||
397 | |||
398 | if ((rc = cmm_sysfs_register(&cmm_sysdev))) | ||
399 | goto out_oom_notifier; | ||
400 | |||
401 | if (cmm_disabled) | ||
402 | return rc; | ||
403 | |||
404 | cmm_thread_ptr = kthread_run(cmm_thread, NULL, "cmmthread"); | ||
405 | if (IS_ERR(cmm_thread_ptr)) { | ||
406 | rc = PTR_ERR(cmm_thread_ptr); | ||
407 | goto out_unregister_sysfs; | ||
408 | } | ||
409 | |||
410 | return rc; | ||
411 | |||
412 | out_unregister_sysfs: | ||
413 | cmm_unregister_sysfs(&cmm_sysdev); | ||
414 | out_oom_notifier: | ||
415 | unregister_oom_notifier(&cmm_oom_nb); | ||
416 | return rc; | ||
417 | } | ||
418 | |||
419 | /** | ||
420 | * cmm_exit - Module exit | ||
421 | * | ||
422 | * Return value: | ||
423 | * nothing | ||
424 | **/ | ||
425 | static void cmm_exit(void) | ||
426 | { | ||
427 | if (cmm_thread_ptr) | ||
428 | kthread_stop(cmm_thread_ptr); | ||
429 | unregister_oom_notifier(&cmm_oom_nb); | ||
430 | cmm_free_pages(loaned_pages); | ||
431 | cmm_unregister_sysfs(&cmm_sysdev); | ||
432 | } | ||
433 | |||
434 | /** | ||
435 | * cmm_set_disable - Disable/Enable CMM | ||
436 | * | ||
437 | * Return value: | ||
438 | * 0 on success / other on failure | ||
439 | **/ | ||
440 | static int cmm_set_disable(const char *val, struct kernel_param *kp) | ||
441 | { | ||
442 | int disable = simple_strtoul(val, NULL, 10); | ||
443 | |||
444 | if (disable != 0 && disable != 1) | ||
445 | return -EINVAL; | ||
446 | |||
447 | if (disable && !cmm_disabled) { | ||
448 | if (cmm_thread_ptr) | ||
449 | kthread_stop(cmm_thread_ptr); | ||
450 | cmm_thread_ptr = NULL; | ||
451 | cmm_free_pages(loaned_pages); | ||
452 | } else if (!disable && cmm_disabled) { | ||
453 | cmm_thread_ptr = kthread_run(cmm_thread, NULL, "cmmthread"); | ||
454 | if (IS_ERR(cmm_thread_ptr)) | ||
455 | return PTR_ERR(cmm_thread_ptr); | ||
456 | } | ||
457 | |||
458 | cmm_disabled = disable; | ||
459 | return 0; | ||
460 | } | ||
461 | |||
462 | module_param_call(disable, cmm_set_disable, param_get_uint, | ||
463 | &cmm_disabled, S_IRUGO | S_IWUSR); | ||
464 | MODULE_PARM_DESC(disable, "Disable CMM. Set to 1 to disable. " | ||
465 | "[Default=" __stringify(CMM_DISABLE) "]"); | ||
466 | |||
467 | module_init(cmm_init); | ||
468 | module_exit(cmm_exit); | ||
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index c027f0a70a04..54816d75b578 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -75,9 +75,9 @@ | |||
75 | */ | 75 | */ |
76 | 76 | ||
77 | /* If a device driver keeps reading an MMIO register in an interrupt | 77 | /* If a device driver keeps reading an MMIO register in an interrupt |
78 | * handler after a slot isolation event has occurred, we assume it | 78 | * handler after a slot isolation event, it might be broken. |
79 | * is broken and panic. This sets the threshold for how many read | 79 | * This sets the threshold for how many read attempts we allow |
80 | * attempts we allow before panicking. | 80 | * before printing an error message. |
81 | */ | 81 | */ |
82 | #define EEH_MAX_FAILS 2100000 | 82 | #define EEH_MAX_FAILS 2100000 |
83 | 83 | ||
@@ -470,6 +470,7 @@ int eeh_dn_check_failure(struct device_node *dn, struct pci_dev *dev) | |||
470 | unsigned long flags; | 470 | unsigned long flags; |
471 | struct pci_dn *pdn; | 471 | struct pci_dn *pdn; |
472 | int rc = 0; | 472 | int rc = 0; |
473 | const char *location; | ||
473 | 474 | ||
474 | total_mmio_ffs++; | 475 | total_mmio_ffs++; |
475 | 476 | ||
@@ -509,18 +510,15 @@ int eeh_dn_check_failure(struct device_node *dn, struct pci_dev *dev) | |||
509 | rc = 1; | 510 | rc = 1; |
510 | if (pdn->eeh_mode & EEH_MODE_ISOLATED) { | 511 | if (pdn->eeh_mode & EEH_MODE_ISOLATED) { |
511 | pdn->eeh_check_count ++; | 512 | pdn->eeh_check_count ++; |
512 | if (pdn->eeh_check_count >= EEH_MAX_FAILS) { | 513 | if (pdn->eeh_check_count % EEH_MAX_FAILS == 0) { |
513 | printk (KERN_ERR "EEH: Device driver ignored %d bad reads, panicing\n", | 514 | location = of_get_property(dn, "ibm,loc-code", NULL); |
514 | pdn->eeh_check_count); | 515 | printk (KERN_ERR "EEH: %d reads ignored for recovering device at " |
516 | "location=%s driver=%s pci addr=%s\n", | ||
517 | pdn->eeh_check_count, location, | ||
518 | dev->driver->name, pci_name(dev)); | ||
519 | printk (KERN_ERR "EEH: Might be infinite loop in %s driver\n", | ||
520 | dev->driver->name); | ||
515 | dump_stack(); | 521 | dump_stack(); |
516 | msleep(5000); | ||
517 | |||
518 | /* re-read the slot reset state */ | ||
519 | if (read_slot_reset_state(pdn, rets) != 0) | ||
520 | rets[0] = -1; /* reset state unknown */ | ||
521 | |||
522 | /* If we are here, then we hit an infinite loop. Stop. */ | ||
523 | panic("EEH: MMIO halt (%d) on device:%s\n", rets[0], pci_name(dev)); | ||
524 | } | 522 | } |
525 | goto dn_unlock; | 523 | goto dn_unlock; |
526 | } | 524 | } |
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c index 9a12908510fb..a8c446697f9e 100644 --- a/arch/powerpc/platforms/pseries/iommu.c +++ b/arch/powerpc/platforms/pseries/iommu.c | |||
@@ -48,9 +48,10 @@ | |||
48 | #include "plpar_wrappers.h" | 48 | #include "plpar_wrappers.h" |
49 | 49 | ||
50 | 50 | ||
51 | static void tce_build_pSeries(struct iommu_table *tbl, long index, | 51 | static int tce_build_pSeries(struct iommu_table *tbl, long index, |
52 | long npages, unsigned long uaddr, | 52 | long npages, unsigned long uaddr, |
53 | enum dma_data_direction direction) | 53 | enum dma_data_direction direction, |
54 | struct dma_attrs *attrs) | ||
54 | { | 55 | { |
55 | u64 proto_tce; | 56 | u64 proto_tce; |
56 | u64 *tcep; | 57 | u64 *tcep; |
@@ -71,6 +72,7 @@ static void tce_build_pSeries(struct iommu_table *tbl, long index, | |||
71 | uaddr += TCE_PAGE_SIZE; | 72 | uaddr += TCE_PAGE_SIZE; |
72 | tcep++; | 73 | tcep++; |
73 | } | 74 | } |
75 | return 0; | ||
74 | } | 76 | } |
75 | 77 | ||
76 | 78 | ||
@@ -93,13 +95,19 @@ static unsigned long tce_get_pseries(struct iommu_table *tbl, long index) | |||
93 | return *tcep; | 95 | return *tcep; |
94 | } | 96 | } |
95 | 97 | ||
96 | static void tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum, | 98 | static void tce_free_pSeriesLP(struct iommu_table*, long, long); |
99 | static void tce_freemulti_pSeriesLP(struct iommu_table*, long, long); | ||
100 | |||
101 | static int tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum, | ||
97 | long npages, unsigned long uaddr, | 102 | long npages, unsigned long uaddr, |
98 | enum dma_data_direction direction) | 103 | enum dma_data_direction direction, |
104 | struct dma_attrs *attrs) | ||
99 | { | 105 | { |
100 | u64 rc; | 106 | u64 rc = 0; |
101 | u64 proto_tce, tce; | 107 | u64 proto_tce, tce; |
102 | u64 rpn; | 108 | u64 rpn; |
109 | int ret = 0; | ||
110 | long tcenum_start = tcenum, npages_start = npages; | ||
103 | 111 | ||
104 | rpn = (virt_to_abs(uaddr)) >> TCE_SHIFT; | 112 | rpn = (virt_to_abs(uaddr)) >> TCE_SHIFT; |
105 | proto_tce = TCE_PCI_READ; | 113 | proto_tce = TCE_PCI_READ; |
@@ -110,6 +118,13 @@ static void tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum, | |||
110 | tce = proto_tce | (rpn & TCE_RPN_MASK) << TCE_RPN_SHIFT; | 118 | tce = proto_tce | (rpn & TCE_RPN_MASK) << TCE_RPN_SHIFT; |
111 | rc = plpar_tce_put((u64)tbl->it_index, (u64)tcenum << 12, tce); | 119 | rc = plpar_tce_put((u64)tbl->it_index, (u64)tcenum << 12, tce); |
112 | 120 | ||
121 | if (unlikely(rc == H_NOT_ENOUGH_RESOURCES)) { | ||
122 | ret = (int)rc; | ||
123 | tce_free_pSeriesLP(tbl, tcenum_start, | ||
124 | (npages_start - (npages + 1))); | ||
125 | break; | ||
126 | } | ||
127 | |||
113 | if (rc && printk_ratelimit()) { | 128 | if (rc && printk_ratelimit()) { |
114 | printk("tce_build_pSeriesLP: plpar_tce_put failed. rc=%ld\n", rc); | 129 | printk("tce_build_pSeriesLP: plpar_tce_put failed. rc=%ld\n", rc); |
115 | printk("\tindex = 0x%lx\n", (u64)tbl->it_index); | 130 | printk("\tindex = 0x%lx\n", (u64)tbl->it_index); |
@@ -121,23 +136,27 @@ static void tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum, | |||
121 | tcenum++; | 136 | tcenum++; |
122 | rpn++; | 137 | rpn++; |
123 | } | 138 | } |
139 | return ret; | ||
124 | } | 140 | } |
125 | 141 | ||
126 | static DEFINE_PER_CPU(u64 *, tce_page) = NULL; | 142 | static DEFINE_PER_CPU(u64 *, tce_page) = NULL; |
127 | 143 | ||
128 | static void tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, | 144 | static int tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, |
129 | long npages, unsigned long uaddr, | 145 | long npages, unsigned long uaddr, |
130 | enum dma_data_direction direction) | 146 | enum dma_data_direction direction, |
147 | struct dma_attrs *attrs) | ||
131 | { | 148 | { |
132 | u64 rc; | 149 | u64 rc = 0; |
133 | u64 proto_tce; | 150 | u64 proto_tce; |
134 | u64 *tcep; | 151 | u64 *tcep; |
135 | u64 rpn; | 152 | u64 rpn; |
136 | long l, limit; | 153 | long l, limit; |
154 | long tcenum_start = tcenum, npages_start = npages; | ||
155 | int ret = 0; | ||
137 | 156 | ||
138 | if (npages == 1) { | 157 | if (npages == 1) { |
139 | tce_build_pSeriesLP(tbl, tcenum, npages, uaddr, direction); | 158 | return tce_build_pSeriesLP(tbl, tcenum, npages, uaddr, |
140 | return; | 159 | direction, attrs); |
141 | } | 160 | } |
142 | 161 | ||
143 | tcep = __get_cpu_var(tce_page); | 162 | tcep = __get_cpu_var(tce_page); |
@@ -149,9 +168,8 @@ static void tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, | |||
149 | tcep = (u64 *)__get_free_page(GFP_ATOMIC); | 168 | tcep = (u64 *)__get_free_page(GFP_ATOMIC); |
150 | /* If allocation fails, fall back to the loop implementation */ | 169 | /* If allocation fails, fall back to the loop implementation */ |
151 | if (!tcep) { | 170 | if (!tcep) { |
152 | tce_build_pSeriesLP(tbl, tcenum, npages, uaddr, | 171 | return tce_build_pSeriesLP(tbl, tcenum, npages, uaddr, |
153 | direction); | 172 | direction, attrs); |
154 | return; | ||
155 | } | 173 | } |
156 | __get_cpu_var(tce_page) = tcep; | 174 | __get_cpu_var(tce_page) = tcep; |
157 | } | 175 | } |
@@ -183,6 +201,13 @@ static void tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, | |||
183 | tcenum += limit; | 201 | tcenum += limit; |
184 | } while (npages > 0 && !rc); | 202 | } while (npages > 0 && !rc); |
185 | 203 | ||
204 | if (unlikely(rc == H_NOT_ENOUGH_RESOURCES)) { | ||
205 | ret = (int)rc; | ||
206 | tce_freemulti_pSeriesLP(tbl, tcenum_start, | ||
207 | (npages_start - (npages + limit))); | ||
208 | return ret; | ||
209 | } | ||
210 | |||
186 | if (rc && printk_ratelimit()) { | 211 | if (rc && printk_ratelimit()) { |
187 | printk("tce_buildmulti_pSeriesLP: plpar_tce_put failed. rc=%ld\n", rc); | 212 | printk("tce_buildmulti_pSeriesLP: plpar_tce_put failed. rc=%ld\n", rc); |
188 | printk("\tindex = 0x%lx\n", (u64)tbl->it_index); | 213 | printk("\tindex = 0x%lx\n", (u64)tbl->it_index); |
@@ -190,6 +215,7 @@ static void tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, | |||
190 | printk("\ttce[0] val = 0x%lx\n", tcep[0]); | 215 | printk("\ttce[0] val = 0x%lx\n", tcep[0]); |
191 | show_stack(current, (unsigned long *)__get_SP()); | 216 | show_stack(current, (unsigned long *)__get_SP()); |
192 | } | 217 | } |
218 | return ret; | ||
193 | } | 219 | } |
194 | 220 | ||
195 | static void tce_free_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) | 221 | static void tce_free_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) |
diff --git a/arch/powerpc/platforms/pseries/plpar_wrappers.h b/arch/powerpc/platforms/pseries/plpar_wrappers.h index d8680b589dc9..a437267c6bf8 100644 --- a/arch/powerpc/platforms/pseries/plpar_wrappers.h +++ b/arch/powerpc/platforms/pseries/plpar_wrappers.h | |||
@@ -42,6 +42,16 @@ static inline long register_slb_shadow(unsigned long cpu, unsigned long vpa) | |||
42 | return vpa_call(0x3, cpu, vpa); | 42 | return vpa_call(0x3, cpu, vpa); |
43 | } | 43 | } |
44 | 44 | ||
45 | static inline long plpar_page_set_loaned(unsigned long vpa) | ||
46 | { | ||
47 | return plpar_hcall_norets(H_PAGE_INIT, H_PAGE_SET_LOANED, vpa, 0); | ||
48 | } | ||
49 | |||
50 | static inline long plpar_page_set_active(unsigned long vpa) | ||
51 | { | ||
52 | return plpar_hcall_norets(H_PAGE_INIT, H_PAGE_SET_ACTIVE, vpa, 0); | ||
53 | } | ||
54 | |||
45 | extern void vpa_init(int cpu); | 55 | extern void vpa_init(int cpu); |
46 | 56 | ||
47 | static inline long plpar_pte_enter(unsigned long flags, | 57 | static inline long plpar_pte_enter(unsigned long flags, |
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 90beb444e1dd..063a0d2fba30 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -314,6 +314,76 @@ static int pseries_set_xdabr(unsigned long dabr) | |||
314 | H_DABRX_KERNEL | H_DABRX_USER); | 314 | H_DABRX_KERNEL | H_DABRX_USER); |
315 | } | 315 | } |
316 | 316 | ||
317 | #define CMO_CHARACTERISTICS_TOKEN 44 | ||
318 | #define CMO_MAXLENGTH 1026 | ||
319 | |||
320 | /** | ||
321 | * fw_cmo_feature_init - FW_FEATURE_CMO is not stored in ibm,hypertas-functions, | ||
322 | * handle that here. (Stolen from parse_system_parameter_string) | ||
323 | */ | ||
324 | void pSeries_cmo_feature_init(void) | ||
325 | { | ||
326 | char *ptr, *key, *value, *end; | ||
327 | int call_status; | ||
328 | int PrPSP = -1; | ||
329 | int SecPSP = -1; | ||
330 | |||
331 | pr_debug(" -> fw_cmo_feature_init()\n"); | ||
332 | spin_lock(&rtas_data_buf_lock); | ||
333 | memset(rtas_data_buf, 0, RTAS_DATA_BUF_SIZE); | ||
334 | call_status = rtas_call(rtas_token("ibm,get-system-parameter"), 3, 1, | ||
335 | NULL, | ||
336 | CMO_CHARACTERISTICS_TOKEN, | ||
337 | __pa(rtas_data_buf), | ||
338 | RTAS_DATA_BUF_SIZE); | ||
339 | |||
340 | if (call_status != 0) { | ||
341 | spin_unlock(&rtas_data_buf_lock); | ||
342 | pr_debug("CMO not available\n"); | ||
343 | pr_debug(" <- fw_cmo_feature_init()\n"); | ||
344 | return; | ||
345 | } | ||
346 | |||
347 | end = rtas_data_buf + CMO_MAXLENGTH - 2; | ||
348 | ptr = rtas_data_buf + 2; /* step over strlen value */ | ||
349 | key = value = ptr; | ||
350 | |||
351 | while (*ptr && (ptr <= end)) { | ||
352 | /* Separate the key and value by replacing '=' with '\0' and | ||
353 | * point the value at the string after the '=' | ||
354 | */ | ||
355 | if (ptr[0] == '=') { | ||
356 | ptr[0] = '\0'; | ||
357 | value = ptr + 1; | ||
358 | } else if (ptr[0] == '\0' || ptr[0] == ',') { | ||
359 | /* Terminate the string containing the key/value pair */ | ||
360 | ptr[0] = '\0'; | ||
361 | |||
362 | if (key == value) { | ||
363 | pr_debug("Malformed key/value pair\n"); | ||
364 | /* Never found a '=', end processing */ | ||
365 | break; | ||
366 | } | ||
367 | |||
368 | if (0 == strcmp(key, "PrPSP")) | ||
369 | PrPSP = simple_strtol(value, NULL, 10); | ||
370 | else if (0 == strcmp(key, "SecPSP")) | ||
371 | SecPSP = simple_strtol(value, NULL, 10); | ||
372 | value = key = ptr + 1; | ||
373 | } | ||
374 | ptr++; | ||
375 | } | ||
376 | |||
377 | if (PrPSP != -1 || SecPSP != -1) { | ||
378 | pr_info("CMO enabled\n"); | ||
379 | pr_debug("CMO enabled, PrPSP=%d, SecPSP=%d\n", PrPSP, SecPSP); | ||
380 | powerpc_firmware_features |= FW_FEATURE_CMO; | ||
381 | } else | ||
382 | pr_debug("CMO not enabled, PrPSP=%d, SecPSP=%d\n", PrPSP, SecPSP); | ||
383 | spin_unlock(&rtas_data_buf_lock); | ||
384 | pr_debug(" <- fw_cmo_feature_init()\n"); | ||
385 | } | ||
386 | |||
317 | /* | 387 | /* |
318 | * Early initialization. Relocation is on but do not reference unbolted pages | 388 | * Early initialization. Relocation is on but do not reference unbolted pages |
319 | */ | 389 | */ |
@@ -329,6 +399,7 @@ static void __init pSeries_init_early(void) | |||
329 | else if (firmware_has_feature(FW_FEATURE_XDABR)) | 399 | else if (firmware_has_feature(FW_FEATURE_XDABR)) |
330 | ppc_md.set_dabr = pseries_set_xdabr; | 400 | ppc_md.set_dabr = pseries_set_xdabr; |
331 | 401 | ||
402 | pSeries_cmo_feature_init(); | ||
332 | iommu_init_early_pSeries(); | 403 | iommu_init_early_pSeries(); |
333 | 404 | ||
334 | pr_debug(" <- pSeries_init_early()\n"); | 405 | pr_debug(" <- pSeries_init_early()\n"); |
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index 7f59188cd9a1..9e105cbc5e5f 100644 --- a/arch/powerpc/sysdev/axonram.c +++ b/arch/powerpc/sysdev/axonram.c | |||
@@ -57,6 +57,8 @@ | |||
57 | #define AXON_RAM_SECTOR_SIZE 1 << AXON_RAM_SECTOR_SHIFT | 57 | #define AXON_RAM_SECTOR_SIZE 1 << AXON_RAM_SECTOR_SHIFT |
58 | #define AXON_RAM_IRQ_FLAGS IRQF_SHARED | IRQF_TRIGGER_RISING | 58 | #define AXON_RAM_IRQ_FLAGS IRQF_SHARED | IRQF_TRIGGER_RISING |
59 | 59 | ||
60 | static int azfs_major, azfs_minor; | ||
61 | |||
60 | struct axon_ram_bank { | 62 | struct axon_ram_bank { |
61 | struct of_device *device; | 63 | struct of_device *device; |
62 | struct gendisk *disk; | 64 | struct gendisk *disk; |
@@ -148,7 +150,10 @@ axon_ram_direct_access(struct block_device *device, sector_t sector, | |||
148 | struct axon_ram_bank *bank = device->bd_disk->private_data; | 150 | struct axon_ram_bank *bank = device->bd_disk->private_data; |
149 | loff_t offset; | 151 | loff_t offset; |
150 | 152 | ||
151 | offset = sector << AXON_RAM_SECTOR_SHIFT; | 153 | offset = sector; |
154 | if (device->bd_part != NULL) | ||
155 | offset += device->bd_part->start_sect; | ||
156 | offset <<= AXON_RAM_SECTOR_SHIFT; | ||
152 | if (offset >= bank->size) { | 157 | if (offset >= bank->size) { |
153 | dev_err(&bank->device->dev, "Access outside of address space\n"); | 158 | dev_err(&bank->device->dev, "Access outside of address space\n"); |
154 | return -ERANGE; | 159 | return -ERANGE; |
@@ -227,19 +232,14 @@ axon_ram_probe(struct of_device *device, const struct of_device_id *device_id) | |||
227 | goto failed; | 232 | goto failed; |
228 | } | 233 | } |
229 | 234 | ||
230 | bank->disk->first_minor = 0; | 235 | bank->disk->major = azfs_major; |
236 | bank->disk->first_minor = azfs_minor; | ||
231 | bank->disk->fops = &axon_ram_devops; | 237 | bank->disk->fops = &axon_ram_devops; |
232 | bank->disk->private_data = bank; | 238 | bank->disk->private_data = bank; |
233 | bank->disk->driverfs_dev = &device->dev; | 239 | bank->disk->driverfs_dev = &device->dev; |
234 | 240 | ||
235 | sprintf(bank->disk->disk_name, "%s%d", | 241 | sprintf(bank->disk->disk_name, "%s%d", |
236 | AXON_RAM_DEVICE_NAME, axon_ram_bank_id); | 242 | AXON_RAM_DEVICE_NAME, axon_ram_bank_id); |
237 | bank->disk->major = register_blkdev(0, bank->disk->disk_name); | ||
238 | if (bank->disk->major < 0) { | ||
239 | dev_err(&device->dev, "Cannot register block device\n"); | ||
240 | rc = -EFAULT; | ||
241 | goto failed; | ||
242 | } | ||
243 | 243 | ||
244 | bank->disk->queue = blk_alloc_queue(GFP_KERNEL); | 244 | bank->disk->queue = blk_alloc_queue(GFP_KERNEL); |
245 | if (bank->disk->queue == NULL) { | 245 | if (bank->disk->queue == NULL) { |
@@ -276,6 +276,8 @@ axon_ram_probe(struct of_device *device, const struct of_device_id *device_id) | |||
276 | goto failed; | 276 | goto failed; |
277 | } | 277 | } |
278 | 278 | ||
279 | azfs_minor += bank->disk->minors; | ||
280 | |||
279 | return 0; | 281 | return 0; |
280 | 282 | ||
281 | failed: | 283 | failed: |
@@ -310,7 +312,6 @@ axon_ram_remove(struct of_device *device) | |||
310 | 312 | ||
311 | device_remove_file(&device->dev, &dev_attr_ecc); | 313 | device_remove_file(&device->dev, &dev_attr_ecc); |
312 | free_irq(bank->irq_id, device); | 314 | free_irq(bank->irq_id, device); |
313 | unregister_blkdev(bank->disk->major, bank->disk->disk_name); | ||
314 | del_gendisk(bank->disk); | 315 | del_gendisk(bank->disk); |
315 | iounmap((void __iomem *) bank->io_addr); | 316 | iounmap((void __iomem *) bank->io_addr); |
316 | kfree(bank); | 317 | kfree(bank); |
@@ -341,6 +342,14 @@ static struct of_platform_driver axon_ram_driver = { | |||
341 | static int __init | 342 | static int __init |
342 | axon_ram_init(void) | 343 | axon_ram_init(void) |
343 | { | 344 | { |
345 | azfs_major = register_blkdev(azfs_major, AXON_RAM_DEVICE_NAME); | ||
346 | if (azfs_major < 0) { | ||
347 | printk(KERN_ERR "%s cannot become block device major number\n", | ||
348 | AXON_RAM_MODULE_NAME); | ||
349 | return -EFAULT; | ||
350 | } | ||
351 | azfs_minor = 0; | ||
352 | |||
344 | return of_register_platform_driver(&axon_ram_driver); | 353 | return of_register_platform_driver(&axon_ram_driver); |
345 | } | 354 | } |
346 | 355 | ||
@@ -351,6 +360,7 @@ static void __exit | |||
351 | axon_ram_exit(void) | 360 | axon_ram_exit(void) |
352 | { | 361 | { |
353 | of_unregister_platform_driver(&axon_ram_driver); | 362 | of_unregister_platform_driver(&axon_ram_driver); |
363 | unregister_blkdev(azfs_major, AXON_RAM_DEVICE_NAME); | ||
354 | } | 364 | } |
355 | 365 | ||
356 | module_init(axon_ram_init); | 366 | module_init(axon_ram_init); |
diff --git a/arch/powerpc/sysdev/dart_iommu.c b/arch/powerpc/sysdev/dart_iommu.c index 005c2ecf976f..89639ecbf381 100644 --- a/arch/powerpc/sysdev/dart_iommu.c +++ b/arch/powerpc/sysdev/dart_iommu.c | |||
@@ -147,9 +147,10 @@ static void dart_flush(struct iommu_table *tbl) | |||
147 | } | 147 | } |
148 | } | 148 | } |
149 | 149 | ||
150 | static void dart_build(struct iommu_table *tbl, long index, | 150 | static int dart_build(struct iommu_table *tbl, long index, |
151 | long npages, unsigned long uaddr, | 151 | long npages, unsigned long uaddr, |
152 | enum dma_data_direction direction) | 152 | enum dma_data_direction direction, |
153 | struct dma_attrs *attrs) | ||
153 | { | 154 | { |
154 | unsigned int *dp; | 155 | unsigned int *dp; |
155 | unsigned int rpn; | 156 | unsigned int rpn; |
@@ -183,6 +184,7 @@ static void dart_build(struct iommu_table *tbl, long index, | |||
183 | } else { | 184 | } else { |
184 | dart_dirty = 1; | 185 | dart_dirty = 1; |
185 | } | 186 | } |
187 | return 0; | ||
186 | } | 188 | } |
187 | 189 | ||
188 | 190 | ||
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 87b0aa13ab48..61e6d77efa4f 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <sysdev/fsl_soc.h> | 27 | #include <sysdev/fsl_soc.h> |
28 | #include <sysdev/fsl_pci.h> | 28 | #include <sysdev/fsl_pci.h> |
29 | 29 | ||
30 | #if defined(CONFIG_PPC_85xx) || defined(CONFIG_PPC_86xx) | ||
30 | /* atmu setup for fsl pci/pcie controller */ | 31 | /* atmu setup for fsl pci/pcie controller */ |
31 | void __init setup_pci_atmu(struct pci_controller *hose, struct resource *rsrc) | 32 | void __init setup_pci_atmu(struct pci_controller *hose, struct resource *rsrc) |
32 | { | 33 | { |
@@ -248,3 +249,63 @@ DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8536, quirk_fsl_pcie_header); | |||
248 | DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8641, quirk_fsl_pcie_header); | 249 | DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8641, quirk_fsl_pcie_header); |
249 | DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8641D, quirk_fsl_pcie_header); | 250 | DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8641D, quirk_fsl_pcie_header); |
250 | DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8610, quirk_fsl_pcie_header); | 251 | DECLARE_PCI_FIXUP_HEADER(0x1957, PCI_DEVICE_ID_MPC8610, quirk_fsl_pcie_header); |
252 | #endif /* CONFIG_PPC_85xx || CONFIG_PPC_86xx */ | ||
253 | |||
254 | #if defined(CONFIG_PPC_83xx) | ||
255 | int __init mpc83xx_add_bridge(struct device_node *dev) | ||
256 | { | ||
257 | int len; | ||
258 | struct pci_controller *hose; | ||
259 | struct resource rsrc; | ||
260 | const int *bus_range; | ||
261 | int primary = 1, has_address = 0; | ||
262 | phys_addr_t immr = get_immrbase(); | ||
263 | |||
264 | pr_debug("Adding PCI host bridge %s\n", dev->full_name); | ||
265 | |||
266 | /* Fetch host bridge registers address */ | ||
267 | has_address = (of_address_to_resource(dev, 0, &rsrc) == 0); | ||
268 | |||
269 | /* Get bus range if any */ | ||
270 | bus_range = of_get_property(dev, "bus-range", &len); | ||
271 | if (bus_range == NULL || len < 2 * sizeof(int)) { | ||
272 | printk(KERN_WARNING "Can't get bus-range for %s, assume" | ||
273 | " bus 0\n", dev->full_name); | ||
274 | } | ||
275 | |||
276 | ppc_pci_flags |= PPC_PCI_REASSIGN_ALL_BUS; | ||
277 | hose = pcibios_alloc_controller(dev); | ||
278 | if (!hose) | ||
279 | return -ENOMEM; | ||
280 | |||
281 | hose->first_busno = bus_range ? bus_range[0] : 0; | ||
282 | hose->last_busno = bus_range ? bus_range[1] : 0xff; | ||
283 | |||
284 | /* MPC83xx supports up to two host controllers one at 0x8500 from immrbar | ||
285 | * the other at 0x8600, we consider the 0x8500 the primary controller | ||
286 | */ | ||
287 | /* PCI 1 */ | ||
288 | if ((rsrc.start & 0xfffff) == 0x8500) { | ||
289 | setup_indirect_pci(hose, immr + 0x8300, immr + 0x8304, 0); | ||
290 | } | ||
291 | /* PCI 2 */ | ||
292 | if ((rsrc.start & 0xfffff) == 0x8600) { | ||
293 | setup_indirect_pci(hose, immr + 0x8380, immr + 0x8384, 0); | ||
294 | primary = 0; | ||
295 | } | ||
296 | |||
297 | printk(KERN_INFO "Found MPC83xx PCI host bridge at 0x%016llx. " | ||
298 | "Firmware bus number: %d->%d\n", | ||
299 | (unsigned long long)rsrc.start, hose->first_busno, | ||
300 | hose->last_busno); | ||
301 | |||
302 | pr_debug(" ->Hose at 0x%p, cfg_addr=0x%p,cfg_data=0x%p\n", | ||
303 | hose, hose->cfg_addr, hose->cfg_data); | ||
304 | |||
305 | /* Interpret the "ranges" property */ | ||
306 | /* This also maps the I/O region and sets isa_io/mem_base */ | ||
307 | pci_process_bridge_OF_ranges(hose, dev, primary); | ||
308 | |||
309 | return 0; | ||
310 | } | ||
311 | #endif /* CONFIG_PPC_83xx */ | ||
diff --git a/arch/powerpc/sysdev/fsl_pci.h b/arch/powerpc/sysdev/fsl_pci.h index 37b04ad26571..13f30c2a61e7 100644 --- a/arch/powerpc/sysdev/fsl_pci.h +++ b/arch/powerpc/sysdev/fsl_pci.h | |||
@@ -83,6 +83,7 @@ struct ccsr_pci { | |||
83 | 83 | ||
84 | extern int fsl_add_bridge(struct device_node *dev, int is_primary); | 84 | extern int fsl_add_bridge(struct device_node *dev, int is_primary); |
85 | extern void fsl_pcibios_fixup_bus(struct pci_bus *bus); | 85 | extern void fsl_pcibios_fixup_bus(struct pci_bus *bus); |
86 | extern int mpc83xx_add_bridge(struct device_node *dev); | ||
86 | 87 | ||
87 | #endif /* __POWERPC_FSL_PCI_H */ | 88 | #endif /* __POWERPC_FSL_PCI_H */ |
88 | #endif /* __KERNEL__ */ | 89 | #endif /* __KERNEL__ */ |
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index ebcec7362f95..214388e11807 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c | |||
@@ -207,66 +207,58 @@ static int __init of_add_fixed_phys(void) | |||
207 | arch_initcall(of_add_fixed_phys); | 207 | arch_initcall(of_add_fixed_phys); |
208 | #endif /* CONFIG_FIXED_PHY */ | 208 | #endif /* CONFIG_FIXED_PHY */ |
209 | 209 | ||
210 | static int __init gfar_mdio_of_init(void) | 210 | static int gfar_mdio_of_init_one(struct device_node *np) |
211 | { | 211 | { |
212 | struct device_node *np = NULL; | 212 | int k; |
213 | struct device_node *child = NULL; | ||
214 | struct gianfar_mdio_data mdio_data; | ||
213 | struct platform_device *mdio_dev; | 215 | struct platform_device *mdio_dev; |
214 | struct resource res; | 216 | struct resource res; |
215 | int ret; | 217 | int ret; |
216 | 218 | ||
217 | np = of_find_compatible_node(np, NULL, "fsl,gianfar-mdio"); | 219 | memset(&res, 0, sizeof(res)); |
220 | memset(&mdio_data, 0, sizeof(mdio_data)); | ||
218 | 221 | ||
219 | /* try the deprecated version */ | 222 | ret = of_address_to_resource(np, 0, &res); |
220 | if (!np) | 223 | if (ret) |
221 | np = of_find_compatible_node(np, "mdio", "gianfar"); | 224 | return ret; |
222 | 225 | ||
223 | if (np) { | 226 | mdio_dev = platform_device_register_simple("fsl-gianfar_mdio", |
224 | int k; | 227 | res.start&0xfffff, &res, 1); |
225 | struct device_node *child = NULL; | 228 | if (IS_ERR(mdio_dev)) |
226 | struct gianfar_mdio_data mdio_data; | 229 | return PTR_ERR(mdio_dev); |
227 | 230 | ||
228 | memset(&res, 0, sizeof(res)); | 231 | for (k = 0; k < 32; k++) |
229 | memset(&mdio_data, 0, sizeof(mdio_data)); | 232 | mdio_data.irq[k] = PHY_POLL; |
230 | 233 | ||
231 | ret = of_address_to_resource(np, 0, &res); | 234 | while ((child = of_get_next_child(np, child)) != NULL) { |
232 | if (ret) | 235 | int irq = irq_of_parse_and_map(child, 0); |
233 | goto err; | 236 | if (irq != NO_IRQ) { |
234 | 237 | const u32 *id = of_get_property(child, "reg", NULL); | |
235 | mdio_dev = | 238 | mdio_data.irq[*id] = irq; |
236 | platform_device_register_simple("fsl-gianfar_mdio", | ||
237 | res.start, &res, 1); | ||
238 | if (IS_ERR(mdio_dev)) { | ||
239 | ret = PTR_ERR(mdio_dev); | ||
240 | goto err; | ||
241 | } | 239 | } |
240 | } | ||
242 | 241 | ||
243 | for (k = 0; k < 32; k++) | 242 | ret = platform_device_add_data(mdio_dev, &mdio_data, |
244 | mdio_data.irq[k] = PHY_POLL; | 243 | sizeof(struct gianfar_mdio_data)); |
244 | if (ret) | ||
245 | platform_device_unregister(mdio_dev); | ||
245 | 246 | ||
246 | while ((child = of_get_next_child(np, child)) != NULL) { | 247 | return ret; |
247 | int irq = irq_of_parse_and_map(child, 0); | 248 | } |
248 | if (irq != NO_IRQ) { | ||
249 | const u32 *id = of_get_property(child, | ||
250 | "reg", NULL); | ||
251 | mdio_data.irq[*id] = irq; | ||
252 | } | ||
253 | } | ||
254 | 249 | ||
255 | ret = | 250 | static int __init gfar_mdio_of_init(void) |
256 | platform_device_add_data(mdio_dev, &mdio_data, | 251 | { |
257 | sizeof(struct gianfar_mdio_data)); | 252 | struct device_node *np = NULL; |
258 | if (ret) | ||
259 | goto unreg; | ||
260 | } | ||
261 | 253 | ||
262 | of_node_put(np); | 254 | for_each_compatible_node(np, NULL, "fsl,gianfar-mdio") |
263 | return 0; | 255 | gfar_mdio_of_init_one(np); |
264 | 256 | ||
265 | unreg: | 257 | /* try the deprecated version */ |
266 | platform_device_unregister(mdio_dev); | 258 | for_each_compatible_node(np, "mdio", "gianfar"); |
267 | err: | 259 | gfar_mdio_of_init_one(np); |
268 | of_node_put(np); | 260 | |
269 | return ret; | 261 | return 0; |
270 | } | 262 | } |
271 | 263 | ||
272 | arch_initcall(gfar_mdio_of_init); | 264 | arch_initcall(gfar_mdio_of_init); |
@@ -296,6 +288,9 @@ static int __init gfar_of_init(void) | |||
296 | const phandle *ph; | 288 | const phandle *ph; |
297 | int n_res = 2; | 289 | int n_res = 2; |
298 | 290 | ||
291 | if (!of_device_is_available(np)) | ||
292 | continue; | ||
293 | |||
299 | memset(r, 0, sizeof(r)); | 294 | memset(r, 0, sizeof(r)); |
300 | memset(&gfar_data, 0, sizeof(gfar_data)); | 295 | memset(&gfar_data, 0, sizeof(gfar_data)); |
301 | 296 | ||
@@ -357,6 +352,9 @@ static int __init gfar_of_init(void) | |||
357 | else | 352 | else |
358 | gfar_data.interface = PHY_INTERFACE_MODE_MII; | 353 | gfar_data.interface = PHY_INTERFACE_MODE_MII; |
359 | 354 | ||
355 | if (of_get_property(np, "fsl,magic-packet", NULL)) | ||
356 | gfar_data.device_flags |= FSL_GIANFAR_DEV_HAS_MAGIC_PACKET; | ||
357 | |||
360 | ph = of_get_property(np, "phy-handle", NULL); | 358 | ph = of_get_property(np, "phy-handle", NULL); |
361 | if (ph == NULL) { | 359 | if (ph == NULL) { |
362 | u32 *fixed_link; | 360 | u32 *fixed_link; |
@@ -390,7 +388,7 @@ static int __init gfar_of_init(void) | |||
390 | 388 | ||
391 | gfar_data.phy_id = *id; | 389 | gfar_data.phy_id = *id; |
392 | snprintf(gfar_data.bus_id, MII_BUS_ID_SIZE, "%llx", | 390 | snprintf(gfar_data.bus_id, MII_BUS_ID_SIZE, "%llx", |
393 | (unsigned long long)res.start); | 391 | (unsigned long long)res.start&0xfffff); |
394 | 392 | ||
395 | of_node_put(phy); | 393 | of_node_put(phy); |
396 | of_node_put(mdio); | 394 | of_node_put(mdio); |
diff --git a/arch/powerpc/sysdev/fsl_soc.h b/arch/powerpc/sysdev/fsl_soc.h index 52c831fa1886..024299887352 100644 --- a/arch/powerpc/sysdev/fsl_soc.h +++ b/arch/powerpc/sysdev/fsl_soc.h | |||
@@ -10,6 +10,7 @@ extern u32 get_baudrate(void); | |||
10 | extern u32 fsl_get_sys_freq(void); | 10 | extern u32 fsl_get_sys_freq(void); |
11 | 11 | ||
12 | struct spi_board_info; | 12 | struct spi_board_info; |
13 | struct device_node; | ||
13 | 14 | ||
14 | extern int fsl_spi_init(struct spi_board_info *board_infos, | 15 | extern int fsl_spi_init(struct spi_board_info *board_infos, |
15 | unsigned int num_board_infos, | 16 | unsigned int num_board_infos, |
diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c index caba1c0be5a7..88a983ece5c9 100644 --- a/arch/powerpc/sysdev/ipic.c +++ b/arch/powerpc/sysdev/ipic.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/device.h> | 22 | #include <linux/device.h> |
23 | #include <linux/bootmem.h> | 23 | #include <linux/bootmem.h> |
24 | #include <linux/spinlock.h> | 24 | #include <linux/spinlock.h> |
25 | #include <linux/fsl_devices.h> | ||
25 | #include <asm/irq.h> | 26 | #include <asm/irq.h> |
26 | #include <asm/io.h> | 27 | #include <asm/io.h> |
27 | #include <asm/prom.h> | 28 | #include <asm/prom.h> |
@@ -889,8 +890,78 @@ unsigned int ipic_get_irq(void) | |||
889 | return irq_linear_revmap(primary_ipic->irqhost, irq); | 890 | return irq_linear_revmap(primary_ipic->irqhost, irq); |
890 | } | 891 | } |
891 | 892 | ||
893 | #ifdef CONFIG_PM | ||
894 | static struct { | ||
895 | u32 sicfr; | ||
896 | u32 siprr[2]; | ||
897 | u32 simsr[2]; | ||
898 | u32 sicnr; | ||
899 | u32 smprr[2]; | ||
900 | u32 semsr; | ||
901 | u32 secnr; | ||
902 | u32 sermr; | ||
903 | u32 sercr; | ||
904 | } ipic_saved_state; | ||
905 | |||
906 | static int ipic_suspend(struct sys_device *sdev, pm_message_t state) | ||
907 | { | ||
908 | struct ipic *ipic = primary_ipic; | ||
909 | |||
910 | ipic_saved_state.sicfr = ipic_read(ipic->regs, IPIC_SICFR); | ||
911 | ipic_saved_state.siprr[0] = ipic_read(ipic->regs, IPIC_SIPRR_A); | ||
912 | ipic_saved_state.siprr[1] = ipic_read(ipic->regs, IPIC_SIPRR_D); | ||
913 | ipic_saved_state.simsr[0] = ipic_read(ipic->regs, IPIC_SIMSR_H); | ||
914 | ipic_saved_state.simsr[1] = ipic_read(ipic->regs, IPIC_SIMSR_L); | ||
915 | ipic_saved_state.sicnr = ipic_read(ipic->regs, IPIC_SICNR); | ||
916 | ipic_saved_state.smprr[0] = ipic_read(ipic->regs, IPIC_SMPRR_A); | ||
917 | ipic_saved_state.smprr[1] = ipic_read(ipic->regs, IPIC_SMPRR_B); | ||
918 | ipic_saved_state.semsr = ipic_read(ipic->regs, IPIC_SEMSR); | ||
919 | ipic_saved_state.secnr = ipic_read(ipic->regs, IPIC_SECNR); | ||
920 | ipic_saved_state.sermr = ipic_read(ipic->regs, IPIC_SERMR); | ||
921 | ipic_saved_state.sercr = ipic_read(ipic->regs, IPIC_SERCR); | ||
922 | |||
923 | if (fsl_deep_sleep()) { | ||
924 | /* In deep sleep, make sure there can be no | ||
925 | * pending interrupts, as this can cause | ||
926 | * problems on 831x. | ||
927 | */ | ||
928 | ipic_write(ipic->regs, IPIC_SIMSR_H, 0); | ||
929 | ipic_write(ipic->regs, IPIC_SIMSR_L, 0); | ||
930 | ipic_write(ipic->regs, IPIC_SEMSR, 0); | ||
931 | ipic_write(ipic->regs, IPIC_SERMR, 0); | ||
932 | } | ||
933 | |||
934 | return 0; | ||
935 | } | ||
936 | |||
937 | static int ipic_resume(struct sys_device *sdev) | ||
938 | { | ||
939 | struct ipic *ipic = primary_ipic; | ||
940 | |||
941 | ipic_write(ipic->regs, IPIC_SICFR, ipic_saved_state.sicfr); | ||
942 | ipic_write(ipic->regs, IPIC_SIPRR_A, ipic_saved_state.siprr[0]); | ||
943 | ipic_write(ipic->regs, IPIC_SIPRR_D, ipic_saved_state.siprr[1]); | ||
944 | ipic_write(ipic->regs, IPIC_SIMSR_H, ipic_saved_state.simsr[0]); | ||
945 | ipic_write(ipic->regs, IPIC_SIMSR_L, ipic_saved_state.simsr[1]); | ||
946 | ipic_write(ipic->regs, IPIC_SICNR, ipic_saved_state.sicnr); | ||
947 | ipic_write(ipic->regs, IPIC_SMPRR_A, ipic_saved_state.smprr[0]); | ||
948 | ipic_write(ipic->regs, IPIC_SMPRR_B, ipic_saved_state.smprr[1]); | ||
949 | ipic_write(ipic->regs, IPIC_SEMSR, ipic_saved_state.semsr); | ||
950 | ipic_write(ipic->regs, IPIC_SECNR, ipic_saved_state.secnr); | ||
951 | ipic_write(ipic->regs, IPIC_SERMR, ipic_saved_state.sermr); | ||
952 | ipic_write(ipic->regs, IPIC_SERCR, ipic_saved_state.sercr); | ||
953 | |||
954 | return 0; | ||
955 | } | ||
956 | #else | ||
957 | #define ipic_suspend NULL | ||
958 | #define ipic_resume NULL | ||
959 | #endif | ||
960 | |||
892 | static struct sysdev_class ipic_sysclass = { | 961 | static struct sysdev_class ipic_sysclass = { |
893 | .name = "ipic", | 962 | .name = "ipic", |
963 | .suspend = ipic_suspend, | ||
964 | .resume = ipic_resume, | ||
894 | }; | 965 | }; |
895 | 966 | ||
896 | static struct sys_device device_ipic = { | 967 | static struct sys_device device_ipic = { |
diff --git a/arch/powerpc/sysdev/qe_lib/Kconfig b/arch/powerpc/sysdev/qe_lib/Kconfig index 4bb18f57901e..1ce546462be5 100644 --- a/arch/powerpc/sysdev/qe_lib/Kconfig +++ b/arch/powerpc/sysdev/qe_lib/Kconfig | |||
@@ -29,7 +29,7 @@ config QE_GPIO | |||
29 | bool "QE GPIO support" | 29 | bool "QE GPIO support" |
30 | depends on QUICC_ENGINE | 30 | depends on QUICC_ENGINE |
31 | select GENERIC_GPIO | 31 | select GENERIC_GPIO |
32 | select HAVE_GPIO_LIB | 32 | select ARCH_REQUIRE_GPIOLIB |
33 | help | 33 | help |
34 | Say Y here if you're going to use hardware that connects to the | 34 | Say Y here if you're going to use hardware that connects to the |
35 | QE GPIOs. | 35 | QE GPIOs. |
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index 9e82d7e725a5..b3b73ae57d6d 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c | |||
@@ -64,7 +64,7 @@ static phys_addr_t qebase = -1; | |||
64 | phys_addr_t get_qe_base(void) | 64 | phys_addr_t get_qe_base(void) |
65 | { | 65 | { |
66 | struct device_node *qe; | 66 | struct device_node *qe; |
67 | unsigned int size; | 67 | int size; |
68 | const u32 *prop; | 68 | const u32 *prop; |
69 | 69 | ||
70 | if (qebase != -1) | 70 | if (qebase != -1) |
@@ -158,7 +158,7 @@ static unsigned int brg_clk = 0; | |||
158 | unsigned int qe_get_brg_clk(void) | 158 | unsigned int qe_get_brg_clk(void) |
159 | { | 159 | { |
160 | struct device_node *qe; | 160 | struct device_node *qe; |
161 | unsigned int size; | 161 | int size; |
162 | const u32 *prop; | 162 | const u32 *prop; |
163 | 163 | ||
164 | if (brg_clk) | 164 | if (brg_clk) |
@@ -305,7 +305,7 @@ EXPORT_SYMBOL(qe_put_snum); | |||
305 | 305 | ||
306 | static int qe_sdma_init(void) | 306 | static int qe_sdma_init(void) |
307 | { | 307 | { |
308 | struct sdma *sdma = &qe_immr->sdma; | 308 | struct sdma __iomem *sdma = &qe_immr->sdma; |
309 | unsigned long sdma_buf_offset; | 309 | unsigned long sdma_buf_offset; |
310 | 310 | ||
311 | if (!sdma) | 311 | if (!sdma) |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc.c b/arch/powerpc/sysdev/qe_lib/ucc.c index d3c7f5af9bc8..1d78071aad7d 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc.c +++ b/arch/powerpc/sysdev/qe_lib/ucc.c | |||
@@ -88,7 +88,7 @@ int ucc_set_type(unsigned int ucc_num, enum ucc_speed_type speed) | |||
88 | return 0; | 88 | return 0; |
89 | } | 89 | } |
90 | 90 | ||
91 | static void get_cmxucr_reg(unsigned int ucc_num, __be32 **cmxucr, | 91 | static void get_cmxucr_reg(unsigned int ucc_num, __be32 __iomem **cmxucr, |
92 | unsigned int *reg_num, unsigned int *shift) | 92 | unsigned int *reg_num, unsigned int *shift) |
93 | { | 93 | { |
94 | unsigned int cmx = ((ucc_num & 1) << 1) + (ucc_num > 3); | 94 | unsigned int cmx = ((ucc_num & 1) << 1) + (ucc_num > 3); |
@@ -100,7 +100,7 @@ static void get_cmxucr_reg(unsigned int ucc_num, __be32 **cmxucr, | |||
100 | 100 | ||
101 | int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask) | 101 | int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask) |
102 | { | 102 | { |
103 | __be32 *cmxucr; | 103 | __be32 __iomem *cmxucr; |
104 | unsigned int reg_num; | 104 | unsigned int reg_num; |
105 | unsigned int shift; | 105 | unsigned int shift; |
106 | 106 | ||
@@ -121,7 +121,7 @@ int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask) | |||
121 | int ucc_set_qe_mux_rxtx(unsigned int ucc_num, enum qe_clock clock, | 121 | int ucc_set_qe_mux_rxtx(unsigned int ucc_num, enum qe_clock clock, |
122 | enum comm_dir mode) | 122 | enum comm_dir mode) |
123 | { | 123 | { |
124 | __be32 *cmxucr; | 124 | __be32 __iomem *cmxucr; |
125 | unsigned int reg_num; | 125 | unsigned int reg_num; |
126 | unsigned int shift; | 126 | unsigned int shift; |
127 | u32 clock_bits = 0; | 127 | u32 clock_bits = 0; |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_fast.c b/arch/powerpc/sysdev/qe_lib/ucc_fast.c index bcf88e6ce962..1aecb075a72e 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_fast.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_fast.c | |||
@@ -46,7 +46,7 @@ void ucc_fast_dump_regs(struct ucc_fast_private * uccf) | |||
46 | printk(KERN_INFO "uccm : addr=0x%p, val=0x%08x\n", | 46 | printk(KERN_INFO "uccm : addr=0x%p, val=0x%08x\n", |
47 | &uccf->uf_regs->uccm, in_be32(&uccf->uf_regs->uccm)); | 47 | &uccf->uf_regs->uccm, in_be32(&uccf->uf_regs->uccm)); |
48 | printk(KERN_INFO "uccs : addr=0x%p, val=0x%02x\n", | 48 | printk(KERN_INFO "uccs : addr=0x%p, val=0x%02x\n", |
49 | &uccf->uf_regs->uccs, uccf->uf_regs->uccs); | 49 | &uccf->uf_regs->uccs, in_8(&uccf->uf_regs->uccs)); |
50 | printk(KERN_INFO "urfb : addr=0x%p, val=0x%08x\n", | 50 | printk(KERN_INFO "urfb : addr=0x%p, val=0x%08x\n", |
51 | &uccf->uf_regs->urfb, in_be32(&uccf->uf_regs->urfb)); | 51 | &uccf->uf_regs->urfb, in_be32(&uccf->uf_regs->urfb)); |
52 | printk(KERN_INFO "urfs : addr=0x%p, val=0x%04x\n", | 52 | printk(KERN_INFO "urfs : addr=0x%p, val=0x%04x\n", |
@@ -68,7 +68,7 @@ void ucc_fast_dump_regs(struct ucc_fast_private * uccf) | |||
68 | printk(KERN_INFO "urtry : addr=0x%p, val=0x%08x\n", | 68 | printk(KERN_INFO "urtry : addr=0x%p, val=0x%08x\n", |
69 | &uccf->uf_regs->urtry, in_be32(&uccf->uf_regs->urtry)); | 69 | &uccf->uf_regs->urtry, in_be32(&uccf->uf_regs->urtry)); |
70 | printk(KERN_INFO "guemr : addr=0x%p, val=0x%02x\n", | 70 | printk(KERN_INFO "guemr : addr=0x%p, val=0x%02x\n", |
71 | &uccf->uf_regs->guemr, uccf->uf_regs->guemr); | 71 | &uccf->uf_regs->guemr, in_8(&uccf->uf_regs->guemr)); |
72 | } | 72 | } |
73 | EXPORT_SYMBOL(ucc_fast_dump_regs); | 73 | EXPORT_SYMBOL(ucc_fast_dump_regs); |
74 | 74 | ||
@@ -96,7 +96,7 @@ EXPORT_SYMBOL(ucc_fast_transmit_on_demand); | |||
96 | 96 | ||
97 | void ucc_fast_enable(struct ucc_fast_private * uccf, enum comm_dir mode) | 97 | void ucc_fast_enable(struct ucc_fast_private * uccf, enum comm_dir mode) |
98 | { | 98 | { |
99 | struct ucc_fast *uf_regs; | 99 | struct ucc_fast __iomem *uf_regs; |
100 | u32 gumr; | 100 | u32 gumr; |
101 | 101 | ||
102 | uf_regs = uccf->uf_regs; | 102 | uf_regs = uccf->uf_regs; |
@@ -117,7 +117,7 @@ EXPORT_SYMBOL(ucc_fast_enable); | |||
117 | 117 | ||
118 | void ucc_fast_disable(struct ucc_fast_private * uccf, enum comm_dir mode) | 118 | void ucc_fast_disable(struct ucc_fast_private * uccf, enum comm_dir mode) |
119 | { | 119 | { |
120 | struct ucc_fast *uf_regs; | 120 | struct ucc_fast __iomem *uf_regs; |
121 | u32 gumr; | 121 | u32 gumr; |
122 | 122 | ||
123 | uf_regs = uccf->uf_regs; | 123 | uf_regs = uccf->uf_regs; |
@@ -139,7 +139,7 @@ EXPORT_SYMBOL(ucc_fast_disable); | |||
139 | int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** uccf_ret) | 139 | int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** uccf_ret) |
140 | { | 140 | { |
141 | struct ucc_fast_private *uccf; | 141 | struct ucc_fast_private *uccf; |
142 | struct ucc_fast *uf_regs; | 142 | struct ucc_fast __iomem *uf_regs; |
143 | u32 gumr; | 143 | u32 gumr; |
144 | int ret; | 144 | int ret; |
145 | 145 | ||
@@ -216,10 +216,10 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc | |||
216 | uccf->stopped_tx = 0; | 216 | uccf->stopped_tx = 0; |
217 | uccf->stopped_rx = 0; | 217 | uccf->stopped_rx = 0; |
218 | uf_regs = uccf->uf_regs; | 218 | uf_regs = uccf->uf_regs; |
219 | uccf->p_ucce = (u32 *) & (uf_regs->ucce); | 219 | uccf->p_ucce = &uf_regs->ucce; |
220 | uccf->p_uccm = (u32 *) & (uf_regs->uccm); | 220 | uccf->p_uccm = &uf_regs->uccm; |
221 | #ifdef CONFIG_UGETH_TX_ON_DEMAND | 221 | #ifdef CONFIG_UGETH_TX_ON_DEMAND |
222 | uccf->p_utodr = (u16 *) & (uf_regs->utodr); | 222 | uccf->p_utodr = &uf_regs->utodr; |
223 | #endif | 223 | #endif |
224 | #ifdef STATISTICS | 224 | #ifdef STATISTICS |
225 | uccf->tx_frames = 0; | 225 | uccf->tx_frames = 0; |