- Add pipes check to support different Tile sizes based on
number of VPP Pipes for HFI_IRIS3_ENC_TILE_SIZE_INFO,
HFI_IRIS3_ENC_MB_BASED_MULTI_SLICE_COUNT.
HFI review done with ccb id 3284017.
Change-Id: I2e403ac712143635fd9ff5167260e23d6b48c482
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
[1] Acquire xo_reset mutex for gdsc access.
[2] Retry acquire_regulator for 1sec and BUG_ON if still fails.
Change-Id: Ie0ed4561a0c12b8526e2ede96a879f9d311aafab
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
To debug FW bootup failure scenario, FW tries to update ctrl_init
register to know at what point failure is seen and driver can
read and print this register so as to know where FW bootup is
failing.
Change-Id: I26691a84ab2526dee8adb6b2a46b62a01bacede8
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
Using pointer instead of array copy for frequency
and bitrate table.
Change-Id: I1c4c10ed0708954a067e8b199e293a2169e68628
Signed-off-by: Zhongbo Shi <quic_zhongbos@quicinc.com>
Fix inconsistency in clock and bandwidth calculation
compared with C model.
Change-Id: Ie3fbeb792a152de3a96687e96db7413fbf98c69b
Signed-off-by: Zhongbo Shi <quic_zhongbos@quicinc.com>
Fix AV1 resolution checking conditions for
input bus voting.
Change-Id: I24593ce425bd952fa9a053dfd08e6bfa880ca4fc
Signed-off-by: Zhongbo Shi <quic_zhongbos@quicinc.com>
Update NOC register programming based on vpu
version like iris33 and iris3_2pipe.
Change-Id: I98e879cdd0f89584dfc2c6fad8345979403b2b3e
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
lcu_size shouldn't be changed by shift op, it is still
needed in alignment calculation.
Change-Id: I3c0ebfaee84389926ba3e191d901006065598182
Signed-off-by: Jiajia Cong <quic_jcong@quicinc.com>
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>
Fix space and blank line required warning.
Change-Id: I2f754e52cdb36332a53b65ca248ae5d974a00ff4
Signed-off-by: Ankush Mitra <quic_ankumitr@quicinc.com>
- 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>
fix copyright markings and have all markings in one
multiline comment.
Change-Id: I481c6213bb25e8c278956ad6a51df3fc5c1aabf2
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
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>
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>
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>
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>
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>
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>