pxa_camera_check_link_miss(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, grab your iced coffee 🧊 because we're diving into the Kernel API Manual and this one is a lil' niche but lowkey iconic πŸ’…


🌸 NAME 🌸

pxa_camera_check_link_miss β€” check missed DMA linking πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void pxa_camera_check_link_miss (struct pxa_camera_dev *pcdev ,
       dma_cookie_t last_submitted , dma_cookie_t last_issued );

πŸ’– ARGUMENTS πŸ’–

  • pcdev β€” the camera device ✨ like, the main character of this whole situation
  • last_submitted β€” an opaque DMA cookie for last submitted πŸ“ (yes bestie, "opaque" β€” we do not peek inside, we just pass it along)
  • last_issued β€” an opaque DMA cookie for last issued 🫢

πŸ”₯ DESCRIPTION πŸ”₯

k so here's the tea β˜• β€” the DMA chaining is done with DMA running. Which means there's this tiny temporal window that remains, where a buffer is queued on the chain, while the chain is already stopped 😭

And what does that mean? The tailed buffer would never be transferred by DMA. literally never. πŸ’€

So this function restarts the capture for this corner case, where:

  • DADR == DADDR_STOP πŸ‘‘
  • a video buffer is queued on the pcdev->capture list πŸŽ€

ngl, if you wanna go deeper, please check the "DMA hot chaining timeslice issue" in Documentation/driver-api/media/drivers/pxa_camera.rst β€” iykyk πŸ“–βœ¨


🌈 CONTEXT 🌈

should only be called within the dma irq handler ⚠️ like, do not just call this from anywhere bestie, respect the vibe check πŸ™ˆ


⭐ SEE ALSO ⭐

Kernel file ./drivers/media/platform/intel/pxa_camera.c, enum pxa_mbus_packing(9), enum pxa_mbus_order(9), enum pxa_mbus_layout(9), struct pxa_mbus_pixelfmt(9), struct pxa_mbus_lookup(9), struct pxa_camera_format_xlate(9), pxa_init_dma_channel(9), pxa_dma_start_channels(9), pxa_camera_start_capture(9) πŸ¦‹πŸ’œ


and that's the whole page, bestie β€” no cap, we kept every single detail πŸ§šπŸ’«

sooo this lil' gem lives in ./drivers/media/platform/intel, dated October 2026, and it's literally the pxa_camera_check_link_miss(9) manual page from the Kernel API Manual πŸŽ€ slay, go forth and check those link misses πŸ’…πŸ‘‘

πŸ“¦ where this page comes from