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

Backport to 4.9 enough to make wlroots >= 0.7 work on -CURRENT #214

Open
wants to merge 13 commits into
base: drm-v4.9
Choose a base branch
from
Open

Conversation

jbeich
Copy link

@jbeich jbeich commented Feb 17, 2020

drm-v4.9 was a long-lived branch, being very stable near EOL. Make it usable again e.g., for debugging issues on newer branches or as a last resort by users.

I'm not really expecting this to be merged but it builds fine on FreeBSD 11.3 as well.

johalun and others added 13 commits February 17, 2020 07:06
(cherry picked from commit 3484b98)
With the atomic API, it is possible that a single commit affects
multiple crtcs. If the user requests an event with that commit, one
event will be sent for each CRTC, but it is not possible to distinguish
which crtc an event is for in user space. To solve this, the reserved
field in struct drm_vblank_event is repurposed to include the crtc_id
which the event is for.

The DRM_CAP_CRTC_IN_VBLANK_EVENT is added to allow userspace to query if
the crtc field will be set properly.

[daniels: Rebased, using Maarten's forward-port.]

Signed-off-by: Ander Conselvan de Oliveira <[email protected]>
Signed-off-by: Daniel Stone <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 9f1da74)
Userspace can set a FB_ID on a plane without setting CRTC_ID, which
will fail with -EINVAL, but the kernel shouldn't warn about that.

Same for !FB_ID and CRTC_ID being set.

Signed-off-by: Maarten Lankhorst <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Cc: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Harry Wentland <[email protected]>
(cherry picked from commit github.com/torvalds/linux/commit/fa5aaeecf524ecbcae9755ee3d34b7b8ba412583)
Wayland compositors need a notification to know when to rescan display
connectors.

(cherry picked from commit fe43859)
This fixes ridiculous interrupt rate on aarch64,
was enabled in the legacy in-tree drm port,
and is a good idea in general.

(cherry picked from commit f4e7403)
fix 'mutex_unlock() system panic' when DRM_SYSCTL_PRINT fails and has not the lock,
reproduced by:

% sysctl -B 1 hw.dri.0.vblank
% sysctl -B 1 hw.dri
% sysctl -B 1 -a

(cherry picked from commit 324a27a)
cdev_pager_free_page() now expects an xbusy page.

(cherry picked from commit 727f5a1)
Update to chase a header change in current.

Signed-off-by: Niclas Zeising <[email protected]>
Signed-off-by: Hans Petter Selasky <[email protected]>
(cherry picked from commit ea88121)
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.

8 participants