drm/i915/tgl: allow the reg_read ioctl to read the RCS TIMESTAMP register
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 26 Jul 2019 00:24:11 +0000 (17:24 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 1 Aug 2019 21:36:54 +0000 (14:36 -0700)
commit2b92a82fe03bd426a90b82d69fe1c340ac6b9d74
treefe48c9a48050f182cc23a5c4c4bf8a6bf41d3d91
parent5d571068f71ebf41f434fa3f9b4ebcc9849d5efe
drm/i915/tgl: allow the reg_read ioctl to read the RCS TIMESTAMP register

This enables the Mesa driver to advertise support for ARB_timer_query,
and thus an OpenGL version higher than 3.2.

Based on the ICL patch by Paulo Zanoni and CNL patch by Nanley Chery.

Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190726002412.5827-3-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_uncore.c