From: Mikko Perttunen <mperttu...@nvidia.com> Timing can be wonky on pre-silicon platforms, so disable fence timeouts on pre-silicon platforms.
Signed-off-by: Mikko Perttunen <mperttu...@nvidia.com> --- drivers/gpu/host1x/fence.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/host1x/fence.c b/drivers/gpu/host1x/fence.c index 139ad1afd935..711eeb93689e 100644 --- a/drivers/gpu/host1x/fence.c +++ b/drivers/gpu/host1x/fence.c @@ -11,6 +11,9 @@ #include <linux/slab.h> #include <linux/sync_file.h> +#include <soc/tegra/fuse.h> + +#include "dev.h" #include "fence.h" #include "intr.h" #include "syncpt.h" @@ -127,6 +130,12 @@ struct dma_fence *host1x_fence_create(struct host1x_syncpt *sp, u32 threshold, { struct host1x_syncpt_fence *fence; + if (!tegra_is_silicon()) { + dev_info_once(sp->host->dev, + "fence timeout disabled due to pre-silicon platform\n"); + timeout = false; + } + fence = kzalloc(sizeof(*fence), GFP_KERNEL); if (!fence) return ERR_PTR(-ENOMEM); -- 2.42.0