Video: Driver: Allow only SSR type 0x1

Allow only SSR type 0x1

Change-Id: If6efd1ad2d6cb4f08cfc0090304f7faafb54aee9
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
This commit is contained in:
Manikanta Kanamarlapudi
2023-08-11 13:28:46 +05:30
parent d361bf3acb
commit 55de99511a

View File

@@ -928,6 +928,12 @@ int venus_hfi_trigger_ssr(struct msm_vidc_core *core, u32 type,
int rc = 0;
u32 payload[2];
// WA for CR: 3584248
if (type != HFI_SSR_TYPE_SW_ERR_FATAL) {
d_vpr_h("SSR Type 0x1 is only allowed for pineapple\n");
return rc;
}
/*
* call resume before preparing ssr hfi packet in core->packet
* otherwise ssr hfi packet in core->packet will be overwritten