1. 10 12月, 2015 1 次提交
  2. 30 11月, 2015 2 次提交
  3. 18 11月, 2015 1 次提交
    • V
      drm/i915: Type safe register read/write · f0f59a00
      Ville Syrjälä 提交于
      Make I915_READ and I915_WRITE more type safe by wrapping the register
      offset in a struct. This should eliminate most of the fumbles we've had
      with misplaced parens.
      
      This only takes care of normal mmio registers. We could extend the idea
      to other register types and define each with its own struct. That way
      you wouldn't be able to accidentally pass the wrong thing to a specific
      register access function.
      
      The gpio_reg setup is probably the ugliest thing left. But I figure I'd
      just leave it for now, and wait for some divine inspiration to strike
      before making it nice.
      
      As for the generated code, it's actually a bit better sometimes. Eg.
      looking at i915_irq_handler(), we can see the following change:
        lea    0x70024(%rdx,%rax,1),%r9d
        mov    $0x1,%edx
      - movslq %r9d,%r9
      - mov    %r9,%rsi
      - mov    %r9,-0x58(%rbp)
      - callq  *0xd8(%rbx)
      + mov    %r9d,%esi
      + mov    %r9d,-0x48(%rbp)
       callq  *0xd8(%rbx)
      
      So previously gcc thought the register offset might be signed and
      decided to sign extend it, just in case. The rest appears to be
      mostly just minor shuffling of instructions.
      
      v2: i915_mmio_reg_{offset,equal,valid}() helpers added
          s/_REG/_MMIO/ in the register defines
          mo more switch statements left to worry about
          ring_emit stuff got sorted in a prep patch
          cmd parser, lrc context and w/a batch buildup also in prep patch
          vgpu stuff cleaned up and moved to a prep patch
          all other unrelated changes split out
      v3: Rebased due to BXT DSI/BLC, MOCS, etc.
      v4: Rebased due to churn, s/i915_mmio_reg_t/i915_reg_t/
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Link: http://patchwork.freedesktop.org/patch/msgid/1447853606-2751-1-git-send-email-ville.syrjala@linux.intel.com
      f0f59a00
  4. 02 10月, 2015 4 次提交
  5. 30 9月, 2015 4 次提交
  6. 23 9月, 2015 3 次提交
  7. 10 9月, 2015 1 次提交
  8. 26 8月, 2015 1 次提交
    • M
      drm/i915: DSI pixel clock check · 759a1e98
      Mika Kahola 提交于
      It is possible the we request to have a mode that has
      higher pixel clock than our HW can support. This patch
      checks if requested pixel clock is lower than the one
      supported by the HW. The requested mode is discarded
      if we cannot support the requested pixel clock.
      
      This patch applies to DSI.
      
      V2:
      - removed computation for max pixel clock
      
      V3:
      - cleanup by removing unnecessary lines
      
      V4:
      - max_pixclk variable renamed as max_dotclk
      - moved dot clock checking inside 'if (fixed_mode)'
      
      V5:
      - dot clock checked against fixed_mode clock
      Signed-off-by: NMika Kahola <mika.kahola@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      759a1e98
  9. 14 8月, 2015 1 次提交
  10. 21 7月, 2015 2 次提交
  11. 13 7月, 2015 2 次提交
  12. 29 5月, 2015 1 次提交
  13. 28 5月, 2015 1 次提交
  14. 13 4月, 2015 2 次提交
  15. 26 3月, 2015 1 次提交
  16. 14 2月, 2015 1 次提交
  17. 10 2月, 2015 1 次提交
  18. 29 1月, 2015 4 次提交
  19. 27 1月, 2015 7 次提交