gfx: pvr: add hwrec_debugfs entries
authorImre Deak <imre.deak@intel.com>
Fri, 18 Nov 2011 14:38:05 +0000 (16:38 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:28:40 +0000 (12:28 +0300)
commit0d88ef9df64bcd5110c25ae7bc292399c6938e26
treef119c7b51e5af019cef78e3458a8903a2b4fb2d1
parentc8325edb87d1b23419d918b4b8677cd9356fcb6a
gfx: pvr: add hwrec_debugfs entries

These entries provide details about an SGX HW recovery event. In general
the hwrec_xxx entry will provide a snapshot of the corresponding state
as it was at the time of the last recovery, while the xxx entry will
give the current state.

At the moment we have hwrec_event and hwrec_sgx_registers. hwrec_event
is special in that it can be used to step to the next HW recovery event.
After it's opened and read all other hwrec_* entries will provide the
state for the same event. A second open on hwrec_event will reset all
hwrec_* entries, in preparation for the next event.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/pvr/pvr_debug_core.h
drivers/staging/mrst/pvr/pvr_debugfs.c
drivers/staging/mrst/pvr/pvr_debugfs.h
drivers/staging/mrst/pvr/services4/srvkm/devices/sgx/sgxinit.c