Add support for mt2701 JPEG ENC support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v12 Latest posting 2/229 patches 4 repliesIn review
- v12 posting 1/20 of 29 patches 0 repliesSuperseded
- v1128 patches 2 repliesSuperseded
Earlier versions · 12
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v10 | 28 patches | 4 replies | Superseded | |
| v9 posting 3/3 | 18 patches | 25 replies | Superseded | |
| v9 posting 2/3 | 0 of 18 patches | 0 replies | Superseded | |
| v9 posting 1/3 | 18 patches | 0 replies | Superseded | |
| v8 | 14 patches | 26 replies | Superseded | |
| v7 | 11 patches | 6 replies | Superseded | |
| v6 | 5 patches | 2 replies | Superseded | |
| v5 | 5 patches | 1 reply | Superseded | |
| v4 | 5 patches | 11 replies | Superseded | |
| v3 | 5 patches | 3 replies | Superseded | |
| v2 | 5 patches | 2 replies | Superseded | |
| v1 | 5 patches | 2 replies | Superseded |
Changes in v12 from the cover letter
- add the relied patch(https://lore.kernel.org/linux-arm-kernel/[email protected]/) to this series
- fix the compile warnings of patch 29/29
Patches in v12 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/29 | media: platform: Improve subscribe event flow for bug fixingdrivers/ | +2 | 0 replies | |
| 2/29 | media: platform: Improve queue set up flow for bug fixingdrivers/ | +7 | 0 replies | |
| 3/29 | media: platform: Improve getting and requesting irq flow for bug fixingdrivers/ | +2 | 0 replies | |
| 4/29 | media: platform: Change the fixed device node number to unfixed valuedrivers/ | +1 | 0 replies | |
| 5/29 | media: platform: Improve power on and power off flowdrivers/ | +6 | 0 replies | |
| 6/29 | media: platform: Delete the resetting hardware flow in the system PM opsdrivers/ | +0 | 0 replies | |
| 7/29 | media: v4l2-mem2mem: add v4l2_m2m_suspend, v4l2_m2m_resumedrivers/ include/ | +63 | 5 replies | |
| 8/29 | media: platform: Improve the implementation of the system PM opsdrivers/ | +8 | 0 replies | |
| 9/29 | media: platform: Add mechanism to handle jpeg hardware's locking updrivers/ drivers/ | +29 | 0 replies | |
| 10/29 | media: platform: Cancel the last frame handling flowdrivers/ | +2 | 0 replies | |
| 11/29 | media: platform: Delete zeroing the reserved fieldsdrivers/ | +0 | 0 replies | |
| 12/29 | media: platform: Stylistic changes for improving code qualitydrivers/ drivers/ | +13 | 0 replies | |
| 13/29 | media: platform: Use generic rounding helpersdrivers/ drivers/ drivers/ | +15 | 0 replies | |
| 14/29 | media: platform: Change MTK_JPEG_COMP_MAX macro definition locationdrivers/ drivers/ | +2 | 0 replies | |
| 15/29 | media: platform: Delete redundant code and add annotation for an enumdrivers/ drivers/ | +8 | 0 replies | |
| 16/29 | media: platform: Delete vidioc_s_selection ioctl of jpeg decdrivers/ | +0 | 0 replies | |
| 17/29 | media: platform: Change the maximum width and height supported by JPEG decdrivers/ | +2 | 0 replies | |
| 18/29 | media: platform: Refactor mtk_jpeg_try_fmt_mplane()drivers/ | +16 | 0 replies | |
| 19/29 | media: platform: Refactor mtk_jpeg_find_format()drivers/ drivers/ | +34 | 0 replies | |
| 20/29 | media: platform: Redefinition of mtk_jpeg_q_data structuredrivers/ drivers/ | +57 | 0 replies | |
| 21/29 | media: platform: Change the colorspace of jpeg to the fixed valuedrivers/ | +12 | 0 replies | |
| 22/29 | media: platform: Refactor mtk_jpeg_set_default_params()drivers/ | +2 | 0 replies | |
| 23/29 | media: platform: Change the call functions of getting/enable/disable the jpeg's clockdrivers/ drivers/ | +23 | 0 replies | |
| 24/29 | media: dt-bindings: Add jpeg enc device tree node documentDocumentation/ | +35 | 0 replies | |
| 25/29 | arm: dts: mt2701: Add jpeg enc device tree nodearch/ | +13 | 2 replies | |
| 26/29 | media: platform: Rename jpeg dec file namedrivers/ drivers/ drivers/ +4 more | +7 | 0 replies | |
| 27/29 | media: platform: Rename existing functions/defines/variablesdrivers/ drivers/ drivers/ | +97 | 0 replies | |
| 28/29 | media: platform: Using the variant structure to contain the varability between dec and encdrivers/ drivers/ | +104 | 0 replies | |
| 29/29 | media: platform: Add jpeg enc featuredrivers/ drivers/ drivers/ +2 more | +611 | 0 replies |
Reviews trailers per patch
All 29 patches have a Reviewed-by or Acked-by.
| Patch | Tomasz Figa | Rob Herring | Adrian Ratiu | Hans Verkuil |
|---|---|---|---|---|
| 1/29 | R-b | |||
| 2/29 | R-b | |||
| 3/29 | R-b | |||
| 4/29 | R-b | |||
| 5/29 | R-b | |||
| 6/29 | R-b | |||
| 7/29 | R-b | T-b | R-b | |
| 8/29 | R-b | |||
| 9/29 | R-b | |||
| 10/29 | R-b | |||
| 11/29 | R-b | |||
| 12/29 | R-b | |||
| 13/29 | R-b | |||
| 14/29 | R-b | |||
| 15/29 | R-b | |||
| 16/29 | R-b | |||
| 17/29 | R-b | |||
| 18/29 | R-b | |||
| 19/29 | R-b | |||
| 20/29 | R-b | |||
| 21/29 | R-b | |||
| 22/29 | R-b | |||
| 23/29 | R-b | |||
| 24/29 | R-b | R-b | ||
| 25/29 | R-b | |||
| 26/29 | R-b | |||
| 27/29 | R-b | |||
| 28/29 | R-b | |||
| 29/29 | R-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.
Cover letter [PATCH v12 00/29] Add support for mt2701 JPEG ENC support
This patchset add support for mt2701 JPEG ENC support.
This is the compliance test result for jpeg dec and enc.
The JPEG dec log:
------------------------------------------------------------
v4l2-compliance -d /dev/video0
v4l2-compliance SHA: 78e4b293f654df1f273bbc6b1213511f53a2a465, 32 bits, 32-bit time_t
Compliance test for mtk-jpeg-dec device /dev/video0:
Driver Info:
Driver name : mtk-jpeg-dec
Card type : mtk-jpeg-dec
Bus info : platform:15004000.jpegdec
Driver version : 5.8.0
Capabilities : 0x84204000 Video Memory-to-Memory Multiplanar Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar Streaming
Extended Pix Format
Detected JPEG Decoder
Required ioctls:
test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video0 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
test invalid ioctls: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)
test Composing: OK
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK
test Requests: OK (Not Supported)
Total for mtk-jpeg-dec device /dev/video0: 45, Succeeded: 45, Failed: 0, Warnings: 0
------------------------------------------------------------
The JPEG enc log:
------------------------------------------------------------
v4l2-compliance -d /dev/video1
v4l2-compliance SHA: 78e4b293f654df1f273bbc6b1213511f53a2a465, 32 bits, 32-bit time_t
Compliance test for mtk-jpeg-enc device /dev/video1:
Driver Info:
Driver name : mtk-jpeg-enc
Card type : mtk-jpeg-enc
Bus info : platform:1500a000.jpegenc
Driver version : 5.8.0
Capabilities : 0x84204000 Video Memory-to-Memory Multiplanar Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar Streaming
Extended Pix Format
Detected JPEG Encoder
Required ioctls:
test VIDIOC_QUERYCAP: OK
Allow for multiple opens:
test second /dev/video1 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
test invalid ioctls: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 4 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK
test Requests: OK (Not Supported)
Total for mtk-jpeg-enc device /dev/video1: 45, Succeeded: 45, Failed: 0, Warnings: 0
------------------------------------------------------------
Change compared to v11:
- add the relied patch(https://lore.kernel.org/linux-arm-kernel/[email protected]/) to this series
- fix the compile warnings of patch 29/29
Pi-Hsun Shih (1):
media: v4l2-mem2mem: add v4l2_m2m_suspend, v4l2_m2m_resume
Xia Jiang (28):
media: platform: Improve subscribe event flow for bug fixing
media: platform: Improve queue set up flow for bug fixing
media: platform: Improve getting and requesting irq flow for bug
fixing
media: platform: Change the fixed device node number to unfixed value
media: platform: Improve power on and power off flow
media: platform: Delete the resetting hardware flow in the system PM
ops
media: platform: Improve the implementation of the system PM ops
media: platform: Add mechanism to handle jpeg hardware's locking up
media: platform: Cancel the last frame handling flow
media: platform: Delete zeroing the reserved fields
media: platform: Stylistic changes for improving code quality
media: platform: Use generic rounding helpers
media: platform: Change MTK_JPEG_COMP_MAX macro definition location
media: platform: Delete redundant code and add annotation for an enum
media: platform: Delete vidioc_s_selection ioctl of jpeg dec
media: platform: Change the maximum width and height supported by JPEG
dec
media: platform: Refactor mtk_jpeg_try_fmt_mplane()
media: platform: Refactor mtk_jpeg_find_format()
media: platform: Redefinition of mtk_jpeg_q_data structure
media: platform: Change the colorspace of jpeg to the fixed value
media: platform: Refactor mtk_jpeg_set_default_params()
media: platform: Change the call functions of getting/enable/disable
the jpeg's clock
media: dt-bindings: Add jpeg enc device tree node document
arm: dts: mt2701: Add jpeg enc device tree node
media: platform: Rename jpeg dec file name
media: platform: Rename existing functions/defines/variables
media: platform: Using the variant structure to contain the varability
between dec and enc
media: platform: Add jpeg enc feature
.../bindings/media/mediatek-jpeg-encoder.txt | 35 +
arch/arm/boot/dts/mt2701.dtsi | 13 +
drivers/media/platform/mtk-jpeg/Makefile | 5 +-
.../media/platform/mtk-jpeg/mtk_jpeg_core.c | 930 ++++++++++++------
.../media/platform/mtk-jpeg/mtk_jpeg_core.h | 106 +-
.../{mtk_jpeg_hw.c => mtk_jpeg_dec_hw.c} | 10 +-
.../{mtk_jpeg_hw.h => mtk_jpeg_dec_hw.h} | 12 +-
...{mtk_jpeg_parse.c => mtk_jpeg_dec_parse.c} | 2 +-
...{mtk_jpeg_parse.h => mtk_jpeg_dec_parse.h} | 2 +-
.../{mtk_jpeg_reg.h => mtk_jpeg_dec_reg.h} | 19 +-
.../media/platform/mtk-jpeg/mtk_jpeg_enc_hw.c | 154 +++
.../media/platform/mtk-jpeg/mtk_jpeg_enc_hw.h | 91 ++
drivers/media/v4l2-core/v4l2-mem2mem.c | 41 +
include/media/v4l2-mem2mem.h | 22 +
14 files changed, 1059 insertions(+), 383 deletions(-)
create mode 100644 Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt
rename drivers/media/platform/mtk-jpeg/{mtk_jpeg_hw.c => mtk_jpeg_dec_hw.c} (98%)
rename drivers/media/platform/mtk-jpeg/{mtk_jpeg_hw.h => mtk_jpeg_dec_hw.h} (91%)
rename drivers/media/platform/mtk-jpeg/{mtk_jpeg_parse.c => mtk_jpeg_dec_parse.c} (98%)
rename drivers/media/platform/mtk-jpeg/{mtk_jpeg_parse.h => mtk_jpeg_dec_parse.h} (92%)
rename drivers/media/platform/mtk-jpeg/{mtk_jpeg_reg.h => mtk_jpeg_dec_reg.h} (77%)
create mode 100644 drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.c
create mode 100644 drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.hSignature · 6 lines
2.18.0 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek