disp: msm: sde: add support for hw fence error handling

Register callback function to hw fence driver and implement the
callback funtion.

As part of fence error handling, address out of ordering of HW
fences, SW override for release fence signal and handle BW voting
in both cmd and video mode.

Change-Id: I22902762b4cc09a5f5a20cf0dd01fc336a0f0cb4
Signed-off-by: GG Hou <quic_renjhou@quicinc.com>
This commit is contained in:
GG Hou
2023-03-22 11:26:41 +08:00
committed by Gerrit - the friendly Code Review server
parent 97b1afdda8
commit 725c7a0f3d
10 changed files with 236 additions and 3 deletions

View File

@@ -727,7 +727,7 @@ static int _init_hw_fences(struct sde_rm *rm, bool use_ipcc, struct sde_kms *sde
if (sde_kms->aspace[MSM_SMMU_DOMAIN_UNSECURE] &&
sde_kms->aspace[MSM_SMMU_DOMAIN_UNSECURE]->mmu) {
if (sde_hw_fence_init(ctl, use_ipcc,
if (sde_hw_fence_init(ctl, sde_kms, use_ipcc,
sde_kms->aspace[MSM_SMMU_DOMAIN_UNSECURE]->mmu)) {
SDE_DEBUG("failed to init hw_fence idx:%d\n", ctl->idx);
ret = -EINVAL;