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

drm/mm: Don't WARN if drm_mm_reserve_node

Jesse's BIOS fb reconstruction code actually relies on the -ENOSPC
return value to detect overlapping framebuffers (which the bios uses
always when lighting up more than one screen). All this fanciness
happens in intel_alloc_plane_obj in intel_display.c.

Since no one else uses this we can safely remove the WARN without
repercussions.

Reported-by: Ben Widawsky <benjamin.widawsky@intel.com>
Tested-by: Ben Widawsky <ben@bwidawsk.net>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

authored by

Daniel Vetter and committed by
Jani Nikula
004f3885 c39b0695

-2
-2
drivers/gpu/drm/drm_mm.c
··· 207 207 return 0; 208 208 } 209 209 210 - WARN(1, "no hole found for node 0x%lx + 0x%lx\n", 211 - node->start, node->size); 212 210 return -ENOSPC; 213 211 } 214 212 EXPORT_SYMBOL(drm_mm_reserve_node);