From de82cf8779e37f2720dcda720fca6857802a8664 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Fri, 22 Sep 2017 12:50:01 +0900 Subject: [PATCH] hfi1/user_exp_rcv/setup: keep track of position within page ihk_mc_pt_lookup_pte + pte_get_phys will get us the physical address for the start of the page we're looking at. Re-offset it by position within buffer. --- kernel/user_exp_rcv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/user_exp_rcv.c b/kernel/user_exp_rcv.c index d46056db..c50a9be5 100644 --- a/kernel/user_exp_rcv.c +++ b/kernel/user_exp_rcv.c @@ -129,7 +129,7 @@ int hfi1_user_exp_rcv_setup(struct hfi1_filedata *fd, struct hfi1_tid_info *tinf ret = -EFAULT; break; } - phys = pte_get_phys(ptep); + phys = pte_get_phys(ptep) + (vaddr - base_vaddr); if (!phys_prev) { /* first pass */