Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176713
b: refs/heads/master
c: 729d69e
h: refs/heads/master
i:
  176711: 1272055
v: v3
  • Loading branch information
Robin Holt authored and Linus Torvalds committed Dec 16, 2009
1 parent 905a1f6 commit ad0393a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5fe878ae7f82fbf0830dbfaee4c5ca18f3aee442
refs/heads/master: 729d69e6995fc4dea8ff70df256a7d4034a3d21d
13 changes: 13 additions & 0 deletions trunk/arch/x86/include/asm/uv/uv_hub.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,19 @@ static inline unsigned long uv_gpa(void *v)
return uv_soc_phys_ram_to_gpa(__pa(v));
}

/* UV global physical address --> socket phys RAM */
static inline unsigned long uv_gpa_to_soc_phys_ram(unsigned long gpa)
{
unsigned long paddr = gpa & uv_hub_info->gpa_mask;
unsigned long remap_base = uv_hub_info->lowmem_remap_base;
unsigned long remap_top = uv_hub_info->lowmem_remap_top;

if (paddr >= remap_base && paddr < remap_base + remap_top)
paddr -= remap_base;
return paddr;
}


/* gnode -> pnode */
static inline unsigned long uv_gpa_to_gnode(unsigned long gpa)
{
Expand Down

0 comments on commit ad0393a

Please sign in to comment.