1. 15 7月, 2016 1 次提交
  2. 08 7月, 2016 1 次提交
  3. 05 7月, 2016 1 次提交
  4. 04 7月, 2016 1 次提交
  5. 24 6月, 2016 1 次提交
  6. 19 6月, 2016 1 次提交
  7. 17 5月, 2016 2 次提交
  8. 26 4月, 2016 1 次提交
    • Y
      drm/i915: Add Backlight Control using DPCD for eDP connectors (v9) · e7156c83
      Yetunde Adebisi 提交于
      This patch adds support for eDP backlight control using DPCD registers to
      backlight hooks in intel_panel.
      
      It checks for backlight control over AUX channel capability and sets up
      function pointers to get and set the backlight brightness level if
      supported.
      
      v2: Moved backlight functions from intel_dp.c into a new file
      intel_dp_aux_backlight.c. Also moved reading of eDP display control
      registers to intel_dp_get_dpcd
      
      v3: Correct some formatting mistakes
      
      v4: Updated to use AUX backlight control if PWM control is not possible
      	(Jani)
      v5: Moved call to initialize backlight registers to dp_aux_setup_backlight
      v6: Check DP_EDP_BACKLIGHT_PIN_ENABLE_CAP is disabled before setting up AUX
      backlight control. To fix BLM_PWM_ENABLE igt test warnings on bdw_ultra
      v7: Add enable_dpcd_backlight module parameter.
      v8: Rebase onto latest drm-intel-nightly branch
      v9: Remove changes to intel_dp_dpcd_read_wake
          Split addition edp_dpcd variable into a separate patch
      
      Cc: Bob Paauwe <bob.j.paauwe@intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Signed-off-by: NYetunde Adebisi <yetundex.adebisi@intel.com>
      [Jani: whitepace changes to appease checkpatch]
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1459865452-9138-4-git-send-email-yetundex.adebisi@intel.com
      e7156c83
  9. 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
  10. 17 3月, 2016 1 次提交
  11. 04 3月, 2016 2 次提交
  12. 18 12月, 2015 1 次提交
  13. 16 12月, 2015 1 次提交
  14. 10 12月, 2015 1 次提交
  15. 02 12月, 2015 6 次提交
  16. 29 10月, 2015 1 次提交
  17. 13 10月, 2015 1 次提交
  18. 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
  19. 30 9月, 2015 4 次提交
  20. 22 9月, 2015 1 次提交
  21. 08 9月, 2015 3 次提交
  22. 21 7月, 2015 1 次提交
  23. 29 6月, 2015 1 次提交
  24. 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
  25. 17 4月, 2015 1 次提交
  26. 27 1月, 2015 2 次提交
  27. 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