Граф коммитов

1428 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
Akshata Sahukar
07116875d4 video: driver: fix MAX_NUM_REORDER_FRAMES property usage
MAX_NUM_REORDER_FRAMES is 32 packed with MSB 16 bits representing
reorder frame count. Instead, this has been used as integer with
all bits reprsenting reorder frame count. Fix this.

Change-Id: I275a0be71ecf89c44374782445f66ac7e709e2a7
Signed-off-by: Akshata Sahukar <quic_asahukar@quicinc.com>
2023-06-27 10:23:15 -07:00
Deepa Guthyappa Madivalara
62279d0b91 video: driver: print all NOC Errlog registers
- print all NOC Errlog registers

Change-Id: I9bfe9f3f63da0566d57de45201ec0a99a8c93a16
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2023-06-26 11:47:20 -07:00
Ankush Mitra
9438113c3f video: driver: donot streamoff if streamon fails
From driver if we call streamoff without streamon
successful, the streamoff will be timed out and
it will invoke msm_vidc_inst_timeout, which will
change the core state to ERR and FW unload will
happen unneccessarly.

Change-Id: Iaec6c2de086df53c379d5ec991b22b393d3c9153
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-06-22 09:52:29 -07:00
Ankush Mitra
11e733244c video: driver: add session err check
Add session err check after every inst_lock
and move is_session_err check at top level.

Change-Id: Ie24107169eb509858ca285536be91ec67119e73a
2023-06-22 22:00:27 +05:30
Vedang Nagar
e05b1f39c9 video: driver: Remove core check from video driver
Remove core check from all the functions in video driver.
ore check is present in most of the functions in video
driver which is not required.
Keep check only at root level functions and remove
the check from rest all of the functions.

Change-Id: I5f6374b68dd739b7ab563f32f64bb90e368c4085
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-06-22 20:53:42 +05:30
Dikshita Agarwal
5b439178f0 video: driver: remove setting allow_zero_bytesused to 1
There is no need to set allow_zero_bytesused any longer,
hence remove it.

Change-Id: Ic232d2bd38e0113af2c127fc7251a3dd8a3e0c03
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-06-22 11:45:59 +05:30
qctecmdr
34ca50e260 Merge "video: driver: rename request_lock with ctx_q_lock for queues" 2023-06-20 18:43:57 -07:00
qctecmdr
e4d60c241f Merge "video: driver: fix the return type during open instance" 2023-06-20 18:43:57 -07:00
Dikshita Agarwal
4e75ab1954 video: driver: rename inst->event_handler to inst->fh
The current name is misleading as this file handler
doesn't only handles v4l2 event but used to provide
a way to easily keep file handle specific data
that is used by the V4L2 framework.

Change-Id: I902d86d69b1f3f2651521ef35aa2989a7b58051c
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-06-20 16:17:37 +05:30
Dikshita Agarwal
a683290a91 video: driver: rename request_lock with ctx_q_lock for queues
This lock is not related to requests and used to serialize
IOCTL calls related to queues, hence change the name of the
lock to avoid any confusion.

Change-Id: I673a3331cbf67b3767b3ba75cfe203c4d45489cb
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-06-20 15:24:24 +05:30
Vikash Garodia
734d95366b video: driver: fix the return type during open instance
There is a limit to the number of video instances which can be opened.
When the number of instances are exhausted, there is a possibility
that any ongoing instance is released. In such scenario, new instance
can be accepted. Hence keep the return type to suggest the client to
try opening the video instance again.

Change-Id: I2241a5458bbe55a2de1c58ad85440b2b920ae205
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
2023-06-20 13:19:21 +05:30
qctecmdr
7c215be486 Merge "video: driver: Add support to enable output tx sw fence by default" 2023-06-16 10:01:20 -07:00
qctecmdr
5d059c2954 Merge "iris: rename msm_vidc_suspend_locked to msm_vidc_suspend" 2023-06-15 16:11:59 -07:00
Akshata Sahukar
907ea75504 video: driver: Add support to enable output tx sw fence by default
As part of default enablement of output tx type sw fence,
add this support in driver to disable fence based on
below conditions for INPUT_PSC propertities:
- If session is interlace type
- If OUTPUT_ORDER is 0 and HFI_PROP_MAX_NUM_REORDER_FRAMES > 0

Change-Id: If861129ba96329c0277a9c9698f67baf25e5d82e
Signed-off-by: Akshata Sahukar <quic_asahukar@quicinc.com>
2023-06-15 16:11:58 -07:00
qctecmdr
2c5cd81fe8 Merge "video: driver: cleanup driver remove sequence" 2023-06-15 09:01:57 -07:00
Darshana Patil
dd06676471 video: driver: adjust opb buffers min count
Incase of split mode(either for linear color format
or AV1 film grain usecases), dpb and opb(output)
buffers are allocated in same context bank. In high
memory consumption usecases like 8k, it can lead to
OOM issues. To avoid this, for split mode, when both
dpb and opb buffers are used, honor fw min count for
dpb buffers, whereas for opb buffers choose an optimal
min count to ensure performance.

Change-Id: I287aff862d2fe36a690c1393d64f8095578baf34
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2023-06-14 12:54:10 -07:00
qctecmdr
c215914ba1 Merge "video: driver: update to FW_Cache logs level" 2023-06-14 09:41:56 -07:00
Deepa Guthyappa Madivalara
cfbcc0880f video: driver: update to FW_Cache logs level
- shift FW_Cache log levels as firmware shifted the bits
   by 4

Change-Id: I113d7c236bc1f361419edd09b8339ce88a453d5e
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2023-06-13 13:48:47 -07:00
Dikshita Agarwal
84b23e5835 iris: rename msm_vidc_suspend_locked to msm_vidc_suspend
To follow the same nomenclature as the other function names
in driver, rename msm_vidc_suspend_locked to msm_vidc_suspend.

Change-Id: Iacdd6604c25f6efc61c5b6add939669f5bd26355
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
2023-06-13 18:59:40 +05:30
Govindaraj Rajagopal
29d10ac07b video: driver: cleanup driver remove sequence
Remove deinit sequence calls and register devm
managed callbacks, so that kernel can invoke
then, when dev scope ends and cleansup all
associated resources.

Change-Id: I729fd21fe32d9f39240d0b743f910409d93a00c5
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
2023-06-13 13:17:23 +05:30
Gaviraju Doddabettahalli Bettegowda
4bab4056f6 video: driver: Encode with multi slice mode
Bitrate is not a mandatory parameter for setting multi-slice encode configuration.
If the client not setting bitrate then default value can be used to
calculate slice count incase of byte mode multi slice encode,
and it's not needed for macro-block mode multi slice encode.

Currently, multi slice encode is enabled only when client set bitrate
explicitly otherwise it's configuring single slice encode mode.

So added change to remove the bitrate dependancy for configuring multi slice encode.

Change-Id: Ia9c541d693107b9eb57e530c6e44cad70216f1dc
Signed-off-by: Gaviraju Doddabettahalli Bettegowda <quic_gdoddabe@quicinc.com>
2023-06-11 22:05:20 -07:00
Akshata Sahukar
b6fba340c3 video: driver: fix hfi_buffer_iris3.h premerge failures
remove macro brackets in hfi_buffer_iris3.h to
fix premerge failures

Change-Id: I30f2cb656376cefc632cc3fd64dc979a903bfdc0
Signed-off-by: Akshata Sahukar <quic_asahukar@quicinc.com>
2023-06-09 19:19:26 -07:00
Akshata Sahukar
ff3eff1538 video: driver: initialize the global varibale
initialize  msm_vidc_synx_fence_enable global variable

Change-Id: I581d08d19bff614a861b455e140aeb2e38666f03
Signed-off-by: Akshata Sahukar <quic_asahukar@quicinc.com>
2023-06-09 16:57:35 -07:00
Anshul Agarwal
950306d1aa video: driver: fix some checker err
Fix some checker err

Change-Id: I357059999dd43b58d6c414868a8b4060b6b691da
Signed-off-by: Anshul Agarwal <quic_anshagar@quicinc.com>
2023-06-09 15:31:01 +05:30
qctecmdr
6cfd5c6a02 Merge "video: driver: fix some checker err" 2023-06-08 16:10:08 -07:00
qctecmdr
178fc2ee4d Merge "video: driver: adding guard to residency calc. based on logmask" 2023-06-08 16:10:08 -07:00
qctecmdr
02a249c941 Merge "video: driver: removed delayed unmap attribute" 2023-06-08 16:10:08 -07:00
Ashish Patil
8ffb37d04b video: driver: adding guard to residency calc. based on logmask
update or print the residency calc. only when high or stats logs
are enabled

Change-Id: Ie5e936a56865702417b4bb6a4657abf864510032
Signed-off-by: Ashish Patil <quic_ashpat@quicinc.com>
2023-06-08 13:51:59 -07:00
Anshul Agarwal
65d28b3cab video: driver: fix some checker err
Fix some checker err.

Change-Id: I6704727abf49c8c55ac9c213dec180c93928961f
Signed-off-by: Anshul Agarwal <quic_anshagar@quicinc.com>
2023-06-08 12:00:19 +05:30
qctecmdr
be36c9f71e Merge "video: driver: introduce new FW_CACHE log levels" 2023-06-07 13:59:06 -07:00
Darshana Patil
ed9f77c640 video: driver: removed delayed unmap attribute
removed delayed unmap attribute from driver so
that buffers are immediately unmapped when unmap
request is sent.

Change-Id: I452199ba6e7f670ff2bdc3300df21d6e47011f90
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2023-06-06 17:59:44 -07:00
Ankush Mitra
e1cb32c5de video: driver: resolve some checker err
Resolve some static checker err.

Change-Id: I0aa1d8c905ac7fd1defa16dd28d4386465f09ff3
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-06-06 11:57:20 +05:30
Ankush Mitra
400a782851 video: driver: add space and move "{" to previous line
This change will fix some checker err.

Change-Id: I93da24e9b54bb1d5f6145b438858a977b06ca09c
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-06-04 21:08:33 +05:30
qctecmdr
51a281409e Merge "video: driver: allow fractional frame rate" 2023-06-03 11:05:45 -07:00