From 64020f17858deabfed229249378ba5104eaf0e7a Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Wed, 7 Oct 2026 15:22:19 -0400 Subject: 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. --- kernel/gsp_phys_booter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/gsp_phys_booter.c') 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) -- cgit v1.2.3