1. 19 4月, 2016 1 次提交
    • J
      drm/i915: Clean up PCI config register handling · e10fa551
      Joonas Lahtinen 提交于
      Do not use magic numbers, do not prefix stuff with "PCI_", do not
      declare registers in implementation files. Also move the PCI
      registers under correct comment in i915_reg.h.
      
      v2:
      - Consistently use BSM (not BDSM or other variants from PRM) (Chris)
      - Also include register address to help identify the register (Chris)
      v3:
      - Refer to register value as *_val instead of *_reg (Chris)
      v4:
      - Make style checker happy
      
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      e10fa551
  2. 17 3月, 2016 1 次提交
  3. 04 3月, 2016 2 次提交
  4. 18 12月, 2015 1 次提交
  5. 16 12月, 2015 1 次提交
  6. 10 12月, 2015 1 次提交
  7. 02 12月, 2015 6 次提交
  8. 29 10月, 2015 1 次提交
  9. 13 10月, 2015 1 次提交
  10. 02 10月, 2015 1 次提交
    • S
      drm/i915/bxt: Modify BXT BLC according to VBT changes · 022e4e52
      Sunil Kamath 提交于
      Latest VBT mentions which set of registers will be used for BLC,
      as controller number field. Making use of this field in BXT
      BLC implementation. Also, the registers are used in case control
      pin indicates display DDI. Adding a check for this.
      According to Bspec, BLC_PWM_*_2 uses the display utility pin for output.
      To use backlight 2, enable the utility pin with mode = PWM
         v2: Jani's review comments
         addressed
             - Add a prefix _ to BXT BLC registers definitions.
             - Add "bxt only" comment for u8 controller
             - Remove control_pin check for DDI controller
             - Check for valid controller values
             - Set pipe bits in UTIL_PIN_CTL
             - Enable/Disable UTIL_PIN_CTL in enable/disable_backlight()
             - If BLC 2 is used, read active_low_pwm from UTIL_PIN polarity
         Satheesh's review comment addressed
             - If UTIL PIN is already enabled, BIOS would have programmed it. No
             need to disable and enable again.
         v3: Jani's review comments
             - add UTIL_PIN_PIPE_MASK and UTIL_PIN_MODE_MASK
             - Disable UTIL_PIN if controller 1 is used
             - Mask out UTIL_PIN_PIPE_MASK and UTIL_PIN_MODE_MASK before enabling
             UTIL_PIN
             - check valid controller value in intel_bios.c
             - add backlight.util_pin_active_low
             - disable util pin before enabling
         v4: Change for BXT-PO branch:
         Stubbed unwanted definition which was existing before
         because of DC6 patch.
         UTIL_PIN_MODE_PWM     (0x1b << 24)
      
      v2: Fixed Jani's review comment.
      
      v3: Split the backight PWM frequency programming into separate patch,
          in cases BIOS doesn't initializes it.
      
      v4: Starting afresh and not modifying existing state for backlight, as
          per Jani's recommendation.
      
      v5: Fixed Jani's review comment wrt util pin enable
      Signed-off-by: NVandana Kannan <vandana.kannan@intel.com>
      Signed-off-by: NSunil Kamath <sunil.kamath@intel.com>
      Signed-off-by: NUma Shankar <uma.shankar@intel.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      022e4e52
  11. 30 9月, 2015 4 次提交
  12. 22 9月, 2015 1 次提交
  13. 08 9月, 2015 3 次提交
  14. 21 7月, 2015 1 次提交
  15. 29 6月, 2015 1 次提交
  16. 08 5月, 2015 1 次提交
    • V
      drm/i915/bxt: BLC implementation · 0fb890c0
      Vandana Kannan 提交于
      Enabling BLC on BXT.
      Includes register definition, and new functions for BXT.
      
      In BXT, there are 2 sets of registers for BLC. Until there is clarity
      about which set would be effective, set 1 is being used.
      This would have to be re-visited if there is any change or when 2 LFPs are
      enabled on BXT.
      
      This patch enables brightness change which would be effected by use of
      hot-keys or sysfs entry.
      
      TODO:- BLC implementation will have to re-visited when
      1. there is clarity about which set of registers has to be used and when.
      2. CDCLK frequency is changed
      
      v2: Jani's review comments
      	- Modified comment in i915_reg.h
      	- Renamed register defintions
      	- Removed definition of duty cycle max. Not required now and its not 64-bit.
      
      v3:
        - Rebase on top of VLV/CHV backlight changes, in particuliar
          bxt_set_backlight() now has a different prototype (Damien)
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NVandana Kannan <vandana.kannan@intel.com>
      Signed-off-by: NDamien Lespiau <damien.lespiau@intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Shankar, Uma <uma.shankar@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      0fb890c0
  17. 17 4月, 2015 1 次提交
  18. 27 1月, 2015 2 次提交
  19. 26 1月, 2015 1 次提交
    • J
      drm/i915: fix inconsistent brightness after resume · 13f3fbe8
      Jeremiah Mahler 提交于
      commit 6dda730e
      Author: Jani Nikula <jani.nikula@intel.com>
      Date:   Tue Jun 24 18:27:40 2014 +0300
      
          drm/i915: respect the VBT minimum backlight brightness
      
      introduced a bug which resulted in inconsistent brightness levels on
      different machines. If a suspended was entered with the screen off some
      machines would resume with the screen at minimum brightness and others
      at maximum brightness.
      
      The following commands can be used to produce this behavior.
      
        xset dpms force off
        sleep 1
        sudo systemctl suspend
        (resume ...)
      
      The root cause of this problem is a comparison which checks to see if
      the backlight level is zero when the panel is enabled.  If it is zero,
      it is set to the maximum level.  Unfortunately, not all machines have a
      minimum level of zero. On those machines the level is left at the
      minimum instead of begin set to the maximum.
      
      Fix the bug by updating the comparison to check for the minimum
      backlight level instead of zero.  Also, expand the comparison for
      the possible case when the level is less than the minimum.
      
      Fixes: 6dda730e ("respect the VBT minimum backlight brightness")
      Signed-off-by: NJeremiah Mahler <jmmahler@gmail.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      13f3fbe8
  20. 14 11月, 2014 5 次提交
  21. 07 11月, 2014 1 次提交
  22. 24 10月, 2014 1 次提交
  23. 06 10月, 2014 2 次提交