mdp5_ctl_commit(9)
β¨ NAME β¨
mdp5_ctl_commit β Register Flush π
okay so this is the Kernel API Manual page for mdp5_ctl_commit(9), bestie, and it's literally all about telling the display controller "hey girl, these registers are done being written, you can go ahead and swap in the new copy" π
πΈ SYNOPSIS πΈ
u32 mdp5_ctl_commit(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline,
u32 flush_mask, bool start);
that's the whole vibe. it takes four things and hands you back a u32. slay β¨
π¦ ARGUMENTS π¦
ctlβ the CTL instance π«Ά like, the actual control object you're working with, no cap.pipelineβ the encoder's INTF + MIXER configuration π it's giving "here's how this display pipeline is set up."flush_maskβ bitmask of display controller hw blocks to flush π every bit is a hardware block that needs its flush.startβ iftrue, immediately update flush registers and set the START bit π₯ otherwise accumulateflush_maskbits until we are ready to START. so it's either "go now" or "hold that thought, we're collecting."
π DESCRIPTION π
The flush register is used to indicate several registers are all programmed, and are safe to update to the back copy of the double buffered registers β¨ think of it as the group chat read receipt for your register writes β "yes bestie, we're all done here, you can flip to the new version."
Some registers' FLUSH bits are shared when the hardware does not have dedicated bits for them π tragic, I know. handling these is the job of fix_sw_flush π so that function is the one doing the messy cleanup, not this one.
CTL registers need to be flushed in some circumstances; if that is the case, some trigger bits will be present in both the flush mask and ctl->pending_ctl_trigger π
fr fr, pay attention to that overlap β same bits showing up in two places is intentional, not a bug π
Return H/W flushed bit mask. β that's the return value, a u32 with the hardware-flushed bits in it.
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.cπ go read the source, iykyk mdp5_ctl_set_encoder_state(9)πΈ the sibling function, iconic in its own right
and that's the whole page, bestie π«Ά it comes to you from ./drivers/gpu/drm/msm/disp/mdp5 π and it's dated October 2026 π β mwah, go flush those registers responsibly β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms