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

Remove a get_page() from pagevec_add(). #175

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

markjdb
Copy link
Contributor

@markjdb markjdb commented Sep 15, 2019

No description provided.

@zeising
Copy link
Member

zeising commented Sep 16, 2019

Does this need a version check to work on older versions of current?

@markjdb
Copy link
Contributor Author

markjdb commented Sep 16, 2019

Yes, thank you for catching that.

I also realized that some checks I added previously only apply to head, not stable/12. I will submit PRs to fix that.

Now that alloc_page() always returns a wired page, the get_page() is no
longer needed.  Note that Linux's pagevec_add() doesn't do the
get_page() either.

Note that drm-v5.0 does not need this change.  The i915 driver was
patched to manually wire pages instead, and that manual wiring became
unnecessary after alloc_page() was changed.
@zeising
Copy link
Member

zeising commented Sep 16, 2019

I also realized that some checks I added previously only apply to head, not stable/12. I will submit PRs to fix that.

We use a separate branch for stable/12 (and 12.0). Just make a PR against that branch and we'll take care of it. Thanks for the help!

@johalun
Copy link
Member

johalun commented Sep 16, 2019

Thanks! I can cherry pick this into the other branches easily to this PR is enough.

@johalun johalun merged commit 11cf2dc into FreeBSDDesktop:drm-v4.16 Sep 16, 2019
@johalun
Copy link
Member

johalun commented Sep 16, 2019

Actually, this change only applies to this branch...

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.

None yet

3 participants