]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MGS-324 [#1472] dump GPU AQAXIStatus register for AXI BUS ERROR
authorXianzhong <b07117@freescale.com>
Tue, 25 Nov 2014 17:34:42 +0000 (01:34 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:37 +0000 (21:18 -0600)
AQAXiStatus register info is helpful to debug AXI BUS ERROR,
need dump this GPU register when AXI BUS ERROR happen.

Date: Dec 03, 2014
Signed-off-by: Xianzhong <b07117@freescale.com>
Acked-by: Jason Liu
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c

index 1c6300787fad90f87d8d37eb75b885dd89022a1f..f160ae9c7e729e92c454135ae0d974e599d801d7 100644 (file)
@@ -2448,7 +2448,10 @@ gckEVENT_Notify(
 
         if (pending & 0x80000000)
         {
-            gcmkPRINT("AXI BUS ERROR");
+            gctUINT32 AQAxiStatus = 0;
+            gckOS_ReadRegisterEx(Event->os, Event->kernel->hardware->core, 0xC, &AQAxiStatus);
+
+            gcmkPRINT("GPU[%d]: AXI BUS ERROR, AQAxiStatus=0x%x\n", Event->kernel->hardware->core, AQAxiStatus);
             pending &= 0x7FFFFFFF;
         }