From bae9230744541e192c43efdcc769c07ee9b84343 Mon Sep 17 00:00:00 2001 From: Robin Holt Date: Tue, 15 Dec 2009 16:47:54 -0800 Subject: [PATCH] --- yaml --- r: 176715 b: refs/heads/master c: fae419f2abd15ab7d1cd1413e6683a276a4e14e2 h: refs/heads/master i: 176713: ad0393ac652c0555a34fb3069568cfe39e6dd93b 176711: 12720557095321254db83fdc44167581ab7249d3 v: v3 --- [refs] | 2 +- trunk/arch/x86/include/asm/uv/uv_hub.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 556770bb81e2..3feb957a5b89 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 682128939f546e3a9cdd9fef392b932dd9c41a65 +refs/heads/master: fae419f2abd15ab7d1cd1413e6683a276a4e14e2 diff --git a/trunk/arch/x86/include/asm/uv/uv_hub.h b/trunk/arch/x86/include/asm/uv/uv_hub.h index 0cc955f16aec..8f1332bbfd72 100644 --- a/trunk/arch/x86/include/asm/uv/uv_hub.h +++ b/trunk/arch/x86/include/asm/uv/uv_hub.h @@ -232,6 +232,13 @@ static inline unsigned long uv_gpa(void *v) 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) {