powerpc "next" branch update

2009-10-29 Thread Benjamin Herrenschmidt
Hoy hoy ! It's late, I know, but finally here's a first batch of patches in powerpc "next" branch that I pushed out today. Hopefully more to come as I start pulling from Kumar, Grant, etc... Cheers, Ben. Alexey Dobriyan (1): Convert /proc/device-tree/ to seq_file Anton Vorontsov (2):

[PATCH] powerpc/8xx: Fix build breakage with sparse irq changes

2009-10-29 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- Sticking that on top of my -next branch diff --git a/arch/powerpc/platforms/8xx/m8xx_setup.c b/arch/powerpc/platforms/8xx/m8xx_setup.c index 385acfc..242954c 100644 --- a/arch/powerpc/platforms/8xx/m8xx_setup.c +++ b/arch/powerpc/platforms/8xx/m8xx_set

Re: [GIT PULL] perf_event/tracing/powerpc patches from Anton Blanchard

2009-10-29 Thread Benjamin Herrenschmidt
On Thu, 2009-10-29 at 07:55 +0100, Ingo Molnar wrote: > * Paul Mackerras wrote: > > > Here is a series of patches from Anton Blanchard that implement some > > nice tracing and perf_event features on powerpc. One of them is > > generic perf_event stuff (adding software events for alignment faul

Re: [4/6] Cleanup initialization of hugepages on powerpc

2009-10-29 Thread David Gibson
This patch got apply-broken by the fixes to the earlier patch in the series. Here's the fixed version. Cleanup initialization of hugepages on powerpc This patch simplifies the logic used to initialize hugepages on powerpc. The somewhat oddly named set_huge_psize() is renamed to add_huge_page_si

[PATCH v5 4/4] pseries: Serialize cpu hotplug operations during deactivate Vs deallocate

2009-10-29 Thread Gautham R Shenoy
Currently the cpu-allocation/deallocation process comprises of two steps: - Set the indicators and to update the device tree with DLPAR node information. - Online/offline the allocated/deallocated CPU. This is achieved by writing to the sysfs tunables "probe" during allocation and "release" dur

[PATCH v5 3/4] pseries: Add code to online/offline CPUs of a DLPAR node.

2009-10-29 Thread Gautham R Shenoy
Currently the cpu-allocation/deallocation on pSeries is a two step process from the Userspace. - Set the indicators and update the device tree by writing to the sysfs tunable "probe" during allocation and "release" during deallocation. - Online / Offline the CPUs of the allocated/would_be_deallo

[PATCH v5 2/4] pSeries: Add hooks to put the CPU into an appropriate offline state

2009-10-29 Thread Gautham R Shenoy
When a CPU is offlined on POWER currently, we call rtas_stop_self() and hand the CPU back to the resource pool. This path is used for DLPAR which will cause a change in the LPAR configuration which will be visible outside. This patch changes the default state a CPU is put into when it is offlined.

[PATCH v5 0/4] pseries: Add cede support for cpu-offline

2009-10-29 Thread Gautham R Shenoy
Hi, This is version 5 of patch series that provides a framework to choose the state a pseries CPU must be put to when it is offlined. Previous versions can be found here: Version 4: http://lkml.org/lkml/2009/10/9/59 Version 3: http://lkml.org/lkml/2009/9/15/164 Version 2: http://lkml.org/lkml/200

[PATCH v5 1/4] pSeries: extended_cede_processor() helper function.

2009-10-29 Thread Gautham R Shenoy
This patch provides an extended_cede_processor() helper function which takes the cede latency hint as an argument. This hint is to be passed on to the hypervisor to cede to the corresponding state on platforms which support it. Signed-off-by: Gautham R Shenoy Signed-off-by: Arun R Bharadwaj ---

Re: [2/6] Cleanup management of kmem_caches for pagetables

2009-10-29 Thread David Gibson
On Fri, Oct 30, 2009 at 02:39:22PM +1100, David Gibson wrote: > On Thu, Oct 29, 2009 at 01:27:18PM +1100, David Gibson wrote: > > Oops, there was one big, nasty, stupid bug in this patch. Corrected > > patch below. > > Ugh. And another, which broke compile on all 32-bit platforms. I'm > running

Re: [git pull] Please pull powerpc.git merge branch

2009-10-29 Thread Benjamin Herrenschmidt
On Thu, 2009-10-29 at 09:14 -0700, Linus Torvalds wrote: > > On Tue, 27 Oct 2009, Benjamin Herrenschmidt wrote: > > > > Kumar Gala (7): > > powerpc: Add a Book-3E 64-bit defconfig > > powerpc: Fix compile errors found by new ppc64e_defconfig > > powerpc: Limit hugetlbfs support

Re: [2/6] Cleanup management of kmem_caches for pagetables

2009-10-29 Thread David Gibson
On Thu, Oct 29, 2009 at 01:27:18PM +1100, David Gibson wrote: > Oops, there was one big, nasty, stupid bug in this patch. Corrected > patch below. Ugh. And another, which broke compile on all 32-bit platforms. I'm running out of brown paper bags :(. Cleanup management of kmem_caches for pageta

Re: [PATCH 0/8] Fix 8xx MMU/TLB

2009-10-29 Thread Joakim Tjernlund
Scott Wood wrote on 30/10/2009 01:12:28: > > On Sat, Oct 17, 2009 at 02:01:38PM +0200, Joakim Tjernlund wrote: > > Joakim Tjernlund/Transmode wrote on 17/10/2009 13:24:18: > > > > > > Rex Feany wrote on 16/10/2009 22:25:41: > > > > > > > > Thus spake Joakim Tjernlund (joakim.tjernl...@transmode.s

Re: [PATCH 0/8] Fix 8xx MMU/TLB

2009-10-29 Thread Scott Wood
On Sat, Oct 17, 2009 at 02:01:38PM +0200, Joakim Tjernlund wrote: > Joakim Tjernlund/Transmode wrote on 17/10/2009 13:24:18: > > > > Rex Feany wrote on 16/10/2009 22:25:41: > > > > > > Thus spake Joakim Tjernlund (joakim.tjernl...@transmode.se): > > > > > > > Right, it is the pte table walk that i

Re: Accessing flash directly from User Space [SOLVED]

2009-10-29 Thread Scott Wood
On Thu, Oct 29, 2009 at 10:00:28AM +0100, Joakim Tjernlund wrote: > > I have found the problem. It occurred to me in the shower (okay not really, > > but most good ideas happen there). > > > > What was happening is that I was in fact able to write to the correct > > registers. However, I would tr

Re: [git pull] Please pull powerpc.git merge branch

2009-10-29 Thread Benjamin Herrenschmidt
On Thu, 2009-10-29 at 09:14 -0700, Linus Torvalds wrote: > > On Tue, 27 Oct 2009, Benjamin Herrenschmidt wrote: > > > > Kumar Gala (7): > > powerpc: Add a Book-3E 64-bit defconfig > > powerpc: Fix compile errors found by new ppc64e_defconfig > > powerpc: Limit hugetlbfs support

Re: [PATCH v0 2/2] Crypto: Talitos: Support for Async_tx XOR offload

2009-10-29 Thread Dan Williams
On Wed, Oct 14, 2009 at 11:41 PM, Vishnu Suresh wrote: [..] > diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig > index b08403d..343e578 100644 > --- a/drivers/crypto/Kconfig > +++ b/drivers/crypto/Kconfig > @@ -192,6 +192,8 @@ config CRYPTO_DEV_TALITOS >        select CRYPTO_ALGAPI >  

ads5121ev and kernel linux-2.6.30

2009-10-29 Thread Angelo
Does anyone test freescale evaluation board ads5121ev with linux-2.6.30? I know that freescale had released a lot of patch for linux-2.6.24.6 and it works great for me. But testing 2.6.30 usb doesn't work. Thanks in advance, devel81 ___ Linuxpp

RE: Accessing flash directly from User Space

2009-10-29 Thread Jonathan Haws
> Looking through our notes and talking with the engineer > who was performing the tests, it was exactly that - MTD was waiting > for a signal that was produced differently than the hardware > ready signal. By simply polling the flash until the hardware > ready signal toggled we were able to get

Re: Accessing flash directly from User Space

2009-10-29 Thread Joerg Albert
Jonathan, On 10/28/2009 03:45 PM, Jonathan Haws wrote: > Looking through our notes and talking with the engineer > who was performing the tests, it was exactly that - MTD was waiting > for a signal that was produced differently than the hardware > ready signal. By simply polling the flash until

Re: [PATCH] BUILD_BUG_ON: make it handle more cases

2009-10-29 Thread Hollis Blanchard
On Tue, 2009-10-20 at 14:15 +1030, Rusty Russell wrote: > BUILD_BUG_ON used to use the optimizer to do code elimination or fail > at link time; it was changed to first the size of a negative array (a > nicer compile time error), then (in > 8c87df457cb58fe75b9b893007917cf8095660a0) to a bitfield. >

RE: Accessing flash directly from User Space [SOLVED]

2009-10-29 Thread Jonathan Haws
> > > Anyway, to make a long story short, I inserted an msync() after > each > > > assignment to the flash. This resolved my problem and I can now > program my flash. > > > > Ouch, this was news to me too. Calling msync() after every write > kills performance. > > We use mmap(/dev/mem) to access H

RE: Accessing flash directly from User Space [SOLVED]

2009-10-29 Thread Jonathan Haws
> Does O_DIRECT help? (you may need to define _GNU_SOURCE before > #include) Nope, O_DIRECT did not help - in fact it caused the application to crash. Why that is I am not sure, but it crashed. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.o

[PATCH] USB: fsl_udc_core: Fix kernel oops on module removal

2009-10-29 Thread Anton Vorontsov
fsl_udc_release() calls dma_free_coherent() with an inappropriate device passed to it, and since the device has no dma_ops, the following oops pops up: Kernel BUG at d103ce9c [verbose debug info unavailable] Oops: Exception in kernel mode, sig: 5 [#1] ... NIP [d103ce9c] fsl_udc_release+0x5

RE: Accessing flash directly from User Space

2009-10-29 Thread Jonathan Haws
> On Tue, Oct 27, 2009 at 04:52:40PM -0600, Jonathan Haws wrote: > > > Will the device respond to 0x1234 being written at offset zero? > You > > > generally have to poke these things pretty specifically in order > to > > > get > > > them to go into command mode. > > > > > > > It should because that

Re: Accessing flash directly from User Space

2009-10-29 Thread Scott Wood
On Tue, Oct 27, 2009 at 04:52:40PM -0600, Jonathan Haws wrote: > > Will the device respond to 0x1234 being written at offset zero? You > > generally have to poke these things pretty specifically in order to > > get > > them to go into command mode. > > > > It should because that is the first dat

Re: [git pull] Please pull powerpc.git merge branch

2009-10-29 Thread Linus Torvalds
On Tue, 27 Oct 2009, Benjamin Herrenschmidt wrote: > > Kumar Gala (7): > powerpc: Add a Book-3E 64-bit defconfig > powerpc: Fix compile errors found by new ppc64e_defconfig > powerpc: Limit hugetlbfs support to PPC64 Book-3S machines This is incredibly ugly. Why should the gen

RE: Accessing flash directly from User Space [SOLVED]

2009-10-29 Thread Kenneth Johansson
On Thu, 2009-10-29 at 10:00 +0100, Joakim Tjernlund wrote: > > > > > > On Tue, Oct 27, 2009 at 04:24:53PM -0600, Jonathan Haws wrote: > > > > >> >>> How can I get that pointer? Unfortunately I cannot simply > > > > use > > > > >> the > > > > >> >>> > > > > >> >> address of the flash. Is there som

RE: Accessing flash directly from User Space [SOLVED]

2009-10-29 Thread Joakim Tjernlund
> > > > > > > On Tue, Oct 27, 2009 at 04:24:53PM -0600, Jonathan Haws wrote: > > > > >> >>> How can I get that pointer? Unfortunately I cannot simply > > > > use > > > > >> the > > > > >> >>> > > > > >> >> address of the flash. Is there some magical function call > > > > that > > > > >> >> gives

RE: Accessing flash directly from User Space [SOLVED]

2009-10-29 Thread Joakim Tjernlund
> > > > On Tue, Oct 27, 2009 at 04:24:53PM -0600, Jonathan Haws wrote: > > > >> >>> How can I get that pointer? Unfortunately I cannot simply > > > use > > > >> the > > > >> >>> > > > >> >> address of the flash. Is there some magical function call > > > that > > > >> >> gives me access to that po

Re: [PATCH 1/7] bitmap: Introduce bitmap_set, bitmap_clear, bitmap_find_next_zero_area

2009-10-29 Thread Akinobu Mita
2009/10/29 Andrew Morton : > > Why were these patches resent?  What changed? > > Everybody who is going to review these patches has already reviewed > them and now they need to review them all again? I resent the patches because the iommu-helper change was not correct and I introduced serious bug