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>
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>
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>
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>
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>
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>
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>
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>
- adding support to new FW_CACHE log levels
Change-Id: I36f006375ef48701f602b655e4be8f503be71701
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
Currently BASELAYER Priority ID was being configured at BITSTREAM
PORT, For dynamic configuration, baselayer priority ID needs to be
configured at RAW port. Added change for the same to configure this
property at RAW port.
Change-Id: Ice927aae4d8ed5228ef1b31da7ec58bb81f2aea8
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
- use msm_vidc_debug for driver logs only
- added support for msm_fw_debug, new command to update
video fw log levels
Change-Id: I4e1c50861ab056312c2df49673d419515d049f21
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
Add handling in driver to release all read only buffers
when FW sends DPB list property without any payload.
Add a condition to detect if fw is unexpectedly sending
read-only buffers when dpb internal buffers are allocated.
Fix the condition to detect reusage of internal buffers,
when internal buffers were initially allocated and due to
configuration change in the middle, these internal buffers
need to be destroyed.
Change-Id: Ic1bfd05a023933c871e69fb29e121c47a9602951
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
This is resolve some of this kind of checker err.
Change-Id: Ief665e17045c3b6a6ff636ab6404c6e0c93e9460
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
This change will resolve this
checker err from all directory.
Change-Id: I7b7b3af554c97fef9d81210fdf8984d2a53facbc
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
This will fix some static code checker err.
Change-Id: I664e96dd2d65f694c3f2523e1f4aeb08a40f660a
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
This change will resolve some of the static code
checker err.
Change-Id: I62edcbc8740dd932f5662b0bad1548374a0c9188
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
- remove truncation for frame rate and allow
fractional value as well
Change-Id: I7e48d3b4cb9ecf674fb17a08bbd8c3c0617d12a7
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
Remove inst check from all the functions in video driver.
Inst check is present in most of the functions in video
driver which is not required.
Keep check only at root level functions and remove
from rest all of the functions.
Change-Id: Ib310cd3df5e8612a9fc3a5aa654dff4203a12906
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
Static tool reported few coding style related warnings. This patch
fixes the same.
Change-Id: If7c75d8ecf0e2c1128bdd6f3fd3fb6148fcd457d
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
1. use max of operating and frame rate for fps
2. vpp_cycles is considered close to frequency
corner if vpp_min_freq is greater than max
required frequency
Change-Id: I9dc995ca16e4eeae18497a8648dfef64e16dfbc2
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
In case of encoder drain followed by immediate
stop usecase, fw might send drain last flag info
packet instead of last flag buffer due to
insufficent output buffers. In this scenario, driver
signals EOS through an event. To avoid sending last
flag buffer in some usecases and EOS event in other
usecases, to maintain consistency, always send last
flag information via EOS event to client.
Change-Id: Ib816603fb171a5f3f72f163614588490514f8c59
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>