提交图

1510 次代码提交

作者 SHA1 备注 提交日期
Vedang Nagar
c98002d4fe Video: Driver: Configure CSC on BITSTREAM port according to HFI
According to HFI definition, HFI_PROP_CSC needs to be configured
on BITSTREAM port, but during msm_vidc_set_cap, CSC is being
configured on PORT_NONE leading to error in FW.
Added change to configure CSC always on BITSTREAM port.

Change-Id: I3e9511ec40cd25687048f0739c57d164dd7a1c43
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-08-16 17:39:41 +05:30
Vedang Nagar
3d17324c68 Video: Driver: Modify platform specific changes for cliffs
Modify platform specific driver changes for cliffs target.

Change-Id: Ib02b1402c5bd6eb7f785f1459ee0bdc3f77a19ac
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-08-12 20:25:26 +05:30
qctecmdr
d361bf3acb Merge "video: driver: remove dead code of uneccessary setting VPP delay" 2023-08-10 14:02:16 -07:00
qctecmdr
1b17415743 Merge "Video: driver: Fix warnings for vendor checker" 2023-08-10 14:02:16 -07:00
qctecmdr
6fbf971e5e Merge "Video: Driver: Add support for Cliffs" 2023-08-09 10:25:26 -07:00
Vedang Nagar
50723bee02 Video: driver: Fix warnings for vendor checker
Fix warnings for vendor checker in vidc/inc folder.
[1] CHECK: Alignment should match open parenthesis.
[2] Lines should not end with a '('.
[3] Please use a blank line after.

Change-Id: Iac0591fc1e544e837a3c64c7a6e9b03cc9070ed2
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-08-06 22:33:58 +05:30
qctecmdr
c43d43d95e Merge "video: driver: fix length of line exceeding max length warning" 2023-08-03 15:08:37 -07:00
qctecmdr
5b194ad814 Merge "video: driver: fix space requirement warning" 2023-08-03 15:08:36 -07:00
qctecmdr
dafeecd9ba Merge "video: driver: fix alignment and blank line warning" 2023-08-03 15:08:36 -07:00
Vedang Nagar
21496a9ef2 Video: Driver: Add support for Cliffs
[1] Add the basic driver support for cliffs variant.
[2] Add platform specific files for cliffs.

Change-Id: If35f79fa1c72ce160d4ed4c0f1ba8babb7ce8a3d
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-08-03 22:58:54 +05:30
Ankush Mitra
99c2355e85 video: driver: remove dead code of uneccessary setting VPP delay
In driver num_comv value is coming more than expected
due to assumtion of default VPP delay as 2, which
is not needed now.

Change-Id: Ie24b5b30034cbc465aaa5952d80b6c0811cfe1a2
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-08-01 11:32:01 +05:30
Megha Byahatti
13cfd900b7 video: driver: fix length of line exceeding max length warning
Fix 'length of line exceeding 100 char' warning.

Change-Id: Ic40bb53a85273eee79a37ead1937702b96f4e979
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2023-07-31 20:05:09 +05:30
Darshana Patil
4812c1460e video: driver: fix DPB buffer release
In vp9 splitmode cases, there is a possibility
fw reuses DPB buffers and hence does not return
these buffers as part of STOP command during
port reconfig. In this case, driver should not
destroy these DPB buffers. Added a fix for the
same.
Issue observed with: 1A1622D8_Dec_VP9_Argon_EOS0.

Change-Id: I81deded6a49290574ddda8d4f8efdfc0a9f733f3
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
Signed-off-by: Maheshwar Ajja <quic_majja@quicinc.com>
2023-07-27 10:14:11 -07:00
Megha Byahatti
99cccf72d8 video: driver: fix alignment and blank line warning
- Fix Alignment should match open parenthesis and
  Please use a blank line after

Change-Id: I5155f3037ab3b65a0456a18eb8c98b54760204f9
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2023-07-26 19:08:55 +05:30
Ankush Mitra
a101cca5a9 video: driver: fix space requirement warning
Fix space and blank line required warning.

Change-Id: I2f754e52cdb36332a53b65ca248ae5d974a00ff4
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-07-25 17:50:44 +05:30
qctecmdr
050aed5c35 Merge "video: driver: fix space around '|' warning" 2023-07-24 16:42:41 -07:00
qctecmdr
e71d0da561 Merge "video: driver: fix few checker warning" 2023-07-24 16:42:41 -07:00
Ankush Mitra
9d62fcdd3a video: driver: fix space around '|' warning
Fix some of the checker warning.

Change-Id: Ia9854b515185b41673d37bdbb861993badd7d130
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-07-21 14:45:30 +05:30
Vedang Nagar
326254549b Video: Driver: Move inst_lock to v4l2 layer during q_buf
[1] If request_fd enabled, msm_vb2_buf_queue() is not called
  from v4l2_qbuf. Instead it's called as part of
  msm_v4l2_request_queue(). Hence inst lock should be acquired
  in common function i.e msm_vb2_buf_queue, to handle both
  requests and non-request scenarios.
[2] If request_fd is disabled, inst_lock can be acquired in
  v4l2_qbuf() call. Acquiring inst_lock from here will
  ensure RO list insertion and updation i.e. attach/map will
  happen under lock.

Currently, request_fd is disabled. Therefore, acquire inst_lock
from this function to ensure RO list insertion/updation is under
lock to avoid stability usecase.

Change-Id: I3cc1d4b8b5547fd5e34ce5eb06480380cb9200cc
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-07-19 20:24:25 +05:30
Ankush Mitra
30b8ff5ce2 video: driver: fix few checker warning
Fix braces are not necessary warning and suspect code
indentation warning.

Change-Id: I6e599d94766cc34013a0ddd758cf5c6609798ea2
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-07-19 18:38:09 +05:30
qctecmdr
b941cfd415 Merge "video-driver: kept blank line after declarations" 2023-07-18 17:22:50 -07:00
Manikanta Kanamarlapudi
4d2903e0d0 video-driver: kept blank line after declarations
Fix warning of 'Missing blank line after declarations'
in the checker.

Change-Id: I3db5717890db68096e5a035c536f0b6bcae7e28e
2023-07-17 15:18:27 +05:30
Anshul Agarwal
2576adf412 video: driver: fix some checker err
Fix some checker err

Change-Id: I3526a509f4cbb3d91284b21dad851b57bb43f57a
Signed-off-by: Anshul Agarwal <quic_anshagar@quicinc.com>
2023-07-14 15:03:37 +05:30
Ankush Mitra
50a257d310 video: driver: fix No space is necessary after a cast err
Fix this warning in checker.

Change-Id: I2f90b2f8b3fddb55a3b1dd9b0e4ca227e46ed42f
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-07-12 18:15:31 +05:30
qctecmdr
ccafeeddb0 Merge "video: driver: replace msm_vidc_vmem_alloc/free" 2023-07-11 17:24:09 -07:00
qctecmdr
78f2d04033 Merge "video: driver: update the bandwidth calculation logic" 2023-07-11 09:51:20 -07:00
qctecmdr
bac8dc98cd Merge "video: driver: remove unused APIs and other fixes/cleanup" 2023-07-11 09:51:20 -07:00
Dikshita Agarwal
9528c09bf4 video: driver: replace msm_vidc_vmem_alloc/free
replace msm_vidc_vmem_alloc/free with direct calls to
vzalloc and vfree.

Change-Id: Iafde62dd7f54b99418207d10ff71589bf0efd5ed
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-07-11 10:00:08 +05:30
qctecmdr
5a3d1b1409 Merge "video: driver: remove additional conditional check" 2023-07-10 17:19:45 -07:00
qctecmdr
7da88cbbc1 Merge "video: driver: pm_runtime_get_sync can return 1 in success" 2023-07-10 17:19:45 -07:00
Ashish Patil
9fad8ef79e video: driver: update the bandwidth calculation logic
- Driver code gets the compression ratio(CR) from FW. This CR is used
  to calculate the compression factor(CF) and used in BW calculations.
  Perf. model code for BW calculations always assumes that CF will be in
  fractional format. But, driver already converts the CR to integer format.
  So, we need to remove the x100 multiplication in BW calculation code.
- As CF is used as division factor for BW calculations,
  due to this x100 bump in CF values, we see very low calculated BW values.

Change-Id: Ifbddee68b6799b2fe0fc6d5ffa623514e1abd13f
Signed-off-by: Ashish Patil <quic_ashpat@quicinc.com>
2023-07-10 16:35:36 -07:00
Dikshita Agarwal
7cf1ce5bbe video: driver: pm_runtime_get_sync can return 1 in success
fix the error condition for pm_runtime_get_sync
as it can return 1 as well in success case.

Change-Id: I958da05b1b979adae059181432a3d917012640b7
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-07-10 13:59:46 +05:30
Dikshita Agarwal
e9ebdcdbbe video: driver: more fw_coredump api
move fw_coredump api to firmware.c file.

Change-Id: Icbd5644244d4460bf918c1d137d19c04eb9f492a
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-07-10 13:58:13 +05:30
Dikshita Agarwal
b5912cd2ea video: driver: remove unused APIs and other fixes/cleanup
- Remove unused APIs:
    buf_cleanup
    _lock_check
    msm_vdec_update_max_map_output_count
- Rename msm_vidc_print_insts_info to msm_vidc_print_running_instances_info
  for better understanding.

Change-Id: I1ae190cbf02a52554bfe286c5e336fad37d7419e
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-07-10 13:56:53 +05:30
Dikshita Agarwal
2ae30091f4 video: driver: fix copyright markings
fix copyright markings and have all markings in one
multiline comment.

Change-Id: I481c6213bb25e8c278956ad6a51df3fc5c1aabf2
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-07-08 01:40:35 +05:30
qctecmdr
9cd077d960 Merge "video: driver: remove duplicate static array inclusion from header" 2023-07-06 19:17:10 -07:00
qctecmdr
4399e2c724 Merge "video: driver: fix residency print implementation" 2023-07-06 19:17:10 -07:00
Govindaraj Rajagopal
c484af4e69 video: driver: remove duplicate static array inclusion from header
pineapple_technology.h contains multiple static array and it is
getting included from msm_vidc_bus.c & msm_vidc_clock.c files.
So in generated build is having 2 copies of static arrays in
code segment.

So added changes to avoid duplication in generated bin.

Change-Id: Ifcfa07331e868440d033d2c7d65555810ad4d1b3
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-07-06 19:27:02 +05:30
qctecmdr
1923a9e61d Merge "video: driver: iris33: treat NOC error as fatal" 2023-07-05 11:27:06 -07:00
Ankush Mitra
5c1e2b8431 video: driver: fix residency print implementation
Residency print is not working for 2 cases-
1. when the prev session stopped in the middle without
   setting clk->prev freq to 0, in next session
   the residency stats
   for the same clk freq will not come as the start time will be
   reset to 0 during next session open.
2. when last session close and clk rate not changed to 0
   but, before that print residency stats come,
   then in residency print the residency for
   the last clk freq will not come.

Change-Id: I63a59202ca145e83e0bc129105df0b0182d3cb1e
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-07-04 00:38:57 +05:30
Darshana Patil
4c58e9e29e Revert "video: driver: removed delayed unmap attribute"
This reverts commit ed9f77c640.

Change-Id: Ief57fa717bff76db4e017856540f53ae0a559057
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2023-07-03 11:21:31 -07:00
qctecmdr
9e7718eedf Merge "video: driver: remove setting allow_zero_bytesused to 1" 2023-06-30 10:08:21 -07:00
qctecmdr
75351f36a5 Merge "video: driver: use helper functions wherever applicable" 2023-06-30 10:08:21 -07:00
qctecmdr
0088ada36c Merge "video: driver: print all NOC Errlog registers" 2023-06-30 10:08:21 -07:00
Dikshita Agarwal
5e5d278b91 video: driver: remove additional conditional check
there is a WARN_ON in place which will print the warning
in case of error, hence no need to have additional if check
for the same.

Change-Id: I09ca91fecd6cb8df4586621bb066754e39576d12
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-06-30 14:03:04 +05:30
qctecmdr
d174ba4539 Merge "video: driver: fix MAX_NUM_REORDER_FRAMES property usage" 2023-06-29 12:04:03 -07:00
Maheshwar Ajja
0d3b2165bd video: driver: iris33: treat NOC error as fatal
Treat NOC error (which is a result of pagefault) as
fatal error to and get more debug info to resolve the
pagefault issue.

Change-Id: I3a1cd99fea680a941788d1bc8ea586bf0ff29365
Signed-off-by: Maheshwar Ajja <quic_majja@quicinc.com>
2023-06-28 11:21:06 -07:00
Dikshita Agarwal
5d2eff1150 video: driver: use helper functions wherever applicable
There are many places in code where available helper
functions are not being used, fix it.

Change-Id: Id5b309837fd5847e280f7fab02820af1b08242a6
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-06-28 13:59:57 +05:30
qctecmdr
0358a3a932 Merge "video: driver: Remove core check from video driver" 2023-06-27 17:18:38 -07:00
qctecmdr
666081c2be Merge "video: driver: add session err check" 2023-06-27 17:18:38 -07:00