From 73f1b216b87b1f6fa83d83b3b0a576818911bfb4 Mon Sep 17 00:00:00 2001 From: Sai Gurrappadi Date: Tue, 3 Oct 2017 17:29:15 -0700 Subject: [PATCH] video: tegra: Fix up CV cluster clamping CV cluster clamping is currently owned partly by nvhost and partly by the client modules in their poweroff sequences. This leads to a mismatch in ref counts if the client specific finalize_poweron() call doesn't work. nvhost side ends up retrying to boot the device three times at which point we are left with a mismatch in the cluster clamp ref counts. To fix this, move out cluster clamping back to nvhost which allows us to maintain consistent state for the ref count. Bug 200352108 Change-Id: I9ccc71035934ccc147b8d8a8995afd060af333e8 Signed-off-by: Sai Gurrappadi Reviewed-on: https://git-master.nvidia.com/r/1572788 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/nvdla.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/nvdla.c b/drivers/video/tegra/host/nvdla/nvdla.c index 514a5e32..84483f55 100644 --- a/drivers/video/tegra/host/nvdla/nvdla.c +++ b/drivers/video/tegra/host/nvdla/nvdla.c @@ -521,8 +521,6 @@ int nvhost_nvdla_prepare_poweroff(struct platform_device *pdev) goto out; } - cv_cluster_clamp(pdev); - out: return ret; }