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

DRM fixes #5716

Merged
merged 2 commits into from
Nov 22, 2023
Merged

DRM fixes #5716

merged 2 commits into from
Nov 22, 2023

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Nov 17, 2023

Off-screen planes is the image corruption reported in https://forums.raspberrypi.com/viewtopic.php?t=359396.

display-connector is #5715. I need to send it upstream, but seeing as I was creating a DRM PR I thought I'd stick it in here now.

@6by9 6by9 changed the title Rpi 6.1.y kms DRM fixes Nov 17, 2023
6by9 added 2 commits November 22, 2023 18:47
It is permitted for a plane to be configured such that none
of it is on-screen via either negative dest rectangle X,Y
offset, or just an offset that is greater than the crtc
dimensions.

These planes were resized via drm_atomic_helper_check_plane_state
such that the source rectangle had a zero width or height, but
they still created a dlist entry even though they contributed
no pixels. In the case of vc6_plane_mode_set, that it could result
in negative values being written into registers, which caused
incorrect behaviour.

Drop planes that result in a source width or height of 0 pixels
to avoid the incorrect rendering.

Signed-off-by: Dave Stevenson <[email protected]>
Commit 7cd7065 ("drm/bridge: display-connector: implement
bus fmts callbacks") added use of drm_atomic_helper_bridge_*
functions, but didn't select the dependency of DRM_KMS_HELPER.
If nothing else selected that dependency it resulted in a
build failure.

Select the missing dependency.

Fixes: 7cd7065 ("drm/bridge: display-connector: implement bus fmts callbacks")
Signed-off-by: Dave Stevenson <[email protected]>
@6by9
Copy link
Contributor Author

6by9 commented Nov 22, 2023

Any objections to these?

@popcornmix
Copy link
Collaborator

LGTM.
A quick test on kodi didn't show any issues on Pi4 or Pi5.

@pelwell pelwell merged commit 91ad217 into raspberrypi:rpi-6.1.y Nov 22, 2023
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Nov 23, 2023
…OGUE_GAIN

See: raspberrypi/linux#5711

kernel: DRM fixes
See: raspberrypi/linux#5716

kernel: drm: vc4: Free the dlist alloc immediately if it never hit the hw
See: raspberrypi/linux#5733

kernel: Include I2C bus details in ft5x06 and goodix touch driver names
See: raspberrypi/linux#5703

kernel: drm: vc4: Block swiotlb bounce buffers being imported as dmabuf
See: raspberrypi/linux#5734
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Nov 23, 2023
…OGUE_GAIN

See: raspberrypi/linux#5711

kernel: DRM fixes
See: raspberrypi/linux#5716

kernel: drm: vc4: Free the dlist alloc immediately if it never hit the hw
See: raspberrypi/linux#5733

kernel: Include I2C bus details in ft5x06 and goodix touch driver names
See: raspberrypi/linux#5703

kernel: drm: vc4: Block swiotlb bounce buffers being imported as dmabuf
See: raspberrypi/linux#5734
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.

3 participants