提交图

1447 次代码提交

作者 SHA1 备注 提交日期
qctecmdr
5d059c2954 Merge "iris: rename msm_vidc_suspend_locked to msm_vidc_suspend" 2023-06-15 16:11:59 -07:00
qctecmdr
2c5cd81fe8 Merge "video: driver: cleanup driver remove sequence" 2023-06-15 09:01:57 -07:00
qctecmdr
4da4f00863 Merge "video: driver: adjust opb buffers min count" 2023-06-14 22:58:40 -07:00
qctecmdr
a0dde86a00 Merge "video: driver: remove private controls from interface file" 2023-06-14 17:50:28 -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
qctecmdr
7c039897ef Merge "video-driver: Update the deps for mm-drivers" 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
Varsha Suresh
f979a7317b video-driver: Update the deps for mm-drivers
Change-Id: I518b14b13a8975815ac86018fd4785d5e6ecb8e9
Signed-off-by: Varsha Suresh <quic_varssure@quicinc.com>
2023-06-11 01:27:29 -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
qctecmdr
c774e3d0a0 Merge "video: driver: Configure BaseLayer PID at RAW port" 2023-06-03 11:05:45 -07:00
Deepa Guthyappa Madivalara
6e67d106a1 video: driver: introduce new FW_CACHE log levels
- adding support to new  FW_CACHE log levels

Change-Id: I36f006375ef48701f602b655e4be8f503be71701
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2023-06-02 11:58:46 -07:00
qctecmdr
2cb052e9a1 Merge "video: driver: handle dpb list property without payload" 2023-06-02 08:59:55 -07:00
qctecmdr
2b01896750 Merge "video: driver: add new command to update firmware logs" 2023-06-02 08:59:55 -07:00
Vedang Nagar
89d31c2d86 video: driver: Configure BaseLayer PID at RAW port
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>
2023-06-02 18:47:00 +05:30
Deepa Guthyappa Madivalara
8d5c888387 video: driver: add new command to update firmware logs
- 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>
2023-06-01 15:11:51 -07:00
Darshana Patil
2adaebb59a video: driver: handle dpb list property without payload
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>
2023-06-01 15:11:32 -07:00
Ankush Mitra
542b9f9736 video: driver: enclosed macros with complex values within bracket
This is resolve some of this kind of checker err.

Change-Id: Ief665e17045c3b6a6ff636ab6404c6e0c93e9460
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-06-01 12:32:01 +05:30
Ankush Mitra
7d25fa161b video: driver: changing "foo* bar" to "foo *bar"
This change will resolve this
checker err from all directory.

Change-Id: I7b7b3af554c97fef9d81210fdf8984d2a53facbc
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-05-31 19:47:02 +05:30
Ashish Patil
5bbe9a0002 video: driver: remove private controls from interface file
- These private controls are added by driver clients
  in their respective modules

Change-Id: Ie8d3dbee73e481d3651a6d5849ae7859bf5d42b0
2023-05-30 11:07:12 -07:00
Ankush Mitra
a04f985cda video: driver: move "{" to the previous line
This will fix some static code checker err.

Change-Id: I664e96dd2d65f694c3f2523e1f4aeb08a40f660a
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-05-30 22:21:18 +05:30
Ankush Mitra
e3415ddbef video: driver: changing "foo* bar" to "foo *bar"
This change will resolve some of the static code
checker err.

Change-Id: I62edcbc8740dd932f5662b0bad1548374a0c9188
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
2023-05-30 22:14:30 +05:30
Deepa Guthyappa Madivalara
2e9e234e56 video: driver: allow fractional frame rate
- remove truncation for frame rate and allow
   fractional value as well

Change-Id: I7e48d3b4cb9ecf674fb17a08bbd8c3c0617d12a7
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2023-05-25 16:35:58 -07:00
Vedang Nagar
e2663ce820 video: driver: Remove inst check in video driver
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>
2023-05-25 21:04:49 +05:30
qctecmdr
ad201f4176 Merge "video-driver: additional changes to support bazel" 2023-05-25 08:23:45 -07:00
qctecmdr
bc8e64cf79 Merge "video: driver: ring buffer enhancements" 2023-05-25 08:23:45 -07:00
qctecmdr
3417d23343 Merge "video: driver: fix few warnings reported by static code check tool" 2023-05-25 08:23:45 -07:00
qctecmdr
2e53705d7c Merge "video: driver: Update session priority setting" 2023-05-24 13:15:07 -07:00
Vikash Garodia
3c69ab69a4 video: driver: fix few warnings reported by static code check tool
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>
2023-05-25 00:12:48 +05:30
Vedang Nagar
3018f2c1d3 video: driver: Update session priority setting
Modify session priority controls -
  ___________________________________________________________
 |  Description    |    HAL Value     |Driver value|FW Value|
 |_________________|__________________|____________|________|
 |Critical Priority| Vendor Extension | Via control|   0    |
 |      RT         |        0         |      0     |   1    |
 |      NRT        |     -1 to -4     |     1-4    |  2-5   |
 |_________________|__________________|____________|________|

Change-Id: I7b28109bde3968f38c2e3cc42cf4cf5dd195cc10
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-05-23 20:58:04 +05:30
Deepa Guthyappa Madivalara
def6b6328b video: driver: ring buffer enhancements
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>
2023-05-19 15:22:26 -07:00
Darshana Patil
3424965c49 video: driver: enable EOS event for encoder
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>
2023-05-18 14:05:54 -07:00
qctecmdr
fdc186d299 Merge "video: driver: fix kw issue of pointer NULL checking" 2023-05-16 21:43:01 -07:00
Rakshitha Shakamuri
78f8b4095f video-driver: additional changes to support bazel
Adding new macro to enable bazel compilation by default

Change-Id: Id8b9682a99a693c80be65c09b8e4b3d492284b63
Signed-off-by: Rakshitha Shakamuri <quic_rshakamu@quicinc.com>
2023-05-16 14:49:13 -07:00
qctecmdr
8c6659988d Merge "video: driver: operating rate changes for latency improvements" 2023-05-16 12:27:37 -07:00