mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
drm/i915: Emit a backtrace if we attempt to rebind a pinned buffer
This debugging trace was useful for finding the fbcon regression on i965, and it may prove useful again in future. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
87f8ebf309
commit
ae7d49d879
1 changed files with 4 additions and 0 deletions
|
@ -4198,6 +4198,10 @@ i915_gem_object_pin(struct drm_gem_object *obj, uint32_t alignment)
|
||||||
if (alignment == 0)
|
if (alignment == 0)
|
||||||
alignment = i915_gem_get_gtt_alignment(obj);
|
alignment = i915_gem_get_gtt_alignment(obj);
|
||||||
if (obj_priv->gtt_offset & (alignment - 1)) {
|
if (obj_priv->gtt_offset & (alignment - 1)) {
|
||||||
|
WARN(obj_priv->pin_count,
|
||||||
|
"bo is already pinned with incorrect alignment:"
|
||||||
|
" offset=%x, req.alignment=%x\n",
|
||||||
|
obj_priv->gtt_offset, alignment);
|
||||||
ret = i915_gem_object_unbind(obj);
|
ret = i915_gem_object_unbind(obj);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue