drivers: pva: Fix ver check to pin HW seq buffer

While trying to pin HW Sequence buffer, ensure
that chip generation is not GEN1 since
HW sequencer is not supported only in GEN1.

JIRA PVAAS-12257

Change-Id: I3684f6a05f336aeda9be21ba783836bfaf454134
Signed-off-by: abhamidipati <abhamidipati@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2948207
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2999159
Reviewed-by: Krish Agarwal <krisha@nvidia.com>
Reviewed-by: Omar Nemri <onemri@nvidia.com>
Tested-by: Omar Nemri <onemri@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Amruta Bhamidipati
2023-08-03 21:39:11 +00:00
committed by mobile promotions
parent 97f5252632
commit 49f4109b66

View File

@@ -2128,8 +2128,8 @@ int pva_task_write_dma_info(struct pva_submit_task *task,
}
if (task->hwseq_config.hwseqBuf.pin_id != 0U) {
if (hwgen != PVA_HW_GEN2) {
/* HW sequencer is supported only in HW_GEN2 */
if (hwgen == PVA_HW_GEN1) {
/* HW sequencer is not supported in HW_GEN1 */
err = -EINVAL;
goto out;
}