Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reworked gdrdrv_mmap to map largest ranges of physically contiguous G… #40

Merged
merged 2 commits into from
Jun 30, 2018

Conversation

drossetti
Copy link
Member

fixes #39

@drossetti
Copy link
Member Author

@bureddy could you please test this fix?

gdrdrv/gdrdrv.c Outdated
@@ -642,7 +643,7 @@ static int gdrdrv_mmap(struct file *filp, struct vm_area_struct *vma)
gdr_mr_t *mr = NULL;
u64 offset;
int p = 0;
unsigned long vaddr, prev_page_paddr;
unsigned long vaddr;
int phys_contiguous = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is phys_contiguous required? I don't see it used meaningfully anywhere now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, not anymore

@bureddy
Copy link

bureddy commented Jun 30, 2018

👍

@drossetti drossetti merged commit 81c06d7 into master Jun 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

power9: bus error with 4GB copy
3 participants