1. 28 4月, 2016 1 次提交
  2. 19 4月, 2016 1 次提交
  3. 18 4月, 2016 1 次提交
  4. 15 4月, 2016 4 次提交
  5. 13 4月, 2016 1 次提交
  6. 07 4月, 2016 2 次提交
  7. 24 3月, 2016 1 次提交
    • I
      drm/i915/bxt: Fix DSI HW state readout · db18b6a6
      Imre Deak 提交于
      Currently the machine hangs during booting while accessing the
      BXT_MIPI_PORT_CTRL register during pipe HW state readout. After some
      experimentation I found that the hang is caused by the DSI PLL being
      disabled, or it being enabled but with an incorrect divider
      configuration. Enabling the PLL got rid of the boot problem, so fix
      this by checking the PLL enabled state/configuration before attempting
      to read out the HW state.
      
      The DSI_PLL_ENABLE register is in the always-on power well, while the
      BXT_DSI_PLL_CTL is in power well 0. This isn't exactly matched by the
      transcoder power domain, but what we really need is just a runtime PM
      reference, which is provided by any power domain.
      
      Ville also found this dependency specified in BSpec, so I added a
      reference to that too.
      
      v2:
      - Make sure we hold a power reference while accessing the PLL registers.
      v3: (Jani)
      - Simplify check in bxt_get_dsi_transcoder_state()
      - Add comment explaining why we check for valid dividers in
        bxt_dsi_pll_is_enabled()
      
      CC: Shashank Sharma <shashank.sharma@intel.com>
      CC: Uma Shankar <uma.shankar@intel.com>
      CC: Jani Nikula <jani.nikula@intel.com>
      Fixes: c6c794a2 ("drm/i915/bxt: Initialize MIPI DSI for BXT")
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Reviewed-by: NShashank Sharma <shashank.sharma@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1458816100-31269-1-git-send-email-imre.deak@intel.com
      db18b6a6
  8. 22 3月, 2016 1 次提交
  9. 21 3月, 2016 3 次提交
  10. 17 3月, 2016 3 次提交
  11. 16 3月, 2016 1 次提交
  12. 22 2月, 2016 1 次提交
  13. 19 2月, 2016 2 次提交
  14. 17 2月, 2016 1 次提交
  15. 04 2月, 2016 1 次提交
  16. 08 1月, 2016 1 次提交
  17. 12 12月, 2015 1 次提交
  18. 11 12月, 2015 1 次提交
  19. 10 12月, 2015 1 次提交
  20. 30 11月, 2015 2 次提交
  21. 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
  22. 02 10月, 2015 4 次提交
  23. 30 9月, 2015 4 次提交
  24. 23 9月, 2015 1 次提交