From: Ben Widawsky Date: Thu, 12 Jul 2012 18:01:05 +0000 (-0700) Subject: drm/i915: add register read IOCTL X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~20^2~61^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c7babc48c4f6943ed3070d04630ea3ac9272ee;p=pandora-kernel.git drm/i915: add register read IOCTL The interface's immediate purpose is to do synchronous timestamp queries as required by GL_TIMESTAMP. The GPU has a register for reading the timestamp but because that would normally require root access through libpciaccess, the IOCTL can provide this service instead. Currently the implementation whitelists only the render ring timestamp register, because that is the only thing we need to expose at this time. v2: make size implicit based on the register offset Add a generation check Reviewed-by: Eric Anholt Cc: Jacek Lawrynowicz Signed-off-by: Ben Widawsky [danvet: fixup the ioctl numerb:] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed