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.
This commit is contained in:
committed by
Balazs Gerofi
parent
662895c020
commit
de82cf8779
@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user