Skip to content

media: atomisp: Convert to videobuf2

Hans de Goede linux-media linux-staging 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest17 patches 18 repliesIn review
  2. v117 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17media: atomisp: Add hmm_create_from_vmalloc_buf() functiondrivers/staging/media/atomisp/include/hmm/hmm.h drivers/staging/media/atomisp/include/hmm/hmm_bo.h drivers/staging/media/atomisp/pci/hmm/hmm.c +1 more+42 -110 replies
2/17media: atomisp: Add ia_css_frame_init_from_info() functiondrivers/staging/media/atomisp/pci/ia_css_frame_public.h drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c+27 -00 replies
3/17media: atomisp: Make atomisp_q_video_buffers_to_css() staticdrivers/staging/media/atomisp/pci/atomisp_fops.c drivers/staging/media/atomisp/pci/atomisp_fops.h+5 -110 replies
4/17media: atomisp: On streamoff wait for buffers owned by the CSS to be given backdrivers/staging/media/atomisp/pci/atomisp_fops.c drivers/staging/media/atomisp/pci/atomisp_ioctl.c drivers/staging/media/atomisp/pci/atomisp_subdev.h+21 -242 replies
5/17media: atomisp: Remove unused atomisp_buffers_queued[_pipe] functionsdrivers/staging/media/atomisp/pci/atomisp_cmd.c drivers/staging/media/atomisp/pci/atomisp_cmd.h+0 -190 replies
6/17media: atomisp: Also track buffers in a list when submitted to the ISPdrivers/staging/media/atomisp/pci/atomisp_cmd.c drivers/staging/media/atomisp/pci/atomisp_cmd.h drivers/staging/media/atomisp/pci/atomisp_fops.c +3 more+72 -542 replies
7/17media: atomisp: Add an index helper variable to atomisp_buf_done()drivers/staging/media/atomisp/pci/atomisp_cmd.c+28 -420 replies
8/17media: atomisp: Use new atomisp_flush_video_pipe() helper in atomisp_streamoff()drivers/staging/media/atomisp/pci/atomisp_ioctl.c+2 -380 replies
9/17media: atomisp: Add ia_css_frame_get_info() helperdrivers/staging/media/atomisp/pci/atomisp_fops.c drivers/staging/media/atomisp/pci/ia_css_frame_public.h drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ia_css_bayer_io.host.c +8 more+124 -1231 reply
10/17media: atomisp: Convert to videobuf2drivers/staging/media/atomisp/pci/atomisp_cmd.c drivers/staging/media/atomisp/pci/atomisp_cmd.h drivers/staging/media/atomisp/pci/atomisp_common.h +9 more+303 -7902 replies
11/17media: atomisp: Make it possible to call atomisp_set_fmt() without a file handledrivers/staging/media/atomisp/pci/atomisp_cmd.c drivers/staging/media/atomisp/pci/atomisp_cmd.h drivers/staging/media/atomisp/pci/atomisp_ioctl.c+11 -40 replies
12/17media: atomisp: Fix VIDIOC_REQBUFS failing when VIDIOC_S_FMT has not been called yetdrivers/staging/media/atomisp/pci/atomisp_compat_css20.c drivers/staging/media/atomisp/pci/atomisp_fops.c+24 -35 replies
13/17media: atomisp: Refactor atomisp_adjust_fmt()drivers/staging/media/atomisp/pci/atomisp_ioctl.c+1 -220 replies
14/17media: atomisp: Fix atomisp_try_fmt_cap() always returning YUV420 pixelformatdrivers/staging/media/atomisp/pci/atomisp_ioctl.c+7 -00 replies
15/17media: atomisp: Make atomisp_g_fmt_cap() default to YUV420drivers/staging/media/atomisp/pci/atomisp_ioctl.c+1 -11 reply
16/17media: atomisp: Remove __atomisp_get_pipe() helperdrivers/staging/media/atomisp/pci/atomisp_cmd.c+4 -940 replies
17/17media: atomisp: gc0310: Power on sensor from set_fmt() callbackdrivers/staging/media/atomisp/i2c/atomisp-gc0310.c drivers/staging/media/atomisp/i2c/gc0310.h+13 -23 replies

Reviews trailers per patch

None of the 17 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy Shevchenko
SeriesR-b
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/17] media: atomisp: Convert to videobuf2

Hi All,

Here is v2 of my patch series converting the staging atomisp driver to use the videobuf2 framework, fixing MMAP mode not working.

New in v2 is that the "media: atomisp: Convert to videobuf2" patch now also contains moving over to using a per vb_queue lock as is standard for v4l2 drivers. This removes a bunch of FIXME + checkpatch warnings (due to commented out prep for this) from v1 of this patch. This v2 also fixes the 1 new warning pointed out by the lkp test robot.

For some more background info here are the still relevant bits of the v1 cover-letter:

This also contains an important fix to try_fmt handling, so that the various supported output formats can actually be used by userspace which calls try_fmt before doing s_fmt.

So slowly this is starting to look more and more like a standard v4l2 device (with all the complex pipeline handling hidden in the driver, moving that to userspace seems to be impossible with this design since multiple pipeline steps are handled by a single firmware program).

Regards,

Hans

Hans de Goede (17):
media: atomisp: Add hmm_create_from_vmalloc_buf() function
media: atomisp: Add ia_css_frame_init_from_info() function
media: atomisp: Make atomisp_q_video_buffers_to_css() static
media: atomisp: On streamoff wait for buffers owned by the CSS to be
given back
media: atomisp: Remove unused atomisp_buffers_queued[_pipe] functions
media: atomisp: Also track buffers in a list when submitted to the ISP
media: atomisp: Add an index helper variable to atomisp_buf_done()
media: atomisp: Use new atomisp_flush_video_pipe() helper in
atomisp_streamoff()
media: atomisp: Add ia_css_frame_get_info() helper
media: atomisp: Convert to videobuf2
media: atomisp: Make it possible to call atomisp_set_fmt() without a
file handle
media: atomisp: Fix VIDIOC_REQBUFS failing when VIDIOC_S_FMT has not
been called yet
media: atomisp: Refactor atomisp_adjust_fmt()
media: atomisp: Fix atomisp_try_fmt_cap() always returning YUV420
pixelformat
media: atomisp: Make atomisp_g_fmt_cap() default to YUV420
media: atomisp: Remove __atomisp_get_pipe() helper
media: atomisp: gc0310: Power on sensor from set_fmt() callback

 .../media/atomisp/i2c/atomisp-gc0310.c        |  14 +-
 drivers/staging/media/atomisp/i2c/gc0310.h    |   1 +
 .../staging/media/atomisp/include/hmm/hmm.h   |   2 +
 .../media/atomisp/include/hmm/hmm_bo.h        |   4 +-
 .../staging/media/atomisp/pci/atomisp_cmd.c   | 353 ++++--------
 .../staging/media/atomisp/pci/atomisp_cmd.h   |   9 +-
 .../media/atomisp/pci/atomisp_common.h        |   6 +-
 .../media/atomisp/pci/atomisp_compat.h        |   3 +-
 .../media/atomisp/pci/atomisp_compat_css20.c  |   6 +-
 .../staging/media/atomisp/pci/atomisp_fops.c  | 528 ++++++-----------
 .../staging/media/atomisp/pci/atomisp_fops.h  |  13 -
 .../staging/media/atomisp/pci/atomisp_ioctl.c | 536 ++++--------------
 .../staging/media/atomisp/pci/atomisp_ioctl.h |  10 +-
 .../media/atomisp/pci/atomisp_subdev.c        |   2 +
 .../media/atomisp/pci/atomisp_subdev.h        |  22 +-
 drivers/staging/media/atomisp/pci/hmm/hmm.c   |  15 +-
 .../staging/media/atomisp/pci/hmm/hmm_bo.c    |  32 +-
 .../media/atomisp/pci/ia_css_frame_public.h   |  36 +-
 .../bayer_io_ls/ia_css_bayer_io.host.c        |  10 +-
 .../yuv444_io_ls/ia_css_yuv444_io.host.c      |  10 +-
 .../isp/kernels/ref/ref_1.0/ia_css_ref.host.c |   2 +-
 .../isp/kernels/tnr/tnr_1.0/ia_css_tnr.host.c |   4 +-
 .../pci/runtime/debug/src/ia_css_debug.c      |  26 +-
 .../atomisp/pci/runtime/frame/src/frame.c     |  82 +--
 drivers/staging/media/atomisp/pci/sh_css.c    |  38 +-
 .../staging/media/atomisp/pci/sh_css_params.c |  17 +-
 drivers/staging/media/atomisp/pci/sh_css_sp.c |  52 +-
 27 files changed, 640 insertions(+), 1193 deletions(-)
Signature · 1 line
2.37.3