All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: imx: staging cleanup and FIM export to v4l2-core
@ 2026-11-21 17:02 Jiaqi Shi
  2026-11-21 17:02 ` [PATCH 1/2] media: imx: remove legacy video node control and format handling Jiaqi Shi
  2026-11-21 17:02 ` [PATCH 2/2] media: v4l2-core: add frame interval monitor helper Jiaqi Shi
  0 siblings, 2 replies; 5+ messages in thread
From: Jiaqi Shi @ 2026-11-21 17:02 UTC (permalink / raw)
  To: linux-media, imx, linux-staging
  Cc: slongerbeam, p.zabel, mchehab, gregkh, Frank.Li, kernel, festevam,
	Jiaqi Shi

Changes in v2:
- Drop the ICAP_CHANNEL s_ctrl patch. The ICAP controls are clustered and
  s_ctrl is always called on ICAP_EDGE, so the added case was dead code.
- Initialize the default field and colorimetry with
  imx_media_init_mbus_fmt(), and resolve try-format colorimetry using the
  selected format's media bus code.
- Clamp dimensions to non-zero values and reject formats whose image size
  exceeds the 32-bit sizeimage field.
- Validate the selected pixel format against the source media bus format,
  including an exact match on non-IPU passthrough links.
- Update the v4l2-ctl examples to specify width and height explicitly.
- During FIM control updates, read new values only from the active
  cluster and committed values from other clusters.

This series continues the i.MX staging media driver cleanup by removing
legacy video node handling and exporting the Frame Interval Monitor to
v4l2-core.

Patch 1 removes control inheritance and source-dependent format handling
from capture video nodes in favor of the subdev-based userspace API.

Patch 2 moves the generic FIM implementation to v4l2-core while keeping
the i.MX-specific input capture controls in the i.MX adapter. The error
calculation uses signed arithmetic to avoid underflow when the measured
interval is smaller than the nominal interval.

Validation:
- allmodconfig build and sparse
- local FIM KUnit tests, not included in this series: 13/13 passed
- local white-box i.MX capture format tests, not included: 15/15 passed
- QEMU vivid: v4l2-compliance 125/125, 30-frame streaming passed
- QEMU vim2m: v4l2-compliance 49/49, 10-frame streaming passed
- i.MX register-level and hardware DMA paths remain untested

Jiaqi Shi (2):
  media: imx: remove legacy video node control and format handling
  media: v4l2-core: add frame interval monitor helper

 Documentation/admin-guide/media/imx.rst       |  20 +-
 drivers/media/v4l2-core/Kconfig               |   4 +
 drivers/media/v4l2-core/Makefile              |   1 +
 drivers/media/v4l2-core/v4l2-fim.c            | 331 ++++++++++++++++
 drivers/staging/media/imx/Kconfig             |   1 +
 drivers/staging/media/imx/TODO                |  13 -
 drivers/staging/media/imx/imx-ic-prpencvf.c   |   7 +-
 drivers/staging/media/imx/imx-media-capture.c | 230 +++---------
 drivers/staging/media/imx/imx-media-csi.c     |   7 +-
 .../staging/media/imx/imx-media-dev-common.c  | 113 +-----
 drivers/staging/media/imx/imx-media-fim.c     | 355 +++---------------
 drivers/staging/media/imx/imx-media.h         |   9 +-
 include/media/v4l2-fim.h                      |  40 ++
 13 files changed, 490 insertions(+), 641 deletions(-)
 create mode 100644 drivers/media/v4l2-core/v4l2-fim.c
 delete mode 100644 drivers/staging/media/imx/TODO
 create mode 100644 include/media/v4l2-fim.h

-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-21 17:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21 17:02 [PATCH v2 0/2] media: imx: staging cleanup and FIM export to v4l2-core Jiaqi Shi
2026-11-21 17:02 ` [PATCH 1/2] media: imx: remove legacy video node control and format handling Jiaqi Shi
2026-11-21 17:26   ` sashiko-bot
2026-11-21 17:02 ` [PATCH 2/2] media: v4l2-core: add frame interval monitor helper Jiaqi Shi
2026-11-21 17:13   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.