Skip to content

Commit

Permalink
media: staging: tegra-vde: Bump BSEV DMA timeout
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
digetx committed Jan 3, 2022
1 parent b19b736 commit 0b75aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/media/tegra-vde/h264.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,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;
Expand Down

0 comments on commit 0b75aa1

Please sign in to comment.