summaryrefslogtreecommitdiff
path: root/drivers/media
AgeCommit message (Collapse)AuthorFilesLines
2024-01-26Merge tag 'JH7110_SDK_6.1_v5.11.0' into vf2-6.1.y-develAndy Hu20-3736/+2788
2024-01-26Merge branch 'CR_9096_wave5_v4l2_v14-6.1_Som.Qin' into 'jh7110-6.1.y-devel'andy.hu19-3734/+2787
CR 9096 porting wave5 v4l2 driver v14 See merge request sdk/linux!1018
2024-01-23media: add wave511 v4l2 support for starfive jh 7110 platfromSom Qin10-82/+194
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2024-01-23media: chips-media: wave5: Fix panic on decoding DECODED_IDX_FLAG_SKIPMattijs Korpershoek1-1/+1
The display frame region information received from the vpu also contains the frame display index: info->index_frame_display. This index, being a s32, can be negative when a skip option is passed. In that case, its value is DECODED_IDX_FLAG_SKIP (-2). When disp_idx == -2, the following exception occurs: [ 1530.782246][ T1900] Hardware name: Texas Instruments AM62P5 SK (DT) [ 1530.788501][ T1900] pstate: a0400005 (NzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 1530.796144][ T1900] pc : wave5_vpu_dec_get_output_info+0x300/0x308 [wave5] [ 1530.803060][ T1900] lr : wave5_vpu_dec_get_output_info+0x80/0x308 [wave5] [ 1530.809873][ T1900] sp : ffffffc00b85bc00 [ 1530.813872][ T1900] x29: ffffffc00b85bc00 x28: 0000000000000000 x27: 0000000000000001 [ 1530.821695][ T1900] x26: 00000000fffffffd x25: 00000000ffffffff x24: ffffff8812820000 [ 1530.829516][ T1900] x23: ffffff88199f7840 x22: ffffff8873f5e000 x21: ffffffc00b85bc58 [ 1530.837336][ T1900] x20: 0000000000000000 x19: ffffff88199f7920 x18: ffffffc00a899030 [ 1530.845156][ T1900] x17: 00000000529c6ef0 x16: 00000000529c6ef0 x15: 0000000000198487 [ 1530.852975][ T1900] x14: ffffffc009f2b650 x13: 0000000000058016 x12: 0000000005000000 [ 1530.860795][ T1900] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 [ 1530.868615][ T1900] x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000004086 [ 1530.876434][ T1900] x5 : 0000000000000001 x4 : ffffffc001454b94 x3 : ffffffc001454d94 [ 1530.884256][ T1900] x2 : ffffffc00b8201d0 x1 : 0000000000000020 x0 : 0000000000000000 [ 1530.892087][ T1900] Call trace: [ 1530.895225][ T1900] wave5_vpu_dec_get_output_info+0x300/0x308 [wave5] [ 1530.901788][ T1900] wave5_vpu_dec_finish_decode+0x6c/0x3dc [wave5] [ 1530.908081][ T1900] wave5_vpu_irq_thread+0x140/0x168 [wave5] [ 1530.913856][ T1900] irq_thread_fn+0x44/0xa4 [ 1530.918154][ T1900] irq_thread+0x15c/0x288 [ 1530.922330][ T1900] kthread+0x104/0x1d4 [ 1530.926247][ T1900] ret_from_fork+0x10/0x20 [ 1530.930520][ T1900] Code: 2a1f03ea 2a1f03eb 35ffef2c 17ffff74 (d42aa240) [ 1530.937296][ T1900] ---[ end trace 0000000000000000 ]--- [ 1530.942596][ T1900] Kernel panic - not syncing: BRK handler: Fatal exception [ 1530.949629][ T1900] SMP: stopping secondary CPUs [ 1530.954244][ T1900] Kernel Offset: disabled [ 1530.958415][ T1900] CPU features: 0x00,00000000,00800184,0000421b [ 1530.964496][ T1900] Memory Limit: none Move the disp_info assignment after testing that the index is positive to avoid the exception. Fixes: 45d1a2b93277 ("media: chips-media: wave5: Add vpuapi layer") Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-01-23media: chips-media: wave5: Fix spelling mistake "bufferur" -> "buffer"Colin Ian King1-1/+1
There is a spelling mistake in a dev_dbg message. Fix it. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-01-23media: wave5: add OF and V4L_MEM2MEM_DRIVERS dependenciesDeborah Brouwer1-1/+2
Fix compile warning when CONFIG_OF=n: drivers/media/platform/chips-media/wave5/wave5-vpu.c:274:34: warning: 'wave5_dt_ids' defined but not used [-Wunused-const-variable=] 274 | static const struct of_device_id wave5_dt_ids[] = { | Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: added commit log text]
2024-01-23media: chips-media: wave5: Add the v4l2 layerNas Chung10-0/+4368
Add the decoder and encoder implementing the v4l2 API. This patch also adds the Makefile and the VIDEO_WAVE_VPU config Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
2024-01-23media: chips-media: wave5: Add vpuapi layerNas Chung9-0/+5839
Add the vpuapi layer of the wave5 codec driver. This layer is used to configure the hardware according to the parameters. Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
2024-01-23media: platform: chips-media: Move Coda to separate folderSebastian Fricke16-21/+27
Prepare the folder structure for a second Chips&Media driver. Move the Coda driver to a sub-directory. Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
2024-01-23media: v4l2: Allow M2M job queuing w/o streaming CAP queueSebastian Fricke1-3/+6
Allow decoder drivers to enable set the ignore_streaming flag on their CAPTURE queue, to allow queuing jobs to the M2M ready queue and perform firmware sequence analysis with just a streaming OUTPUT queue and available bitstream data. Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
2024-01-23media: reverts old version wave5 driverSom Qin34-11296/+20
Signed-off-by: Som Qin <som.qin@starfivetech.com> Revert "Media:Wave5:Fix decoder dma buffer unconsistency" This reverts commit 0d6306536d0b0b1e7a54fd67d68cc6d72397573f. Revert "Medis:wave5: Remove inexistent including" This reverts commit ed137a80cd88571d5d7169cae8379f7f763eedef. Revert "Media:Wave5: Allocate more linear buffer to avoid block in gst-play" This reverts commit a95153b6cedfa7db2f02e6bd93b154808ca98fa1. Revert "Media:Wave5: Fix segment fault when finish buffer" This reverts commit 9aea96f91ea6f45326c8dc5572a085002750a951. Revert "Media: Wave5: Fix plane size mismatch" This reverts commit b4e474a223e8c85638d084e3319db038a76a1351. Revert "Media:Wave5: Fix driver compile warning" This reverts commit 5d74ac40d2508759153583337f8f27e9c9a3b125. Revert "Media:Wave5: Vpu driver in jh7110deconfig builded as module, not buildin." This reverts commit 0f1c83f38de16e57be28daccc056e5beb19b3ebd. Revert "Media:Wave5: Add contiguous planes format support (YUV420/NV12/NV21)" This reverts commit 80c6e7df80bdfeb9f4ffb39c450ed9c55312e715. Revert "Media:wave5: Driver get clks from DTS instead of hard coding." This reverts commit 167fdf2d4c340ac45e17dc22984ab2a002d328b6. Revert "Media:wave5: Fix stride mismatching of decoding frame buffers" This reverts commit a9830d5d01e945344ce7ef595f07f6bd7ea241cf. Revert "Media:wave5: wave5 v4l2 driver support gst/ffmpeg" This reverts commit 3f710b8fa1371991f9ff322ac8c00de7980e252a. Revert "Media:wave5: set default format for display_fmt" This reverts commit 6d80c00e9258d519d7a107874dee3281edb50b45. Revert "media: add wave511 v4l2 support for starfive platfrom" This reverts commit a76c4f273c26d4f99065469e1638779d023b38bd. Revert "media: chips-media: wave5: Add wave5 driver to maintainers file" This reverts commit c6cf2b7965b0bf4469ef6e43ea8f0a7116c6ef2d. Revert "dt-bindings: media: wave5: add yaml devicetree bindings" This reverts commit cd9148ef1b1433ef14f39e822906d100deb7c57f. Revert "media: chips-media: wave5: Add TODO file" This reverts commit b9ab65a219e6a676ee1db4dd44cf820ce4ee9a60. Revert "media: chips-media: wave5: Add the v4l2 layer" This reverts commit 8f188e8db60e457dd719e4db5df926c084eb84b6. Revert "media: chips-media: wave5: Add vpuapi layer" This reverts commit 20c1678a8e65a51376f81189373c594c04f4fa15. Revert "media: platform: chips-media: Move Coda to separate folder" This reverts commit b98dc9cf775403f59f55dd318052e86efa5fc6e4.
2024-01-23media: starfive: Lower the priority of printChanghuang Liang1-2/+1
Lower the priority of print Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2024-01-19Merge tag 'JH7110_SDK_6.1_v5.10.6' into vf2-6.1.y-develAndy Hu3-8/+18
2024-01-12media: starfive: Update flush l2cache interfaceChanghuang Liang3-8/+18
Improve l2cache flush performance. And adjust ISP sc buffer size in pixel format. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-12-15Merge tag 'JH7110_SDK_6.1_v5.10.2' into vf2-6.1.y-develAndy Hu3-9/+103
2023-12-14Media:Wave5: Fix timestamping issue in the decoderSom Qin2-3/+72
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-12-14Media:Wave5:Fix decoder dma buffer unconsistencySom Qin3-6/+31
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-11-16Merge tag 'JH7110_6.1_SDK_v5.9.2' into vf2-6.1.y-develJH7110_VF2_6.1_v3.9.3Andy Hu1-31/+24
2023-11-13media: starfive: Update ISP initialzationChanghuang Liang1-31/+24
ISP compatible stf_isp_ctrl and libcamera. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-11-04Merge tag 'JH7110_6.1_SDK_v5.9.0' into vf2-6.1.y-develAndy Hu5-50/+830
2023-11-01Add ISP control for video2 and video3.zejian.su1-0/+46
Signed-off-by: zejian.su <zejian.su@starfivetech.com>
2023-11-01Expand 2 bytes after the SC buffer for the AE/AWB flag and copy the ↵zejian.su4-26/+54
histogram data to the SC buffer.
2023-11-01Add 16 ISP controls, remove the frame SYNC event to video7 (SC) These ↵zejian.su3-5/+661
controls are: WB, CAR, CCM, CFA, CTC, DBC, DNYUV, GMARGB, LCCF, OBC, OECF, R2Y, SAT, SHRP, YCRV, SC
2023-11-01media: starfive: isp: Fix enum isp subdev code bugChanghuang Liang1-13/+3
Fix enum isp subdev code bug. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-11-01media: starfive: isp: Update format pad table one by oneChanghuang Liang1-32/+14
Update format pad table one by one, it can simply code. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-11-01media: starfive: Add isp sc buffer pointChanghuang Liang2-1/+4
Add isp sc buffer point. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-11-01media: satrfive: stf_isp: Add new conctrl supportChanghuang Liang1-1/+52
Add new conctrl for jh7110 isp. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-11-01media: starfive: Add isp frame sync eventChanghuang Liang1-1/+25
Add isp frame sync event. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-11-01media: starfive: Add V4L2_CAP_IO_MC capabilitiesChanghuang Liang1-1/+1
Add V4L2_CAP_IO_MC capabilities. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-08-31Merge tag 'JH7110_6.1_SDK_v5.7.0' into vf2-6.1.y-develAndy Hu34-20/+11202
2023-08-30Medis:wave5: Remove inexistent includingSom Qin1-1/+1
File sifive_l2_cache.h is inexistent in sdk 6.1 version. Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media:Wave5: Allocate more linear buffer to avoid block in gst-playSom Qin1-5/+2
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media:Wave5: Fix segment fault when finish bufferSom Qin1-0/+5
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media: Wave5: Fix plane size mismatchSom Qin3-159/+47
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media:Wave5: Fix driver compile warningSom Qin1-1/+0
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media:Wave5: Add contiguous planes format support (YUV420/NV12/NV21)Som Qin2-9/+9
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media:wave5: Driver get clks from DTS instead of hard coding.Som Qin1-30/+8
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media:wave5: Fix stride mismatching of decoding frame buffersSom Qin1-1/+8
When bitstream format bitdepth > 8, stride of compressed frame map buffers shoule be recalculated. Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media:wave5: wave5 v4l2 driver support gst/ffmpegSom Qin5-64/+169
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30Media:wave5: set default format for display_fmtSom Qin1-0/+1
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30media: add wave511 v4l2 support for starfive platfromSom Qin8-48/+162
Signed-off-by: Som Qin <som.qin@starfivetech.com>
2023-08-30media: chips-media: wave5: Add TODO fileNas Chung1-0/+18
Add a TODO file with remaining elements to be improved/added. Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
2023-08-30media: chips-media: wave5: Add the v4l2 layerNas Chung10-0/+3836
Add the decoder and encoder implementing the v4l2 API. This patch also adds the Makefile and the VIDEO_WAVE_VPU config Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
2023-08-30media: chips-media: wave5: Add vpuapi layerNas Chung9-0/+7228
Add the vpuapi layer of the wave5 codec driver. This layer is used to configure the hardware according to the parameters. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
2023-08-30media: platform: chips-media: Move Coda to separate folderSebastian Fricke16-20/+26
Prepare the folder structure for a second Chips&Media driver. Move the Coda driver to a sub-directory. Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
2023-08-01v4l2: add imx219 supportchanghuang.liang6-33/+11
dts: add imx219 configure Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2023-07-12Merge branch 'CR_6468_vin_6.1_changhuang.liang' into 'jh7110-6.1.y-devel'andy.hu1-1/+1
CR_6468_vin_6.1_changhuang.liang media: starfive: Fix vin warning See merge request sdk/linux!918
2023-07-10media: starfive: Fix vin warningChanghuang Liang1-1/+1
Fix vin warning. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-07-03media: starfive: imx219: Add system pmChanghuang Liang1-0/+1
Add system pm. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-06-19media: starfive: ov4689: Add different lane num supportChanghuang Liang1-9/+13
Add different lane num support. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>