RE: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
> Seems like we should simply introduce a CONFIG_VMEM_MAP for ia64 > to get this started. Does my memory trick me or did we used to have > vmem_map on other architectures as well but managed to get rid of it > everywhere but on ia64? I think ia64 hung onto this because of the SGI sn1 platforms. They were even more discontiguous than even SPARSEMEM_EXTREME could handle -Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
> Seems like we should simply introduce a CONFIG_VMEM_MAP for ia64 > to get this started. Does my memory trick me or did we used to have > vmem_map on other architectures as well but managed to get rid of it > everywhere but on ia64? I think ia64 hung onto this because of the SGI sn1 platforms. They were even more discontiguous than even SPARSEMEM_EXTREME could handle -Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
On Fri, Sep 25, 2015 at 05:36:36PM -0700, Dan Williams wrote: > I went to go attempt this, but ia64 is still a holdout, as its > DISCONTIGMEM setup can't use the generic memory_model definitions. > > #ifdef CONFIG_DISCONTIGMEM > # define page_to_pfn(page) ((unsigned long) (page - vmem_map)) > # define pfn_to_page(pfn) (vmem_map + (pfn)) > #else > # include > #endif > #else > # include > #endif Seems like we should simply introduce a CONFIG_VMEM_MAP for ia64 to get this started. Does my memory trick me or did we used to have vmem_map on other architectures as well but managed to get rid of it everywhere but on ia64? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
On Fri, Sep 25, 2015 at 05:36:36PM -0700, Dan Williams wrote: > I went to go attempt this, but ia64 is still a holdout, as its > DISCONTIGMEM setup can't use the generic memory_model definitions. > > #ifdef CONFIG_DISCONTIGMEM > # define page_to_pfn(page) ((unsigned long) (page - vmem_map)) > # define pfn_to_page(pfn) (vmem_map + (pfn)) > #else > # include > #endif > #else > # include > #endif Seems like we should simply introduce a CONFIG_VMEM_MAP for ia64 to get this started. Does my memory trick me or did we used to have vmem_map on other architectures as well but managed to get rid of it everywhere but on ia64? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
On Thu, Sep 24, 2015 at 8:10 AM, Christoph Hellwig wrote: > On Wed, Sep 23, 2015 at 12:41:18AM -0400, Dan Williams wrote: >> Switch avr32/include/asm/page.h to use the common defintions for >> pfn_to_page(), page_to_pfn(), and ARCH_PFN_OFFSET. > > This was the last architecture not using asm-generic/memory_model.h, > so it might be time to move it to linux/ or even fold it into an > existing header. I went to go attempt this, but ia64 is still a holdout, as its DISCONTIGMEM setup can't use the generic memory_model definitions. #ifdef CONFIG_DISCONTIGMEM # define page_to_pfn(page) ((unsigned long) (page - vmem_map)) # define pfn_to_page(pfn) (vmem_map + (pfn)) #else # include #endif #else # include #endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
On Thu, Sep 24, 2015 at 8:10 AM, Christoph Hellwigwrote: > On Wed, Sep 23, 2015 at 12:41:18AM -0400, Dan Williams wrote: >> Switch avr32/include/asm/page.h to use the common defintions for >> pfn_to_page(), page_to_pfn(), and ARCH_PFN_OFFSET. > > This was the last architecture not using asm-generic/memory_model.h, > so it might be time to move it to linux/ or even fold it into an > existing header. I went to go attempt this, but ia64 is still a holdout, as its DISCONTIGMEM setup can't use the generic memory_model definitions. #ifdef CONFIG_DISCONTIGMEM # define page_to_pfn(page) ((unsigned long) (page - vmem_map)) # define pfn_to_page(pfn) (vmem_map + (pfn)) #else # include #endif #else # include #endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
On Wed, Sep 23, 2015 at 12:41:18AM -0400, Dan Williams wrote: > Switch avr32/include/asm/page.h to use the common defintions for > pfn_to_page(), page_to_pfn(), and ARCH_PFN_OFFSET. This was the last architecture not using asm-generic/memory_model.h, so it might be time to move it to linux/ or even fold it into an existing header. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
On Wed, Sep 23, 2015 at 12:41:18AM -0400, Dan Williams wrote: > Switch avr32/include/asm/page.h to use the common defintions for > pfn_to_page(), page_to_pfn(), and ARCH_PFN_OFFSET. This was the last architecture not using asm-generic/memory_model.h, so it might be time to move it to linux/ or even fold it into an existing header. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/