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
commit64020f17858deabfed229249378ba5104eaf0e7a (patch)
tree9a76de59c97439a2042293bffc4ff8d45cdf4001 /kernel/gsp_phys_booter.c
parent97bdfaede2d7345180eee2f1b74564662b128b97 (diff)
downloadopen-iov-64020f17858deabfed229249378ba5104eaf0e7a.tar.gz
open-iov-64020f17858deabfed229249378ba5104eaf0e7a.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)