drm/vc4: Set TV margins on the composite connector state #5720
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
overscan_*
settings in the config.txt do not work on the composite video output with the VC4 KMS driver. This patch fixes it (tested on a Raspberry Pi 4). See the commit message for a more detailed description.Here are some forum entries that I collected where people are reporting this issue:
https://forums.raspberrypi.com/viewtopic.php?t=330579
https://forums.raspberrypi.com/viewtopic.php?t=330924
https://forums.raspberrypi.com/viewtopic.php?t=342062
I did not test this with an upstream kernel, but it already does the necessary
drm_atomic_helper_connector_tv_reset()
in the conncetor reset function. On the other hand it does not calldrm_connector_attach_tv_margin_properties()
in the connector init function, which I think is necessary?!What is the correct approach here: patch the raspberrypi kernel, then try to send a similar patch upstream?