diff options
author | Dean Nelson <dcn@sgi.com> | 2005-04-04 16:14:00 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-05-03 15:50:22 -0400 |
commit | 3a7d555bfc4d4631d9118fb4d0ed7ab62cc2ca1c (patch) | |
tree | 3f788937066dff5befaf3b4e70539bf3f9e4702b /arch | |
parent | a2d974da0afe659cff98913184a97c0ee686d02b (diff) |
[IA64-SGI] convert AMO address found in XPC's reserved page
This patch detects the existence of an uncached physical AMO address setup
by EFI's XPBOOT (SGI) and converts it to an uncached virtual AMO address.
Depends on a patch submitted on 23 March 2005 with the subject of:
[PATCH 2/3] SGI Altix cross partition functionality (2nd revision)
Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/sn/kernel/xpc_partition.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/ia64/sn/kernel/xpc_partition.c b/arch/ia64/sn/kernel/xpc_partition.c index b31d9988a37a..2c3c4a8af553 100644 --- a/arch/ia64/sn/kernel/xpc_partition.c +++ b/arch/ia64/sn/kernel/xpc_partition.c | |||
@@ -204,6 +204,19 @@ xpc_rsvd_page_init(void) | |||
204 | return NULL; | 204 | return NULL; |
205 | } | 205 | } |
206 | } | 206 | } |
207 | } else if (!IS_AMO_ADDRESS((u64) amos_page)) { | ||
208 | /* | ||
209 | * EFI's XPBOOT can also set amos_page in the reserved page, | ||
210 | * but it happens to leave it as an uncached physical address | ||
211 | * and we need it to be an uncached virtual, so we'll have to | ||
212 | * convert it. | ||
213 | */ | ||
214 | if (!IS_AMO_PHYS_ADDRESS((u64) amos_page)) { | ||
215 | dev_err(xpc_part, "previously used amos_page address " | ||
216 | "is bad = 0x%p\n", (void *) amos_page); | ||
217 | return NULL; | ||
218 | } | ||
219 | amos_page = (AMO_t *) TO_AMO((u64) amos_page); | ||
207 | } | 220 | } |
208 | 221 | ||
209 | memset(xpc_vars, 0, sizeof(struct xpc_vars)); | 222 | memset(xpc_vars, 0, sizeof(struct xpc_vars)); |
@@ -944,7 +957,7 @@ xpc_discovery(void) | |||
944 | 957 | ||
945 | /* | 958 | /* |
946 | * Given a partid, get the nasids owned by that partition from the | 959 | * Given a partid, get the nasids owned by that partition from the |
947 | * remote partitions reserved page. | 960 | * remote partition's reserved page. |
948 | */ | 961 | */ |
949 | enum xpc_retval | 962 | enum xpc_retval |
950 | xpc_initiate_partid_to_nasids(partid_t partid, void *nasid_mask) | 963 | xpc_initiate_partid_to_nasids(partid_t partid, void *nasid_mask) |