unsigned int i915_modeset = 0;
module_param_named(modeset, i915_modeset, int, 0400);
-unsigned int i915_fbpercrtc = 1;
+unsigned int i915_fbpercrtc = 0;
module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400);
unsigned int i915_rightof = 1;
static const struct drm_mode_config_funcs intel_mode_funcs = {
.resize_fb = NULL,
.fb_create = intel_user_framebuffer_create,
+ .fb_changed = intelfb_probe,
};
void intel_modeset_init(struct drm_device *dev)
static int intelfb_set_par(struct fb_info *info)
{
struct intelfb_par *par = info->par;
- struct drm_device *dev = par->dev;
struct fb_var_screeninfo *var = &info->var;
- int found = 0;
DRM_DEBUG("%d %d\n", var->xres, var->pixclock);
struct drm_framebuffer *fb = &intel_fb->base;
struct drm_display_mode *drm_mode, *search_mode;
struct drm_connector *connector = NULL;
+ struct drm_device *dev = par->dev;
+
+ int found = 0;
switch (var->bits_per_pixel) {
case 16:
modeset->connectors = (struct drm_connector **)(modeset + 1);
list_add_tail(&modeset->head, &par->mode_set_list);
}
+ return 0;
fail:
list_for_each_entry(modeset, &par->mode_set_list, head) {
info->var.pixclock = -1;
if (register_framebuffer(info) < 0)
return -EINVAL;
- }
+ } else
+ intelfb_set_par(info);
printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node,
info->fix.id);