Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191231233756.18753-4-imre.deak@intel.com

+4 -1
+4 -1
drivers/gpu/drm/i915/display/intel_display.c
··· 16912 16912 } 16913 16913 16914 16914 /* 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]); 16916 16918 goto err; 16919 + } 16917 16920 16918 16921 drm_helper_mode_fill_fb_struct(&dev_priv->drm, fb, mode_cmd); 16919 16922