Re: [RFC] Clock binding

2009-08-28 Thread David Gibson
has come up over the past couple of years. Maybe this time it will stick? There actually was one set up on power.org, for epapr bindings. I'm still digging around to try to relocate the address, though. -- David Gibson| I'll have my music baroque, and my code david

[0/3] Sanitize pagetable handling for hugepages

2009-09-04 Thread David Gibson
of the series. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson

[1/3] Make hpte_need_flush() correctly mask for multiple page sizes

2009-09-04 Thread David Gibson
alters it to mask based on the pagesize it has looked up itself, and removes the awkward masking code in the hugepage caller. Signed-off-by: David Gibson d...@au1.ibm.com --- --- arch/powerpc/mm/hugetlbpage.c |6 +- arch/powerpc/mm/tlb_hash64.c |8 +++- 2 files changed, 4

[3/3] Allow more flexible layouts for hugepage pagetables

2009-09-04 Thread David Gibson
will always be positive, and normal pointers always negative. While we're at it, we get rid of the confusing (and grep defeating) #defining of hugepte_shift to be the same thing as mmu_huge_psizes. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h |9 arch

[2/3] Cleanup management of kmem_caches for pagetables

2009-09-04 Thread David Gibson
, is passed around encoded in the same way as {PGD,PUD,PMD}_INDEX_SIZE; that is n where the pagetable contains 2^n pointers. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/pgtable-ppc64.h |1 --- arch/powerpc/include/asm/pgalloc-64.h| 43

[0/5] Assorted hugepage cleanups

2009-09-08 Thread David Gibson
these patches on a Power5+ machine, but they could certainly do with more testing. In particular, I don't have any suitable hardware to test 16G pages. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_

[1/5] Make hpte_need_flush() correctly mask for multiple page sizes

2009-09-08 Thread David Gibson
alters it to mask based on the pagesize it has looked up itself, and removes the awkward masking code in the hugepage caller. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/mm/hugetlbpage.c |6 +- arch/powerpc/mm/tlb_hash64.c |8 +++- 2 files changed, 4 insertions

[2/5] Cleanup management of kmem_caches for pagetables

2009-09-09 Thread David Gibson
, is passed around encoded in the same way as {PGD,PUD,PMD}_INDEX_SIZE; that is n where the pagetable contains 2^n pointers. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/pgalloc-64.h| 43 - arch/powerpc/include/asm/pgalloc.h | 25

[4/5] Cleanup initialization of hugepages on powerpc

2009-09-09 Thread David Gibson
need to pass the sizing information for the pagetable caches from set_huge_psize() into hugetlbpage_init() Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/mm/hugetlbpage.c | 106 +++--- 1 file changed, 49 insertions(+), 57 deletions(-) Index

[3/5] Allow more flexible layouts for hugepage pagetables

2009-09-09 Thread David Gibson
will always be positive, and normal pointers always negative. While we're at it, we get rid of the confusing (and grep defeating) #defining of hugepte_shift to be the same thing as mmu_huge_psizes. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h | 12 arch

[5/5] Split hash MMU specific hugepage code into a new file

2009-09-09 Thread David Gibson
This patch separates the parts of hugetlbpage.c which are inherently specific to the hash MMU into a new hugelbpage-hash64.c file. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h |3 arch/powerpc/mm/Makefile |5 - arch/powerpc/mm

Re: [PATCH] powerpc/mm: Cleanup handling of execute permission v2

2009-09-10 Thread David Gibson
permissions... Unless I missed something Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org Acked-by: David Gibson da...@gibson.dropbear.id.au -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you

Re: How to access DCR registers in powerpc440gx? Got err when use macro def in Linux kernel

2009-09-10 Thread David Gibson
. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson ___ Linuxppc-dev

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

2009-09-13 Thread David Gibson
On Mon, Sep 14, 2009 at 08:28:11AM +1000, Benjamin Herrenschmidt wrote: On Wed, 2009-09-09 at 15:59 +1000, David Gibson wrote: 6 files changed, 73 insertions(+), 108 deletions(-) That's a pretty good start :-) Isn't it :) +struct kmem_cache *pgtable_cache[PGF_SHIFT_MASK]; + +void

[0/5] Assorted hugepage cleanups (v2)

2009-09-15 Thread David Gibson
these patches on a Power5+ machine, but they could certainly do with more testing. In particular, I don't have any suitable hardware to test 16G pages. V2: Made the tweaks that BenH suggested to patch 2 of the original series. Some corresponding tweaks in patch 3 to match. -- David Gibson

[2/5] Cleanup management of kmem_caches for pagetables

2009-09-15 Thread David Gibson
, is passed around encoded in the same way as {PGD,PUD,PMD}_INDEX_SIZE; that is n where the pagetable contains 2^n pointers. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/pgalloc-64.h| 51 +++ arch/powerpc/include/asm/pgalloc.h | 30

[1/5] Make hpte_need_flush() correctly mask for multiple page sizes

2009-09-15 Thread David Gibson
alters it to mask based on the pagesize it has looked up itself, and removes the awkward masking code in the hugepage caller. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/mm/hugetlbpage.c |6 +- arch/powerpc/mm/tlb_hash64.c |8 +++- 2 files changed, 4 insertions

[4/5] Cleanup initialization of hugepages on powerpc

2009-09-15 Thread David Gibson
need to pass the sizing information for the pagetable caches from set_huge_psize() into hugetlbpage_init() Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/mm/hugetlbpage.c | 106 +++--- 1 file changed, 49 insertions(+), 57 deletions(-) Index

[3/5] Allow more flexible layouts for hugepage pagetables

2009-09-15 Thread David Gibson
will always be positive, and normal pointers always negative. While we're at it, we get rid of the confusing (and grep defeating) #defining of hugepte_shift to be the same thing as mmu_huge_psizes. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h | 12 arch

[5/5] Split hash MMU specific hugepage code into a new file

2009-09-15 Thread David Gibson
This patch separates the parts of hugetlbpage.c which are inherently specific to the hash MMU into a new hugelbpage-hash64.c file. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h |3 arch/powerpc/mm/Makefile |5 - arch/powerpc/mm

Re: powerpc: Move 64bit heap above 1TB on machines with 1TB segments

2009-09-22 Thread David Gibson
, dunno where that went. That was already the case as far as I remember. But it's just possible that changed when the general slice handling code came in, -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you

Re: [PATCH 2/2] powerpc/44x: Fix xmon single step on PowerPC 44x

2009-09-23 Thread David Gibson
setting IDM... Won't that be a problem if you have an external debugger connected ? Not in theory. It should be possible to set both IDM and EDM simultaneously. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you

[0/5] Assorted hugepage cleanups (v3)

2009-09-27 Thread David Gibson
-existent constant) in the CONFIG_SPU_FS_64K_LS path. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson

[2/5] Cleanup management of kmem_caches for pagetables

2009-09-27 Thread David Gibson
, is passed around encoded in the same way as {PGD,PUD,PMD}_INDEX_SIZE; that is n where the pagetable contains 2^n pointers. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/pgalloc-64.h| 51 ++--- arch/powerpc/include/asm/pgalloc.h | 30

[1/5] Make hpte_need_flush() correctly mask for multiple page sizes

2009-09-27 Thread David Gibson
alters it to mask based on the pagesize it has looked up itself, and removes the awkward masking code in the hugepage caller. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/mm/hugetlbpage.c |6 +- arch/powerpc/mm/tlb_hash64.c |8 +++- 2 files changed, 4 insertions

[3/5] Allow more flexible layouts for hugepage pagetables

2009-09-27 Thread David Gibson
will always be positive, and normal pointers always negative. While we're at it, we get rid of the confusing (and grep defeating) #defining of hugepte_shift to be the same thing as mmu_huge_psizes. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h | 12 arch

[4/5] Cleanup initialization of hugepages on powerpc

2009-09-27 Thread David Gibson
need to pass the sizing information for the pagetable caches from set_huge_psize() into hugetlbpage_init() Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/mm/hugetlbpage.c | 106 +++--- 1 file changed, 49 insertions(+), 57 deletions(-) Index

[5/5] Split hash MMU specific hugepage code into a new file

2009-09-27 Thread David Gibson
This patch separates the parts of hugetlbpage.c which are inherently specific to the hash MMU into a new hugelbpage-hash64.c file. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h |3 arch/powerpc/mm/Makefile |5 - arch/powerpc/mm

Re: [RFC PATCH 05/12] of: add common header for flattened device tree representation

2009-10-09 Thread David Gibson
the same things. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson

Re: [RFC PATCH 05/12] of: add common header for flattened device tree representation

2009-10-13 Thread David Gibson
On Fri, Oct 09, 2009 at 01:07:57AM -0600, Grant Likely wrote: On Fri, Oct 9, 2009 at 12:35 AM, David Gibson da...@gibson.dropbear.id.au wrote: On Tue, Oct 06, 2009 at 10:30:59PM -0600, Grant Likely wrote: Add a common header file for working with the flattened device tree data structure

[0/6] Assorted hugepage cleanups (v3)

2009-10-15 Thread David Gibson
in the creation of the pgrable caches. Slightly extend the initialization cleanup. Add a new patch cleaning up the hugepage pte accessor functions. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_

[2/6] Cleanup management of kmem_caches for pagetables

2009-10-15 Thread David Gibson
, is passed around encoded in the same way as {PGD,PUD,PMD}_INDEX_SIZE; that is n where the pagetable contains 2^n pointers. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/pgalloc-64.h| 51 ++--- arch/powerpc/include/asm/pgalloc.h | 30

[3/6] Allow more flexible layouts for hugepage pagetables

2009-10-15 Thread David Gibson
will always be positive, and normal pointers always negative. While we're at it, we get rid of the confusing (and grep defeating) #defining of hugepte_shift to be the same thing as mmu_huge_psizes. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h | 12 arch

[5/6] Split hash MMU specific hugepage code into a new file

2009-10-15 Thread David Gibson
This patch separates the parts of hugetlbpage.c which are inherently specific to the hash MMU into a new hugelbpage-hash64.c file. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h |3 arch/powerpc/mm/Makefile |5 - arch/powerpc/mm

[6/6] Bring hugepage PTE accessor functions back into sync with normal accessors

2009-10-15 Thread David Gibson
versions of the corresponding normal page functions. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h| 25 +++-- arch/powerpc/include/asm/mmu-hash64.h |1 + arch/powerpc/mm/hash_utils_64.c |2 +- arch/powerpc/mm/hugetlbpage

[4/6] Cleanup initialization of hugepages on powerpc

2009-10-15 Thread David Gibson
need to pass the sizing information for the pagetable caches from set_huge_psize() into hugetlbpage_init() Determination of the default huge page size is also moved from the hash code into the general hugepage code. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/page_64.h

[1/6] Make hpte_need_flush() correctly mask for multiple page sizes

2009-10-15 Thread David Gibson
alters it to mask based on the pagesize it has looked up itself, and removes the awkward masking code in the hugepage caller. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/mm/hugetlbpage.c |6 +- arch/powerpc/mm/tlb_hash64.c |8 +++- 2 files changed, 4 insertions

Re: Device Tree Corrupted after unflatten_device_tree()

2009-10-21 Thread David Gibson
the ethernet. There are some examples of this in arch/powerpc/boot already - look for ibm4xx_quiesce_eth(). -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_

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

2009-10-26 Thread David Gibson
On Tue, Oct 27, 2009 at 01:28:19PM +1100, Benjamin Herrenschmidt wrote: On Fri, 2009-10-16 at 16:22 +1100, David Gibson wrote: Minor nits... if you can respin today I should push it out to -next +void pgtable_cache_add(unsigned shift, void (*ctor)(void *)) +{ + char *name

Re: [3/6] Allow more flexible layouts for hugepage pagetables

2009-10-26 Thread David Gibson
On Tue, Oct 27, 2009 at 02:10:59PM +1100, Benjamin Herrenschmidt wrote: On Fri, 2009-10-16 at 16:22 +1100, David Gibson wrote: So far haven't seen anything blatantly wrong, in fact, this patch results in some nice cleanups. One thing tho... -#ifdef CONFIG_HUGETLB_PAGE

[0/6] Assorted hugepage cleanups (v4)

2009-10-26 Thread David Gibson
in the creation of the pgrable caches. Slightly extend the initialization cleanup. Add a new patch cleaning up the hugepage pte accessor functions. V4: Revisions based on BenH's comments, fix compile breakage for !CONFIG_HUGETLB_PAGE. -- David Gibson| I'll have my music baroque

[2/6] Cleanup management of kmem_caches for pagetables

2009-10-26 Thread David Gibson
, is passed around encoded in the same way as {PGD,PUD,PMD}_INDEX_SIZE; that is n where the pagetable contains 2^n pointers. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/pgalloc-64.h| 60 +++--- arch/powerpc/include/asm/pgalloc.h | 30

[1/6] Make hpte_need_flush() correctly mask for multiple page sizes

2009-10-26 Thread David Gibson
alters it to mask based on the pagesize it has looked up itself, and removes the awkward masking code in the hugepage caller. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/mm/hugetlbpage.c |6 +- arch/powerpc/mm/tlb_hash64.c |8 +++- 2 files changed, 4 insertions

[3/6] Allow more flexible layouts for hugepage pagetables

2009-10-26 Thread David Gibson
will always be positive, and normal pointers always negative. While we're at it, we get rid of the confusing (and grep defeating) #defining of hugepte_shift to be the same thing as mmu_huge_psizes. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h |1 arch

[4/6] Cleanup initialization of hugepages on powerpc

2009-10-26 Thread David Gibson
need to pass the sizing information for the pagetable caches from set_huge_psize() into hugetlbpage_init() Determination of the default huge page size is also moved from the hash code into the general hugepage code. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/page_64.h

[5/6] Split hash MMU specific hugepage code into a new file

2009-10-26 Thread David Gibson
This patch separates the parts of hugetlbpage.c which are inherently specific to the hash MMU into a new hugelbpage-hash64.c file. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h |3 arch/powerpc/mm/Makefile |5 - arch/powerpc/mm

[6/6] Bring hugepage PTE accessor functions back into sync with normal accessors

2009-10-26 Thread David Gibson
versions of the corresponding normal page functions. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h| 25 +++-- arch/powerpc/include/asm/mmu-hash64.h |1 + arch/powerpc/mm/hash_utils_64.c |2 +- arch/powerpc/mm/hugetlbpage

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

2009-10-28 Thread David Gibson
size. Thus sharing of caches between different types/levels of pagetables happens naturally. The pagetable size, where needed, is passed around encoded in the same way as {PGD,PUD,PMD}_INDEX_SIZE; that is n where the pagetable contains 2^n pointers. Signed-off-by: David Gibson d...@au1.ibm.com

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

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 out

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

2009-10-29 Thread David Gibson
size is also moved from the hash code into the general hugepage code. Signed-off-by: David Gibson d...@au1.ibm.com Index: working-2.6/arch/powerpc/mm/hugetlbpage.c === --- working-2.6.orig/arch/powerpc/mm/hugetlbpage.c 2009-10-30

Re: Filtering bits in set_pte_at()

2009-11-03 Thread David Gibson
, David fixed the problem in a local tree by making hugetlb_cow() re-read the PTE . Well, actually I have another cleanup patch in the queue which makes set_huge_pte_at() equal to set_pte_at() on powerpc, and I was using that on the tree where this problem became apparent. -- David Gibson

Re: [powerpc] Next tree Nov 2 : kernel BUG at mm/mmap.c:2135!

2009-11-04 Thread David Gibson
eb61ffd8 ---[ end trace ec052ac77a8e7cb4 ]--- Fixing recursive fault but reboot is needed! mm/mmap.c:2135 corresponds to : BUG_ON(mm-nr_ptes (FIRST_USER_ADDRESS+PMD_SIZE-1)PMD_SHIFT); -- David Gibson| I'll have my music baroque, and my code david

Allow overriding of CC in powerpc kernel build

2009-11-08 Thread David Gibson
additional hacks to make the VDSO compilation work. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Index: linux-a2/arch/powerpc/Makefile === --- linux-a2.orig/arch/powerpc/Makefile 2009-11-06 14:17:15.0 +1100 +++ linux-a2

Re: [powerpc] Next tree Nov 2 : kernel BUG at mm/mmap.c:2135!

2009-11-12 Thread David Gibson
On Thu, Nov 12, 2009 at 04:46:40PM +0530, Sachin Sant wrote: David Gibson wrote: On Wed, Nov 04, 2009 at 06:08:44PM +0530, Sachin Sant wrote: Sachin Sant wrote: Today's next tree failed to boot on a POWER 6 box with : [ cut here ] kernel BUG at mm/mmap.c:2135! Oops

Re: [powerpc] Next tree Nov 2 : kernel BUG at mm/mmap.c:2135!

2009-11-12 Thread David Gibson
On Fri, Nov 13, 2009 at 12:37:29PM +1100, David Gibson wrote: On Thu, Nov 12, 2009 at 04:46:40PM +0530, Sachin Sant wrote: David Gibson wrote: On Wed, Nov 04, 2009 at 06:08:44PM +0530, Sachin Sant wrote: Sachin Sant wrote: Today's next tree failed to boot on a POWER 6 box

Re: [powerpc] Next tree Nov 2 : kernel BUG at mm/mmap.c:2135!

2009-11-16 Thread David Gibson
On Fri, Nov 13, 2009 at 03:05:33PM +0530, Sachin Sant wrote: David Gibson wrote: so, could you try booting the kernel with the patch below, which should give a bit more information about the problem. Index: working-2.6/mm/mmap.c

Re: [powerpc] Next tree Nov 2 : kernel BUG at mm/mmap.c:2135!

2009-11-17 Thread David Gibson
On Tue, Nov 17, 2009 at 01:07:03PM +0530, Sachin Sant wrote: David Gibson wrote: Hrm. Ok. I am truly baffled. Well, below is a revised debug patch which I hope will shed some sort of light on things. I do also notice Thanks for the debug patch. I have attached the collected information

Re: DTS for PowerPC 440 based board

2009-11-21 Thread David Gibson
tree built in. In practice that will always be built from a dts, though it doesn't have to be in theory. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_

Fix bug in pagetable cache cleanup with CONFIG_PPC_SUBPAGE_PROT

2009-11-23 Thread David Gibson
(struct mm_struct *mm) { __destroy_context(mm-context.id); + subpage_prot_free(mm); mm-context.id = NO_CONTEXT; } -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_

Fix bug in gup_hugepd()

2009-11-23 Thread David Gibson
page path uses in levels above the lowest to truncate the ending address to something we know we'll match with. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Index: working-2.6/arch/powerpc/mm/hugetlbpage.c === --- working-2.6

Make the kernel accept ePAPR style phandle information

2009-11-25 Thread David Gibson
to be encoded in a property named simply phandle. This patch makes the kernel accept either form when unflattening the device tree. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Index: working-2.6/drivers/of/fdt.c === --- working

Re: Fix bug in pagetable cache cleanup with CONFIG_PPC_SUBPAGE_PROT (v2)

2009-11-26 Thread David Gibson
directory allocating scheme, this patch alters CONFIG_PPC_SUBPAGE_PROT to instead allocate its struct subpage_prot_table as part of the mm_context_t. Signed-off-by: David Gibson da...@gibson.dropbear.id.au Index: working-2.6/arch/powerpc/include/asm/mmu-hash64.h

Re: using different format for hugetlbfs

2009-12-07 Thread David Gibson
will start wasting memory, of course. If we move to a variable sized encoding, as Ben and I have discussed on a couple of occasions, I think we could do this though. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you

Re: using different format for hugetlbfs

2009-12-08 Thread David Gibson
On Tue, Dec 08, 2009 at 09:44:55AM -0600, Kumar Gala wrote: On Dec 7, 2009, at 8:28 PM, David Gibson wrote: On Mon, Dec 07, 2009 at 12:04:37PM +1100, Benjamin Herrenschmidt wrote: Even than, does that preclude the format I suggested? I'm assuming that pgd_t/pud_t/pmd_t are always

Re: [RFC:PATCH 01/03] powerpc: Extended ptrace interface

2009-12-10 Thread David Gibson
are trivial nits, so: Acked-by: David Gibson d...@au1.ibm.com [snip] +/* + * Trigger Type + */ +#define PPC_BREAKPOINT_TRIGGER_EXECUTE 0x1 +#define PPC_BREAKPOINT_TRIGGER_READ 0x2 +#define PPC_BREAKPOINT_TRIGGER_WRITE 0x4 +#define PPC_BREAKPOINT_TRIGGER_RW0x6 For a little extra

Re: [RFC:PATCH 02/03] powerpc: Add definitions for Debug Registers on BookE Platforms

2009-12-10 Thread David Gibson
-by: Torez Smith lnxto...@linux.vnet.ibm.com Signed-off-by: Dave Kleikamp sha...@linux.vnet.ibm.com As with patch 1/3, none of the comments below is anything that couldn't be fixed up after merging. So, Acked-by: David Gibson d...@au1.ibm.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc

Re: [RFC:PATCH 03/03] powerpc: Add support for BookE Debug Reg. traps, exceptions and ptrace

2009-12-10 Thread David Gibson
Durigan Junior sergi...@br.ibm.com Cc: David Gibson d...@au1.ibm.com Cc: linuxppc-dev list linuxppc-...@ozlabs.org --- arch/powerpc/include/asm/system.h |2 arch/powerpc/kernel/process.c | 109 - arch/powerpc/kernel/ptrace.c | 435

Re: [RFC:PATCH 02/03] powerpc: Add definitions for Debug Registers on BookE Platforms

2009-12-10 Thread David Gibson
and if we change our use of address spaces. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson

Re: [RFC:PATCH 02/03] powerpc: Add definitions for Debug Registers on BookE Platforms

2009-12-13 Thread David Gibson
On Fri, Dec 11, 2009 at 08:35:35AM -0600, Kumar Gala wrote: On Dec 10, 2009, at 9:28 PM, David Gibson wrote: On Thu, Dec 10, 2009 at 08:41:53PM -0600, Kumar Gala wrote: [snip] +#define DBCR1_USER_DEBUG (DBCR1_IAC12M | DBCR1_IAC34M) +#define DBCR1_BASE_REG_VALUE (DBCR1_IAC1US

Re: [POWERPC] add U-Boot bootcount driver.

2009-12-15 Thread David Gibson
on the mgsuvd board: bootco...@0x3eb0 { device_type = bootcount; No device_type. compatible = uboot,bootcount; reg = 0x3eb0 0x08; }; This area should also be in the flattened tree's reserved map. -- David Gibson

Fix stupid bug in subpge protection handling

2009-12-16 Thread David Gibson
of the callers. This patch fixes it, and replaces a void * with a typed pointer so that the compiler will warn on such an error in future. Signed-off-by: David Gibson d...@au1.ibm.com Index: working-2.6/arch/powerpc/mm/hash_utils_64.c

Re: Ebony DTS compile error

2009-01-26 Thread David Gibson
at the top. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson ___ Linuxppc

Re: [MPC8272ADS]Problem adding flash partitions inside the device tree

2009-02-12 Thread David Gibson
children of the node where they appear. Otherwise the default values apply (address-cells == 2, size-cells == 1), which are not right for your case. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_

Re: request_irq return errno 38

2009-02-12 Thread David Gibson
) and looked at other device drivers to see what they do. You don't need to directly read the device tree, the provided helper functions (irq_parse_and_map() and the like) will read the device tree for you. -- David Gibson| I'll have my music baroque, and my code david

Re: [PATCH 1/2] powerpc/86xx: Board support for GE Fanuc's PPC9A

2009-03-13 Thread David Gibson
the specific model of the SoC, before including simple-bus. device_type also doesn't really belong here, but it's possible you have to include it for compatibility with older u-boot versions. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au

Re: [PATCH v2 1/2] powerpc/86xx: Board support for GE Fanuc's PPC9A

2009-03-16 Thread David Gibson
; + #size-cells = 0; + compatible = fsl-i2c; This should list include a compatible string specific to the particular SoC model before the general name. -- David Gibson| I'll have my music baroque, and my code david

Re: [PATCH v2 1/2] powerpc/86xx: Board support for GE Fanuc's PPC9A

2009-03-17 Thread David Gibson
On Tue, Mar 17, 2009 at 09:28:53AM +, Martyn Welch wrote: David Gibson wrote: On Mon, Mar 16, 2009 at 10:32:18AM +, Martyn Welch wrote: Support for the PPC9A VME Single Board Computer from GE Fanuc (PowerPC MPC8641D). This is the basic board support for GE Fanuc's PPC9A, a 6U single

Re: [PATCH v3 1/2] powerpc/86xx: Board support for GE Fanuc's PPC9A

2009-03-18 Thread David Gibson
] + fl...@1,0 { + compatible = gef, ppc9a-paged-flash, cfi-flash; The space in the compatible string is probably not a good idea. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you

Re: [PATCH v2 2/2] powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes

2009-03-18 Thread David Gibson
of these, but they can be silently overriden by normal property assignments afterwards. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http

Re: powerpc/85xx: Add support for the socrates board (MPC8544)

2009-03-19 Thread David Gibson
{ + compatible = fujitsu,lime; This compat string looks slightly worryingly non-specific. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_

Re: Q: define i2c nodes in device tree?

2009-03-27 Thread David Gibson
,pca8575; device_type = gpio; There shouldn't be device_type here, though. reg = 0x20 1; }; -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_

Re: DTC sources move

2009-03-27 Thread David Gibson
On Fri, Mar 27, 2009 at 09:57:25AM -0600, Grant Likely wrote: On Fri, Mar 27, 2009 at 8:16 AM, Michal Simek mon...@monstr.eu wrote: Hi Ben, could you please move DTC to any generic location. I would like to use it for Microblaze cpu too. Michal, David Gibson is the one responsible

Move dtc and libfdt sources from arch/powerpc/boot to scripts/dtc

2009-03-30 Thread David Gibson
and libfdt from arch/powerpc into scripts, where it can be used by any architecture. The vast bulk of this patch is a literal move, the rest is adjusting the various Makefiles to use dtc and libfdt correctly from their new locations. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- arch

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-03-31 Thread David Gibson
/driver behaviour which is what this appears to be doing. There are exceptions, but you need to justify them. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_

Re: [PATCH 6/8] --- arch/powerpc/boot/dts/socrates.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)

2009-03-31 Thread David Gibson
*especially* shouldn't be doing that with no patch comment explaining why. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson

Re: using IRQ1 in mpc5121ads

2009-03-31 Thread David Gibson
here. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson ___ Linuxppc-dev

Re: [PATCH 6/8] --- arch/powerpc/boot/dts/socrates.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)

2009-04-01 Thread David Gibson
On Wed, Apr 01, 2009 at 09:31:34AM +0200, Wolfgang Grandegger wrote: Hi David, this patch went out by mistake, sorry. David Gibson wrote: On Tue, Mar 31, 2009 at 02:37:33PM +0200, Wolfgang Grandegger wrote: Index: linux-2.6/arch/powerpc/boot/dts/socrates.dts

Re: [PATCH 6/8] --- arch/powerpc/boot/dts/socrates.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)

2009-04-01 Thread David Gibson
On Wed, Apr 01, 2009 at 01:59:36PM +0200, Wolfgang Grandegger wrote: David Gibson wrote: On Wed, Apr 01, 2009 at 09:31:34AM +0200, Wolfgang Grandegger wrote: Hi David, this patch went out by mistake, sorry. David Gibson wrote: On Tue, Mar 31, 2009 at 02:37:33PM +0200, Wolfgang

Re: [PATCH 6/8] --- arch/powerpc/boot/dts/socrates.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)

2009-04-01 Thread David Gibson
On Wed, Apr 01, 2009 at 04:30:29PM +0400, Anton Vorontsov wrote: On Wed, Apr 01, 2009 at 10:09:55PM +1100, David Gibson wrote: On Wed, Apr 01, 2009 at 09:31:34AM +0200, Wolfgang Grandegger wrote: Hi David, this patch went out by mistake, sorry. David Gibson wrote: On Tue

Re: [PATCH 1/2] powerpc: i2c-mpc: preserve I2C clocking

2009-04-01 Thread David Gibson
On Wed, Apr 01, 2009 at 09:40:13AM +0200, Wolfgang Grandegger wrote: David Gibson wrote: On Tue, Mar 31, 2009 at 02:43:39PM +0200, Wolfgang Grandegger wrote: The I2c node property fsl,preserve-clocking allows to overtake the clock settings from the boot loader and avoids the hard-coded

Re: any place to mark various compatible strings as deprecated?

2009-04-08 Thread David Gibson
to dtc (although probably not for a couple of weeks when I return from vacation). -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http

Re: Example dts file

2009-04-17 Thread David Gibson
probe for devices. Your driver should know what devices are present based on the PCI vendor and device IDs. However, for onboard PCI devices it's often necessary to have a node giving at least the interrupt routing information, because this can't generally be probed by PCI. -- David Gibson

Re: [PATCH 2/5] powerpc: Add 36-bit device tree for mpc8641hpcn

2009-04-20 Thread David Gibson
= soc; + compatible = simple-bus; Uh, you definitely need something more specific in the compatible property before simple-bus. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_

Re: Move dtc and libfdt sources from arch/powerpc/boot to scripts/dtc

2009-04-20 Thread David Gibson
On Tue, Apr 07, 2009 at 03:17:29PM +1000, Paul Mackerras wrote: David Gibson writes: The vast bulk of this patch is a literal move, the rest is adjusting the various Makefiles to use dtc and libfdt correctly from their new locations. Did you test this with a separate object directory

[PATCH] Move dtc and libfdt sources from arch/powerpc/boot to scripts/dtc

2009-04-20 Thread David Gibson
and libfdt from arch/powerpc into scripts, where it can be used by any architecture. The vast bulk of this patch is a literal move, the rest is adjusting the various Makefiles to use dtc and libfdt correctly from their new locations. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- arch

Re: [PATCH 2/5] powerpc: Add 36-bit device tree for mpc8641hpcn

2009-04-21 Thread David Gibson
On Tue, Apr 21, 2009 at 10:33:34AM -0500, Becky Bruce wrote: On Apr 20, 2009, at 8:10 PM, David Gibson wrote: On Mon, Apr 20, 2009 at 11:26:47AM -0500, Becky Bruce wrote: The new dts places most of the devices in physical address space above 32-bits, which allows us to have more than 4GB

Re: [PATCH v2] powerpc/85xx: Add P2020DS board support

2009-04-21 Thread David Gibson
= soc; + compatible = simple-bus; If I understood the description correctly, this one doesn't have the excuse of being a copy of an already broken device tree. There needs to be a soc-variant specific string in the compatible property here. -- David Gibson| I'll

Re: removing get_immrbase()??

2009-04-22 Thread David Gibson
versions. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson ___ Linuxppc

Re: removing get_immrbase()??

2009-04-22 Thread David Gibson
On Wed, Apr 22, 2009 at 10:36:36PM -0500, Kumar Gala wrote: On Apr 22, 2009, at 9:26 PM, David Gibson wrote: On Wed, Apr 22, 2009 at 04:55:42PM -0500, Kumar Gala wrote: On Apr 22, 2009, at 4:38 PM, Scott Wood wrote: Kumar Gala wrote: I disagree. If you update your kernel you should

  1   2   3   4   5   6   7   8   9   10   >