Re: [PATCH] Support for PCI Express reset type in EEH

2009-07-24 Thread Linas Vepstas
2009/7/24 Richard Lary : > Linas Vepstas wrote on 07/23/2009 07:44:33 AM: > >> 2009/7/15 Mike Mason : >> > By default, EEH does what's known as a "hot reset" during error recovery >> > of >> > a PCI Express device.  We've found a case where the device needs a >> > "fundamental reset" to recover pr

Re: [PATCH] Support for PCI Express reset type in EEH

2009-07-24 Thread Richard Lary
Linas Vepstas wrote on 07/23/2009 07:44:33 AM: > 2009/7/15 Mike Mason : > > By default, EEH does what's known as a "hot reset" during error recovery of > > a PCI Express device.  We've found a case where the device needs a > > "fundamental reset" to recover properly.  The current PCI error reco

[PATCH] sdhci: Get rid of "frequency too high" flood when using eSDHC

2009-07-24 Thread Anton Vorontsov
Since commit 8dfd0374be84793360db7fff2e635d2cd3bbcb21 ("MMC core: limit minimum initialization frequency to 400kHz") MMC core checks for minimum frequency, and that causes following messages flood when using eSDHC controllers: ... mmc0: Minimum clock frequency too high for identification mode

[PATCH 2/2] powerpc/83xx: Add eSDHC support for MPC837xE-RDB/WLAN boards

2009-07-24 Thread Anton Vorontsov
Actually, the support is already there, but it requires newer U-Boots (to fill-in clock-frequency, and setup pin multiplexing). Though, it appears that on RDB boards USBB pins aren't multiplexed between USB and eSDHC (unlike MDS boards, where USB and eSDHC share pctl and pwrfault pins). So, for R

[PATCH 1/2] powerpc/83xx: Add support for MPC8377E-WLAN boards

2009-07-24 Thread Anton Vorontsov
MPC8377E-WLAN are basically RDB boards except: - RAM extended to 512 MB; - NAND flash removed, NOR flash extended to 64 MB; - Vitesse VSC7385 5-port switch removed, RTL8211B PHY added; - Power management MCU removed; - PCI slot removed, another mini-PCI slot added (IRQ routing changed); - USB3300

Re: [PATCH] Add support for the ESTeem 195E (PPC405EP) SBC

2009-07-24 Thread Josh Boyer
On Fri, Jul 24, 2009 at 12:10:30PM -0400, Solomon Peachy wrote: >On Fri, Jul 24, 2009 at 11:59:48AM -0400, Josh Boyer wrote: >> Is this one different from the one you sent out yesterday? I plan to review >> this support soon, but now I'm slightly confused :) > >Crap, sorry -- I didn't see it show

Re: [PATCH] Add support for the ESTeem 195E (PPC405EP) SBC

2009-07-24 Thread Solomon Peachy
On Fri, Jul 24, 2009 at 11:59:48AM -0400, Josh Boyer wrote: > Is this one different from the one you sent out yesterday? I plan to review > this support soon, but now I'm slightly confused :) Crap, sorry -- I didn't see it show up in the mailing list archives so I thought it got dropped into the

Re: [PATCH] Add support for the ESTeem 195E (PPC405EP) SBC

2009-07-24 Thread Josh Boyer
On Fri, Jul 24, 2009 at 11:21:56AM -0400, Solomon Peachy wrote: >This patch adds support for the ESTeem 195E Hotfoot SBC. Is this one different from the one you sent out yesterday? I plan to review this support soon, but now I'm slightly confused :) josh _

[PATCH] Add support for the ESTeem 195E (PPC405EP) SBC

2009-07-24 Thread Solomon Peachy
This patch adds support for the ESTeem 195E Hotfoot SBC. I've been maintaining this out-of-tree for some time now for older kernels, but recently I ported it to the new unified powerpc tree with the intent of pushing it upstream. The 195E boards use ancient versions of u-boot and a slightly mangl

Re: BUG in dma-mapping.h:218 // MESH SCSI driver not working

2009-07-24 Thread Stef Simoens
Hello Ben, Thank you for your reply. > On Fri, 2009-07-24 at 00:18 +0200, Stef Simoens wrote: >> I tried the latest 2.6.31-rc3-git3 (without any other patch). >> However, I have the same behaviour as the patched 2.6.30 (so: no BUG, >> but the mesh_abort messages). > Would it be possible for you t

Re: [PATCH 0/5] Generic NVRAM support for large MMIO devices

2009-07-24 Thread Benjamin Herrenschmidt
> I'm not aware of a maintainer for the "generic nvram" driver. As > mentioned in my other email, I'm fairly confident that this driver > (/drivers/char/generic_nvram.c) is only used on PowerPC. I'm beginning > to enter what is for me uncharted territory :-) How should I proceed? > Are you hap

Re: [PATCH 0/5] Generic NVRAM support for large MMIO devices

2009-07-24 Thread Martyn Welch
Benjamin Herrenschmidt wrote: On Thu, 2009-07-02 at 17:12 +0100, Martyn Welch wrote: The following series allows the generic NVRAM driver to access MMIO based NVRAMs. In addition it enables support for NVRAMs of sizes differing from those found on PowerPC Macs (providing a safe fallback). Pat

[PATCH 20/20] powerpc: Remaining 64-bit Book3E support (v2)

2009-07-24 Thread Benjamin Herrenschmidt
This contains all the bits that didn't fit in previous patches :-) This includes the actual exception handlers assembly, the changes to the kernel entry, other misc bits and wiring it all up in Kconfig. Signed-off-by: Benjamin Herrenschmidt --- v2. Rebased due to changes in previous patches ar

[PATCH 19/20] powerpc/mm: Add support for SPARSEMEM_VMEMMAP on 64-bit Book3E

2009-07-24 Thread Benjamin Herrenschmidt
The base TLB support didn't include support for SPARSEMEM_VMEMMAP, though we did carve out some virtual space for it, the necessary support code wasn't there. This implements it by using 16M pages for now, though the page size could easily be changed at runtime if necessary. Signed-off-by: Benjami

[PATCH 18/20] powerpc: Add TLB management code for 64-bit Book3E (v2)

2009-07-24 Thread Benjamin Herrenschmidt
This adds the TLB miss handler assembly, the low level TLB flush routines along with the necessary hook for dealing with our virtual page tables or indirect TLB entries that need to be flushes when PTE pages are freed. There is currently no support for hugetlbfs Signed-off-by: Benjamin Herrenschm

[PATCH 17/20] powerpc/mm: Move around mmu_gathers definition on 64-bit (v2)

2009-07-24 Thread Benjamin Herrenschmidt
The definition for the global structure mmu_gathers, used by generic code, is currently defined in multiple places not including anything used by 64-bit Book3E. This changes it by moving to one place common to all processors. Signed-off-by: Benjamin Herrenschmidt --- v2. Fix issues due to change

[PATCH 16/20] powerpc: Add PACA fields specific to 64-bit Book3E processors

2009-07-24 Thread Benjamin Herrenschmidt
This adds various fields in the PACA that are for use specifically by Book3E processors, such as exception save areas, current pgd pointer, special exceptions kernel stacks etc... Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/paca.h | 23 --- arch/po

[PATCH 15/20] powerpc: Add definitions used by exception handling on 64-bit Book3E (v2)

2009-07-24 Thread Benjamin Herrenschmidt
This adds various definitions and macros used by the exception and TLB miss handling on 64-bit BookE It also adds the definitions of the SPRGs used for various exception types Signed-off-by: Benjamin Herrenschmidt --- v2. Change __EXCEPTION_64E_H__ to _ASM_POWERPC_EXCEPTION_64E_H arch/powerpc

[PATCH 14/20] powerpc: Add memory management headers for new 64-bit BookE (v2)

2009-07-24 Thread Benjamin Herrenschmidt
This adds the PTE and pgtable format definitions, along with changes to the kernel memory map and other definitions related to implementing support for 64-bit Book3E. This also shields some asm-offset bits that are currently only relevant on 32-bit We also move the definition of the "linux" page s

[PATCH 13/20] powerpc: Add SPR definitions for new 64-bit BookE (v2)

2009-07-24 Thread Benjamin Herrenschmidt
This adds various SPRs defined on 64-bit BookE, along with changes to the definition of the base MSR values to add the values needed for 64-bit Book3E. Signed-off-by: Benjamin Herrenschmidt --- v2. Remove trailing whitespace and add comments about the EPCR bits Don't break 8xx due to missing

[PATCH 12/20] powerpc/mm: Rework & cleanup page table freeing code path

2009-07-24 Thread Benjamin Herrenschmidt
That patch used to just add a hook to page table flushing but pulling that string brought out a whole bunch of issues, so it now does that and more: - We now make the RCU batching of page freeing SMP only, as I believe it was intended initially. We make a few more things compile to nothing on !CO

[PATCH 11/20] powerpc: Move definitions of secondary CPU spinloop to header file (v2)

2009-07-24 Thread Benjamin Herrenschmidt
Those definitions are currently declared extern in the .c file where they are used, move them to a header file instead. Signed-off-by: Benjamin Herrenschmidt -- v2. Move more definitions to the header and update more call sites arch/powerpc/include/asm/smp.h|9 + arch/p

[PATCH 10/20] powerpc: Clean ifdef usage in copy_thread()

2009-07-24 Thread Benjamin Herrenschmidt
Currently, a single ifdef covers SLB related bits and more generic ppc64 related bits, split this in two separate ifdef's since 64-bit BookE will need one but not the other. Signed-off-by: Benjamin Herrenschmidt Acked-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/process.c |2 ++ 1 fi

[PATCH 9/20] powerpc/mm: Call mmu_context_init() from ppc64 (v2)

2009-07-24 Thread Benjamin Herrenschmidt
Our 64-bit hash context handling has no init function, but 64-bit Book3E will use the common mmu_context_nohash.c code which does, so define an empty inline mmu_context_init() for 64-bit server and call it from our 64-bit setup_arch() Signed-off-by: Benjamin Herrenschmidt Acked-by: Kumar Gala --

[PATCH 8/20] powerpc/mm: Make low level TLB flush ops on BookE take additional args (v2)

2009-07-24 Thread Benjamin Herrenschmidt
We need to pass down whether the page is direct or indirect and we'll need to pass the page size to _tlbil_va and _tlbivax_bcast We also add a new low level _tlbil_pid_noind() which does a TLB flush by PID but avoids flushing indirect entries if possible This implements those new prototypes but d

[PATCH 7/20] powerpc: Modify some ppc_asm.h macros to accomodate 64-bits Book3E

2009-07-24 Thread Benjamin Herrenschmidt
The way I intend to use tophys/tovirt on 64-bit BookE is different from the "trick" that we currently play for 32-bit BookE so change the condition of definition of these macros to make it so. Also, make sure we only use rfid and mtmsrd instead of rfi and mtmsr for 64-bit server processors, not al

[PATCH 6/20] powerpc/mm: Add support for early ioremap on non-hash 64-bit processors

2009-07-24 Thread Benjamin Herrenschmidt
This adds some code to do early ioremap's using page tables instead of bolting entries in the hash table. This will be used by the upcoming 64-bits BookE port. The patch also changes the test for early vs. late ioremap to use slab_is_available() instead of our old hackish mem_init_done. Signed-of

[PATCH 5/20] powerpc/mm: Add more bit definitions for Book3E MMU registers

2009-07-24 Thread Benjamin Herrenschmidt
This adds various additional bit definitions for various MMU related SPRs used on Book3E. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/mmu-book3e.h | 168 -- 1 file changed, 119 insertions(+), 49 deletions(-) --- linux-work.orig/arch/power

[PATCH 4/20] powerpc/mm: Add opcode definitions for tlbivax and tlbsrx.

2009-07-24 Thread Benjamin Herrenschmidt
This adds the opcode definitions to ppc-opcode.h for the two instructions tlbivax and tlbsrx. as defined by Book3E 2.06 Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/ppc-opcode.h |6 ++ 1 file changed, 6 insertions(+) --- linux-work.orig/arch/powerpc/include/asm/pp

[PATCH 3/20] powerpc/mm: Add HW threads support to no_hash TLB management

2009-07-24 Thread Benjamin Herrenschmidt
The current "no hash" MMU context management code is written with the assumption that one CPU == one TLB. This is not the case on implementations that support HW multithreading, where several linux CPUs can share the same TLB. This adds some basic support for this to our context management and our

[PATCH 2/20] powerpc/of: Remove useless register save/restore when calling OF back

2009-07-24 Thread Benjamin Herrenschmidt
enter_prom() used to save and restore registers such as CTR, XER etc.. which are volatile, or SRR0,1... which we don't care about. This removes a bunch of useless code and while at it turns an mtmsrd into an MTMSRD macro which will be useful to Book3E. Signed-off-by: Benjamin Herrenschmidt ---

[PATCH 1/20] powerpc/mm: Fix misplaced #endif in pgtable-ppc64-64k.h

2009-07-24 Thread Benjamin Herrenschmidt
A misplaced #endif causes more definitions than intended to be protected by #ifndef __ASSEMBLY__. This breaks upcoming 64-bit BookE support patch when using 64k pages. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/pgtable-ppc64-64k.h |4 +--- 1 file changed, 1 insertion

[PATCH 0/20] powerpc: base 64-bit Book3E processor support (v2)

2009-07-24 Thread Benjamin Herrenschmidt
Here is a series of patches that implement some basic support for 64-bit Book3E processors that comply to architecture 2.06. There is no specific processor announced yet. The patches make some shortcut which means they currently rely on an implementation that supports MMU v2 with support for the "

Re: BUG in dma-mapping.h:218 // MESH SCSI driver not working

2009-07-24 Thread Benjamin Herrenschmidt
On Fri, 2009-07-24 at 00:18 +0200, Stef Simoens wrote: > I tried the latest 2.6.31-rc3-git3 (without any other patch). > However, I have the same behaviour as the patched 2.6.30 (so: no BUG, > but the mesh_abort messages). > > Anybody knows what's going wrong, and how to fix it? I've read the >