[Bug 90469] [BYT dsi] WARNING: CPU: 3 PID: 265 at drivers/gpu/drm/drm_irq.c:1130 drm_wait_one_vblank+0x177/0x180()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 18 06:42:57 PDT 2015


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

--- Comment #28 from Deepak M <m.deepak at intel.com> ---
Can you please try the below changes in the mipi_exec_i2c() ?

--- a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
+++ b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
@@ -485,22 +485,23 @@

     msg.addr   = slave_add;
     msg.flags  = 0;
-    msg.len    = 2;
+    msg.len    = payload_size + 1;
     msg.buf    = &transmit_buffer[0];

     do {
         ret =  i2c_transfer(adapter, &msg, 1);
-        if (ret == -EAGAIN)
+        if (ret == 1)
+            break;
+        else if (ret == -EAGAIN)
             usleep_range(1000, 2500);
-        else if (ret != 1) {
-            DRM_ERROR("i2c transfer failed %d\n", ret);
+        else {
+            DRM_ERROR("i2c transfer failed, error code:%d", ret);
             break;
         }
     } while (retries--);

     if (retries == 0)
-        DRM_ERROR("i2c transfer failed");
-
+        DRM_ERROR("i2c transfer failed, error code:%d", ret);
 out:
     kfree(transmit_buffer);


Regards,
Deepak

-- 
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/20150818/00775fd5/attachment.html>


More information about the intel-gfx-bugs mailing list