diff options
author | Imre Deak <imre.deak@intel.com> | 2019-12-27 19:03:02 +0100 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2020-01-07 12:15:28 +0100 |
commit | 5cf15dfca91c1174e6ca659e29dcbe9bd137a552 (patch) | |
tree | 1474eb63091d205884f99ee08561b83c41b8be6d /drivers | |
parent | drm/i915/tgl: Make sure a semiplanar UV plane is tile row size aligned (diff) | |
download | linux-5cf15dfca91c1174e6ca659e29dcbe9bd137a552.tar.xz linux-5cf15dfca91c1174e6ca659e29dcbe9bd137a552.zip |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_display.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 14e62f500282..ab764945f34e 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -16912,8 +16912,11 @@ static int intel_framebuffer_init(struct intel_framebuffer *intel_fb, } /* FIXME need to adjust LINOFF/TILEOFF accordingly. */ - if (mode_cmd->offsets[0] != 0) + if (mode_cmd->offsets[0] != 0) { + DRM_DEBUG_KMS("plane 0 offset (0x%08x) must be 0\n", + mode_cmd->offsets[0]); goto err; + } drm_helper_mode_fill_fb_struct(&dev_priv->drm, fb, mode_cmd); |