mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
sgi-xp: xpc needs to pass the physical address, not virtual
Impact: fix crash xpc needs to pass the physical address, not virtual. Testing uncovered this problem. The virtual address happens to work most of the time due to the way bios was masking off the node bits. Passing the physical address makes it work all of the time. Signed-off-by: Russ Anderson <[email protected]> Acked-by: Dean Nelson <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
189f67c440
commit
c8182f0016
3 changed files with 6 additions and 8 deletions
|
|
@ -119,16 +119,16 @@ xpc_gru_mq_watchlist_alloc_uv(struct xpc_gru_mq_uv *mq)
|
|||
int ret;
|
||||
|
||||
#if defined CONFIG_X86_64
|
||||
ret = uv_bios_mq_watchlist_alloc(mq->mmr_blade, mq->address, mq->order,
|
||||
&mq->mmr_offset);
|
||||
ret = uv_bios_mq_watchlist_alloc(mq->mmr_blade, uv_gpa(mq->address),
|
||||
mq->order, &mq->mmr_offset);
|
||||
if (ret < 0) {
|
||||
dev_err(xpc_part, "uv_bios_mq_watchlist_alloc() failed, "
|
||||
"ret=%d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
#elif defined CONFIG_IA64_GENERIC || defined CONFIG_IA64_SGI_UV
|
||||
ret = sn_mq_watchlist_alloc(mq->mmr_blade, mq->address, mq->order,
|
||||
&mq->mmr_offset);
|
||||
ret = sn_mq_watchlist_alloc(mq->mmr_blade, uv_gpa(mq->address),
|
||||
mq->order, &mq->mmr_offset);
|
||||
if (ret < 0) {
|
||||
dev_err(xpc_part, "sn_mq_watchlist_alloc() failed, ret=%d\n",
|
||||
ret);
|
||||
|
|
|
|||
Loading…
Reference in a new issue