projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d156135
)
drm/i915: Add debug message for FB plane[0].offset!=0 error
author
Imre Deak
<imre.deak@intel.com>
Fri, 27 Dec 2019 18:03:02 +0000
(20:03 +0200)
committer
Imre Deak
<imre.deak@intel.com>
Tue, 7 Jan 2020 11:15:28 +0000
(13:15 +0200)
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
drivers/gpu/drm/i915/display/intel_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/display/intel_display.c
b/drivers/gpu/drm/i915/display/intel_display.c
index
14e62f5
..
ab76494
100644
(file)
--- 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);