提交图

1163 次代码提交

作者 SHA1 备注 提交日期
qctecmdr
e82f7eb958 Merge "video: driver: add dma mask attribute to context banks" 2022-12-07 14:54:06 -08:00
Manikanta Kanamarlapudi
92a44da54b video: update the set function for BASELAYER_PRIORITY
update the set function for BASELAYER_PRIORITY control.
with out this change, configuration is not set to firmware.

Change-Id: I57f01a8e02462ee9e8c221581043a8a70adbfcc5
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
2022-12-02 11:55:27 +05:30
Deepa Guthyappa Madivalara
bce7898377 video: driver: disable power collapse for video on pineapple
Disable video power collapse on pineapple chipset until
power collapse sequence is successful.

Change-Id: I2e7d0085e6d810fb79c2b1070c4bd498f443cfc8
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2022-11-23 11:02:06 -08:00
qctecmdr
1addb15e58 Merge "video: driver: use macros to prepare enums & string arrays" 2022-11-21 18:59:48 -08:00
qctecmdr
bc62a68248 Merge "video: driver: check for regulator support before initializing" 2022-11-21 18:35:21 -08:00
Dikshita Agarwal
8030903f1e video: driver: add dma mask attribute to context banks
Upstream driver doesn't support context bank address ranges,
so add dma mask attribute to context bank to specify address
range for upstream driver.

Change-Id: I09191b500006d6c7abf364fbfa22377b480a4b4d
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2022-11-21 10:52:41 +05:30
Deepa Guthyappa Madivalara
2113a7a8c5 video: driver: add support for vidvsp cache
Adding support for vidvsp cache

Change-Id: I0ef58106a9a5eab55ab01e4eaaf77d19d9b3a984
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2022-11-18 16:22:09 -08:00
qctecmdr
ce13ce72cc Merge "video: driver: enable xo reset clock" 2022-11-18 14:45:37 -08:00
qctecmdr
b8fd5b594f Merge "video: driver: Remove slice interface capability" 2022-11-17 23:45:10 -08:00
Govindaraj Rajagopal
2eda86592a video: driver: use macros to prepare enums & string arrays
video driver is maintaining multiple tables based on enum
name pair. So this mapping might go wrong if new entry is
inserted in different position.

So added logic to prepare enums & static const char* arrays
using macros. So compiler will take care of creation and
maintaining order.

Change-Id: Id3669cf3ce150b3ababb84dce18326220f41d88d
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2022-11-17 21:35:27 +05:30
Darshana Patil
2638c201a8 video: driver: enable xo reset clock
Enable xo reset clock since it is enabled
from clock driver.

Change-Id: Ica38616f514c9f2288a60fbfb3e0a3683c154b15
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2022-11-16 18:07:44 -08:00
Darshana Patil
54f71aa5ab Revert "video: driver: disable SW power collapse temporarily"
Re-enable sw power collapse.
This reverts commit 2dd5543fed.

Change-Id: If6cd275551fcb1d3de1fa75b9cace9aa6649c7fa
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2022-11-16 18:05:43 -08:00
qctecmdr
2d17637ec0 Merge "video: driver: add resets in power off sequence" 2022-11-16 08:10:29 -08:00
qctecmdr
b9bfdbe7b8 Merge "video: driver: Enable MMRM support in pineapple" 2022-11-16 08:10:28 -08:00
Deepa Guthyappa Madivalara
2dd5543fed video: driver: disable SW power collapse temporarily
Disable SW_PC temporarily

Change-Id: Ief82b9b273d6a4c7383e0aab73c2a5da428c203a
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2022-11-15 14:45:16 -08:00
Anshul Agarwal
a51bbd6445 video: driver: Remove slice interface capability
Removed slice interface capability for Kalama and taro.

Change-Id: Id7e90eff7457d004d70ba885af81a33e1feb7bb3
Signed-off-by: Gaviraju Doddabettahalli Bettegowda <quic_gdoddabe@quicinc.com>
2022-11-15 10:00:09 -08:00
Maheshwar Ajja
d934279ad4 video: driver: add resets in power off sequence
Add assert and deassert axi and mvs0c resets to
avoid video hardware unresponsive issues due to
multiple power collapse sequence execution.

Change-Id: I25ec99eab6b50111161ec9486ea1155bee63f7fc
Signed-off-by: Maheshwar Ajja <quic_majja@quicinc.com>
2022-11-11 18:59:14 -08:00
qctecmdr
b1bf3f1148 Merge "Video Driver: fix frame freeze for HEVC 10bit all intra decoding" 2022-11-11 13:15:32 -08:00
qctecmdr
fe64bbf604 Merge "video: driver: power collapse for last session close" 2022-11-10 16:38:38 -08:00
qctecmdr
c8709784bb Merge "video: driver: Add TURBO and LOWSVS_D1 clocks" 2022-11-10 16:38:38 -08:00
qctecmdr
b2ea40aba5 Merge "video: driver: update definition same as prototype" 2022-11-10 16:38:38 -08:00
qctecmdr
7313e91c52 Merge "video: driver: misc changes to be inline with upstream" 2022-11-09 21:54:22 -08:00
qctecmdr
b33fc5110e Merge "video: driver: fix compilation issues with mainline kernel" 2022-11-09 21:54:22 -08:00
qctecmdr
643d2e2304 Merge "video: driver: Increase FW timeout to 4sec for debug logging" 2022-11-09 21:54:22 -08:00
Deepa Guthyappa Madivalara
9db29e4eda video: driver: add assert and deassert reset functions
- Add assert and deassert reset control functions to
  update power off sequence in pineapple chipset
- Rename clock names to match with clock macros

Change-Id: Ic6dc0daac8110597bfcb02cceba94d2b97548723
Signed-off-by: Maheshwar Ajja <quic_majja@quicinc.com>
2022-11-07 18:31:55 -08:00
Deepa Guthyappa Madivalara
9a591ca5af video: driver: update definition same as prototype
Update function definition to be same as prototype to
avoid compile error

Change-Id: I92be0d96ce1e95e858cca6e5cad8de0564a60e5b
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2022-11-07 14:32:28 -08:00
Ankush Mitra
b35fde25c4 Video Driver: fix frame freeze for HEVC 10bit all intra decoding
1. Allow turbo for HEVC 10bit all intra decoding;
2. Add 25 percent extra to VSP cycle for HEVC
   10bit all intra decoding;

Change-Id: I794b2a896f7e9444c8979abdb15b8e673a5270ee
Signed-off-by: Zhongbo Shi <quic_zhongbos@quicinc.com>
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2022-11-07 09:01:17 -08:00
Ankush Mitra
dc39a04e6e video: driver: follow vcodec power collapse seq for PC failure case
if PC fails for 10 times then video driver is treating that situation
as fatal and doing force core_deinit(), in this case firmware will not
follow vcodec power_collapse sequence and if there any pending
transaction from any session it will cause smmu_fault during next
firmware_boot sequence. Added change to perform vcodec power_collapse
from power_off_iris3_hardware() incase of core_deinit due to PC failure.

Change-Id: I45e32985d87b5cc882c4f96f77d1cabc796e6ba0
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2022-11-07 07:59:33 -08:00
Ankush Mitra
78246c24fb video: driver: Enable CSD data in output meta data buffer
Currently not enabling CSD data in output meta data buffer,
due to invalid function invocation for conditional check.

Change-Id: I96a4462abebb257bfcd91af9c725d577c4046feb
Signed-off-by: Gaviraju Doddabettahalli Bettegowda <quic_gdoddabe@quicinc.com>
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2022-11-07 07:48:29 -08:00
Ankush Mitra
e552b19ce8 video: driver: support upto level 6.2 for HEVC enc
allow support upto level 6.2 for HEVC encoder.

Change-Id: I21e958ecab30bf97bc10627b17e18cfa3070e4ef
Signed-off-by: Jiajia Cong <quic_jcong@quicinc.com>
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2022-11-07 07:47:44 -08:00
Ankush Mitra
c1bb733a6b video: driver: Remove unused capabilities
Cleanup of unused capabilities from
platform caps list.

Change-Id: I98f4beb96f41d2b8a3b4342f7d453a6abc046e55
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2022-11-07 21:08:52 +05:30
Govindaraj Rajagopal
1931acf675 video: driver: misc changes to be inline with upstream
- replace list_del() & list_add_tail() with list_move_tail().
- use sg_dma_address() macro at all possible places.

Change-Id: Ie754b5a75a48299fbe71e9ec0217b93d8524264f
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2022-11-07 20:16:43 +05:30
Govindaraj Rajagopal
9c5b7fe1c5 video: driver: power collapse for last session close
power_collpase thread will initiate suspend sequence
if no there is no transaction for 1.5 sec. So even
after all session closed, power collapse thread will
kick in only after 1.5 sec, which can be avoided.

with this change power_collpase sequence will be
initiated right after last session close.

Change-Id: I4da231fa4a3d65bebbd19725db2f11d1478490dd
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2022-11-07 18:24:36 +05:30
Dikshita Agarwal
1ac85a3237 video: driver: check for regulator support before initializing
Upstream doesn't support regulators, while downstream kernel does.
So add a condition to check for regulator support before init.

Change-Id: Icab8aec20796546a33ac571963f871d146970002
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2022-11-07 16:51:12 +05:30
Dikshita Agarwal
166330d8a9 video: driver: fix compilation issues with mainline kernel
- Remove non-standard and unused header files.
- Use proper format specifier for debug prints.

Change-Id: I52927f635d7d0145404e41acf0dc351f2c44e7fe
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2022-11-04 14:55:40 +05:30
Mihir Ganu
fd5ef8da76 video: driver: Enable MMRM support in pineapple
Enable MMRM support in pineapple database.

Change-Id: I896005510383145535f9e4b2800991f386dfcd73
Signed-off-by: Mihir Ganu <quic_mganu@quicinc.com>
2022-11-03 20:45:34 -07:00
Vedang Nagar
bf9dd01f97 video: driver: Increase FW timeout to 4sec for debug logging
Enabling debug logs in kernel driver can result in Linux
kernel thread scheduling issues which causes unpredictable
behavior. Therefore increased Hardware timeouts to 4sec
if debug logs are enabled i.e. logs are more than default
logs.

Change-Id: Ic0d04bc0a740c8b11c77574ad3252ca2fa0696bb
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2022-10-28 08:46:12 -07:00
Ankush Mitra
6b0dcb4a4f video: driver: code re-structure memory ops support
Re-structure the memory_ops code so that
upstream driver use mem_ops defined on
msm_vidc_memory.c and downstream driver
use mem_ops defined on msm_vidc_memory_ext.c.
It helps to modularize the code even further.

Change-Id: Id00b0872d7a902a8540500df5efb5f546a9dbe41
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2022-10-28 00:06:28 +05:30
Deepa Guthyappa Madivalara
23e5f249d6 video: driver: Add TURBO and LOWSVS_D1 clocks
Update the clk table to support TURBO and
LOWSVS_D1 clocks

Change-Id: I69f710ae45df47f0e5190ec1be217b69f35abcf7
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2022-10-26 12:13:50 -07:00
Darshana Patil
4250372925 video: driver: add memory ops support
add memory ops support so that different
implementations can exist for memory_alloc,
memory_free, memory_map and memory_unmap,
dma buf attach, detach, map, unmap and
get buffer region in upstream and downstream
drivers.

Change-Id: Ifabc34e7a8b0284579c1bc4a8f477fe558d068f4
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2022-10-21 16:35:22 -07:00
qctecmdr
02ed467c8a Merge "video: driver: remove unused files" 2022-10-21 12:28:34 -07:00
qctecmdr
f037be0fd1 Merge "video: driver: add early notify control interface" 2022-10-21 10:31:53 -07:00
qctecmdr
3ff4a9b78e Merge "video: driver: remove skip delayed unmap functionality" 2022-10-21 10:31:53 -07:00
qctecmdr
3fd4e7f225 Merge "video: driver: fix VCODEC_VIDEO_CC_BASE address" 2022-10-21 10:31:53 -07:00
qctecmdr
ea09956891 Merge "video: driver: Always Set COMV bufcount to FW" 2022-10-21 10:31:52 -07:00
Darshana Patil
3362c70642 video: driver: remove skip delayed unmap functionality
Change-Id: Ibc3e8d565010aa5ac608aa648c533057c51f4bf4
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2022-10-20 12:08:03 -07:00
Deepa Guthyappa Madivalara
fc19b28231 video: driver: fix VCODEC_VIDEO_CC_BASE address
Fix VCODEC_VIDEO_CC_BASE from 0x00F00000 to 0x000F0000

Change-Id: Icda45653be646647ee563322651333cf6c9c4582
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2022-10-20 11:42:38 -07:00
Govindaraj Rajagopal
e7fa6b0af9 video: driver: add early notify control interface
Added early notify feature related interfaces.

Change-Id: Ic67a769ff44e00aeb81f3771989c282127a3e36c
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2022-10-20 19:41:29 +05:30
Govindaraj Rajagopal
0e56253be6 video: driver: remove unused files
msm_vidc_dt functionalities were distributed to
other files and most of the dt parsing code was
removed already. So added change to cleanup
unused files.

Change-Id: I3362c6cfa3f493b965167b9aeb0f5cf3ac8c2711
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2022-10-20 15:45:42 +05:30
Govindaraj Rajagopal
3560442234 video: driver: add resource ops macro support
Added call_res_op() macro and used at all possible
places to avoid invalid pointer dereference issue.

Also added changes to cleanup unused functions.

Change-Id: Id77711ad9eaf7b407208567b0fde1f2693588641
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2022-10-20 12:18:25 +05:30