summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-07 15:22:19 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-07 15:22:19 -0400
commit96d057b617058417ab241fe4e83f8f2cfee49543 (patch)
treeba5d8aeffe767f0d1a20df7410df11c0840a26c5 /kernel/gsp_phys_booter.c
parent0f961b5eb38778e470c176e0b07fa5766f776bca (diff)
downloadopen-iov-96d057b617058417ab241fe4e83f8f2cfee49543.tar.gz
open-iov-96d057b617058417ab241fe4e83f8f2cfee49543.zip
vgsp: m109 - fix the mail window VA precedence: (BASE + ((WINS-1) << 21))
m108's mret=-34 (ERANGE): the shift bound tighter than expected in the written expression, making mva = (0x100000000 + 31) << 21, outside the pool. Parenthesize.
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index 19e6909..9e45937 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -16662,8 +16662,8 @@ int gsp_phys_backend_guest_gr_submit(const struct gsp_phys_gr_submit *req,
[GSP_PHYS_RMCALL_GR_DATA_WINS - 1].pages);
{
u64 mva = GSP_PHYS_RMCALL_VA_GR_DATA_BASE +
- ((u64)GSP_PHYS_RMCALL_GR_DATA_WINS - 1)
- << 21;
+ (((u64)GSP_PHYS_RMCALL_GR_DATA_WINS - 1)
+ << 21);
int mret = -EINVAL;
if (boot_stage.rmcall_gr_mail.pages)