dsi_adjust_..._compression(9)
๐
dsi_adjust_pclk_for_compression โ a.k.a. the dsi_adjust_..._compression(9) kernel API page, bestie edition ๐
okay so welcome to the group chat, this is the manual page for dsi_adjust_pclk_for_compression(9) from the Kernel API Manual and honestly? she's a niche little icon and I'm obsessed. grab a matcha, we're doing DRM/DSI math together ๐งโจ
๐ธ NAME ๐ธ
dsi_adjust_pclk_for_compression โ adjusts the pclk rate for the compression case. that's it, that's the whole vibe. she tweaks your pixel clock so compression math actually works out ๐
โจ SYNOPSIS โจ
unsigned long dsi_adjust_pclk_for_compression (const struct
drm_display_mode *mode , const struct drm_dsc_config *dsc , bool
is_bonded_dsi );
like, she returns an unsigned long (the new pclk rate, bestie) and takes three whole arguments. three! main character energy fr fr ๐
๐ซถ ARGUMENTS ๐ซถ
modeโ the selected mode for the DSI output. the whole reason we're here, lowkey.dscโ the DRM DSC configuration for this DSI output. yes queen, tell us about your compression.is_bonded_dsiโ abool.Trueif two DSI controllers are bonded. two controllers holding hands. bonded, if you will ๐ซถ๐ซถ
๐ DESCRIPTION ๐
so what does she actually do? she adjusts the pclk rate by calculating a new hdisplay that's proportional to the compression ratio, and the formula is giving very much:
new_hdisplay = old_hdisplay * compressed_bpp / uncompressed_bpp
periodt. that's the math. ๐งฎโจ
๐ฆ and the porches? not adjusted. not even a little.
porches do not need to be adjusted, and here's the receipts:
- For VIDEO mode โ they are not compressed by DSC and are passed as is. untouched. unbothered. thriving. ๐
- For CMD mode โ there are no actual porches. instead, these fields currently represent the overhead to the image data transfer. so they're calculated for the final mode parameters (after the compression) and are not to be adjusted too. no cap, leave them alone ๐
FIXME: Reconsider this if/when CMD mode handling is rewritten to use transfer time and data overhead as a starting point of the calculations. basically a little note-to-self for future her, and we respect the honesty ๐ญ๐ธ
๐ SEE ALSO ๐
- the kernel file
./drivers/gpu/drm/msm/dsi/dsi_host.cโ go read it, iykyk ๐๐
and that's the page, bestie!! ๐ if you made it this far you're literally a kernel girlie now. this icon dropped in October 2026 as part of the ./drivers/gpu/drm/msm/dsi situation, so go forth, adjust those pclk rates, and slay ๐
๐ฅ๐โญ๐
๐ฆ 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