[patch 03/10] m68k/mac: Make mac_hid_mouse_emulate_buttons() declaration visible

2007-08-15 Thread Geert Uytterhoeven
From: Geert Uytterhoeven <[EMAIL PROTECTED]> m68k/mac: Make mac_hid_mouse_emulate_buttons() declaration visible drivers/char/keyboard.c: In function 'kbd_keycode': drivers/char/keyboard.c:1142: error: implicit declaration of function 'mac_hid_mouse_emulate_buttons' The forward declaration of ma

[PATCH] [POWERPC] Fix section mismatch in crash_dump.c

2007-08-15 Thread Stephen Rothwell
WARNING: vmlinux.o(.text+0x23258): Section mismatch: reference to .init.text:.lmb_reserve (between '.reserve_kdump_trampoline' and '.restore_processor_state') Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/kernel/crash_dump.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH] [POWERPC] Fix section mismatch in dart_iommu.c

2007-08-15 Thread Stephen Rothwell
These functions are only called from __init functions. WARNING: vmlinux.o(.text+0x398f4): Section mismatch: reference to .init.text:.lmb_alloc (between '.iommu_init_early_dart' and '.pci_dma_bus_setup_dart') Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/dart_iommu

[PATCH] [POWERPC] Fix section mismatches in udbg_adb.c

2007-08-15 Thread Stephen Rothwell
The functions ae only called from __init functions. WARNING: vmlinux.o(.text+0x45ed0): Section mismatch: reference to .init.text:.btext_find_display (between '.udbg_adb_init_early' and '.udbg_adb_init') WARNING: vmlinux.o(.text+0x45f9c): Section mismatch: reference to .init.text:.btext_find_dis

[PATCH] [POWERPC] Fix section mismatch in pasemi/iommu.c

2007-08-15 Thread Stephen Rothwell
These functions are only called by __init functions. WARNING: vmlinux.o(.text+0x56aa0): Section mismatch: reference to .init.text:.lmb_alloc (between '.iob_init' and '.iommu_init_early_pasemi') Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/pasemi/iommu.c |4

[PATCH] [POWERPC] Fix section mismatch in scc_sio.c

2007-08-15 Thread Stephen Rothwell
WARNING: vmlinux.o(.text+0x69d0c): Section mismatch: reference to .init.text:.early_serial_txx9_setup (between '.txx9_serial_init' and '.cpu_affinity_set') Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/celleb/scc_sio.c |2 +- 1 files changed, 1 insertions(+)

Please pull powerpc.git merge branch

2007-08-15 Thread Paul Mackerras
Linus, Please do git pull \ git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git merge to get a few more bug-fixes for powerpc. Thanks, Paul. arch/powerpc/boot/flatdevtree.c| 18 -- arch/powerpc/kernel/Makefile |1 + arch/powerpc/ker

[PATCH] powerpc: add setmaskedbits macros

2007-08-15 Thread Timur Tabi
This patch adds the setmaskedbits_xxx() macros, which are used to set a multiple-bit bit pattern in a register. The macros include a mask, which zeros the respective bits before applying the value via a bitwise-OR. There are big-endian and little-endian versions for 8, 16, 32, and 64 bits. Signed

Re: [PATCH 2/4] PowerPC 440EPx: Sequoia DTS

2007-08-15 Thread Valentine Barshak
Stefan Roese wrote: > On Tuesday 14 August 2007, Valentine Barshak wrote: >> AMCC Sequoia device tree. > > Please find some comments below. > >> Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> >> --- >> arch/powerpc/boot/dts/sequoia.dts | 289 >> ++ 1 fil

Re: [PATCH 1/4] PowerPC 440EPx: Sequoia defconfig

2007-08-15 Thread Valentine Barshak
Josh Boyer wrote: > On Tue, 14 Aug 2007 22:45:00 +0400 > Valentine Barshak <[EMAIL PROTECTED]> wrote: > >> Sequoia defconfig >> >> Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> >> --- >> arch/powerpc/configs/sequoia_defconfig | 783 >> + >> 1 files changed

Re: [PATCH 3/4] PowerPC 440EPx: Sequoia bootwrapper

2007-08-15 Thread Valentine Barshak
David Gibson wrote: > On Tue, Aug 14, 2007 at 10:53:55PM +0400, Valentine Barshak wrote: >> Bootwrapper code for AMCC 440EPx Sequoia board. >> The DDR2 Denali controller support has been moved to >> arch/powerpc/boot/4xx.c >> The code also uses 440EP clocking fixups >> initially provided for 440EP

Re: [PATCH 4/4] PowerPC 440EPx: Sequoia board support

2007-08-15 Thread Valentine Barshak
David Gibson wrote: > On Tue, Aug 14, 2007 at 11:04:09PM +0400, Valentine Barshak wrote: >> AMCC 440EPx Sequoia board support. >> The second bit (0x4) in the 440EPx/440GRx PVR value indicates >> the Security/Kasumi engine absence if set. >> This bit has been removed from the pvr mask to use a singl

Re: System crash on boot_e500.S

2007-08-15 Thread mike zheng
Did you done similar work before? Current 2.6 code need many other files, I have following errors when I try to use the head_e500.S from 2.6 code: /kernel-> powerpc-linux-gnuspe-gcc -m32 -Wp,-MD,arch/ppc/kernel/.entry.o.d -nostdinc -isystem /opt/mtwk/usr/local/gcc-3_4- e500-glibc-2.3.4-dp/powe

Re: [PATCH] [POWERPC] Fix section mismatch in pasemi/iommu.c

2007-08-15 Thread Olof Johansson
On Wed, Aug 15, 2007 at 08:58:23PM +1000, Stephen Rothwell wrote: > These functions are only called by __init functions. > > WARNING: vmlinux.o(.text+0x56aa0): Section mismatch: reference to > .init.text:.lmb_alloc (between '.iob_init' and '.iommu_init_early_pasemi') > Thanks! It was drowning i

Re: System crash on boot_e500.S

2007-08-15 Thread Scott Wood
On Wed, Aug 15, 2007 at 09:57:59AM -0400, mike zheng wrote: > Did you done similar work before? Current 2.6 code need many other files, I > have following errors when I try to use the head_e500.S from 2.6 code: > > > /kernel-> powerpc-linux-gnuspe-gcc -m32 -Wp,-MD,arch/ppc/kernel/.entry.o.d >

Re: System crash on boot_e500.S

2007-08-15 Thread Kumar Gala
On Aug 15, 2007, at 11:02 AM, Scott Wood wrote: > On Wed, Aug 15, 2007 at 09:57:59AM -0400, mike zheng wrote: >> Did you done similar work before? Current 2.6 code need many other >> files, I >> have following errors when I try to use the head_e500.S from 2.6 >> code: >> >> >> /kernel-> po

Re: System crash on boot_e500.S

2007-08-15 Thread Scott Wood
Kumar Gala wrote: > > On Aug 15, 2007, at 11:02 AM, Scott Wood wrote: > >> On Wed, Aug 15, 2007 at 09:57:59AM -0400, mike zheng wrote: >> >>> Did you done similar work before? Current 2.6 code need many other >>> files, I >>> have following errors when I try to use the head_e500.S from 2.6 co

Re: System crash on boot_e500.S

2007-08-15 Thread Becky Bruce
On Aug 15, 2007, at 11:28 AM, Kumar Gala wrote: > > On Aug 15, 2007, at 11:02 AM, Scott Wood wrote: > >> On Wed, Aug 15, 2007 at 09:57:59AM -0400, mike zheng wrote: >>> Did you done similar work before? Current 2.6 code need many other >>> files, I >>> have following errors when I try to use the

Re: [PATCH 2/4] PowerPC 440EPx: Sequoia DTS

2007-08-15 Thread Valentine Barshak
David Gibson wrote: > On Tue, Aug 14, 2007 at 10:48:43PM +0400, Valentine Barshak wrote: >> AMCC Sequoia device tree. >> >> Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> >> --- >> arch/powerpc/boot/dts/sequoia.dts | 289 >> ++ >> 1 files changed, 289 in

Re: [PATCH 3/4] PowerPC 440EPx: Sequoia bootwrapper

2007-08-15 Thread Jerone Young
What source tree patch based on? The latest kernel.org git tree does not have arch/powerpc/boot/4xx.c or arch/powerpc/boot/4xx.h . This patch is attempting to patch these files. On Tue, 2007-08-14 at 22:53 +0400, Valentine Barshak wrote: > Bootwrapper code for AMCC 440EPx Sequoia board. > The DDR2

Re: [PATCH 3/4] PowerPC 440EPx: Sequoia bootwrapper

2007-08-15 Thread Valentine Barshak
The patches are based mainly on the Bamboo board support by Josh Boyer and should be applied on top of the "[patch 00/10] 4xx patch series for 2.6.24" http://ozlabs.org/pipermail/linuxppc-dev/2007-August/040512.html The 2.6.24 4xx patch series is included in the following git tree: git://git.in

Re: [PATCH 4/4] PowerPC 440EPx: Sequoia board support

2007-08-15 Thread Josh Boyer
On Wed, 15 Aug 2007 17:53:00 +0400 Valentine Barshak <[EMAIL PROTECTED]> wrote: > David Gibson wrote: > >> diff -ruN linux-2.6.orig/arch/powerpc/kernel/head_44x.S > >> linux-2.6/arch/powerpc/kernel/head_44x.S > >> --- linux-2.6.orig/arch/powerpc/kernel/head_44x.S 2007-08-14 > >> 17:11:19.00

Re: [PATCH 1/3] Fix setting of irq trigger type in UIC driver

2007-08-15 Thread Josh Boyer
On Tue, 14 Aug 2007 13:52:42 +1000 (EST) David Gibson <[EMAIL PROTECTED]> wrote: > The UIC (interrupt controller in 4xx embedded CPUs) driver currently > missets the IRQ_lEVEL flag in desc->status, due to a thinko. This > patch fixes the bug. > > Currently this is only a cosmetic problem (affect

Re: [PATCH 2/3] Fix irq flow handler for 4xx UIC

2007-08-15 Thread Josh Boyer
On Tue, 14 Aug 2007 13:52:42 +1000 (EST) David Gibson <[EMAIL PROTECTED]> wrote: > At present the driver for the UIC (the embedded interrupt controller > in 4xx chips) uses the handle_level_irq() flow handler. It turns out > this does not correctly handle level triggered interrupts on the UIC. >

Re: [PATCH] powerpc: fix i2c device string format

2007-08-15 Thread Guennadi Liakhovetski
Use strlcpy() to guarantee strings in i2c device type and driver_name fields are 0-terminated. Signed-off-by: Guennadi Liakhovetski <[EMAIL PROTECTED]> --- On Wed, 15 Aug 2007, Paul Mackerras wrote: > That's not a commit message I can use. Please repost with an > informative commit message th

Re: [PATCH 3/3] Improve robustness of the UIC cascade handler

2007-08-15 Thread Josh Boyer
On Tue, 14 Aug 2007 13:52:42 +1000 (EST) David Gibson <[EMAIL PROTECTED]> wrote: > At present the cascade interrupt handler for the UIC (interrupt > controller on 4xx embedded chips) will misbehave badly if it is called > spuriously - that is if the handler is invoked when no interrupts are > asse

2.6.23-rc3 broken on G5

2007-08-15 Thread Andreas Schwab
This change: commit edd0622bd2e8f755c960827e15aa6908c3c5aa94 Author: Paul Mackerras <[EMAIL PROTECTED]> Date: Fri Aug 10 21:04:07 2007 +1000 [POWERPC] Fix potential duplicate entry in SLB shadow buffer is broken on PowerMac G5. It crashes very early, before the bootx console is set up. A

Re: System crash on boot_e500.S

2007-08-15 Thread Scott Wood
mike zheng wrote: > Unfortunately, all the applications are running on 2.4 kernel. I can not > just throw the 2.4 kernel. And in what way does 2.6 break these applications? > I took the some core specific code from > ppc.bkbits.net, such as head_e500.S and mpc85xx_cds_common.c. I assume the > ima

Re: System crash on boot_e500.S

2007-08-15 Thread mike zheng
Unfortunately, all the applications are running on 2.4 kernel. I can not just throw the 2.4 kernel. I took the some core specific code from ppc.bkbits.net, such as head_e500.S and mpc85xx_cds_common.c. I assume the image should work on the 8548 CDS board, or at least for the bootup. I shall able to

Re: [PATCH] powerpc: add setmaskedbits macros

2007-08-15 Thread Paul Mackerras
Timur Tabi writes: > This patch adds the setmaskedbits_xxx() macros, which are used to set a > multiple-bit bit pattern in a register. The macros include a mask, which > zeros the respective bits before applying the value via a bitwise-OR. > There are big-endian and little-endian versions for 8,

Re: System crash on boot_e500.S

2007-08-15 Thread mike zheng
On 8/15/07, Scott Wood <[EMAIL PROTECTED]> wrote: > > mike zheng wrote: > > Unfortunately, all the applications are running on 2.4 kernel. I can not > > just throw the 2.4 kernel. > > And in what way does 2.6 break these applications? All the device drivers are based on 2.4 kernel. We plan to upg

Re: [PATCH] powerpc: fix i2c device string format

2007-08-15 Thread Scott Wood
Guennadi Liakhovetski wrote: > diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c > index 727453d..c0d66df 100644 > --- a/arch/powerpc/sysdev/fsl_soc.c > +++ b/arch/powerpc/sysdev/fsl_soc.c > @@ -320,21 +320,26 @@ static struct i2c_driver_device i2c_devices[] > __initdata =

[PATCH v2] powerpc: add setmaskedbits macros

2007-08-15 Thread Timur Tabi
This patch adds the setmaskedbits_xxx() macros, which are used to set a multiple-bit bit pattern in a register. The macros include a mask, which zeros the respective bits before applying the value via a bitwise-OR. There are big-endian and little-endian versions for 8, 16, 32, and 64 bits. These

[PATCH] [POWERPC] Invalid semicolon after if statement

2007-08-15 Thread Ilpo Järvinen
A similar fix to netfilter from Eric Dumazet inspired me to look around a bit by using some grep/sed stuff as looking for this kind of bugs seemed easy to automate. This is one of them I found where it looks like this semicolon is not valid. Signed-off-by: Ilpo Järvinen <[EMAIL PROTECTED]> --- .

Re: [PATCH] powerpc: fix i2c device string format

2007-08-15 Thread Guennadi Liakhovetski
On Wed, 15 Aug 2007, Scott Wood wrote: > BTW, is there any reason this stuff is fsl_soc specific? I'd think > prom_parse.c (or better yet, drivers/of/ or drivers/i2c/, now that some OF > calls have been factored out) would be a better place. Minimal intrusion:-) Initially in your patch you added

Re: [PATCH] powerpc: fix i2c device string format

2007-08-15 Thread Stephen Rothwell
On Wed, 15 Aug 2007 21:15:03 +0200 (CEST) Guennadi Liakhovetski <[EMAIL PROTECTED]> wrote: > > diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c > index 727453d..c0d66df 100644 > --- a/arch/powerpc/sysdev/fsl_soc.c > +++ b/arch/powerpc/sysdev/fsl_soc.c > @@ -320,21 +320,26

[PATCH] [POWERPC] Remove some duplicate declarations from pmac.h

2007-08-15 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/powermac/pmac.h |4 1 files changed, 0 insertions(+), 4 deletions(-) -- Cheers, Stephen Rothwell[EMAIL PROTECTED] diff --git a/arch/powerpc/platforms/powermac/pmac.h b/arch/powerpc/plat

Re: [PATCH v2] powerpc: add setmaskedbits macros

2007-08-15 Thread Kumar Gala
On Aug 15, 2007, at 4:30 PM, Timur Tabi wrote: > This patch adds the setmaskedbits_xxx() macros, which are used to > set a > multiple-bit bit pattern in a register. The macros include a mask, > which > zeros the respective bits before applying the value via a bitwise-OR. > There are big-endi

Re: patch powerpc-fix-size-check-for-hugetlbfs.patch queued to -stable tree

2007-08-15 Thread David Gibson
[snip] > I have written a new test for the handling of misaligned addresses, > lengths and offsets for libhugetlbfs. With it I've verified that this > patch does correct a serious problem with length handling - without > the patch this new testcase causes an oops for me. It's simpler than > the '

Re: [PATCH v2] powerpc: add setmaskedbits macros

2007-08-15 Thread Michael Ellerman
On Wed, 2007-08-15 at 16:30 -0500, Timur Tabi wrote: > This patch adds the setmaskedbits_xxx() macros, which are used to set a > multiple-bit bit pattern in a register. The macros include a mask, which > zeros the respective bits before applying the value via a bitwise-OR. > There are big-endian a

Re: [PATCH] [POWERPC] tidy up CONFIG_PPC_MM_SLICES code

2007-08-15 Thread David Gibson
On Wed, Aug 15, 2007 at 04:51:18PM +1000, Stephen Rothwell wrote: > This removes some of the #ifdefs from .c files. > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> Acked-by: David Gibson <[EMAIL PROTECTED]> -- David Gibson| I'll have my music baroque, and my code dav

Re: [PATCH] [POWERPC] fix non HUGETLB_PAGE build warning

2007-08-15 Thread David Gibson
On Wed, Aug 15, 2007 at 04:33:55PM +1000, Stephen Rothwell wrote: > arch/powerpc/mm/mmu_context_64.c: In function 'init_new_context': > arch/powerpc/mm/mmu_context_64.c:31: warning: unused variable 'new_context' > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> Acked-by: David Gibson <[EMAI

[PATCH] [POWERPC] Fix section mismatch in pci code

2007-08-15 Thread Stephen Rothwell
Create a helper function (alloc_maybe_bootmem) that is marked __init_refok to limit the chances of mistakenly refferring to other __init routines. WARNING: vmlinux.o(.text+0x2a9c4): Section mismatch: reference to .init.text:.__alloc_bootmem (between '.update_dn_pci_info' and '.pci_dn_reconfig_no

Re: [Documentation] Page Table Layout diagrams

2007-08-15 Thread David Gibson
On Wed, Aug 08, 2007 at 01:47:45PM -0500, Adam Litke wrote: > Hello all. In an effort to understand how the page tables are laid out > across various architectures I put together some diagrams. I have > posted them on the linux-mm wiki: http://linux-mm.org/PageTableStructure > and I hope they wil

Re: [PATCH 3/4] PowerPC 440EPx: Sequoia bootwrapper

2007-08-15 Thread David Gibson
On Wed, Aug 15, 2007 at 04:22:58PM +0400, Valentine Barshak wrote: > David Gibson wrote: > > On Tue, Aug 14, 2007 at 10:53:55PM +0400, Valentine Barshak wrote: > >> Bootwrapper code for AMCC 440EPx Sequoia board. > >> The DDR2 Denali controller support has been moved to > >> arch/powerpc/boot/4xx.

Re: [PATCH 4/4] PowerPC 440EPx: Sequoia board support

2007-08-15 Thread David Gibson
On Wed, Aug 15, 2007 at 01:43:09PM -0500, Josh Boyer wrote: > On Wed, 15 Aug 2007 17:53:00 +0400 > Valentine Barshak <[EMAIL PROTECTED]> wrote: > > > David Gibson wrote: > > >> diff -ruN linux-2.6.orig/arch/powerpc/kernel/head_44x.S > > >> linux-2.6/arch/powerpc/kernel/head_44x.S > > >> --- linux