Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120976
b: refs/heads/master
c: 7d9d1f2
h: refs/heads/master
v: v3
  • Loading branch information
Dean Nelson authored and H. Peter Anvin committed Nov 6, 2008
1 parent 486e08a commit 0047dab
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31de5ece351a218a35b9bf83ab05a14373261bb6
refs/heads/master: 7d9d1f25c3872080ce599e5dd0dac3305d0a028b
31 changes: 28 additions & 3 deletions trunk/drivers/misc/sgi-xp/xpc_uv.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ xpc_send_local_activate_IRQ_uv(struct xpc_partition *part, int act_state_req)
struct xpc_partition_uv *part_uv = &part->sn.uv;

/*
* !!! Make our side think that the remote parition sent an activate
* !!! Make our side think that the remote partition sent an activate
* !!! message our way by doing what the activate IRQ handler would
* !!! do had one really been sent.
*/
Expand All @@ -660,8 +660,33 @@ static enum xp_retval
xpc_get_partition_rsvd_page_pa_uv(void *buf, u64 *cookie, unsigned long *rp_pa,
size_t *len)
{
/* !!! call the UV version of sn_partition_reserved_page_pa() */
return xpUnsupported;
s64 status;
enum xp_retval ret;

#if defined CONFIG_X86_64
status = uv_bios_reserved_page_pa((u64)buf, cookie, (u64 *)rp_pa,
(u64 *)len);
if (status == BIOS_STATUS_SUCCESS)
ret = xpSuccess;
else if (status == BIOS_STATUS_MORE_PASSES)
ret = xpNeedMoreInfo;
else
ret = xpBiosError;

#elif defined CONFIG_IA64_GENERIC || defined CONFIG_IA64_SGI_UV
status = sn_partition_reserved_page_pa((u64)buf, cookie, rp_pa, len);
if (status == SALRET_OK)
ret = xpSuccess;
else if (status == SALRET_MORE_PASSES)
ret = xpNeedMoreInfo;
else
ret = xpSalError;

#else
#error not a supported configuration
#endif

return ret;
}

static int
Expand Down

0 comments on commit 0047dab

Please sign in to comment.