Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: uv: introduce uv_gpa_is_mmr

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

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Robin Holt and committed by
Linus Torvalds
fae419f2 68212893

+7
+7
arch/x86/include/asm/uv/uv_hub.h
··· 232 232 return uv_soc_phys_ram_to_gpa(__pa(v)); 233 233 } 234 234 235 + /* Top two bits indicate the requested address is in MMR space. */ 236 + static inline int 237 + uv_gpa_in_mmr_space(unsigned long gpa) 238 + { 239 + return (gpa >> 62) == 0x3UL; 240 + } 241 + 235 242 /* UV global physical address --> socket phys RAM */ 236 243 static inline unsigned long uv_gpa_to_soc_phys_ram(unsigned long gpa) 237 244 {