06 Dec, 2007
8 commits
-
This clarifies how 'ranges' properties are used, and in particular,
how to get an identity mapping.Signed-off-by: Stephen Neuendorffer
Acked-by: David Gibson
Acked-by: Grant Likely
Signed-off-by: Paul Mackerras -
This adds a 'bootwrapper_install' make target for the powerpc
architecture, which installs the wrapper script, intermediate object
files and device-tree sources for later use.This will then allow bootable zImages to be created other than in the
context of a kernel build.Signed-off-by: David Woodhouse
Signed-off-by: Paul Mackerras -
It's possible that the executables which are built as helpers for the
bootwrapper stuff might end up in a different place to the intermediate
object files. Handle that.Signed-off-by: David Woodhouse
Signed-off-by: Paul Mackerras -
If a .dts file is given to the bootwrapper script without a full path
name, look in a sensible place for it.Signed-off-by: David Woodhouse
Signed-off-by: Paul Mackerras -
The bootwrapper script currently generates an 'otheros.bld' file in
addition to the file specified by the -o option, when asked to build a
wrapper for PS3.It should do that in the same directory as the output, not the directory
where the wrapper objects are kept (which might potentially not be
writable when the script runs).Arguably, the 'otheros.bld' ought to be created with the filename
specified as the -o argument. But that's a more intrusive change.Signed-off-by: David Woodhouse
Acked-by: Geoff Levand
Signed-off-by: Paul Mackerras -
This adds checking for NULL returned value from of_get_property to
prevent possible NULL pointer dereference in the case when expected
properties are not present.Signed-off-by: Cyrill Gorcunov
Signed-off-by: Paul Mackerras -
Convert #include of asm/of_{platform, device}.h into
linux/of_{platform,device}.h for remaining arch/powerpc files.Signed-off-by: Jon Loeliger
Signed-off-by: Paul Mackerras -
Convert #include of asm/of_{platform, device}.h into
linux/of_{platform,device}.h for a few scattered platforms.Signed-off-by: Jon Loeliger
Signed-off-by: Paul Mackerras
05 Dec, 2007
1 commit
-
…pasemi into for-2.6.25
04 Dec, 2007
1 commit
-
Fix up the module information for gpio-mdio, it wouldn't load
because of lacking license, and wouldn't auto-load because of missing
MODULE_DEVICE_TABLE.Signed-off-by: Olof Johansson
03 Dec, 2007
18 commits
-
Signed-off-by: Joe Perches
Signed-off-by: Paul Mackerras -
Signed-off-by: Joe Perches
Signed-off-by: Paul Mackerras -
It is already declared in ppc-pci.h which is included.
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras -
arch/powerpc/platforms/iseries/setup.c:111:27: warning: constant 0x100000000 is so big it is long
arch/powerpc/platforms/iseries/setup.c:113:23: warning: constant 0x100000000 is so big it is long
arch/powerpc/platforms/iseries/setup.c:117:27: warning: constant 0x000fffffffffffff is so big it is long
arch/powerpc/platforms/iseries/setup.c:127:28: warning: constant 0x100000000 is so big it is long
arch/powerpc/platforms/iseries/setup.c:129:24: warning: constant 0x100000000 is so big it is long
arch/powerpc/platforms/iseries/setup.c:233:5: warning: constant 0x000fffffffffffff is so big it is long
arch/powerpc/platforms/iseries/setup.c:235:5: warning: constant 0x000fffffffffffff is so big it is long
arch/powerpc/platforms/iseries/setup.c:319:6: warning: symbol 'mschunks_alloc' was not declared. Should it be static?
arch/powerpc/platforms/iseries/setup.c:661:6: warning: symbol 'iSeries_early_setup' was not declared. Should it be static?Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras -
Fixes sparse warning:
arch/powerpc/platforms/iseries/pci.c:169:13: warning: symbol 'iSeries_pci_final_fixup' was not declared. Should it be static?Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras -
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras -
since it's not used outside of arch/powerpc/kernel/pci-common.c.
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras -
This adds a function to xmon to dump the content of the 44x processor
TLB with a little bit of decoding (but not much).Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Paul Mackerras -
Do not wait for the pci slot status before reporting an error
to the device driver. Some systems may take many seconds to
report the slot status, and this can confuse unsuspecting
device drivers.Signed-off-by: Linas Vepstas
Signed-off-by: Paul Mackerras -
If an "empty" slot is failing, make sure its a permanent failure;
else process the error normally.Signed-off-by: Linas Vepstas
Signed-off-by: Paul Mackerras -
Perform all error checking at the "partitonable endpoint"
of the device.Signed-off-by: Linas Vepstas
Signed-off-by: Paul Mackerras -
Some code in via-pmu.c is never compiled because of "compile options"
within the file. Remove the code completely.Signed-off-by: Johannes Berg
Acked-by: Benjamin Herrenschmidt
Signed-off-by: Paul Mackerras -
I see nothing that this lock_kernel() actually protects against,
so remove it.Signed-off-by: Johannes Berg
Acked-by: Benjamin Herrenschmidt
Signed-off-by: Paul Mackerras -
arch/powerpc/platforms/powermac/time.c:88: warning: 'to_rtc_time' defined but not used
This fixes the warning by making the relevant code depend on the
users.Signed-off-by: Johannes Berg
Signed-off-by: Paul Mackerras -
prod_processor() is unused, and that's a good thing, since it does not
supply the required proc id parameter to H_PROD.Signed-off-by: Nathan Lynch
Signed-off-by: Paul Mackerras -
This cleans up the SMT thread handling, removing some hard coded
assumptions and providing a set of helpers to convert between linux
cpu numbers, thread numbers and cores.This implementation requires the number of threads per core to be a
power of 2 and identical on all cores in the system, but it's an
implementation detail, not an API requirement and so this limitation
can be lifted in the future if anybody ever needs it.Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Paul Mackerras -
xmon is broken under arch/ppc so remove it from the defconfig.
Signed-off-by: Grant Likely
Signed-off-by: Paul Mackerras -
This reverts commit a2b51812a4dc5db09ab4d4638d4d8ed456e2457e.
It turns out that this change caused some machines to fail to come
back up when being rebooted, and generated an error in the hypervisor
error log on some machines. The platform architecture (PAPR) is a
little unclear on exactly when the RTAS ibm,os-term function should be
called. Until that is clarified I'm reverting this commit.Signed-off-by: Paul Mackerras
02 Dec, 2007
2 commits
-
Use smp_send_stop() to move all cpus besides the one executing reboot
into a hold loop, to keep them from being in powersavings mode at the
time of reboot.Signed-off-by: Olof Johansson
-
When the PWRficient cpus are entered into powersavings states, the
astate is automatically dropped down to 0. While we still restore it
when we come out of idle, it can still cause some weird effects with
respect to performance (especially since it takes a while to ramp up to
higher astates).So, to avoid this, don't enter power savings when the cpufreq driver
(or user) has set higher astates than 0.The restore is still required, since there's a chance the astate has
been raised from the other cpu while the idling one was asleep.Signed-off-by: Olof Johansson
01 Dec, 2007
7 commits
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
IB/ehca: Fix static rate if path faster than link
IPoIB: Fix oops if xmit is called when priv->broadcast is NULL -
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Fix build.
[MIPS] Fix use of smp_processor_id() in preemptible code. -
Signed-off-by: Ralf Baechle
-
Freeing prom memory: 956kb freed
Freeing firmware memory: 978944k freed
Freeing unused kernel memory: 180k freed
BUG: using smp_processor_id() in preemptible [00000000] code: swapper/1
caller is r4k_dma_cache_wback_inv+0x144/0x2a0
Call Trace:
[] r4k_dma_cache_wback_inv+0x144/0x2a0
[] debug_smp_processor_id+0xd4/0xf0
[] debug_smp_processor_id+0xcc/0xf0
...
CONFIG_DEBUG_PREEMPT is enabled.
--
Bug cause is blast_dcache_range() in preemptible code [in
r4k_dma_cache_wback_inv()].
blast_dcache_range() is constructed via __BUILD_BLAST_CACHE_RANGE that
uses cpu_dcache_line_size(). It uses current_cpu_data that use
smp_processor_id() in turn. In case of CONFIG_DEBUG_PREEMPT
smp_processor_id emits BUG if we are executing with preemption
enabled.Cpu options of cpu0 are assumed to be the superset of all processors.
Can I make the same assumptions for cache line size and fix this
issue the following way:Signed-off-by: Ralf Baechle
-
The formula would yield -1 if the path is faster than the link, which
is wrong in a bad way (max throttling). Clamp to 0, which is the
correct value.Signed-off-by: Joachim Fenkes
Signed-off-by: Roland Dreier -
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm:
[ARM] 4680/1: parentheses around NR_IRQS definition
[ARM] 4679/1: AT91: Change maintainer email address
[ARM] 4675/1: pxa: fix mfp address definition error for pxa320
[ARM] 4674/1: pxa: increase LCD PCLK drive strength to fast 2mA for PXA300/PXA310
[ARM] 4673/1: pxa: add missing IRQ_SSP4 definitions for PXA3xx
[ARM] 4672/1: pxa: fix DRCMR(n) to support PXA27x and later processors
[ARM] 4665/1: fix __und_usr wrt accessing the undefined insn in user space
[ARM] 4659/1: remove possibilities for spurious false negative with __kuser_cmpxchg
[ARM] 4661/1: fix do_undefinstr wrt the enabling of IRQs
[ARM] uengine: fix memset size error
[ARM] 4648/1: i.MX/MX1 ensure more complete AITC initialization
[ARM] 4611/2: AT91: Fix GPIO buttons pins on SAM9261-EK.
[ARM] 4650/1: AT91: New-style init of I2C, support for i2c-gpio
[ARM] 4604/2: AT91: Master clock divistor on SAM9
[ARM] 4662/1: Fix PXA serial driver compilation if SERIAL_PXA_CONSOLE is disabled
[ARM] PXA ssp: unlock when ssp tries to close an invalid port
[ARM] 4654/1: pxa: update default MFP register value
[ARM] 4653/1: pxa: fix a gpio typo in mfp-pxa320.h
[ARM] 4652/1: pxa: fix a typo of pxa27x usb host clk definition
[ARM] 4651/1: pxa: add PXA3xx specific IRQ definitions -
The database performance group have found that half the cycles spent
in kmem_cache_free are spent in this one call to BUG_ON. Moving it
into the CONFIG_SLAB_DEBUG-only function cache_free_debugcheck() is a
performance win of almost 0.5% on their particular benchmark.The call was added as part of commit ddc2e812d592457747c4367fb73edcaa8e1e49ff
with the comment that "overhead should be minimal". It may have been
minimal at the time, but it isn't now.[ Quoth Pekka Enberg: "I don't think the BUG_ON per se caused the
performance regression but rather the virt_to_head_page() changes to
virt_to_cache() that were added later." ]Signed-off-by: Matthew Wilcox
Acked-by: Pekka J Enberg
Signed-off-by: Linus Torvalds
30 Nov, 2007
3 commits
-
There will be more product numbers in the future than just PA6T-1682M,
but they will share much of the features. Remove some of the explicit
references and compatibility checks with 1682M, and replace most of them
with the more generic term "PWRficient".Signed-off-by: Olof Johansson
Acked-by: Michael Buesch
Acked-by: Doug Thompson -
Misc cleanups of mdio_gpio:
* Better error handling/unrolling in case of init/alloc failures
* Go through child nodes and get their interrupts instead of using
hardcoded values
* Remap the GPIO registers at module load/driver init instead of during probe
* Coding style and other misc cleanupsSigned-off-by: Olof Johansson
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-x86setup:
x86 setup: don't recalculate ss:esp unless really necessary