mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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:
committed by
mobile promotions
parent
97f5252632
commit
49f4109b66
@@ -2128,8 +2128,8 @@ int pva_task_write_dma_info(struct pva_submit_task *task,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (task->hwseq_config.hwseqBuf.pin_id != 0U) {
|
if (task->hwseq_config.hwseqBuf.pin_id != 0U) {
|
||||||
if (hwgen != PVA_HW_GEN2) {
|
if (hwgen == PVA_HW_GEN1) {
|
||||||
/* HW sequencer is supported only in HW_GEN2 */
|
/* HW sequencer is not supported in HW_GEN1 */
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user