Re: Please pull 'next' branch of 4xx tree

2009-11-20 Thread Benjamin Herrenschmidt
On Thu, 2009-11-19 at 08:49 -0600, Kumar Gala wrote: > On Nov 19, 2009, at 8:45 AM, Josh Boyer wrote: > > > On Wed, Nov 04, 2009 at 01:55:19PM -0500, Josh Boyer wrote: > >> Hi Ben, > >> > >> Please pull the next branch of the 4xx tree to get the following > >> commits. > >> > >> I have some othe

RE: [RFC] powerpc/mm: honor O_SYNC flag for memory map

2009-11-20 Thread Benjamin Herrenschmidt
On Fri, 2009-11-20 at 11:00 +0800, Li Yang-R58472 wrote: > Because there is no way to set mapped memory as cacheable if the > memory > is not managed by Linux kernel. While, it's not rare in real system > to > allocate some dedicated memory to a certain application which is not > managed by kernel

Re: [RFC] powerpc/mm: honor O_SYNC flag for memory map

2009-11-20 Thread Li Yang
On Fri, Nov 20, 2009 at 5:03 PM, Benjamin Herrenschmidt wrote: > On Fri, 2009-11-20 at 11:00 +0800, Li Yang-R58472 wrote: >> Because there is no way to set mapped memory as cacheable if the >> memory >> is not managed by Linux kernel.  While, it's not rare in real system >> to >> allocate some ded

[PATCH 00/10 v6] Fix 8xx MMU/TLB

2009-11-20 Thread Joakim Tjernlund
Yet again an iteration of the series. Rex & Scott, please test and signoff. Changes since last version: - Fix rlwimi insn(from Scott) Joakim Tjernlund (10): 8xx: invalidate non present TLBs 8xx: Update TLB asm so it behaves as linux mm expects. 8xx: Tag DAR with 0x00f0 to catch buggy instru

[PATCH 01/10] 8xx: invalidate non present TLBs

2009-11-20 Thread Joakim Tjernlund
8xx sometimes need to load a invalid/non-present TLBs in it DTLB asm handler. These must be invalidated separaly as linux mm don't. Signed-off-by: Joakim Tjernlund --- arch/powerpc/mm/fault.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/mm/fault.c

[PATCH 02/10] 8xx: Update TLB asm so it behaves as linux mm expects.

2009-11-20 Thread Joakim Tjernlund
Update the TLB asm to make proper use of _PAGE_DIRY and _PAGE_ACCESSED. Get rid of _PAGE_HWWRITE too. Pros: - I/D TLB Miss never needs to write to the linux pte. - _PAGE_ACCESSED is only set on TLB Error fixing accounting - _PAGE_DIRTY is mapped to 0x100, the changed bit, and is set directly

[PATCH 03/10] 8xx: Tag DAR with 0x00f0 to catch buggy instructions.

2009-11-20 Thread Joakim Tjernlund
dcbz, dcbf, dcbi, dcbst and icbi do not set DAR when they cause a DTLB Error. Dectect this by tagging DAR with 0x00f0 at every exception exit that modifies DAR. Test for DAR=0x00f0 in DataTLBError and bail to handle_page_fault(). Signed-off-by: Joakim Tjernlund --- arch/powerpc/kernel/head_8xx.S

[PATCH 04/10] 8xx: Always pin kernel instruction TLB

2009-11-20 Thread Joakim Tjernlund
Various kernel asm modifies SRR0/SRR1 just before executing a rfi. If such code crosses a page boundary you risk a TLB miss which will clobber SRR0/SRR1. Avoid this by always pinning kernel instruction TLB space. Signed-off-by: Joakim Tjernlund --- arch/powerpc/kernel/head_8xx.S |2 +- 1 fil

[PATCH 05/10] 8xx: Fixup DAR from buggy dcbX instructions.

2009-11-20 Thread Joakim Tjernlund
This is an assembler version to fixup DAR not being set by dcbX, icbi instructions. There are two versions, one uses selfmodifing code, the other uses a jump table but is much bigger(default). Signed-off-by: Joakim Tjernlund --- arch/powerpc/kernel/head_8xx.S | 147 +

[PATCH 06/10] 8xx: Add missing Guarded setting in DTLB Error.

2009-11-20 Thread Joakim Tjernlund
only DTLB Miss did set this bit, DTLB Error needs too otherwise the setting is lost when the page becomes dirty. Signed-off-by: Joakim Tjernlund --- arch/powerpc/kernel/head_8xx.S | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S

[PATCH 07/10] 8xx: Restore _PAGE_WRITETHRU

2009-11-20 Thread Joakim Tjernlund
8xx has not had WRITETHRU due to lack of bits in the pte. After the recent rewrite of the 8xx TLB code, there are two bits left. Use one of them to WRITETHRU. Perhaps use the last SW bit to PAGE_SPECIAL or PAGE_FILE? Signed-off-by: Joakim Tjernlund --- arch/powerpc/include/asm/pte-8xx.h |5

[PATCH 08/10] 8xx: start using dcbX instructions in various copy routines

2009-11-20 Thread Joakim Tjernlund
Now that 8xx can fixup dcbX instructions, start using them where possible like every other PowerPc arch do. Signed-off-by: Joakim Tjernlund --- arch/powerpc/kernel/misc_32.S | 18 -- arch/powerpc/lib/copy_32.S| 24 2 files changed, 0 insertions(+)

[PATCH 09/10] 8xx: Remove DIRTY pte handling in DTLB Error.

2009-11-20 Thread Joakim Tjernlund
There is no need to do set the DIRTY bit directly in DTLB Error. Trap to do_page_fault() and let the generic MM code do the work. Signed-off-by: Joakim Tjernlund --- arch/powerpc/kernel/head_8xx.S | 96 1 files changed, 0 insertions(+), 96 deletions(-)

[PATCH 10/10] 8xx: DTLB Miss cleanup

2009-11-20 Thread Joakim Tjernlund
Use symbolic constant for PRESENT and avoid branching. Signed-off-by: Joakim Tjernlund --- arch/powerpc/kernel/head_8xx.S | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index 36af721..ce327

Re: [PATCH] ppc440spe-adma: adds updated ppc440spe adma driver

2009-11-20 Thread Josh Boyer
On Tue, Nov 17, 2009 at 03:17:05PM +0100, Anatolij Gustschin wrote: >This patch adds new version of the PPC440SPe ADMA driver. > >Signed-off-by: Anatolij Gustschin The driver author is listed as Yuri Tikhonov . Shouldn't this include a sign-off from Yuri, or perhaps even a From? >Before applyin

[PATCH 0/4 v2] Merge OF dynamic patches

2009-11-20 Thread Nathan Fontenot
This set of patches merges the common dynamic device tree updating routines of_attach_node() and of_detach_node() to drivers/of/of_dynamic.c. Built and tested on powerpc, I have no access to build/test this on microblaze. -Nathan Fontenot --- 1/4 - Merge of_attach_node 2/4 - Merge of_detach_nod

[PATCH 1/4 v2] Merge of_attach_node

2009-11-20 Thread Nathan Fontenot
Merge the common of_attach_node() routine from powerpc and microblaze to drivers/of/of_dynamic.c Signed-off-by: Nathan Fontenot --- arch/microblaze/include/asm/prom.h |1 - arch/microblaze/kernel/prom.c | 15 --- arch/powerpc/include/asm/prom.h|1 - arch/powerpc/kern

[PATCH 2/4 v2] Merge of_detach_node

2009-11-20 Thread Nathan Fontenot
Merge the common of_detach_node() from powerpc and microblaze into the common drivers/of/of_dynamic.c Signed-off-by: Nathan Fontenot --- arch/microblaze/include/asm/prom.h |3 -- arch/microblaze/kernel/prom.c | 44 - arch/powerpc/include/asm/prom.h

[PATCH 3/4 v2] Makefile and Kconfig updates

2009-11-20 Thread Nathan Fontenot
Update the Kconfig and Makefile files for drivers/of, powerpc and microblaze to properly configure for CONFIG_OF_DYNAMIC to build the of_dynamic code. Signed-off-by: Nathan Fontenot --- arch/microblaze/Kconfig |1 + arch/powerpc/Kconfig|1 + drivers/of/Kconfig |4 drivers

[PATCH 4/4 v2] Include of_dynamic.h in pseries/reconfig.c

2009-11-20 Thread Nathan Fontenot
Include the newly created linux/of_dynamic.h to pick up the of_[attach,detach]_node declarations. Signed-off-by: Nathan Fontenot --- arch/powerpc/platforms/pseries/reconfig.c |1 + 1 file changed, 1 insertion(+) Index: test-devicetree/arch/powerpc/platforms/pseries/reconfig.c =

Re: [patch 3/3] [v2] powerpc: make the CMM memory hotplug aware

2009-11-20 Thread Robert Jennings
* Andrew Morton (a...@linux-foundation.org) wrote: > On Wed, 18 Nov 2009 12:59:08 -0600 > Robert Jennings wrote: > > > The Collaborative Memory Manager (CMM) module allocates individual pages > > over time that are not migratable. On a long running system this can > > severely impact the ability

Re: [PATCH/RFC] Booting Xilinx ML510 board using SystemACE

2009-11-20 Thread Grant Likely
On Thu, Nov 19, 2009 at 10:32 AM, Stephen Neuendorffer wrote: >> Of course, one obvious thing that must be done is move this code out > of >> arch/powerpc/platforms/44x/virtex.c and into (e.g.) >> arch/powerpc/kernel/setup-common.c, and add some >> "set_machine_restart_function" wrapper to access

Re: [PATCH v3 3/3] powerpc/fsl: 85xx: add cache-sram support

2009-11-20 Thread Scott Wood
On Thu, Nov 19, 2009 at 11:45:32PM -0700, Mahajan Vivek-B08308 wrote: > > I really don't like setting the physical address this way, > > can we not do this via the device tree? > > Cache-sram does not have any device tree entry since it is not a > hardware as such. Putting it under chosen can be

Re: [PATCH 00/10 v6] Fix 8xx MMU/TLB

2009-11-20 Thread Rex Feany
Thus spake Joakim Tjernlund (joakim.tjernl...@transmode.se): > Yet again an iteration of the series. > Rex & Scott, please test and signoff. > Changes since last version: > - Fix rlwimi insn(from Scott) Hi Joakim, Things look much better with this patch set, I see none of the random crashes tha

Re: [RFC PATCH 1/5] Rework OpenFirmware GPIO handling

2009-11-20 Thread Grant Likely
On Tue, Nov 17, 2009 at 8:42 AM, Dmitry Eremin-Solenikov wrote: > This patch improves OF GPIO bindings so, that most non-OF-specific gpio > controllers don't need to call any of OF binding function: > > 0) Move of_gpio_chip into main gpio_chip structure. > 1) Call of_gpio_init/destroy from gpiochi

Re: [RFC PATCH 1/5] Rework OpenFirmware GPIO handling

2009-11-20 Thread Grant Likely
On Fri, Nov 20, 2009 at 1:37 PM, Grant Likely wrote: > On Tue, Nov 17, 2009 at 8:42 AM, Dmitry Eremin-Solenikov > wrote: >> This patch improves OF GPIO bindings so, that most non-OF-specific gpio >> controllers don't need to call any of OF binding function: >> >> 0) Move of_gpio_chip into main gp

[PATCH] powerpc/p4080: Add basic support for p4080ds platform

2009-11-20 Thread Kumar Gala
Add basic support for the P4080 DS reference board. None of the data path devices (ethernet, crypto, pme) are support at this time. Signed-off-by: Kumar Gala --- arch/powerpc/boot/dts/p4080ds.dts| 554 ++ arch/powerpc/platforms/85xx/Kconfig | 12 + ar

Re: [PATCH 0/4 v2] Merge OF dynamic patches

2009-11-20 Thread Grant Likely
On Fri, Nov 20, 2009 at 8:01 AM, Nathan Fontenot wrote: > This set of patches merges the common dynamic device tree > updating routines of_attach_node() and of_detach_node() to > drivers/of/of_dynamic.c. > > Built and tested on powerpc, I have no access to build/test > this on microblaze. Heh. A

Re: [PATCH] spi/mpc52xx-spi: cleanups

2009-11-20 Thread Grant Likely
On Wed, Nov 18, 2009 at 2:58 AM, Wolfram Sang wrote: >> > -           rc |= request_irq(ms->irq1, mpc52xx_spi_irq, >> > IRQF_SAMPLE_RANDOM, >> > +           rc |= request_irq(ms->irq1, mpc52xx_spi_irq, 0, >> >                               "mpc5200-spi-spiF", ms); >> >> The "spiF" here is probabl

Re: Bug in drivers/serial/of_serial.c?

2009-11-20 Thread Grant Likely
[fixed top-posting nonsense :-) ] On Thu, Nov 19, 2009 at 10:22 AM, Stephen Neuendorffer wrote: >> diff --git a/drivers/serial/of_serial.c b/drivers/serial/of_serial.c >> index 02406ba..241be77 100644 >> --- a/drivers/serial/of_serial.c >> +++ b/drivers/serial/of_serial.c >> @@ -161,7 +161,9 @@

Re: Bug in drivers/serial/of_serial.c?

2009-11-20 Thread Grant Likely
On Thu, Nov 19, 2009 at 10:42 AM, Stephen Neuendorffer wrote: > > >> -Original Message- >> From: linuxppc-dev-bounces+stephen=neuendorffer.n...@lists.ozlabs.org > [mailto:linuxppc-dev- >> bounces+stephen=neuendorffer.n...@lists.ozlabs.org] On Behalf Of Arnd > Bergmann >> Sent: Thursday, No

Re: [Q/RFC] mpc52xx gpt api

2009-11-20 Thread Grant Likely
On Sun, Nov 15, 2009 at 10:17 AM, Albrecht Dreß wrote: > Hi all, > > I tried to use a '5200B internal timer for a very simple task - as pwm to > make a led blink, but apparently the current gpt implementation from Grant's > tree does only support internal (cpu timer) modes which do not use the

RE: Bug in drivers/serial/of_serial.c?

2009-11-20 Thread John Linn
> -Original Message- > From: glik...@secretlab.ca [mailto:glik...@secretlab.ca] On Behalf Of Grant > Likely > Sent: Friday, November 20, 2009 2:58 PM > To: Stephen Neuendorffer > Cc: Arnd Bergmann; John Linn; Alon Ziv; linuxppc-dev@lists.ozlabs.org > Subject: Re: Bug in drivers/serial/of_

Re: Bug in drivers/serial/of_serial.c?

2009-11-20 Thread Grant Likely
On Fri, Nov 20, 2009 at 3:11 PM, John Linn wrote: > >> -Original Message- >> From: glik...@secretlab.ca [mailto:glik...@secretlab.ca] On Behalf Of Grant >> Likely >> Sent: Friday, November 20, 2009 2:58 PM >> To: Stephen Neuendorffer >> Cc: Arnd Bergmann; John Linn; Alon Ziv; linuxppc-dev

Re: Fw: Help with SPI node

2009-11-20 Thread Grant Likely
On Mon, Nov 9, 2009 at 8:36 PM, Ravi Shekhar wrote: > > >  I'm attempting to get SPI to work on my embedded design >  that is based on the mpc8313erbd reference board wiht a >  2.6.27 kernel. Are you able to use a more recent kernel? A lot of work has gone into SPI drivers in the last 5 releases