Repository navigation
vc4-kms-v3d COB and interrupt fixes - #5121
Merged
Merged
Conversation
pelwell
reviewed
Aug 11, 2022
Contributor
Author
|
Hold fire on these - I've just seen glitches on my 4k HDMI screen. |
The HVS Composite Output Buffer (COB) is the memory used to generate the output pixel data. Until now the vc4 driver has been relying on the firmware to have set these to sensible values. In testing triple screen support it has been noted that only 1 line was being assigned to HVS channel 2. Whilst that is fine for the transposer (TXP), and indeed needed as only some pixels have an alpha channel, it is insufficient to run a live display. Split the COB more evenly between the 3 HVS channels. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Revert vc4_regs change
The HVS can change AXI request mode based on how full the COB FIFOs are. Until now the vc4 driver has been relying on the firmware to have set these to sensible values. With HVS channel 2 now being used for live video, change the panic mode for all channels to be explicitly set by the driver, and the same for all channels. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
The bit used for SCALER_DISPBKGND_AUTOHS in SCALER_DISPBKGNDX has been repurposed on HVS5 to configure whether a display can win back-to-back arbitration wins for the COB. This is not desirable, therefore only select this bit on HVS4, and explicitly clear it on HVS5. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
HVS5 has moved the interrupt enable bits around within the DISPCTRL register, therefore the configuration has to be updated to account for this. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Contributor
Author
|
It looks like things may just be on the edge with 4k60. On this CM4, a standard Raspberry Pi OS image (5.15.32 kernel) is showing occasional horizontal glitched lines (generally browny noise) if running HDMI at 4k60 and running something like iPlayer video decode. Dropping to 4k30 is clean. These changes don't alter that, and allow triple headed mode. |
Contributor
Author
|
It looks like my corruption was a dodgy HDMI lead! I should have thought of that one earlier. |
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Sep 5, 2022
kernel: configs: Add LAN7430 driver on BCM2711 See: raspberrypi/linux#4117 kernel: Add a pullup/down parameter to PPS DTBO See: raspberrypi/linux#5154 kernel: hwmon: (lm75) Add Atmel AT30TS74 support See: raspberrypi/linux#5158 kernel: vc4-kms-v3d COB and interrupt fixes See: raspberrypi/linux#5121 kernel: Unicam dummy buffer overrun fix See: raspberrypi/linux#5157 kernel: ASoC:ma120x0p: Extend the volume range to -144dB (mute) See: raspberrypi/linux#5160
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Sep 5, 2022
kernel: configs: Add LAN7430 driver on BCM2711 See: raspberrypi/linux#4117 kernel: Add a pullup/down parameter to PPS DTBO See: raspberrypi/linux#5154 kernel: hwmon: (lm75) Add Atmel AT30TS74 support See: raspberrypi/linux#5158 kernel: vc4-kms-v3d COB and interrupt fixes See: raspberrypi/linux#5121 kernel: Unicam dummy buffer overrun fix See: raspberrypi/linux#5157 kernel: ASoC:ma120x0p: Extend the volume range to -144dB (mute) See: raspberrypi/linux#5160
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 COB allocation changes could do with some stress testing.
This PR has stemmed from testing triple head modes, and finding that the code enabling underrun interrupts was actually enabling other events for HVS channel 2, which then weren't handled and caused bad things to happen.
With these changes I've got 4k HDMI and dual DSI (800x480) running happily in X. I haven't got dual 4k monitors to hand to test.