gfx: pvr: fix SGX_READ_HWPERF IOCTL according to v1.7 ABI
authorImre Deak <imre.deak@intel.com>
Fri, 27 Jan 2012 16:27:31 +0000 (18:27 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:29:42 +0000 (12:29 +0300)
commit17720d6ec581ccb1d181ee8075192c7cc5f47086
tree843ef9aceb1d49a309dc5db98d90164d5fe0ad95
parentb5132cadc775261022f0e462d60436fb0993c4f6
gfx: pvr: fix SGX_READ_HWPERF IOCTL according to v1.7 ABI

There has been a change in the parameters for this IOCTL in v1.7 of the
driver. While the userspace library was updated accordingly we didn't do
this on the kernel side. We missed the difference since the size of the
structure wasn't checked against the user space version. The next patch
will add this check to avoid similar problems in the future.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Tested-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/pvr/include4/sgxapi_km.h
drivers/staging/mrst/pvr/services4/include/sgx_mkif_km.h
drivers/staging/mrst/pvr/services4/srvkm/devices/sgx/sgxinit.c
drivers/staging/mrst/pvr/services4/srvkm/hwdefs/sgxfeaturedefs.h