lkml.org 
[lkml]   [2006]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 16/16] 64bit Resource: finally enable 64bit resource sizes
    On Mon, Jun 19, 2006 at 12:17:12PM +0200, Roman Zippel wrote:
    > Hi,
    >
    > On Mon, 19 Jun 2006, Geert Uytterhoeven wrote:
    >
    > > > --- linux-2.6.17-rc6-1M/mm/Kconfig~64bit-resources-modify-kconfig-options 2006-06-18 13:35:13.000000000 -0400
    > > > +++ linux-2.6.17-rc6-1M-vivek/mm/Kconfig 2006-06-18 13:35:13.000000000 -0400
    > > > @@ -145,3 +145,12 @@ config MIGRATION
    > > > while the virtual addresses are not changed. This is useful for
    > > > example on NUMA systems to put pages nearer to the processors accessing
    > > > the page.
    > > > +
    > > > +config RESOURCES_64BIT
    > > > + bool "64 bit Memory and IO resources (EXPERIMENTAL)"
    > > > + depends on (EXPERIMENTAL && !64BIT) || 64BIT
    > > > + default y if 64BIT
    > >
    > > it defaults to y if 64BIT. Roman?
    >
    > This should do it:
    >
    > config RESOURCES_64BIT
    > bool "64 bit Memory and IO resources (EXPERIMENTAL)" if !64BIT && EXPERIMENTAL
    > default 64BIT
    >

    Wow. That works. Thanks. I am attaching the patch. Hope this one is final :-)

    Greg, can you please pick the patch.

    Thanks
    Vivek



    o Introuces CONFIG_RESOURCES_64BIT Kconfig option.

    Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
    Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
    ---

    linux-2.6.17-rc6-1M-vivek/arch/i386/Kconfig | 1 +
    linux-2.6.17-rc6-1M-vivek/include/linux/types.h | 7 ++++++-
    linux-2.6.17-rc6-1M-vivek/mm/Kconfig | 6 ++++++
    3 files changed, 13 insertions(+), 1 deletion(-)

    diff -puN include/linux/types.h~64bit-resources-modify-kconfig-options include/linux/types.h
    --- linux-2.6.17-rc6-1M/include/linux/types.h~64bit-resources-modify-kconfig-options 2006-06-18 13:35:13.000000000 -0400
    +++ linux-2.6.17-rc6-1M-vivek/include/linux/types.h 2006-06-18 13:35:13.000000000 -0400
    @@ -179,7 +179,12 @@ typedef __u64 __bitwise __be64;
    #ifdef __KERNEL__
    typedef unsigned __bitwise__ gfp_t;

    -typedef unsigned long resource_size_t;
    +#ifdef CONFIG_RESOURCES_64BIT
    +typedef u64 resource_size_t;
    +#else
    +typedef u32 resource_size_t;
    +#endif
    +
    #endif

    struct ustat {
    diff -puN mm/Kconfig~64bit-resources-modify-kconfig-options mm/Kconfig
    --- linux-2.6.17-rc6-1M/mm/Kconfig~64bit-resources-modify-kconfig-options 2006-06-18 13:35:13.000000000 -0400
    +++ linux-2.6.17-rc6-1M-vivek/mm/Kconfig 2006-06-19 09:48:41.000000000 -0400
    @@ -145,3 +145,9 @@ config MIGRATION
    while the virtual addresses are not changed. This is useful for
    example on NUMA systems to put pages nearer to the processors accessing
    the page.
    +
    +config RESOURCES_64BIT
    + bool "64 bit Memory and IO resources (EXPERIMENTAL)" if (!64BIT && EXPERIMENTAL)
    + default 64BIT
    + help
    + This option allows memory and IO resources to be 64 bit.
    diff -puN arch/i386/Kconfig~64bit-resources-modify-kconfig-options arch/i386/Kconfig
    --- linux-2.6.17-rc6-1M/arch/i386/Kconfig~64bit-resources-modify-kconfig-options 2006-06-18 13:35:13.000000000 -0400
    +++ linux-2.6.17-rc6-1M-vivek/arch/i386/Kconfig 2006-06-18 13:35:13.000000000 -0400
    @@ -511,6 +511,7 @@ config X86_PAE
    bool
    depends on HIGHMEM64G
    default y
    + select RESOURCES_64BIT

    # Common NUMA Features
    config NUMA
    _
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-06-19 16:00    [W:0.023 / U:2.652 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site