History

drm/i915: Add debug message for FB plane[0].offset!=0 error

Print a debug message if the FB plane[0] offset is not 0 as expected, to help understainding an add FB IOCTL fail.

Imre Deak committed 6 years ago

Commit 5cf15df1 parent d1561351 file · +4 −1Browse files

Unified · Split

drivers/gpu/drm/i915/display/intel_display.c+4−1
@@ -16912,8 +16912,11 @@ static int intel_framebuffer_init(struct intel_framebuffer *intel_fb, · 16911 unmodified lines
1691216912 }
1691316913
1691416914 /* FIXME need to adjust LINOFF/TILEOFF accordingly. */
16915− if (mode_cmd->offsets[0] != 0)
16915+ if (mode_cmd->offsets[0] != 0) {
16916+ DRM_DEBUG_KMS("plane 0 offset (0x%08x) must be 0\n",
16917+ mode_cmd->offsets[0]);
1691616918 goto err;
16919+ }
1691716920
1691816921 drm_helper_mode_fill_fb_struct(&dev_priv->drm, fb, mode_cmd);
1691916922