1. 16 Oct, 2013 11 commits
  2. 15 Oct, 2013 17 commits
  3. 14 Oct, 2013 8 commits
  4. 11 Oct, 2013 4 commits
    • Ville Syrjälä's avatar
      drm/i915: Fix pre-CTG vblank counter · 391f75e2
      Ville Syrjälä authored
      The old style frame counter increments at the start of active video.
      However for i915_get_vblank_counter() we want a counter that increments
      at the start of vblank.
      
      Fortunately the low frame counter register also contains the pixel
      counter for the current frame. We can can compare that against the
      vblank start pixel count to determine if we need to increment the
      frame counter by 1 to get the correct answer.
      
      Also reorganize the function pointer assignments in intel_irq_init() a
      bit to avoid confusing people.
      
      Cc: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
      Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: default avatarMario Kleiner <mario.kleiner@tuebingen.mpg.de>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      391f75e2
    • Daniel Vetter's avatar
      drm/i915: rename intel_fb.c to intel_fbdev.c · 0632fef6
      Daniel Vetter authored
      This file is all about the legacy fbdev support. If we want to extract
      framebuffer functions, we better put those into a separate file.
      
      Also rename functions accordingly, only two have used the intel_fb_
      prefix anyway.
      Reviewed-by: default avatarChon Ming Lee <chon.ming.lee@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      0632fef6
    • Daniel Vetter's avatar
      drm/i915: Kconfig option to disable the legacy fbdev support · 4520f53a
      Daniel Vetter authored
      Boots Just Fine (tm)!
      
      The only glitch seems to be that at least on Fedora the boot splash
      gets confused and doesn't display much at all.
      
      And since there's no ugly console flickering anymore in between, the
      flicker while switching between X servers (VT support is still enabled)
      is even more jarring.
      
      Also, I'm unsure whether we don't need to somehow kick out vgacon, now
      that nothing else gets in the way. But stuff seems to work, so I
      don't care. Also everything still works as well with VGA_CONSOLE=n
      
      Also the #ifdef mess needs a bit of a cleanup, follow-up patches will
      do just that.
      
      To keep the Kconfig tidy, extract all the i915 options into its own
      file.
      
      v2:
      - Rebase on top of the preliminary hw support option and the
        intel_drv.h cleanup.
      - Shut up warnings in i915_debugfs.c
      
      v3: Use the right CONFIG variable, spotted by Chon Ming.
      
      Cc: Lee, Chon Ming <chon.ming.lee@intel.com>
      Cc: David Herrmann <dh.herrmann@gmail.com>
      Reviewed-by: default avatarChon Ming Lee <chon.ming.lee@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      4520f53a
    • Daniel Vetter's avatar
      drm: Add separate Kconfig option for fbdev helpers · 92b6f89f
      Daniel Vetter authored
      For drivers which might want to disable fbdev legacy support.
      
      Select the new option in all drivers for now, so this shouldn't result
      in any change. Drivers need some work anyway to make fbdev support
      optional (if they have it implemented, that is), so the recommended
      way to expose this is by adding per-driver options. At least as long
      as most drivers don't support disabling the fbdev support.
      
      v2: Update for new drm drivers msm and rcar-du. Note that Rob's msm
      driver can already take advantage of this, which allows us to build
      msm without any fbdev depencies in the kernel!
      
      v3: Move the MODULE_* stuff from the fbdev helper file to
      drm_crtc_helper.c.
      
      Cc: David Herrmann <dh.herrmann@gmail.com>
      Cc: Rob Clark <robdclark@gmail.com>
      Reviewed-by: default avatarRob Clark <robdclark@gmail.com>
      Acked-by: default avatarDave Airlie <airlied@linux.ie>
      Reviewed-by: default avatarChon Ming Lee <chon.ming.lee@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      92b6f89f