lkml.org 
[lkml]   [2009]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[patch 3/6] x86: UV - Introduce uv_gpa_is_mmr.

    Provide a mechanism for determining if a global physical address is
    pointing to a UV hub MMR.

    To: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Robin Holt <holt@sgi.com>
    Cc: Jack Steiner <steiner@sgi.com>
    Cc: lkml <linux-kernel@vger.kernel.org>

    ---

    arch/x86/include/asm/uv/uv_hub.h | 7 +++++++
    1 file changed, 7 insertions(+)
    Index: linux-x86/arch/x86/include/asm/uv/uv_hub.h
    ===================================================================
    --- linux-x86.orig/arch/x86/include/asm/uv/uv_hub.h 2009-11-09 08:50:25.000000000 -0600
    +++ linux-x86/arch/x86/include/asm/uv/uv_hub.h 2009-11-09 08:52:14.000000000 -0600
    @@ -232,6 +232,13 @@ static inline unsigned long uv_gpa(void
    return uv_soc_phys_ram_to_gpa(__pa(v));
    }

    +/* Top two bits indicate the requested address is in MMR space. */
    +static inline int
    +uv_gpa_in_mmr_space(unsigned long gpa)
    +{
    + return (gpa >> 62) == 0x3UL;
    +}
    +
    /* UV global physical address --> socket phys RAM */
    static inline unsigned long uv_gpa_to_soc_phys_ram(unsigned long gpa)
    {


    \
     
     \ /
      Last update: 2009-11-09 18:13    [W:0.021 / U:29.556 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site