1. 01 12月, 2015 1 次提交
    • V
      drm/edid: Make the detailed timing CEA/HDMI mode fixup accept up to 5kHz clock difference · 4c6bcf44
      Ville Syrjälä 提交于
      Rather than using drm_match_cea_mode() to see if the EDID detailed
      timings are supposed to represent one of the CEA/HDMI modes, add a
      special version of that function that takes in an explicit clock
      tolerance value (in kHz). When looking at the detailed timings specify
      the tolerance as 5kHz due to the 10kHz clock resolution limit inherent
      in detailed timings.
      
      drm_match_cea_mode() uses the normal KHZ2PICOS() matching of clocks,
      which only allows smaller errors for lower clocks (eg. for 25200 it
      won't allow any error) and a bigger error for higher clocks (eg. for
      297000 it actually matches 296913-297000). So it doesn't really match
      what we want for the fixup. Using the explicit +-5kHz is much better
      for this use case.
      
      Not sure if we should change the normal mode matching to also use
      something else besides KHZ2PICOS() since it allows a different
      proportion of error depending on the clock. I believe VESA CVT
      allows a maximum deviation of .5%, so using that for normal mode
      matching might be a good idea?
      
      Cc: Adam Jackson <ajax@redhat.com>
      Tested-by: nathan.d.ciobanu@linux.intel.com
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92217
      Fixes: fa3a7340 ("drm/edid: Fix up clock for CEA/HDMI modes specified via detailed timings")
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NAdam Jackson <ajax@redhat.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      4c6bcf44
  2. 24 11月, 2015 1 次提交
  3. 22 5月, 2015 1 次提交
  4. 23 3月, 2015 2 次提交
  5. 10 3月, 2015 1 次提交
  6. 03 2月, 2015 2 次提交
  7. 08 1月, 2015 1 次提交
  8. 18 12月, 2014 2 次提交
  9. 06 12月, 2014 1 次提交
  10. 21 10月, 2014 1 次提交
  11. 06 8月, 2014 1 次提交
    • C
      drm: Perform cmdline mode parsing during connector initialisation · eaf99c74
      Chris Wilson 提交于
      i915.ko has a custom fbdev initialisation routine that aims to preserve
      the current mode set by the BIOS, unless overruled by the user. The
      user's wishes are determined by what, if any, mode is specified on the
      command line (via the video= parameter). However, that command line mode
      is first parsed by drm_fb_helper_initial_config() which is called after
      i915.ko's custom initial_config() as a fallback method. So in order for
      us to honour it, we need to move the cmdline parser earlier. If we
      perform the connector cmdline parsing as soon as we initialise the
      connector, that cmdline mode and forced status is then available even if
      the fbdev helper is not compiled in or never called.
      
      We also then expose the cmdline user mode in the connector mode lists.
      
      v2: Rebase after connector->name upheaval.
      
      v3: Adapt mga200 to look for the cmdline mode in the new place. Nicely
      simplifies things while at that.
      
      v4: Fix checkpatch.
      
      v5: Select FB_CMDLINE to adapt to the changed fbdev patch.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73154
      Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (v2)
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> (v2)
      Cc: dri-devel@lists.freedesktop.org
      Cc: Julia Lemire <jlemire@matrox.com>
      Cc: Dave Airlie <airlied@redhat.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      eaf99c74
  12. 01 5月, 2014 1 次提交
  13. 13 3月, 2014 8 次提交
  14. 14 1月, 2014 1 次提交
  15. 23 10月, 2013 1 次提交
    • M
      drm: copy mode type in drm_mode_connector_list_update() · 3fbd6439
      Marc-André Lureau 提交于
      In commit 38d5487d, Keith explained:
          This patch simply merges the two mode type bits together; that seems
          reasonable to me, but perhaps only a subset of the bits should be
          used? None of these can be user defined as they all come from
          looking at just the hardware.
      
      However, merging the bits means that a flag becomes sticky. It is not
      possible, for example to update the mode type to remove the
      DRM_MODE_TYPE_PREFERRED bit.
      
      After a brief discussion with Dave Airlie on irc, it was agreed to
      propose that change, instead of introducing another function to remove a
      bit from exisiting modes type.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      3fbd6439
  16. 01 10月, 2013 3 次提交
  17. 21 8月, 2013 1 次提交
  18. 19 8月, 2013 1 次提交
  19. 11 6月, 2013 2 次提交
  20. 03 6月, 2013 1 次提交
  21. 10 5月, 2013 1 次提交
  22. 26 4月, 2013 1 次提交
  23. 12 3月, 2013 2 次提交
    • T
      videomode: combine videomode dmt_flags and data_flags · 06a33079
      Tomi Valkeinen 提交于
      Both videomode and display_timing contain flags describing the modes.
      These are stored in dmt_flags and data_flags. There's no need to
      separate these flags, and having separate fields just makes the flags
      more difficult to use.
      
      This patch combines the fields and renames VESA_DMT_* flags to
      DISPLAY_FLAGS_*.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
      06a33079
    • T
      videomode: simplify videomode Kconfig and Makefile · a38884f6
      Tomi Valkeinen 提交于
      This patch simplifies videomode related Kconfig and Makefile. After this
      patch, there's only one non-user selectable Kconfig option left,
      VIDEOMODE_HELPERS. The reasons for the change:
      
      * Videomode helper functions are not something that should be shown in
        the kernel configuration options. The related code should just be
        included if it's needed, i.e. selected by drivers using videomode.
      
      * There's no need to have separate Kconfig options for videomode and
        display_timing. First of all, the amount of code for both is quite
        small. Second, videomode depends on display_timing, and display_timing
        in itself is not really useful, so both would be included in any case.
      
      * CONFIG_VIDEOMODE is a bit vague name, and CONFIG_VIDEOMODE_HELPERS
        describes better what's included.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      a38884f6
  24. 24 1月, 2013 2 次提交
  25. 07 11月, 2012 1 次提交