Commit Graph

6 Commits

Author SHA1 Message Date
Zhou Peng 85b5d239b0 MLK-24373-2 arm64: imx8mp: vpu: g1/g2: fix potential deadlock issue
Replace spin_lock() with spin_lock_irqsave() to avoid potential deadlock

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2020-07-17 15:25:53 +08:00
Zhou Peng 742c7adea8 MLK-24373-1 arm64: imx8mp: vpu: g1/g2: fix blocking issue in suspend
HW enable and disable are shared with the same function, driver need to
check the parameter to identify whether HW is enabled or not

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2020-07-17 15:25:53 +08:00
Zhou Peng 76d95bf263 MLK-24009-2 arm64: imx8mp: vpu: g1/g2: fix build issue as module
release clk to avoid memory leak

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2020-05-15 12:39:05 +08:00
Zhou Peng 1f9442d519 MLK-23723: arm64: imx8mp: vpu: fix g1/g2 timeout during suspend/resume
When suspend happen between enable-HW and wait-HW-ready, user can't
fetch correct HW registers value after resume due to power off in suspend.
So drvier should explicitly restore and restore HW registers during
suspend/resume.

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2020-04-28 15:03:26 +08:00
Leonard Crestez 874558fb16 vpu: hantro: Fix kconfig to depend on ARCH_MXC instead
Upstream rejected per-SOC kconfig symbols such as CONFIG_ARCH_FSL_IMX8MQ
so just use CONFIG_ARCH_MXC instead.

There is already an ARM64 check in drivers/mxc/Kconfig so this
shouldn't change anything except that we can drop CONFIG_ARCH_FSL_IMX8MQ
from linux-nxp tree.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Zhou Peng <eagle.zhou@nxp.com>
2019-11-25 15:47:44 +08:00
Zhou Peng 4602d72fc0 vpu: hantro: add decoder for imx845
add hantro 845 source code, include g1/g2

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
[ Aisheng: merge Kconfig&Makefile changes ]
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 15:47:38 +08:00