[Bug 92728] connector properties sometimes go outdated

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Oct 30 08:26:59 PDT 2015


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

--- Comment #11 from Chris Wilson <chris at chris-wilson.co.uk> ---
Try:

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index e2969b6..6bb8250 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3250,6 +3250,9 @@ sna_output_attach_edid(xf86OutputPtr output)
                old = NULL;

        blob.blob_id = sna_output->prop_values[sna_output->edid_idx];
+       if (!blob.blob_id)
+               goto done;
+
        DBG(("%s: attaching EDID id=%d, current=%d\n",
             __FUNCTION__, blob.blob_id, sna_output->edid_blob_id));
        if (blob.blob_id == sna_output->edid_blob_id && 0) { /* sigh */
@@ -3270,7 +3273,7 @@ sna_output_attach_edid(xf86OutputPtr output)

        blob.data = (uintptr_t)raw;
        if (drmIoctl(sna->kgem.fd, DRM_IOCTL_MODE_GETPROPBLOB, &blob))
-               goto done;
+               goto skip_read;

        DBG(("%s: retrieving blob id=%d, length=%d\n",
             __FUNCTION__, blob.blob_id, blob.length))

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


More information about the intel-gfx-bugs mailing list