linux_dsm_epyc7002/include/uapi/drm
Chris Wilson 648a9bc530 drm/i915: Use two 32bit reads for select 64bit REG_READ ioctls
Since the hardware sometimes mysteriously totally flummoxes the 64bit
read of a 64bit register when read using a single instruction, split the
read into two instructions. Since the read here is of automatically
incrementing timestamp counters, we also have to be very careful in
order to make sure that it does not increment between the two
instructions.

However, since userspace tried to workaround this issue and so enshrined
this ABI for a broken hardware read and in the process neglected that
the read only fails in some environments, we have to introduce a new
uABI flag for userspace to request the 2x32 bit accurate read of the
timestamp.

v2: Fix alignment check and include details of the workaround for
userspace.

Reported-by: Karol Herbst <freedesktop@karolherbst.de>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91317
Testcase: igt/gem_reg_read
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: stable@vger.kernel.org
Tested-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-07-21 11:49:13 +02:00
..
amdgpu_drm.h drm/amdgpu: add flag to delay VM updates 2015-06-29 15:52:50 -04:00
armada_drm.h DRM: Armada: Add Armada DRM driver 2013-10-12 10:13:40 +01:00
drm_fourcc.h drm/msm/mdp4: Support NV12MT format in mdp4 2015-06-11 13:11:01 -04:00
drm_mode.h drm/mode: Add user blob-creation ioctl 2015-05-22 16:18:28 +02:00
drm_sarea.h
drm.h drm/mode: Add user blob-creation ioctl 2015-05-22 16:18:28 +02:00
exynos_drm.h drm/exynos: use drm generic mmap interface 2014-09-20 01:00:13 +09:00
i810_drm.h
i915_drm.h drm/i915: Use two 32bit reads for select 64bit REG_READ ioctls 2015-07-21 11:49:13 +02:00
Kbuild drm/msm: add a3xx gpu support 2013-08-24 14:57:18 -04:00
mga_drm.h
msm_drm.h drm/msm: use __s32, __s64, __u32 and __u64 from linux/types.h for uabi 2015-06-11 13:11:05 -04:00
nouveau_drm.h drm/nouveau/gem: allow user-space to specify an object should be coherent 2015-04-14 17:00:46 +10:00
omap_drm.h drm/omap: move out of staging 2013-02-16 17:38:06 -05:00
qxl_drm.h drm: add new QXL driver. (v1.4) 2013-04-12 13:51:07 +10:00
r128_drm.h
radeon_drm.h Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2015-06-26 13:18:51 -07:00
savage_drm.h
sis_drm.h
tegra_drm.h drm/tegra: gem: Return 64-bit offset for mmap(2) 2015-04-02 18:49:23 +02:00
via_drm.h
vmwgfx_drm.h drm/vmwgfx: Fix drm.h include 2014-09-12 13:57:49 +10:00