video: driver: restrict image load to 16K x 16K

Add strict check in msm_vidc_check_mbpf_supported() to
reject image session, if total image load exceeds 16K.
Added msm_vidc_print_insts_info() support to print all
running instance info, if new session is rejected due
to mbpf/mbps checks.

Change-Id: I98bab985fcf4f4d20c6f263c48e0c701ec86ab6f
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal
2021-05-28 20:29:44 +05:30
parent c1bf1d2bc9
commit b2e9fada31
7 changed files with 173 additions and 71 deletions

View File

@@ -1920,7 +1920,7 @@ int msm_vidc_adjust_session_priority(void *instance, struct v4l2_ctrl *ctrl)
* among NRT sessions. They are constraint RT or low priority RT.
*/
if (adjusted_value == 0 && rate_by_client) {
rc = msm_vidc_check_mbps_supported(inst);
rc = msm_vidc_check_core_mbps(inst);
if (rc) {
d_vpr_e("%s: priority 0 not feasible due to resource\n", __func__);
return rc;