<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [hsw] i915_reg_read_ioctl(TIMESTAMP) returns garbage"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91317#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [hsw] i915_reg_read_ioctl(TIMESTAMP) returns garbage"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91317">bug 91317</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>diff --git a/drivers/gpu/drm/i915/intel_uncore.c
b/drivers/gpu/drm/i915/intel_uncore.c
index 2c47766..d4c57a9 100644
--- a/drivers/gpu/drm/i915/intel_uncore.c
+++ b/drivers/gpu/drm/i915/intel_uncore.c
@@ -1325,7 +1325,8 @@ int i915_reg_read_ioctl(struct drm_device *dev,
switch (entry->size) {
case 8:
- reg->val = I915_READ64(reg->offset);
+ /* w/a for broken hw */
+ reg->val = I915_READ64_2x32(reg->offset, reg->offset + 4);
break;
case 4:
reg->val = I915_READ(reg->offset);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>