media: staging: tegra-vde: Bump BSEV DMA timeout
authorDmitry Osipenko <digetx@gmail.com>
Sun, 20 Feb 2022 20:46:20 +0000 (21:46 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 7 Mar 2022 15:17:48 +0000 (16:17 +0100)
BSEV DMA timeouts if VDE is downclocked by x10. Bump the timeout to allow
DMA to complete. We don't support freq scaling yet, this is just a minor
improvement which may become useful sometime later.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/tegra-vde/h264.c

index a46c648..d8e5534 100644 (file)
@@ -135,7 +135,7 @@ static int tegra_vde_wait_bsev(struct tegra_vde *vde, bool wait_dma)
                return 0;
 
        err = readl_relaxed_poll_timeout(vde->bsev + INTR_STATUS, value,
-                                        !(value & BSE_DMA_BUSY), 1, 100);
+                                        !(value & BSE_DMA_BUSY), 1, 1000);
        if (err) {
                dev_err(dev, "BSEV DMA timeout\n");
                return err;