Skip to content

Fix the rkisp1 userspace API for later IP versions

Dafna Hirschfeld linux-media linux-rockchip 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest6 patches 3 repliesIn review
  2. v75 patches 7 repliesSuperseded
  3. v11 patch 9 repliesSuperseded

Changes in v8 from the cover letter

- in patch 1, wrap long lines
- add a patch that masks out the unused bits in hist_bins enteries.
- in the last patch, in the last patch, remove unneeded memset of the stats arries
- no changes in other patches appart of rebase

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6media: rkisp1: uapi: change hist_bins array type from __u16 to __u32include/uapi/linux/rkisp1-config.h+9 -40 replies
2/6media: rkisp1: stats: remove a wrong cast to u8drivers/media/platform/rockchip/rkisp1/rkisp1-stats.c+1 -20 replies
3/6media: rkisp1: stats: mask the hist_bins valuesdrivers/media/platform/rockchip/rkisp1/rkisp1-regs.h drivers/media/platform/rockchip/rkisp1/rkisp1-stats.c+6 -30 replies
4/6media: rockchip: rkisp1: reduce number of histogram grid elements in uapidrivers/media/platform/rockchip/rkisp1/rkisp1-params.c include/uapi/linux/rkisp1-config.h+3 -33 replies
5/6media: rockchip: rkisp1: carry ip version informationDocumentation/admin-guide/media/rkisp1.rst drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c include/uapi/linux/rkisp1-config.h+43 -90 replies
6/6media: rockchip: rkisp1: extend uapi array sizesdrivers/media/platform/rockchip/rkisp1/rkisp1-params.c drivers/media/platform/rockchip/rkisp1/rkisp1-stats.c include/uapi/linux/rkisp1-config.h+60 -130 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchHeiko StuebnerEzequiel GarciaHelen KoikeDafna Hirschfeld
1/6
2/6R-b
3/6
4/6A-b
5/6R-b A-b R-b
6/6R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/6] Fix the rkisp1 userspace API for later IP versions

This is v8 of the rkisp1 fixes set sent by Heiko Stuebner. [0]

In addition to prepare the support to px30 (V12 in the uapi) This version of the set adds more fixes to the code in params/stats according to the changes in the uapi and also change the hist_bins to be u32 instead of u16.

More details about the patchset can be found in v6's cover-letter [1]

[0] https://patchwork.kernel.org/project/linux-media/list/?series=416647
[1] https://patchwork.kernel.org/project/linux-media/cover/[email protected]/

changes since v7:
- in patch 1, wrap long lines
- add a patch that masks out the unused bits in hist_bins enteries.
- in the last patch, in the last patch, remove unneeded memset of the stats arries
- no changes in other patches appart of rebase

changes since v6:
- add a patch to change the hist_bins array type to __u32 and extend the documentation of how the histogram measurements are taken
- remove a wrong u8 cast when filling the hist_bins array
- when reducing the number of elements in the weight grid array, the code in rkisp1-params.c should be adjusted to iterate it 25 times
- some minor typo and checkpatch fixes.

changes since v5:
- move grid reduction for V10 to separate patch (Hans)
- fix commit message (histogram size 28 -> 25) in patch4 (Hans)

changes since v4:
- set GAMMA_OUT to the real 25 instead of the 28 with 3 spares (Dafna)
- start RKISP_Vxx enum with 10 for RKISP_V10 to make output easier and also allow userspace to differentiate between old (= 0) and newer driver variants (Dafna, Laurent)

changes since v3:
- add patch fixing the original histogram size comment
- make comments in uapi more verbose (Hans)
- fix wording in admin guide (Hans)
- document version <-> soc in uapi as well (easier for people) (Dafna)

changes since v2:
- actually zero the correct sizes for u16 values (hist-bins) (kernel-test-robot)

changes since v1:
- drop duplicate isp_ver storage, hw_revision is enough (Dafna)
- document multiple maximum sizes in uapi (Hans)
- document usage of hw_revision field (Hans)
- zero fields transmitted to userspace before adding data (Hans)
- use _V10 field sizes when filling fields, as there is only v10 for now

changes since rfc:
- move rkisp1_version enum into uapo
- show version in media-api hw_revision
- introduce constants for versions and make max use the biggest

Dafna Hirschfeld (3):
media: rkisp1: uapi: change hist_bins array type from __u16 to __u32
media: rkisp1: stats: remove a wrong cast to u8
media: rkisp1: stats: mask the hist_bins values

Heiko Stuebner (3):
media: rockchip: rkisp1: reduce number of histogram grid elements in
uapi
media: rockchip: rkisp1: carry ip version information
media: rockchip: rkisp1: extend uapi array sizes

 Documentation/admin-guide/media/rkisp1.rst    | 16 ++++
 .../platform/rockchip/rkisp1/rkisp1-dev.c     | 21 +++--
 .../platform/rockchip/rkisp1/rkisp1-params.c  |  5 +-
 .../platform/rockchip/rkisp1/rkisp1-regs.h    |  1 +
 .../platform/rockchip/rkisp1/rkisp1-stats.c   | 11 +--
 include/uapi/linux/rkisp1-config.h            | 86 ++++++++++++++++---
 6 files changed, 114 insertions(+), 26 deletions(-)
Signature · 7 lines
2.17.1


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip