Commit Graph

1268 Commits

Author SHA1 Message Date
Vedang Nagar
17bc01b78f video: driver: Move clk/qcom.h to external reseource file
Move qcom.h header file from resources.h to resources_ext file.

Change-Id: I81735461f093fe724a51d66538be1cc562fc0e24
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-02-26 22:26:16 +05:30
qctecmdr
a7db37426e Merge "video: driver: Add new hfi buffer flags" 2023-02-24 21:15:31 -08:00
Ashish Patil
e28d357256 video: driver: lanai power calculations
New bandwidth and frequency calculation functions
for lanai.

Change-Id: I0ec4a74bc24598628fe94a6ebbe9df5e3cb71a9c
Signed-off-by: Ashish Patil <quic_ashpat@quicinc.com>
2023-02-23 18:29:45 -08:00
qctecmdr
95eccc81e8 Merge "video: driver: add stop cmd allow checks inside state handler" 2023-02-23 18:24:11 -08:00
Chinmay Sawarkar
ed46ad9aec video: driver: Add new hfi buffer flags
New hfi buffer flags to send memory region information to firmware.

Change-Id: I3a320622d0ed01a5e583dbeceb2648a57f618a66
Signed-off-by: Chinmay Sawarkar <quic_chinmays@quicinc.com>
2023-02-23 12:01:25 -08:00
qctecmdr
8df204443f Merge "video: driver: remove config dependencies" 2023-02-23 08:10:06 -08:00
qctecmdr
e613fa6855 Merge "video: driver: set PM_SUSPEND in power collapsed state" 2023-02-22 18:33:42 -08:00
qctecmdr
37f24ba2cc Merge "video: driver: Revise encoder port configs" 2023-02-22 13:29:31 -08:00
Govindaraj Rajagopal
ab6770c11f video: driver: add stop cmd allow checks inside state handler
use state specific checks inside state_handler instead of
relying global msm_vidc_allow_stop function.

Change-Id: I83d81aa0f840412a4c61f15673a6246f0f84be7f
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-02-22 21:05:18 +05:30
Govindaraj Rajagopal
a6e521d629 video: driver: add start cmd allow checks inside state handler
use state specific checks inside state_handler instead of
relying global msm_vidc_allow_start function.

Change-Id: I04182ee3b63fa9044acf4f40adc47ea97eaa7538
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-02-22 20:52:07 +05:30
Govindaraj Rajagopal
4afdecc4fd video: driver: add streamon allow checks inside state handler
use state specific checks inside state_handler instead of
relying global msm_vidc_allow_streamon function.

Change-Id: I67948831612ebb33cdd12a2e9f8561b6095e9433
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-02-22 20:03:52 +05:30
Govindaraj Rajagopal
3ba2cb9ed1 video: driver: add reqbuf allow checks inside state handler
use state specific checks inside state_handler instead of
relying global msm_vidc_allow_reqbufs function.

Change-Id: Iaf7f23e4e2ef9b714e3d4c2900c2753d74150fd1
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-02-22 20:01:03 +05:30
Govindaraj Rajagopal
373880e521 video: driver: add s_fmt allow checks inside state handler
use state specific checks inside state_handler instead of
relying global msm_vidc_allow_s_fmt function.

Change-Id: I92af08e4cd5d49f763c5a2d381af86eb10a4c061
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-02-22 20:00:01 +05:30
Maheshwar Ajja
e044c01ccc video-driver: resolve retry assert xo reset issue
In assert xo reset failure case, count increment and
usleep are skipped resulting in indefinite while loop.
Correct the conditions to avoid looping indefinitely.

Change-Id: I38fae272f0c7c676e1454e1fb0a8bfee860ea2f0
Signed-off-by: Maheshwar Ajja <quic_majja@quicinc.com>
2023-02-21 13:26:14 -08:00
Govindaraj Rajagopal
c3c85e9653 video: driver: remove config dependencies
remove all conditional compilation in video driver.
With this change, all files willbe always compiled
and will be available in final kernel object file.

Change-Id: I9843c246e23bd1ee4fb8918e5cfa840e2defd432
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-02-21 14:33:41 +05:30
qctecmdr
31ea48b224 Merge "video: driver: fix blur parent check" 2023-02-20 21:20:47 -08:00
qctecmdr
a15e4e9b07 Merge "video: driver: Move _clock_set_flag() implementation" 2023-02-19 22:06:43 -08:00
Akshata Sahukar
3d18438cb0 video: driver: fix blur parent check
Blur pixel fmt parent check is specific to HEVC codec.
Fix this to avoid session failure.

Change-Id: I0323627383d56d1382e17f7a4b2cbb11edd6bf46
Signed-off-by: Akshata Sahukar <quic_asahukar@quicinc.com>
2023-02-18 11:44:11 -08:00
Ankush Mitra
e96ab4ac79 video: driver: set PM_SUSPEND in power collapsed state
Set substate PM_SUSPEND even if
video core was already power collapsed.

Change-Id: I15740d8e44fe89c6b34c0412dca1064539cdac35
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-02-17 19:57:04 +05:30
Vedang Nagar
3e353fd5ff video: driver: Move _clock_set_flag() implementation
Move _clock_set_flag() function implementation from
resource.c to resource_ext.c file.

Change-Id: I4b977c7f840b94da578fcaac53b8fdc4bba86fca
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-02-17 19:51:24 +05:30
Chinmay Sawarkar
6e414ca7a7 video: driver: kalama power calculations
New bandwidth and frequency calculation functions
for kalama.

Change-Id: Iaca0be832c42e00bb7404f7cfbac5bbf03427144
Signed-off-by: Ashish Patil <quic_ashpat@quicinc.com>
2023-02-16 20:08:14 -08:00
qctecmdr
6b5255c60d Merge "video: driver: introduction of new debug print" 2023-02-16 12:30:49 -08:00
qctecmdr
f48a9e7429 Merge "video: driver: add sanity check for iommu domain" 2023-02-16 12:21:31 -08:00
qctecmdr
e30350da93 Merge "video: driver: introduce substate allow table to populate allow_mask" 2023-02-16 12:21:31 -08:00
Ankush Mitra
908ab6358b video: driver: introduction of new debug print
Introduce d_vpr_hs to print both VIDC_HIGH or
VIDC_STAT log.

Change-Id: Ie7bfa8df033b30689eca6ad6a4637978730eadf7
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-02-16 11:26:25 +05:30
qctecmdr
a4bd88059f Merge "video: driver: fix __set_clk_rate for upstream" 2023-02-15 09:28:54 -08:00
Govindaraj Rajagopal
9e5429a77d video: driver: introduce substate allow table to populate allow_mask
get allow_mask from substate allow table and decide to update/ignore
based on that mask.

Change-Id: I1cd465069717561aeadeeba7241128bd450d4933
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-02-15 10:24:06 +05:30
Vedang Nagar
8765409333 video: driver: Fix unbalanced irq warning in interrupt handling
In case of watchdog interrupt, power off sequence will
get called which will make intr_status to 0 due to which
enable_irq gets called from isr_handler irrespective of
watchdog interrupt. Now during power up sequence again
when the enable_irq gets called, it will through
"Unbalanced enable for irq" error.
Added a fix for the same.

Call trace ->
enable_irq+0x9c/0xf8
__power_on_ar50lt+0x2d4/0x320 [msm_video]
__load_fw+0x92c/0x1368 [msm_video]
venus_hfi_core_init+0x64/0x468 [msm_video]
msm_vidc_core_init+0x158/0x4bc [msm_video]
msm_vidc_open+0x90/0x804 [msm_video]

Change-Id: Ic675d7540ef029e530a8cd5b87fb97f72e72057f
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-02-14 12:38:20 +05:30
Dikshita Agarwal
c1d99709ca video: driver: fix __set_clk_rate for upstream
In downstream, driver vote for VIDEO_CC_MVS0_CLK_SRC which
needs a multiplication factor of 3 to be applied to
required freq while on upstream we vote for branch clk
i.e. VIDEO_CC_MVS0_CLK hence this multiplication factor is
not needed.

Change-Id: I43131558b3882da303cfaa9bdb5d76080a83fc42
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-02-13 15:56:36 +05:30
qctecmdr
f0b5f5dd65 Merge "video: driver: disable 5 LTR support" 2023-02-11 12:13:30 -08:00
qctecmdr
7f737e40a3 Merge "msm: vidc: update dpb buffer size only for film grain content" 2023-02-10 09:34:51 -08:00
qctecmdr
22e9261578 Merge "video: variant: update buffer calculation in iris2 variant" 2023-02-09 17:47:32 -08:00
qctecmdr
305cdd6d2f Merge "video: driver: Restrict all intra encode support to 4k@30 fps" 2023-02-09 17:47:32 -08:00
qctecmdr
99d3bd665c Merge "msm: vidc: enable DCVS for non realtime sessions" 2023-02-09 17:47:32 -08:00
qctecmdr
a7d368d03f Merge "video: driver: fix video node open before probe issue" 2023-02-09 17:47:32 -08:00
qctecmdr
ce5183ff21 Merge "video: driver: fix incorrect initialization of dmabuf" 2023-02-09 17:47:32 -08:00
Manikanta Kanamarlapudi
06d84f081f msm: vidc: update dpb buffer size only for film grain content
update buffer size only for film grain content.

Change-Id: Ia9230d36ef0c917723fdb1eea82adfb8df3b3413
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
2023-02-09 06:42:34 -08:00
qctecmdr
f251ef996d Merge "video: platform: taro: add default frame/operating rate" 2023-02-08 11:51:54 -08:00
Dikshita Agarwal
5cd85bc93c video: platform: taro: add default frame/operating rate
Add default values for frame rate and operating rate for
decoder.

Change-Id: I0c9ed12fafd4655043bc408d7cee976278412a8f
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-02-08 16:54:23 +05:30
Zhongbo Shi
e65a251443 video: driver: Revise encoder port configs
1. Revise to config encoder RAW port with buffer actual
aligned width and height in pixels to firmware;
2. Client also needs to config aligned input port
width and height to driver;
3. Driver must config encoder RAW port crops;
4. Client also needs to config encoder input port crops;

Change-Id: Idb85036df9a72e50239ddb46039ef1995b7f0689
Signed-off-by: Zhongbo Shi <quic_zhongbos@quicinc.com>
2023-02-08 15:14:06 +08:00
Darshana Patil
f123b6eece video: driver: fix incorrect initialization of dmabuf
Reinitialize dmabuf pointer to NULL only after
dma_buf_put has been called on that buffer.

Change-Id: I05e8c1d0901438bc39a9bf9faeed11e228cd7675
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2023-02-07 12:07:33 -08:00
qctecmdr
ff5f9d8998 Merge "video: driver: state handling code movement" 2023-02-07 11:22:13 -08:00
Akshata Sahukar
5f648c7f84 video: driver: Restrict all intra encode support to 4k@30 fps
Restrict all intra encode support to 4k@30 fps from 4k@60 fps.

Change-Id: If77d391ccfe4453fc37de369a9ca5923a39c9c26
Signed-off-by: Akshata Sahukar <quic_asahukar@quicinc.com>
2023-02-06 16:33:41 -08:00
Darshana Patil
ed80204a9e video: driver: add support to configure colorinfo via control
- introduce control to set colorspace. client will use this
  to set private color info.

Change-Id: I0099ef1525f4562d3be3a6e518d046fe5b9ef894
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2023-02-06 13:09:17 -08:00
qctecmdr
49f99eba76 Merge "video: driver: resolve subsystem restart failure" 2023-02-06 10:11:50 -08:00
Dikshita Agarwal
f13df6b014 video: variant: update buffer calculation in iris2 variant
Update the buffer sizes for h264 codec in IRIS2 variant to
align with updated buffer calculation for IRIS3.

Change-Id: Ic211cdc88bb173f790ac11dad68ad248ed4a3f34
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-02-06 17:52:58 +05:30
Dikshita Agarwal
a4d2b2d178 video: driver: remove dynamic layers and bitrates support for taro
Remove support for dynamic layers and bitrates for taro similar
to other platforms.

Change-Id: Ic316d9d566507ae924cff7a1ded10bcdd1f115e4
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-02-06 17:37:01 +05:30
Manikanta Kanamarlapudi
454e91b014 msm: vidc: enable DCVS for non realtime sessions
- enable dcvs for non-realtime sessions (both encode/decode)
- enable input queuing rate power scaling for non-realtime encoder

Change-Id: Ie0fe2723837dbfc1cb63b693fc657f2d8df7c573
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
2023-02-06 10:06:54 +05:30
Govindaraj Rajagopal
e318864d75 video: driver: fix video node open before probe issue
[1] In upstream side, udev is attampting to open video
nodes(video32 & video33) immediately after creation.
But by that time probe might not completed and i.e
resulting to NULL ptr dereference during open() call.

[2] component_match_add_release() must be called only
for video subdevices(contextbanks), but due to OPP table
more entries getting added into component_match table.
So master device bind is never getting invoked and probe
sequence is never getting completed.

Uploaded change to address above mentioned issuses.

Change-Id: I8d2e8fb5644da7076f5f99feda9365629e9130fd
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-02-03 21:03:59 +05:30
tkashyap
faf2b173fe video: driver: disable devm_pm_opp_attach_genpd
Change-Id: Id09b49b3ff2b7b1c960314776dd91360913482d8
Signed-off-by: Tanya Kashyap <quic_tkashyap@quicinc.com>
2023-02-01 16:30:06 -08:00