[Bug 91317] [hsw] i915_reg_read_ioctl(TIMESTAMP) returns garbage

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 12 11:35:26 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=91317

--- Comment #7 from Chris Wilson <chris at chris-wilson.co.uk> ---
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);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20150712/3a96712f/attachment.html>


More information about the intel-gfx-bugs mailing list