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

2009-10-12 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. --- Ben, here it is :) arch/powerpc/kernel/head_8xx.S | 95 1 files changed, 0 insertions(+), 95 deletions(-) diff --git

Re: [PATCH 6/8] 8xx: Add missing Guarded setting in DTLB Error.

2009-10-12 Thread Joakim Tjernlund
Benjamin Herrenschmidt b...@kernel.crashing.org wrote on 12/10/2009 07:46:14: On Mon, 2009-10-12 at 07:36 +0200, Joakim Tjernlund wrote: Benjamin Herrenschmidt b...@kernel.crashing.org wrote on 12/10/2009 00:44:56: On Mon, 2009-10-12 at 00:19 +0200, Joakim Tjernlund wrote: I hear

[PATCH] powerpc: Fix hypervisor TLB batching

2009-10-12 Thread Anton Blanchard
Profiling of a page fault scalability microbenchmark shows flush_hash_range is not calling the batch hpte invalidate hcall (H_BULK_REMOVE). It turns out we have a duplicate firmware feature for hcall-bulk and the current setup code stops after finding the first match. This meant we never batch

Re: [PATCH] powerpc: Fix hypervisor TLB batching

2009-10-12 Thread Benjamin Herrenschmidt
On Mon, 2009-10-12 at 18:47 +1100, Anton Blanchard wrote: Profiling of a page fault scalability microbenchmark shows flush_hash_range is not calling the batch hpte invalidate hcall (H_BULK_REMOVE). It turns out we have a duplicate firmware feature for hcall-bulk and the current setup code

Re: [v8 PATCH 0/8]: cpuidle: Cleanup cpuidle/ Introduce cpuidle to POWER

2009-10-12 Thread Balbir Singh
* Arun R B a...@linux.vnet.ibm.com [2009-10-08 15:18:28]: Hi Please consider this for inclusion into the testing tree. This patchset introduces cpuidle infrastructure to POWER, prototyping for pSeries, and also does a major refactoring of current x86 idle power management and a cleanup

Re: [PATCH] pasemi_mac: ethtool set settings support

2009-10-12 Thread David Miller
From: Olof Johansson o...@lixom.net Date: Tue, 6 Oct 2009 11:11:23 -0500 On Mon, Oct 05, 2009 at 05:31:24PM +0400, Valentine Barshak wrote: Add ethtool set settings to pasemi_mac_ethtool. Signed-off-by: Valentine Barshak vbars...@ru.mvista.com Acked-by: Olof Johansson o...@lixom.net

Re: [v8 PATCH 1/8]: cpuidle: cleanup drivers/cpuidle/cpuidle.c

2009-10-12 Thread Balbir Singh
* Arun R B a...@linux.vnet.ibm.com [2009-10-08 15:19:42]: * Arun R Bharadwaj a...@linux.vnet.ibm.com [2009-10-08 15:18:28]: This patch cleans up drivers/cpuidle/cpuidle.c Earlier cpuidle assumed pm_idle as the default idle loop. Break that assumption and make it more generic.

Linux seamless booting

2009-10-12 Thread Fortini Matteo
Hi all, we've been working on a PPC512x board booting with u-boot + linux 2.6.24.6, and one major issue for our application is boot time. Right now, we went down to less than 6s boot time (i.e. time from power off to launch of the user app), even with some drivers installed, i.e.: * CAN

Re: [PATCH 1/1] powerpc/40x: Add new PPC440EPx based board HCU5 of Netstal Maschinen

2009-10-12 Thread Josh Boyer
On Fri, Oct 09, 2009 at 10:11:05AM +0200, Niklaus Giger wrote: Adds support for a HCU5 PPC405EPx based board from Netstal Maschinen AG. Should be 440EPx, no? Also, the subject should probably be powerpc/44x. These are minor things, not really a big deal. Overall, nice patch. See below for a

Re: [PATCH] powerpc/40x: Cleanups for HCU4 board

2009-10-12 Thread Josh Boyer
On Fri, Oct 09, 2009 at 09:47:38PM +0200, Niklaus Giger wrote: - hcu4.dts: Added definitions for 2 CAN (Intel 82527) - hcu4.c: Some code for CPLD (special HW clock) and 2 CAN (Intel 82527) Same comments here as in the HCU5 patch. Drop the device_type for cpld and can, and use compatible

[PATCH] spufs: Fix test in spufs_switch_log_read()

2009-10-12 Thread Roel Kluin
size_t len cannot be less than 0. Signed-off-by: Roel Kluin roel.kl...@gmail.com --- Or can this test be removed? diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index 884e8bc..d4f304f 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++

Re: Linux seamless booting

2009-10-12 Thread Roberto Guerra
Did you try setenv bootdelay 0 in uboot? On Mon, Oct 12, 2009 at 7:07 AM, Fortini Matteo matteo.fort...@mta.it wrote: Hi all, we've been working on a PPC512x board booting with u-boot + linux 2.6.24.6, and one major issue for our application is boot time. Right now, we went down to less than

Re: linux booting fails on ppc440x5 with SRAM

2009-10-12 Thread Vineeth _
Hi Wolfgang, The link says about the initialization of the SDRAM; Does it applicable in our case, where we have SRAM on our board. Does the initialization means just clearing the memory in case of SRAM ? We tried clearing the memory before the operation which doesnt work too. We are creating a

Re: Linux seamless booting

2009-10-12 Thread Fortini Matteo
Yes, that's what we're currently using, but the problem is a little broader: I should answer to CAN messages in at most 100-200ms from powerup, and that can be done in u-boot. However, handing CAN transmission control over to Linux is quite complicated nowadays, since it would involve passing

[PATCH] of/platform: Implement support for dev_pm_ops

2009-10-12 Thread Anton Vorontsov
Linux power management subsystem supports vast amount of new PM callbacks that are crucial for proper suspend and hibernation support in drivers. This patch implements support for dev_pm_ops, preserving support for legacy callbacks. Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com ---

[PATCH 0/8] gianfar: Add support for hibernation

2009-10-12 Thread Anton Vorontsov
Hi all, Here are few patches that add support for hibernation for gianfar driver. Technically, we could just do gfar_close() and then gfar_enet_open() sequence to restore gianfar functionality after hibernation, but close/open does so many unneeded things (e.g. BDs buffers freeing and

[PATCH 1/8] gianfar: Some cleanups for startup_gfar()

2009-10-12 Thread Anton Vorontsov
We're going to split the startup_gfar() into 3 separate functions, so let's cleanup the code a little bit so that cosmetic changes won't distract attention from logical ones. - Remove needless casts (e.g. (struct sk_buff **)kmalloc()); - Turn 'unsigned long vaddr;' into 'void *vaddr', to avoid

[PATCH 2/8] gianfar: Simplify skb resources freeing code

2009-10-12 Thread Anton Vorontsov
Remove dma_free_coherent() from stop_gfar() and gfar_start() calls, place it into free_skb_resources(). That makes SKB resources management more understandable, plus free_skb_resources() will be used as a cleanup routine for gfar_alloc_skb_resources() that will be implemented soon. Signed-off-by:

[PATCH 3/8] gianfar: Don't needlessly set the wrap bit for the last RX BD

2009-10-12 Thread Anton Vorontsov
startup_gfar() sets the wrap bit for the last rxbd just after gfar_new_rxbdp() call, which is issued for all rxbds. And gfar_new_rxbdp() has the following check already: if (bdp == priv-rx_bd_base + priv-rx_ring_size - 1) lstatus |= BD_LFLAG(RXBD_WRAP); So we don't need

[PATCH 4/8] gianfar: Split allocation and initialization steps out of startup_gfar()

2009-10-12 Thread Anton Vorontsov
Two new functions implemented: gfar_alloc_skb_resources() and gfar_init_mac(). We'll use gfar_init_mac() for restoring after hibernation. The patch just moves the code around, there should be no functional changes. Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com ---

[PATCH 5/8] gianfar: Move tbase/rbase initialization to gfar_init_mac()

2009-10-12 Thread Anton Vorontsov
For hibernation we want to call gfar_init_mac() without need to free/allocate_skb_resources sequence, so save the DMA address into a private struct, and move tbase/rbase initialization to gfar_init_mac(). Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com --- drivers/net/gianfar.c | 17

[PATCH 6/8] gianfar: Factor out RX BDs initialization from gfar_new_rxbdp()

2009-10-12 Thread Anton Vorontsov
We want to just reinitialize RX BDs after hibernation, no need to map the skb-data again. So let's factor gfar_init_rxbdp() out of gfar_new_rxbdp(). Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com --- drivers/net/gianfar.c | 33 + 1 files changed, 21

[PATCH 8/8] gianfar: Add support for hibernation

2009-10-12 Thread Anton Vorontsov
Thanks to various cleanups and refactorings this is now straightforward: convert the gianfar driver to dev_pm_ops, plus add -restore() callback that will fully reinitialize MAC internal registers and BDs. Note that I kept legacy suspend/resume callbacks so that this patch doesn't depend on

Re: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-10-12 Thread Kim Phillips
On Wed, 9 Sep 2009 15:28:01 -0500 Kumar Gala ga...@kernel.crashing.org wrote: On Sep 9, 2009, at 1:22 PM, Scott Wood wrote: On Fri, Sep 04, 2009 at 12:31:25PM +0200, Roland Lezuo wrote: The following patch is needed to correctly assign the IRQs for the gianfar driver on the

[PATCH] powerpc/8xxx: enable IPsec ESP by default on mpc83xx/mpc85xx

2009-10-12 Thread Kim Phillips
Signed-off-by: Kim Phillips kim.phill...@freescale.com --- arch/powerpc/configs/mpc83xx_defconfig | 15 --- arch/powerpc/configs/mpc85xx_defconfig | 16 arch/powerpc/configs/mpc85xx_smp_defconfig | 16 3 files changed, 24 insertions(+),

[PATCH 1/8] powerpc/cpm: Remove SPI defines and spi structs

2009-10-12 Thread Anton Vorontsov
When cpm2.h included into spi_mpc8xxx driver, the SPI defines in the header conflict with defines in the driver. We don't need them in the header file, so remove them. Plus remove struct spi, we'll use a better version in the driver. Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com ---

[PATCH 2/8] powerpc/qecpm2: Avoid redefinitions in CPM2 and QE headers

2009-10-12 Thread Anton Vorontsov
struct mcc defined in both immap_qe.h and immap_cpm2.h, so they will conflic when included in a single file. The mcc struct is easy to deal with, since it isn't used in any driver (yet), so let's just rename QE version to qe_mcc. The ucb_ctlr is a bit trickier, since it is used by fsl_qe_udc

[RESEND][PATCH 0/8] spi_mpc8xxx: Add support for DMA transfers

2009-10-12 Thread Anton Vorontsov
Hello Kumar, There are Acks from Greg KH and David Brownell to pass the whole patchset via PowerPC tree. Can you please apply it? Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list

[PATCH 3/8] powerpc/cpm: Move CPMFCR_* defines into cpm.h

2009-10-12 Thread Anton Vorontsov
The bits are generic to CPM devices, so let's move them to the common header file, so drivers won't need to privately reintroduce another bunch of the same bits (as we can't include cpm2.h header together with cpm1.h). Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com ---

[PATCH 4/8] powerpc/qecpm: Implement static inline stubs for non-QE/CPM builds

2009-10-12 Thread Anton Vorontsov
This is needed to avoid ugly #ifdefs in drivers. Also update fsl_qe_udc driver so that now it doesn't define its own versions that cause build breakage when the generic stubs are used. Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com Acked-by: Greg Kroah-Hartman gre...@suse.de ---

[PATCH 5/8] spi_mpc8xxx: Fix uninitialized variable

2009-10-12 Thread Anton Vorontsov
This patch fixes the following warning: CC drivers/spi/spi_mpc8xxx.o spi_mpc8xxx.c: In function 'of_mpc8xxx_spi_probe': spi_mpc8xxx.c:681: warning: 'ret' may be used uninitialized in this function Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com Acked-by: David Brownell

[PATCH 6/8] spi_mpc8xxx: Factor out SPI mode change steps into a call

2009-10-12 Thread Anton Vorontsov
We'll add more steps soon, so get rid of the duplication. Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com Acked-by: David Brownell dbrown...@users.sourceforge.net --- drivers/spi/spi_mpc8xxx.c | 56 +++- 1 files changed, 24 insertions(+), 32

[PATCH 7/8] spi_mpc8xxx: Turn qe_mode into flags

2009-10-12 Thread Anton Vorontsov
Soon there will be more flags introduced in subsequent patches, so let's turn qe_mode into flags. Also introduce mpc8xxx_spi_strmode() and print current SPI mode. Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com Acked-by: David Brownell dbrown...@users.sourceforge.net ---

[PATCH 8/8] spi_mpc8xxx: Add support for QE DMA mode and CPM1/CPM2 chips

2009-10-12 Thread Anton Vorontsov
This patch adds QE buffer descriptors mode support for the spi_mpc8xxx driver, and as a side effect we now support CPM1 and CPM2 SPI controllers. That means that today we support almost all MPC SPI controllers: - MPC834x-style controllers (support PIO mode only); - CPM1 and CPM2 controllers

Re: [v8 PATCH 2/8]: cpuidle: implement a list based approach to register a set of idle routines.

2009-10-12 Thread Andi Kleen
Peter Zijlstra a.p.zijls...@chello.nl writes: So does it make sense to have a set of sets? Why not integrate them all into one set to be ruled by this governor thing? cpuidle is currently optional, that is why the two level hierarchy is there so that you can still have simple idle selection

Re: [PATCH 2/2][v3] powerpc: Make the CMM memory hotplug aware

2009-10-12 Thread Robert Jennings
* Benjamin Herrenschmidt (b...@kernel.crashing.org) wrote: On Fri, 2009-10-09 at 15:41 -0500, 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 to

[PATCH 2/2][v4] powerpc: Make the CMM memory hotplug aware

2009-10-12 Thread Robert Jennings
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 to find enough pages to support a hotplug memory remove operation. This patch adds a memory isolation notifier and a memory

Re: [PATCH] of/platform: Implement support for dev_pm_ops

2009-10-12 Thread Grant Likely
On Mon, Oct 12, 2009 at 8:50 AM, Anton Vorontsov avoront...@ru.mvista.com wrote: Linux power management subsystem supports vast amount of new PM callbacks that are crucial for proper suspend and hibernation support in drivers. This patch implements support for dev_pm_ops, preserving support

Re: [PATCH] of/platform: Implement support for dev_pm_ops

2009-10-12 Thread Anton Vorontsov
On Mon, Oct 12, 2009 at 03:09:53PM -0700, Grant Likely wrote: On Mon, Oct 12, 2009 at 8:50 AM, Anton Vorontsov avoront...@ru.mvista.com wrote: Linux power management subsystem supports vast amount of new PM callbacks that are crucial for proper suspend and hibernation support in drivers.

[Patch] powerpc: Fix memory leak in axon_msi.c

2009-10-12 Thread Michael Ellerman
cppcheck found a memory leak in axon_msi, if dcr_base or dcr_len are zero, we have already allocated msic, so we should free it in the error path. Signed-off-by: Eric Sesterhenn eric.sesterh...@lsexperts.de Acked-by: Michael Ellerman mich...@ellerman.id.au ---

Re: [Cbe-oss-dev] [PATCH] spufs: Fix test in spufs_switch_log_read()

2009-10-12 Thread Jeremy Kerr
Roel, Or can this test be removed? I'd prefer just to remove the test. Cheers, Jeremy ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 2/8] bitmap: Introduce bitmap_set, bitmap_clear, bitmap_find_next_zero_area

2009-10-12 Thread Akinobu Mita
On Fri, Oct 09, 2009 at 04:41:00PM -0700, Andrew Morton wrote: On Fri, 9 Oct 2009 17:29:15 +0900 Akinobu Mita akinobu.m...@gmail.com wrote: This introduces new bitmap functions: bitmap_set: Set specified bit area bitmap_clear: Clear specified bit area bitmap_find_next_zero_area:

Serial console under current qemu?

2009-10-12 Thread Rob Landley
Has anybody gotten a serial console to work under current qemu (ala the 0.11.0 release)? I've tried the 2.6.30 and 2.6.31.4 kernels, and in both cases both the bootloader and the kernel's boot messages write to the serial console just fine, but as soon as userspace tries to write to