From 249e9a770f075845d0634b984a7e959d0c96acad Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Wed, 16 Mar 2011 10:37:52 +0800 Subject: ENGR00140700 GPU: fix tiger run the second time causing system hang The root cause is endless GSL_INTR_BLOCK_YDX_CP interrupt. Apply interrupt status read work around only when yamato started. Signed-off-by: Richard Zhao --- drivers/mxc/amd-gpu/common/gsl_intrmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mxc/amd-gpu/common/gsl_intrmgr.c b/drivers/mxc/amd-gpu/common/gsl_intrmgr.c index cba9fc32ab8c..ae2eb4a0b864 100644 --- a/drivers/mxc/amd-gpu/common/gsl_intrmgr.c +++ b/drivers/mxc/amd-gpu/common/gsl_intrmgr.c @@ -59,7 +59,7 @@ kgsl_intr_decode(gsl_device_t *device, gsl_intrblock_t block_id) // read the block's interrupt status bits /* exclude CP block here to avoid hang in heavy loading with VPU+GPU */ - if (block_id == GSL_INTR_BLOCK_YDX_CP) { + if ((block_id == GSL_INTR_BLOCK_YDX_CP) && (device->flags & GSL_FLAGS_STARTED)) { status = 0x80000000; } else { device->ftbl.device_regread(device, block->status_reg, &status); -- cgit v1.2.3