13 Sep, 2007
34 commits
-
This replaces the binding for flash chips in booting-without-of.txt
with an clarified and improved version. It also makes
drivers/mtd/maps/physmap_of.c recognize this new binding. Finally it
revises the Ebony device tree source to use the new binding as an
example.Signed-off-by: David Gibson
Acked-by: Segher Boessenkool
Signed-off-by: Paul Mackerras -
Grammatical corrections to comments.
Signed-off-by: Linas Vepstas
Signed-off-by: Paul Mackerras -
Whitespace cleanup: badly indented lines.
Signed-off-by: Linas Vepstas
Signed-off-by: Paul Mackerras -
Whitespace cleanup: badly indented lines.
Typo in comment.Signed-off-by: Linas Vepstas
Signed-off-by: Paul Mackerras -
Previously, the TLB miss handlers assumed that pages above KERNELBASE are
always present and read/write. This assumption is false in the case of
CONFIG_DEBUG_PAGEALLOC.Signed-off-by: Scott Wood
Signed-off-by: Paul Mackerras -
Some firmwares (such as PlanetCore) only provide a base MAC address, and
expect the kernel to set certain bits to generate the addresses for the
other ports. As such, MAC addresses are generated that may not correspond
to actual hardware.Signed-off-by: Scott Wood
Acked-by: David Gibson
Signed-off-by: Paul Mackerras -
This will be used by the PlanetCore firmware support to construct
a linux,stdout-path from the serial node that it finds.Signed-off-by: Scott Wood
Acked-by: David Gibson
Signed-off-by: Paul Mackerras -
This will be needed by PlanetCore firmware support.
Signed-off-by: Scott Wood
Acked-by: David Gibson
Signed-off-by: Paul Mackerras -
1. ft_create_node was returning the internal pointer rather than a phandle.
2. ft_find_device_rel was treating a "top" phandle of NULL as an error,
rather than as the root of the tree. The old, absolute ft_find_device
is removed, and the relative version is renamed to ft_find_device().Signed-off-by: Scott Wood
Acked-by: David Gibson
Signed-off-by: Paul Mackerras -
Fixes:
arch/powerpc/kernel/sysfs.c: In function 'cpu_add_sysdev_attr_group':
arch/powerpc/kernel/sysfs.c:388: warning: ignoring return value of
'sysfs_create_group', declared with attribute warn_unused_resultSigned-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
There's no need to call the runlatch on functions on processors that
don't implement them (CPU_FTR_CTRL).Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
Remove leftover cruft from ARCH=ppc.
There are no users of platform_machine_check() in ARCH=powerpc, and none
should be added (they should use ppc_md.machine_check_handler instead).Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
Move pasemi_idle_init() to be a late_initcall instead of being called from
setup_arch(). This way the cpufreq driver has a chance to initialize and
save away the boot time astate before we go to idle for the first time.Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
Add printout of some SoC error status registers, and dump the SLB contents
for those machine check events where it makes sense.Since we can't go about and ioremap registers at machine check time,
and we generally want to do as little as possible to print out the
information, pre-build a table of the registers to dump and their address
in the common PCI config space range.Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
Export some of the implementation-specific registers via sysfs.
Useful when debugging, etc.Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
Erratum 5945 causes some of the registers on the PCIe root ports to
not read correctly. Do a small dance to avoid this: Write an unused
register, read the value and write it back. Thankfully this is not in
a hot code path.Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
Add pasemi_pci_getcfgaddr(), to get the remapped address of a specific
config register for a PCI device.Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
Export new __io{re,un}map_at() symbols so modules can use them.
Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
This adds a debugfs file "powerpc/virq_mapping", which shows the virtual
to real mapping of irq numbers. Enable it with CONFIG_VIRQ_DEBUG.Signed-off-by: Zhang Wei
Signed-off-by: Chen Gong
Signed-off-by: Michael Ellerman
Signed-off-by: Paul Mackerras -
Although no one uses the hwirq value for legacy irqs at the moment, we
should really setup the correct value in the irq_map.Signed-off-by: Michael Ellerman
Signed-off-by: Paul Mackerras -
The most common match semantic is an exact match based on the device node.
So provide a default implementation that does this, and hook it up if no
match routine is specified.Signed-off-by: Michael Ellerman
Signed-off-by: Paul Mackerras -
Currently if you don't specify a match callback for your irq_host it's
assumed you match everything. This is a kind of opt-out approach, and
turns out to be the exception rather than the rule.So change the semantics to be opt-in, ie. you don't match anything unless
you provide a match callback. This in itself isn't very useful, but will
allow us to provide a default match implementation in a subsequent patch.Signed-off-by: Michael Ellerman
Signed-off-by: Paul Mackerras -
The majority of irq_host implementations (3 out of 4) are associated
with a device_node, and need to stash it somewhere. Rather than having
it somewhere different for each host, add an optional device_node pointer
to the irq_host structure.Signed-off-by: Michael Ellerman
Signed-off-by: Paul Mackerras -
Currently the bootwrapper has implementations of strchr() and
strncmp(), but they're inlines in flatdevtree_env.h, rather than in
string.S with all the rest of the string functions. This moves
them to string.S.Signed-off-by: David Gibson
Signed-off-by: Paul Mackerras -
Per conversations with BenH, IOMMU virtual merging should no longer
be considered to be an "experimental" feature. In particular,
CONFIG_VMERGE has been set to "y" in the defconfigs for quite a while.Signed-off-by: Linas Vepstas
Acked-by: Benjamin Herrenschmidt----
arch/powerpc/Kconfig | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
Signed-off-by: Paul Mackerras -
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
[POWERPC] Move serial_dev_init to device_initcall()
[POWERPC] Enable GENERIC_ISA_DMA if FSL_ULI1575 to fix compile issue
[POWERPC] cpm2: Fix off-by-one error in setbrg().
[PPC] 8xx: Fix r3 trashing due to 8MB TLB page instantiation
[POWERPC] 8{5,6}xx: Fix build issue with !CONFIG_PCI -
One of the very first things lguest_init() does is a memcpy. On
Athlon/Duron/K7 or CyrixIII/VIA-C3 or Geode GX/LX, this tries to use
MMX.memcpy -> _mmx_memcpy -> kernel_fpu_begin -> clts -> paravirt_ops.clts
But we haven't set paravirt_ops.clts yet, so we do the native version
and crash. The simplest solution is to use __memcpy.Thanks to Michael Rasenberger for the bug report.
Signed-off-by: Rusty Russell
Signed-off-by: Linus Torvalds -
With the I/O space rewrite by BenH, the legacy_serial serial_dev_init()
initcall is now called before I/O space is setup, but it's dependent on
it being available.Since there's no way to make dependencies between initcalls, we'll just
have to move it to device_initcall(). Yes, it's suboptimal but I'm not
aware of any better solution at this time, and it fixes a regression
from 2.6.22.Signed-off-by: Olof Johansson
Signed-off-by: Paul Mackerras -
Fix a compile error when the directory above the kernel source contains
a file named "kernel". Originally from Ben LaHaise, modified based on
feedback from Sam RavnborgSigned-off-by: Andi Kleen
Cc: Sam Ravnborg
Cc: Ben LaHaise
Signed-off-by: Linus Torvalds -
AK: Removed the unlikelies because gcc heuristics default to unlikely
AK: for test == NULL and for negative returns.Cc: Venkatesh Pallipadi
Cc: Ashok Raj
Cc: Akinobu Mita
Signed-off-by: Jan Beulich
Signed-off-by: Andi Kleen
Signed-off-by: Linus Torvalds -
vdso vgetns() didn't mask the time source offset calculation, which
could lead to time problems with 32bit HPET. Add the masking.Thanks to Chuck Ebbert for tracking this down.
Signed-off-by: Andi Kleen
Cc: Chuck Ebbert
Signed-off-by: Linus Torvalds -
* 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
leds: Add missing include for leds.h -
Commit f629307c857c030d5a3dd777fee37c8bb395e171 introduced uses of
kernel_termios_to_user_termios_1 and user_termios_to_kernel_termios_1
on all architectures. However, powerpc, s390, avr32 and frv don't
currently define those functions since their termios struct didn't
need to be changed when the arbitrary baud rate stuff was added, and
thus the kernel won't currently build on those architectures.This adds definitions of kernel_termios_to_user_termios_1 and
user_termios_to_kernel_termios_1 to include/asm-generic/termios.h
which are identical to kernel_termios_to_user_termios and
user_termios_to_kernel_termios respectively. The definitions are the
same because the "old" termios and "new" termios are in fact the same
on these architectures (which are the same ones that use
asm-generic/termios.h).Signed-off-by: Paul Mackerras
Cc: Andrew Morton
Cc: Alan Cox
Cc: David Miller
Signed-off-by: Linus Torvalds
12 Sep, 2007
6 commits
-
Since the ULI1575 has a ISA bus we need to enable the generic ISA dma
support for drivers that might expect it. Without this we get compile
errors like the following:ound/built-in.o: In function `claim_dma_lock':
/home/galak/git/linux-8572/include/asm/dma.h:189: undefined reference to `dma_spin_lock'
/home/galak/git/linux-8572/include/asm/dma.h:189: undefined reference to `dma_spin_lock'
sound/built-in.o: In function `release_dma_lock':
/home/galak/git/linux-8572/include/asm/dma.h:195: undefined reference to `dma_spin_lock'
sound/built-in.o: In function `claim_dma_lock':
/home/galak/git/linux-8572/include/asm/dma.h:189: undefined reference to `dma_spin_lock'
/home/galak/git/linux-8572/include/asm/dma.h:189: undefined reference to `dma_spin_lock'
sound/built-in.o:/home/galak/git/linux-8572/include/asm/dma.h:195: more undefined references to `dma_spin_lock' follow
make: *** [.tmp_vmlinux1] Error 1Signed-off-by: Kumar Gala
-
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
[BLUETOOTH]: Fix non-COMPAT build of hci_sock.c -
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
[SPARC64]: Fix booting on V100 systems. -
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
Input: usbtouchscreen - correctly set 'phys'
Input: i8042 - add HP Pavilion DV4270ca to the MUX blacklist
Input: i8042 - fix modpost warning
Input: add more Braille keycodes -
Signed-off-by: David S. Miller
-
On the root PCI bus, the OBP device tree lists device 3 twice.
Once as 'pm' and once as 'lomp'.Everything goes downhill from there.
Ignore the second instance to workaround this.
Thanks to Kövedi_Krisztián for the bug report and
testing the fix.Signed-off-by: David S. Miller