Repository navigation
pico4: the panels dark from the kernel's start, no brightness steps before the first picture - #99
Merged
Merged
Conversation
…el's start The bootloader leaves the panels' enable line (GPIO 29) high with its splash on the panels. Once the kernel's display clock controller and the SMMUs probe, that scanout breaks up, and the panels, still lit, show grey until something lowers the line: for about a second at every boot, in the installed system, charger mode and the recovery. A state of the pin controller itself drives the line low when the controller probes, before the display's clock controller, the SMMUs and mdss. That takes the PDC registered early (irqchip/qcom-pdc: register before the device initcalls, on sm8250/7.2): without it the pin controller waits for the late initcalls, at 0.61 s, and the grey stays for about 170 ms. With it the line goes low at 0.17 s. A short flash before that remains; nothing the kernel does before then touches the display. The panel driver takes the line as it finds it and raises it once the panels show its picture.
A boot's panels show nothing after their first power-on until the first light sends the power-on commands again. Raised at the first enable, the enable line lit the lenses black for those 300 ms, then the first light took it low and raised it again with the picture: the lenses changed brightness twice before the first picture. The line now stays low from the first enable until the first light raises it. The probe's comment no longer says the panels show the bootloader's splash until the first modeset: mdss's reset ends it, and the tree keeps the enable line low from the kernel's start.
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.
Two changes so that the lenses go from PICO's boot logo to dark, then to the boot indication:
The line goes low at 0.17 s with the PDC registered early (overpressure/linux sm8250/pdc-early, into sm8250/7.2); without it the TLMM probes at 0.61 s and some grey stays.
On the headset (phoenix/7.2-12's tree with both changes), watched through several starts of the installed system: PICO's logo, a flash too short to tell apart, dark, the boot indication; no grey, no brightness steps. Dropping the line through bl_power while a picture shows goes straight to dark. The boot indication in both lenses; SteamVR's wake: both panels read mode 0x1c with compression on.
A short flash right after the logo remains: it happens before the TLMM's probe, the earliest point the kernel can set a pin, and nothing the kernel does before then touches the display.
For overpressure/phoenix#195