ARM: tegra12: Fix unpowergate sequence for GK20A
Prashant Malani [Thu, 1 Aug 2013 03:03:31 +0000 (20:03 -0700)]
Ensure that GPU partition reset is asserted
before we remove the clamp to gpu power
partition.

Bug 1339089

Change-Id: I6db01d1e4a4bba814a74b5f2881e3adc69f6b1ca
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/264099
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

arch/arm/mach-tegra/powergate-t12x.c

index 5d2e7f0..79483d3 100644 (file)
@@ -430,13 +430,15 @@ static int tegra12x_gpu_unpowergate(int id,
 
        udelay(10);
 
+       powergate_partition_assert_reset(pg_info);
+
+       udelay(10);
+
        /* disable clamp */
        pmc_write(0, PMC_GPU_RG_CNTRL_0);
 
        udelay(10);
 
-       powergate_partition_assert_reset(pg_info);
-       udelay(10);
        powergate_partition_deassert_reset(pg_info);
 
        udelay(10);