1. 22 8月, 2012 1 次提交
  2. 15 3月, 2012 1 次提交
  3. 13 2月, 2012 1 次提交
    • D
      drm/modes: do not enforce an odd vtotal for interlaced modes · 8bf42225
      Daniel Vetter 提交于
      CEA actually specifies an interlaced mode with even vtotal and
      supplies a diagram showing how this is supposed to work.
      
      Note that interlaced modes with an even vtotal seem to be a fairly
      recent invention. All modelines lore I could dig up with googling says
      that vtotal for interlaced modes _needs_ to be odd. But the even
      modelines in CEA are not a spec-bug, there's a figure in CEA-861-E
      called "Figure 5 Special Interlaced Video Format Timing (Even Vtotal)"
      that explains how it's supposed to work. Furthermore intel Bspec
      explicitly mentions that both odd and even interlaced vtotal are
      supported (VTOTAL register in the south display engine of PCH split
      chips).
      Acked-by: NAdam Jackson <ajax@redhat.com>
      Signed-Off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      8bf42225
  4. 01 11月, 2011 1 次提交
  5. 25 7月, 2011 1 次提交
    • R
      DRM: clean up and document parsing of video= parameter · 04fee895
      Rolf Eike Beer 提交于
      The video= parameter of the DRM drivers supports some additional flags that
      the normal fb drivers do not have. They also allow to limit these flags to
      specific outputs. Both things were previously undocumented.
      
      Also the parsing of the line had some oddities:
      -A lot of misplaced options were silently ignored or partly rejected instead
       of stopping the parsing immediately
      -The 'R' option is documented to follow the 'M' option if specified. It is not
       documented that 'M' is needed to specify 'R' (also this is the case for normal
       fb drivers). In fact the code is correct for normal fb drivers but wrong for
       DRM ones.
       The old code allowed 'R' only _before_ 'M' (since it parses backwards) and only
       if 'M' is given at all which is not needed for the DRM drivers.
      -the margins option ('m') was parsed but later ignored even if the later
       functions support it.
      -specifying multiple enable options at the same time did not lead to an error.
      -specifying something bogus for horizontal resolution (i.e. other things as
       digits) did not lead to an error but an invalid resolution was used.
      
      If any errors are encountered the position of the faulting string is now
      printed to the user and the complete mode is ignored. This gives much
      more consistent error behaviour.
      
      I also removed some useless assignments and changed the local flag variables
      to be bool.
      Signed-off-by: NRolf Eike Beer <eike-kernel@sf-tec.de>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      04fee895
  6. 04 5月, 2011 1 次提交
  7. 28 4月, 2011 1 次提交
  8. 23 2月, 2011 1 次提交
  9. 18 10月, 2010 1 次提交
  10. 27 8月, 2010 1 次提交
  11. 09 4月, 2010 1 次提交
  12. 06 4月, 2010 2 次提交
    • A
      drm/modes: Fix interlaced mode names · 171fdd89
      Adam Jackson 提交于
      Height in frame size, not field size, and trailed with an 'i'.  Matches
      the X server behaviour.
      Signed-off-by: NAdam Jackson <ajax@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      171fdd89
    • A
      drm/edid: Add secondary GTF curve support · 7a374350
      Adam Jackson 提交于
      Before CVT-R, some monitors would advertise support for an alternative
      GTF formula with lower blanking intervals.  Correctly identify such
      monitors, and use the alternative formula when generating modes for
      them.
      
      Note that we only do this for "standard" timing descriptors (tuples of
      hsize in characters / aspect ratio / vertical refresh).  Range-based
      mode lists still only refer to the primary GTF curve.  It would be
      possible to do better for the latter case, but monitors are required to
      support the primary curve over the entire advertised range, so all it
      would win you is a lower pixel clock and therefore possibly better image
      quality on analog links.
      Signed-off-by: NAdam Jackson <ajax@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      7a374350
  13. 13 1月, 2010 1 次提交
  14. 04 12月, 2009 1 次提交
  15. 25 9月, 2009 1 次提交
    • D
      drm/kms: start adding command line interface using fb. · d50ba256
      Dave Airlie 提交于
      [note this requires an fb patch posted to linux-fbdev-devel already]
      
      This uses the normal video= command line option to control the kms
      output setup at boot time. It is used to override the autodetection
      done by kms.
      
      video= normally takes a framebuffer as the first parameter, in kms
      it will take a connector name, DVI-I-1, or LVDS-1 etc. If no output
      connector is specified the mode string will apply to all connectors.
      
      The mode specification used will match down the probed modes, and if
      no mode is found it will add a CVT mode that matches.
      
      video=1024x768 - all connectors match a 1024x768 mode or add a CVT on
      video=VGA-1:1024x768, VGA-1 connector gets mode only.
      
      The same strings as used in current fb modedb.c are used, except I've
      added three more letters, e, D, d, e = enable, D = enable Digital,
      d = disable, which allow a connector to be forced into a certain state.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      d50ba256
  16. 07 9月, 2009 1 次提交
    • Z
      drm/kms: try to find the std mode in DMT table · 559ee21d
      Zhao Yakui 提交于
      When we need to add the standard timing mode, we will firstly check whether it
      can be found in DMT table by comparing the hdisplay/vdisplay/vfresh_rate.
      If it can't be found, then we will use the cvt/gtf to add the required mode.
      If it can be found, it will be returned.
      
      At the same time the function of drm_mode_vrefresh is also fixed. It will
      return the result of actual refresh_rate plus 0.5.
      For example:
      When the calculated value is 84.9, then the fresh_rate is 85.
      When the calculated value is 70.02, then the fresh_rate is 70.
      Signed-off-by: NZhao Yakui <yakui.zhao@intel.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      559ee21d
  17. 13 8月, 2009 1 次提交
  18. 09 8月, 2009 1 次提交
    • K
      drm: When adding probed modes, preserve duplicate mode types · 38d5487d
      Keith Packard 提交于
      The code which takes probed modes and adds them to a connector eliminates
      duplicate modes by comparing them using drm_mode_equal. That function
      doesn't consider the type bits, which means that any modes which differ only
      in the type field will be lost.
      
      One of the bits in the mode->type field is the DRM_MODE_TYPE_PREFERRED bit.
      If the mode with that bit is lost, then higher level code will not know
      which mode to select, causing a random mode to be used instead.
      
      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.
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      38d5487d
  19. 04 8月, 2009 2 次提交
  20. 15 7月, 2009 2 次提交
  21. 12 6月, 2009 1 次提交
  22. 29 12月, 2008 1 次提交
    • D
      DRM: add mode setting support · f453ba04
      Dave Airlie 提交于
      Add mode setting support to the DRM layer.
      
      This is a fairly big chunk of work that allows DRM drivers to provide
      full output control and configuration capabilities to userspace.  It was
      motivated by several factors:
        - the fb layer's APIs aren't suited for anything but simple
          configurations
        - coordination between the fb layer, DRM layer, and various userspace
          drivers is poor to non-existent (radeonfb excepted)
        - user level mode setting drivers makes displaying panic & oops
          messages more difficult
        - suspend/resume of graphics state is possible in many more
          configurations with kernel level support
      
      This commit just adds the core DRM part of the mode setting APIs.
      Driver specific commits using these new structure and APIs will follow.
      
      Co-authors: Jesse Barnes <jbarnes@virtuousgeek.org>, Jakob Bornecrantz <jakob@tungstengraphics.com>
      Contributors: Alan Hourihane <alanh@tungstengraphics.com>, Maarten Maathuis <madman2003@gmail.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      f453ba04