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

2009-10-14 Thread Vishnu Suresh
Expose Talitos's XOR functionality to be used for RAID Parity calculation via the Async_tx layer. Thanks to Surender Kumar and Lee Nipper for their help in realising this driver Signed-off-by: Kim Phillips Signed-off-by: Dipen Dudhat Signed-off-by: Maneesh Gupta Signed-off-by: Vishnu Suresh -

[PATCH v0 1/2] DMA: fsldma: Disable DMA_INTERRUPT when Async_tx enabled

2009-10-14 Thread Vishnu Suresh
This patch disables the use of DMA_INTERRUPT capability with Async_tx The fsldma produces a null transfer with DMA_INTERRUPT capability when used with Async_tx. When RAID devices queue a transaction via Async_tx, this results in a hang. Signed-off-by: Vishnu Suresh --- drivers/dma/fsldma.c |

[git pull] Please pull powerpc.git merge branch

2009-10-14 Thread Benjamin Herrenschmidt
Hi Linus ! A tad late due mostly to me being on vacation :-) Here's some powerpc fixes for 2.6.32, not that much and nothing really big. The following changes since commit 80f506918fdaaca6b574ba931536a58ce015c7be: Linus Torvalds (1): Merge branch 'for-linus' of git://git.kernel.dk/linux

Re: I think I have 8xx working...

2009-10-14 Thread Benjamin Herrenschmidt
On Thu, 2009-10-15 at 07:42 +0200, Joakim Tjernlund wrote: > I didn't say that, did I? More like: > if I don't do tlbil_va at all I get a lot of extra/duplicate TLB > errors > for the same address. Adding the patch makes these go away. > I guess one could do tlbil_va unconditionally but I didn't >

[PATCH -mmotm -v2] Fix bitmap-introduce-bitmap_set-bitmap_clear-bitmap_find_next_zero_area. patch

2009-10-14 Thread Akinobu Mita
From: Akinobu Mita Subject: Fix bitmap-introduce-bitmap_set-bitmap_clear-bitmap_find_next_zero_area.patch - Rewrite bitmap_set and bitmap_clear Instead of setting or clearing for each bit. - Fix off-by-one errors in bitmap_find_next_zero_area This bug was derived from find_next_zero_area

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

2009-10-14 Thread Arun R Bharadwaj
* Andi Kleen [2009-10-14 09:18:38]: > > How about something like this.. > > If the arch does not enable CONFIG_CPU_IDLE, the cpuidle_idle_call > > which is called from cpu_idle() should call default_idle without > > involving the registering cpuidle steps. This should prevent bloating > > up of t

Re: linux booting fails on ppc440x5 with SRAM

2009-10-14 Thread Vineeth _
Hi, In arch/powerpc/kernel/head_44x.S file, it says it clears all the TLBs except the current working one. In our case we have mainly 3 TLBs for FLASH, SRAM and the UART. We have the TLB of 16MB of SRAM *which is our total memory*. So the TLBs that we create from our bootloader will be used for th

Re: I think I have 8xx working...

2009-10-14 Thread Joakim Tjernlund
Benjamin Herrenschmidt wrote on 15/10/2009 03:12:50: > > On Wed, 2009-10-14 at 18:08 -0700, Rex Feany wrote: > > Thus spake Benjamin Herrenschmidt (b...@kernel.crashing.org): > > > > > On Wed, 2009-10-14 at 17:41 -0700, Rex Feany wrote: > > > > The biggest problem for me turned out to be the MMU

Re: I think I have 8xx working...

2009-10-14 Thread Joakim Tjernlund
Rex Feany wrote on 15/10/2009 03:08:55: > > Thus spake Benjamin Herrenschmidt (b...@kernel.crashing.org): > > > On Wed, 2009-10-14 at 17:41 -0700, Rex Feany wrote: > > > The biggest problem for me turned out to be the MMU context IDs being > > > clamped to 32 when the 8xx only has 16. With this, t

powerpc problem with .data.page_aligned -> __page_aligned_data conversion

2009-10-14 Thread Benjamin Herrenschmidt
Hi folks ! So I have a problem ... :-) For some weird reason, our gcc until 4.3 (fixed in 4.3) had the weird idea that the alignment attribute should not be allowed to force an alignment greater than 32k. If attempted, it would warn -and- crop the alignment to 32k. As you can imagine, this doesn

[PATCH] powerpc perf events: Fix priority of MSR HV vs PR bits

2009-10-14 Thread Michael Neuling
The architecture defines that if MSR PR is set we are in problem state irrespective of the HV bit. This fixes perf events to reflect this. Also, on bare metal systems, samples taken in Linux will now be reported as kernel rather than hypervisor. Signed-off-by: Michael Neuling CC: pau...@samba

[PATCH] powerpc perf events: Fix priority of MSR HV vs PR bits

2009-10-14 Thread Michael Neuling
The architecture defines that if MSR PR is set we are in problem state irrespective of the HV bit. This fixes perf events to reflect this. Signed-off-by: Michael Neuling CC: pau...@samba.org --- Tested on PHYP and BML. This could go back into 31 too with s/event/counters/g. It only effects bar

Yenta + sata_sil + 2.6.30.8 fails because dma_ops==NULL

2009-10-14 Thread roger blofeld
Hi I have a powerbook G4 which has drives connected via a cardbus sata_sil. It is running fedora 11. It boots fine with 2.6.27.35-170.2.94.fc10.ppc, but with 2.6.30.8-64.fc11.ppc because of an error in the probe function of sata_sil. I have traced the problem to be the line in sata_sil.c funct

Re: I think I have 8xx working...

2009-10-14 Thread Benjamin Herrenschmidt
On Wed, 2009-10-14 at 18:08 -0700, Rex Feany wrote: > Thus spake Benjamin Herrenschmidt (b...@kernel.crashing.org): > > > On Wed, 2009-10-14 at 17:41 -0700, Rex Feany wrote: > > > The biggest problem for me turned out to be the MMU context IDs being > > > clamped to 32 when the 8xx only has 16. Wi

Re: I think I have 8xx working...

2009-10-14 Thread Rex Feany
Thus spake Benjamin Herrenschmidt (b...@kernel.crashing.org): > On Wed, 2009-10-14 at 17:41 -0700, Rex Feany wrote: > > The biggest problem for me turned out to be the MMU context IDs being > > clamped to 32 when the 8xx only has 16. With this, things are a bit more > > stable :) > > This is with

Re: I think I have 8xx working...

2009-10-14 Thread Benjamin Herrenschmidt
On Wed, 2009-10-14 at 17:41 -0700, Rex Feany wrote: > The biggest problem for me turned out to be the MMU context IDs being > clamped to 32 when the 8xx only has 16. With this, things are a bit more > stable :) This is with Joakim patches or without ? Ben. > diff --git a/arch/powerpc/mm/mmu_cont

[PATCH 2/2] of: move struct property to asm/of.h

2009-10-14 Thread Stephen Rothwell
Also find all users of struct property and make sure that they include linux/of.h. Signed-off-by: Stephen Rothwell --- arch/powerpc/include/asm/of.h|7 +++ arch/powerpc/include/asm/prom.h |7 +-- arch/powerpc/kernel/machine_kexec_64.c |1 +

[PATCH 1/2] of: create asm/of.h

2009-10-14 Thread Stephen Rothwell
This creates asm/of.h for powerpc and sparc and includes it from linux/of.h, it also moves the first trivial stuff there from asm/prom.h Signed-off-by: Stephen Rothwell --- arch/powerpc/include/asm/of.h | 23 +++ arch/powerpc/include/asm/prom.h |7 --- arch/sparc/

Re: [RFC PATCH 00/12] Merge common OpenFirmware device tree code

2009-10-14 Thread Stephen Rothwell
Hi Grant, On Tue, 06 Oct 2009 22:29:57 -0600 Grant Likely wrote: > > Well, I've got to start somewhere... > > So here goes. I've begun the work to merge and clean up the OF device > tree handling code and this is my first set of patches. Not fully > tested yet, but I'm getting them out to the

Re: I think I have 8xx working...

2009-10-14 Thread Benjamin Herrenschmidt
On Wed, 2009-10-14 at 17:41 -0700, Rex Feany wrote: > The biggest problem for me turned out to be the MMU context IDs being > clamped to 32 when the 8xx only has 16. With this, things are a bit more > stable :) Ugh ? The clamp went upstream ? That sucks... let me fix that asap Cheers, Ben. > dif

I think I have 8xx working...

2009-10-14 Thread Rex Feany
The biggest problem for me turned out to be the MMU context IDs being clamped to 32 when the 8xx only has 16. With this, things are a bit more stable :) diff --git a/arch/powerpc/mm/mmu_context_nohash.c b/arch/powerpc/mm/mmu_context_nohash.c index c2f93dc..15e00c5 100644 --- a/arch/powerpc/mm/mmu

Re: [PATCH 6/6] powerpc: Enable sparse irq_descs on powerpc

2009-10-14 Thread Grant Likely
On Wed, Oct 14, 2009 at 5:51 PM, Michael Ellerman wrote: > On Wed, 2009-10-14 at 12:44 -0600, Grant Likely wrote: >> Why not make sparse IRQs manditory for all platforms?  Is there a >> performance concern with doing so?  From a maintenance perspective, >> I'd rather see IRQ descs manged in one wa

Re: [PATCH 6/6] powerpc: Enable sparse irq_descs on powerpc

2009-10-14 Thread Michael Ellerman
On Wed, 2009-10-14 at 12:44 -0600, Grant Likely wrote: > On Tue, Oct 13, 2009 at 11:45 PM, Michael Ellerman > wrote: > > Defining CONFIG_SPARSE_IRQ enables generic code that gets rid of the > > static irq_desc array, and replaces it with an array of pointers to > > irq_descs. > > > > It also allow

Re: [PATCH 1/6] powerpc: Make NR_IRQS a CONFIG option

2009-10-14 Thread Michael Ellerman
On Wed, 2009-10-14 at 12:59 -0600, Grant Likely wrote: > On Tue, Oct 13, 2009 at 11:44 PM, Michael Ellerman > wrote: > > The irq_desc array consumes quite a lot of space, and for systems > > that don't need or can't have 512 irqs it's just wasted space. > > > > The first 16 are reserved for ISA, s

Re: linux-next: tree build failure

2009-10-14 Thread Hollis Blanchard
On Fri, 2009-10-09 at 12:14 -0700, Hollis Blanchard wrote: > Rusty's version of BUILD_BUG_ON() does indeed fix the build break, and > also exposes the bug in kvmppc_account_exit_stat(). So to recap: > > original: built but didn't work > Jan's: doesn't build > Rusty's: builds and works > > Where d

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Joakim Tjernlund
Benjamin Herrenschmidt wrote on 14/10/2009 23:52:10: > > On Wed, 2009-10-14 at 23:41 +0200, Joakim Tjernlund wrote: > > Benjamin Herrenschmidt wrote on 14/10/2009 > > 23:17:09: > > > > > > On Wed, 2009-10-14 at 16:14 -0500, Scott Wood wrote: > > > > > > > > I think the last working version was a

Re: [PATCH v2] net/fec_mpc52xx: Fix kernel panic on FEC error

2009-10-14 Thread David Miller
From: Grant Likely Date: Wed, 14 Oct 2009 11:43:43 -0600 > From: John Bonesio > > The MDIO bus cannot be accessed at interrupt context, but on an FEC > error, the fec_mpc52xx driver reset function also tries to reset the > PHY. Since the error is detected at IRQ context, and the PHY functions

Re: [PATCH] net: Fix OF platform drivers coldplug/hotplug when compiled as modules

2009-10-14 Thread David Miller
From: Anton Vorontsov Date: Thu, 8 Oct 2009 16:15:12 +0400 > Some OF platform drivers are missing module device tables, so they won't > load automatically on boot. This patch fixes the issue by adding proper > MODULE_DEVICE_TABLE() macros to the drivers. > > Signed-off-by: Anton Vorontsov Appl

[PATCH] hvc_console: returning 0 from put_chars is not an error

2009-10-14 Thread Timur Tabi
hvc_console_print() calls the HVC client driver's put_chars() callback to write some characters to the console. If the callback returns 0, that indicates that no characters were written (perhaps the output buffer is full), but hvc_console_print() treats that as an error and discards the rest of th

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Benjamin Herrenschmidt
On Wed, 2009-10-14 at 23:41 +0200, Joakim Tjernlund wrote: > Benjamin Herrenschmidt wrote on 14/10/2009 > 23:17:09: > > > > On Wed, 2009-10-14 at 16:14 -0500, Scott Wood wrote: > > > > > > I think the last working version was a little older than that -- and it's > > > quite > > > possible that t

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Joakim Tjernlund
Benjamin Herrenschmidt wrote on 14/10/2009 23:17:09: > > On Wed, 2009-10-14 at 16:14 -0500, Scott Wood wrote: > > > > I think the last working version was a little older than that -- and it's > > quite > > possible that there was underlying badness even earlier that just recently > > got > > exp

Re: Support for S29JL064 in MPC8272ADS?

2009-10-14 Thread Scott Wood
Roberto Guerra wrote: I've been learning how to modify the dts from http://www.mjmwired.net/kernel/Documentation/powerpc/dts-bindings/mtd-physmap.txt#49 The original mpc8272ads.dts represents four 8-bit JEDEC Sharp flash chips in 1 SIMM module: [snip]local...@f0010100 { co

Re: Support for S29JL064 in MPC8272ADS?

2009-10-14 Thread Roberto Guerra
On Fri, Oct 9, 2009 at 2:16 PM, Scott Wood wrote: > On Fri, Oct 09, 2009 at 01:59:58PM -0400, Roberto Guerra wrote: >> No. I did not. My FDT was simplified from the stock MPC8272ADS: >> => fdt list >> / { >>         model = "pq2fads"; >>         compatible = "fsl,pq2fads"; >>         #address-cell

Re: [PATCH] powerpc: Prevent unsigned wrap in htab_dt_scan_page_sizes()

2009-10-14 Thread Paul Mackerras
Roel Kluin writes: > Check to prevent unsigned wrap of size before subtraction. > > Signed-off-by: Roel Kluin > --- > Is this maybe better or are we certain that size can't wrap? Patch looks good, though while you're at it, you could add a space after the "while". Acked-by: Paul Mackerras ___

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Benjamin Herrenschmidt
On Wed, 2009-10-14 at 16:14 -0500, Scott Wood wrote: > > I think the last working version was a little older than that -- and it's > quite > possible that there was underlying badness even earlier that just recently > got > exposed. I think I want to just debug it and find out what's really g

Re: i2c-powermac fails

2009-10-14 Thread Benjamin Herrenschmidt
On Wed, 2009-10-14 at 23:02 +0200, Jean Delvare wrote: > Hi all, > > On Tue, 13 Oct 2009 11:49:48 +0200, Jean Delvare wrote: > > I2C bus being setup too fast sounds more likely. It might be worth > > adding an arbitrary delay after initialization, just to see if it > > helps. Not sure where though

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Scott Wood
Joakim Tjernlund wrote: With that, I don't see the hard lockup, but things get stuck during You needed both to loose the hard lockup? I would think it should be enough to revert the "various copy routines" stuff? No, but when I just reverted the patch and didn't change the TLB error handler,

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Joakim Tjernlund
Scott Wood wrote on 14/10/2009 22:22:25: > > Joakim Tjernlund wrote: > > Scott Wood wrote on 14/10/2009 21:23:02: > >> Joakim Tjernlund wrote: > >>> BTW, you could add a test and printk in do_page_fault on address > >>> 0x00f0. > >>> if that ever hits there is a problem with dcbX fixup. > >

Re: [PATCH] therm_adt746x: Don't access non-existing register

2009-10-14 Thread Tim Shepard
Jean, I tried one reboot with your patch, failed as usual. (Patch sounds like a good idea though.) -Tim Shepard s...@alum.mit.edu tree<11>$ git describe v2.6.31.1-6-g0b193bc tree<12>$ git diff HEAD^ HEAD diff --git a/drivers/macintosh/therm_adt

Re: i2c-powermac fails

2009-10-14 Thread Jean Delvare
Hi all, On Tue, 13 Oct 2009 11:49:48 +0200, Jean Delvare wrote: > I2C bus being setup too fast sounds more likely. It might be worth > adding an arbitrary delay after initialization, just to see if it > helps. Not sure where though, as I'm not familiar with the Powermac > initialization steps. May

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Scott Wood
Joakim Tjernlund wrote: Scott Wood wrote on 14/10/2009 21:23:02: Joakim Tjernlund wrote: BTW, you could add a test and printk in do_page_fault on address 0x00f0. if that ever hits there is a problem with dcbX fixup. It doesn't get any 0xf0 faults. FWIW, I'm not seeing the segfault any mo

Re: UBIFS problem on MPC8536DS

2009-10-14 Thread Felix Radensky
Hi, Scott Scott Wood wrote: Felix Radensky wrote: Yes, NAND and NOR are on the same local bus controller. Maybe powerpc folks can provide some insight here. Is it possible that simultaneous access to NOR and NAND on MPC8536 can result in NAND timeouts ? I've heard other reports of such probl

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Joakim Tjernlund
Scott Wood wrote on 14/10/2009 21:23:02: > Joakim Tjernlund wrote: > > BTW, you could add a test and printk in do_page_fault on address 0x00f0. > > if that ever hits there is a problem with dcbX fixup. > > It doesn't get any 0xf0 faults. > > FWIW, I'm not seeing the segfault any more, but I st

Re: [PATCH v2] net/fec_mpc52xx: Fix kernel panic on FEC error

2009-10-14 Thread Grant Likely
On Wed, Oct 14, 2009 at 1:11 PM, Wolfgang Grandegger wrote: > Grant Likely wrote: >> From: John Bonesio >> >> The MDIO bus cannot be accessed at interrupt context, but on an FEC >> error, the fec_mpc52xx driver reset function also tries to reset the >> PHY.  Since the error is detected at IRQ co

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Scott Wood
Joakim Tjernlund wrote: BTW, you could add a test and printk in do_page_fault on address 0x00f0. if that ever hits there is a problem with dcbX fixup. It doesn't get any 0xf0 faults. FWIW, I'm not seeing the segfault any more, but I still get the lockup. -Scott ___

Re: [PATCH v2] net/fec_mpc52xx: Fix kernel panic on FEC error

2009-10-14 Thread Wolfgang Grandegger
Grant Likely wrote: > From: John Bonesio > > The MDIO bus cannot be accessed at interrupt context, but on an FEC > error, the fec_mpc52xx driver reset function also tries to reset the > PHY. Since the error is detected at IRQ context, and the PHY functions > try to sleep, the kernel ends up pani

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Joakim Tjernlund
Scott Wood wrote on 14/10/2009 19:20:03: > > On Sun, Oct 11, 2009 at 06:35:08PM +0200, Joakim Tjernlund wrote: > > 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

Re: [PATCH 3/6] powerpc: Remove get_irq_desc()

2009-10-14 Thread Grant Likely
On Tue, Oct 13, 2009 at 11:44 PM, Michael Ellerman wrote: > get_irq_desc() is a powerpc-specific version of irq_to_desc(). That > is reason enough to remove it, but it also doesn't know about sparse > irq_desc support which irq_to_desc() does (when we enable it). > > Signed-off-by: Michael Ellerma

Re: [PATCH 1/6] powerpc: Make NR_IRQS a CONFIG option

2009-10-14 Thread Grant Likely
On Tue, Oct 13, 2009 at 11:44 PM, Michael Ellerman wrote: > The irq_desc array consumes quite a lot of space, and for systems > that don't need or can't have 512 irqs it's just wasted space. > > The first 16 are reserved for ISA, so the minimum of 32 is really > 16 - and no one has asked for more

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

2009-10-14 Thread Joakim Tjernlund
Scott Wood wrote on 14/10/2009 19:23:51: > > On Sun, Oct 11, 2009 at 06:35:04PM +0200, Joakim Tjernlund wrote: > > This is the latest batch of mu 8xx MMU/TLB rework. > > I think this is complete now and will relax with > > other work the next few days. I hope I can get some > > testing from Scott

Re: [PATCH 6/6] powerpc: Enable sparse irq_descs on powerpc

2009-10-14 Thread Grant Likely
On Tue, Oct 13, 2009 at 11:45 PM, Michael Ellerman wrote: > Defining CONFIG_SPARSE_IRQ enables generic code that gets rid of the > static irq_desc array, and replaces it with an array of pointers to > irq_descs. > > It also allows node local allocation of irq_descs, however we > currently don't ha

Re: [PATCH 5/6] powerpc: Rearrange and fix show_interrupts() for sparse irq_descs

2009-10-14 Thread Grant Likely
On Tue, Oct 13, 2009 at 11:45 PM, Michael Ellerman wrote: > Move the default case out of the if, ie. when we're just displaying > an irq. And consolidate all the odd cases at the top, ie. printing > the header and footer. > > And in the process cope with sparse irq_descs. > > Signed-off-by: Michae

Re: [PATCH 4/6] powerpc: Make virq_debug_show() cope with sparse irq_descs

2009-10-14 Thread Grant Likely
On Tue, Oct 13, 2009 at 11:44 PM, Michael Ellerman wrote: > Signed-off-by: Michael Ellerman Acked-by: Grant Likely > --- >  arch/powerpc/kernel/irq.c |    5 - >  1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c > index

Re: [PATCH 2/6] powerpc/pseries: Use irq_has_action() in eeh_disable_irq()

2009-10-14 Thread Grant Likely
On Tue, Oct 13, 2009 at 11:44 PM, Michael Ellerman wrote: > Rather than open-coding our own check, use irq_has_action() > to check if an irq has an action - ie. is "in use". > > irq_has_action() doesn't take the descriptor lock, but it > shouldn't matter - we're just using it as an indicator > tha

Re: MPC5200B and USB

2009-10-14 Thread Grant Likely
On Wed, Oct 14, 2009 at 6:57 AM, FIXED-TERM Seeh Thomas (BEG/EMS1) wrote: > Hello everyone, > > I'm working on a project to get USB ready on a MPC5200B based board. > On this board I'm not using Linux (but MQX), but my question is not related > to Linux. > It's more specific to USB and OHCI. > I w

Re: UBIFS problem on MPC8536DS

2009-10-14 Thread Scott Wood
Felix Radensky wrote: Yes, NAND and NOR are on the same local bus controller. Maybe powerpc folks can provide some insight here. Is it possible that simultaneous access to NOR and NAND on MPC8536 can result in NAND timeouts ? I've heard other reports of such problems with eLBC, but was unable

MPC5200B panics with high ethernet rx traffic

2009-10-14 Thread Asier Llano Palacios
Hi, I've found a very simple way to create a kernel panic, that's happening to our MPC5200B based boards. The issue was that when our boards received a burst of ethernet packets had a kernel panic. It does also happen to a lite5200b evaluation board, and it is really simple to reproduce: Step 1:

Re: UBIFS problem on MPC8536DS

2009-10-14 Thread Felix Radensky
Adrian Hunter wrote: Felix Radensky wrote: Adrian Hunter wrote: Felix Radensky wrote: Hi, I have a strange problem in linux-2.6.31 running on MPC8536DS board. It is 100% reproducible, by opening a 350MB tar file into ubifs volume on NAND flash, and starting erase of NOR flash partition righ

[PATCH v2] net/fec_mpc52xx: Fix kernel panic on FEC error

2009-10-14 Thread Grant Likely
From: John Bonesio The MDIO bus cannot be accessed at interrupt context, but on an FEC error, the fec_mpc52xx driver reset function also tries to reset the PHY. Since the error is detected at IRQ context, and the PHY functions try to sleep, the kernel ends up panicking. Resetting the PHY on an

[PATCH] net/fec_mpc52xx: Fix kernel panic on FEC error

2009-10-14 Thread Grant Likely
From: John Bonesio The MDIO bus cannot be accessed at interrupt context, but on an FEC error, the fec_mpc52xx driver reset function also tries to reset the PHY. Since the error is detected at IRQ context, and the PHY functions try to sleep, the kernel ends up panicking. Resetting the PHY on an

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

2009-10-14 Thread Scott Wood
On Sun, Oct 11, 2009 at 06:35:04PM +0200, Joakim Tjernlund wrote: > This is the latest batch of mu 8xx MMU/TLB rework. > I think this is complete now and will relax with > other work the next few days. I hope I can get some > testing from Scott and Rex during this time. I applied this stack plus "

Re: [PATCH 4/8] 8xx: Fixup DAR from buggy dcbX instructions.

2009-10-14 Thread Scott Wood
On Sun, Oct 11, 2009 at 06:35:08PM +0200, Joakim Tjernlund wrote: > 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). > --- > arch/powerpc/kernel/hea

Re: MPC5200B panics with high ethernet rx traffic

2009-10-14 Thread Grant Likely
On Wed, Oct 14, 2009 at 10:35 AM, Asier Llano Palacios wrote: > Hi, > > I've found a very simple way to create a kernel panic, that's happening > to our MPC5200B based boards. The issue was that when our boards > received a burst of ethernet packets had a kernel panic. This looks familiar. Look

Re: [PATCH 5/8] 8xx: dcbst sets store bit in DTLB error, workaround.

2009-10-14 Thread Scott Wood
On Sun, Oct 11, 2009 at 06:35:09PM +0200, Joakim Tjernlund wrote: > DARFix: /* Return from dcbx instruction bug workaround, r10 holds value > of DAR */ [snip] > + b DARfix /* Nope, go back to normal TLB processing */ arch/powerpc/kernel/head_8xx.S:577: undefined reference

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

2009-10-14 Thread Scott Wood
On Sun, Oct 11, 2009 at 06:35:06PM +0200, Joakim Tjernlund wrote: > + mfspr r11, SRR1 > + /* clear all error bits as TLB Miss > + * sets a few unconditionally > + */ > + rlwinm r11, r11, 0, 0x > + mtspr SRR1, r11 arch/powerpc/kernel/head_8xx.S:369: Error: unsuppor

Re: [PATCH 1/8] 8xx: invalidate non present TLBs

2009-10-14 Thread Scott Wood
On Sun, Oct 11, 2009 at 06:35:05PM +0200, Joakim Tjernlund wrote: > 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. > --- > arch/powerpc/mm/fault.c |8 +++- > 1 files changed, 7 insertions(+), 1 deletio

Re: UBIFS problem on MPC8536DS

2009-10-14 Thread Adrian Hunter
Felix Radensky wrote: Adrian Hunter wrote: Felix Radensky wrote: Hi, I have a strange problem in linux-2.6.31 running on MPC8536DS board. It is 100% reproducible, by opening a 350MB tar file into ubifs volume on NAND flash, and starting erase of NOR flash partition right after that. If I do

MPC5200B and USB

2009-10-14 Thread FIXED-TERM Seeh Thomas (BEG/EMS1)
Hello everyone, I'm working on a project to get USB ready on a MPC5200B based board. On this board I'm not using Linux (but MQX), but my question is not related to Linux. It's more specific to USB and OHCI. I will communicate with a Mass Storage Device and therefor the control transfer works fin

Re: UBIFS problem on MPC8536DS

2009-10-14 Thread Adrian Hunter
Felix Radensky wrote: Hi, I have a strange problem in linux-2.6.31 running on MPC8536DS board. It is 100% reproducible, by opening a 350MB tar file into ubifs volume on NAND flash, and starting erase of NOR flash partition right after that. If I don't start NOR erase, everything works fine. Al

[PATCH] therm_adt746x: Don't access non-existing register

2009-10-14 Thread Jean Delvare
The ADT746x don't have any register at sub-address 0, so better use an existing register for the initial test read. Signed-off-by: Jean Delvare Cc: Colin Leroy Cc: Benjamin Herrenschmidt Cc: Paul Mackerras --- Tim, I don't really expect this to solve your problem, but who knows... Care to give

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

2009-10-14 Thread Scott Wood
On Wed, Oct 14, 2009 at 09:41:33AM +0200, Richard Cochran wrote: > >-Original Message- > >From: linuxppc-dev-bounces On Behalf Of Scott Wood > >Sent: Wednesday, September 09, 2009 8:22 PM > >To: Roland Lezuo > >Cc: linuxppc-dev@lists.ozlabs.org > >Subject: Re: [PATCH] * mpc8313erdb.dts: Fix

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

2009-10-14 Thread Roel Kluin
size_t len cannot be less than 0. Signed-off-by: Roel Kluin --- >>> Or can this test be removed? >> >> I'd prefer just to remove the test. > > Yes, sounds good. If you meant only the left-hand part, here you go: diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/ce

Re: UBIFS problem on MPC8536DS

2009-10-14 Thread Felix Radensky
Adrian Hunter wrote: Felix Radensky wrote: Hi, I have a strange problem in linux-2.6.31 running on MPC8536DS board. It is 100% reproducible, by opening a 350MB tar file into ubifs volume on NAND flash, and starting erase of NOR flash partition right after that. If I don't start NOR erase, e

Re: UBIFS problem on MPC8536DS

2009-10-14 Thread Felix Radensky
Hi, Adrian Adrian Hunter wrote: Felix Radensky wrote: Hi, I have a strange problem in linux-2.6.31 running on MPC8536DS board. It is 100% reproducible, by opening a 350MB tar file into ubifs volume on NAND flash, and starting erase of NOR flash partition right after that. If I don't start

Re: [PATCH] Ftrace : fix function_graph tracer OOPS

2009-10-14 Thread Steven Rostedt
On Wed, 2009-10-14 at 17:15 +1100, Benjamin Herrenschmidt wrote: > On Wed, 2009-10-14 at 11:43 +0530, Sachin Sant wrote: > > > Tested both the patches. Works fine. > > Thanks ! > > Stephen, you merge these yourself or you need me to pick them up in > -powerpc ? > Ben, You can either pull from

[PATCH] powerpc: Prevent unsigned wrap in htab_dt_scan_page_sizes()

2009-10-14 Thread Roel Kluin
Check to prevent unsigned wrap of size before subtraction. Signed-off-by: Roel Kluin --- Is this maybe better or are we certain that size can't wrap? diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 1ade7eb..dd2d263 100644 --- a/arch/powerpc/mm/hash_utils_64.c

UBIFS problem on MPC8536DS

2009-10-14 Thread Felix Radensky
Hi, I have a strange problem in linux-2.6.31 running on MPC8536DS board. It is 100% reproducible, by opening a 350MB tar file into ubifs volume on NAND flash, and starting erase of NOR flash partition right after that. If I don't start NOR erase, everything works fine. Also, If I run sync afte

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

2009-10-14 Thread Richard Cochran
>-Original Message- >From: linuxppc-dev-bounces On Behalf Of Scott Wood >Sent: Wednesday, September 09, 2009 8:22 PM >To: Roland Lezuo >Cc: linuxppc-dev@lists.ozlabs.org >Subject: Re: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment. > >On Fri, Sep 04, 2009 at 12:31:25PM +0200, R

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

2009-10-14 Thread Andi Kleen
> How about something like this.. > If the arch does not enable CONFIG_CPU_IDLE, the cpuidle_idle_call > which is called from cpu_idle() should call default_idle without > involving the registering cpuidle steps. This should prevent bloating > up of the kernel for archs which dont want to use cpuid