summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-06-06 14:53:34 +1000
committerDave Airlie <airlied@linux.ie>2008-06-06 14:53:34 +1000
commitfc08877b1759f569890665b9d24ea35d11352158 (patch)
treebdaad4c3f844938129d3f12e26c5fa9376770615 /linux-core
parent8387a232a3305d10c4ac4cd08f9ebd0888944e55 (diff)
intelfb: admit fbdev is crap and punt on trying to resize to a larger fbdev.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/intel_fb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/linux-core/intel_fb.c b/linux-core/intel_fb.c
index 71f71a0d..9967f913 100644
--- a/linux-core/intel_fb.c
+++ b/linux-core/intel_fb.c
@@ -815,10 +815,12 @@ static int intelfb_single_fb_probe(struct drm_device *dev)
fb = list_first_entry(&dev->mode_config.fb_kernel_list, struct drm_framebuffer, filp_head);
intel_fb = to_intel_framebuffer(fb);
- /* check if we are going to have a size issue */
- /* do a surface compare */
+ /* if someone hotplugs something bigger than we have already allocated, we are pwned.
+ As really we can't resize an fbdev that is in the wild currently due to fbdev
+ not really being designed for the lower layers moving stuff around under it.
+ - so in the grand style of things - punt. */
if ((fb->width < surface_width) || (fb->height < surface_height)) {
- DRM_ERROR("NEED BIGGER SURFACE DUDE\n");
+ DRM_ERROR("Framebuffer not large enough to scale console onto.\n");
return -EINVAL;
}
}