1. 19 5月, 2020 1 次提交
  2. 24 4月, 2020 4 次提交
  3. 21 4月, 2020 1 次提交
  4. 08 4月, 2020 1 次提交
    • J
      drm/i915/panel: use struct drm_device based logging · 2b3c472c
      Jani Nikula 提交于
      Convert all the DRM_* logging macros to the struct drm_device based
      macros to provide device specific logging.
      
      No functional changes.
      
      Generated using the following semantic patch, originally written by
      Wambui Karuga <wambui.karugax@gmail.com>, with manual fixups on top:
      
      @@
      identifier fn, T;
      @@
      
      fn(...,struct drm_i915_private *T,...) {
      <+...
      (
      -DRM_INFO(
      +drm_info(&T->drm,
      ...)
      |
      -DRM_NOTE(
      +drm_notice(&T->drm,
      ...)
      |
      -DRM_ERROR(
      +drm_err(&T->drm,
      ...)
      |
      -DRM_WARN(
      +drm_warn(&T->drm,
      ...)
      |
      -DRM_DEBUG_DRIVER(
      +drm_dbg(&T->drm,
      ...)
      |
      -DRM_DEBUG_KMS(
      +drm_dbg_kms(&T->drm,
      ...)
      |
      -DRM_DEBUG_ATOMIC(
      +drm_dbg_atomic(&T->drm,
      ...)
      )
      ...+>
      }
      
      @@
      identifier fn, T;
      @@
      
      fn(...) {
      ...
      struct drm_i915_private *T = ...;
      <+...
      (
      -DRM_INFO(
      +drm_info(&T->drm,
      ...)
      |
      -DRM_NOTE(
      +drm_notice(&T->drm,
      ...)
      |
      -DRM_ERROR(
      +drm_err(&T->drm,
      ...)
      |
      -DRM_WARN(
      +drm_warn(&T->drm,
      ...)
      |
      -DRM_DEBUG_DRIVER(
      +drm_dbg(&T->drm,
      ...)
      |
      -DRM_DEBUG_KMS(
      +drm_dbg_kms(&T->drm,
      ...)
      |
      -DRM_DEBUG_ATOMIC(
      +drm_dbg_atomic(&T->drm,
      ...)
      )
      ...+>
      }
      
      Cc: Wambui Karuga <wambui.karugax@gmail.com>
      Reviewed-by: NWambui Karuga <wambui.karugax@gmail.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200402114819.17232-2-jani.nikula@intel.com
      2b3c472c
  5. 04 4月, 2020 1 次提交
  6. 04 3月, 2020 1 次提交
  7. 21 2月, 2020 1 次提交
  8. 19 2月, 2020 1 次提交
  9. 04 2月, 2020 2 次提交
  10. 27 1月, 2020 1 次提交
  11. 17 12月, 2019 1 次提交
    • H
      drm/i915: DSI: select correct PWM controller to use based on the VBT · b6941311
      Hans de Goede 提交于
      At least Bay Trail (BYT) and Cherry Trail (CHT) devices can use 1 of 2
      different PWM controllers for controlling the LCD's backlight brightness.
      Either the one integrated into the PMIC or the one integrated into the
      SoC (the 1st LPSS PWM controller).
      
      So far in the LPSS code on BYT we have skipped registering the LPSS PWM
      controller "pwm_backlight" lookup entry when a Crystal Cove PMIC is
      present, assuming that in this case the PMIC PWM controller will be used.
      
      On CHT we have been relying on only 1 of the 2 PWM controllers being
      enabled in the DSDT at the same time; and always registered the lookup.
      
      So far this has been working, but the correct way to determine which PWM
      controller needs to be used is by checking a bit in the VBT table and
      recently I've learned about 2 different BYT devices:
      Point of View MOBII TAB-P800W
      Acer Switch 10 SW5-012
      
      Which use a Crystal Cove PMIC, yet the LCD is connected to the SoC/LPSS
      PWM controller (and the VBT correctly indicates this), so here our old
      heuristics fail.
      
      This commit fixes using the wrong PWM controller on these devices by
      calling pwm_get() for the right PWM controller based on the
      VBT dsi.config.pwm_blc bit.
      
      Note this is part of a series which contains 2 other patches which renames
      the PWM lookup for the 1st SoC/LPSS PWM from "pwm_backlight" to
      "pwm_pmic_backlight" and the PWM lookup for the Crystal Cove PMIC PWM
      from "pwm_backlight" to "pwm_pmic_backlight".
      Acked-by: NJani Nikula <jani.nikula@intel.com>
      Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191216202906.1662893-4-hdegoede@redhat.com
      b6941311
  12. 01 11月, 2019 2 次提交
  13. 07 8月, 2019 1 次提交
  14. 17 6月, 2019 1 次提交
  15. 14 6月, 2019 1 次提交
  16. 30 4月, 2019 2 次提交
  17. 08 4月, 2019 2 次提交
  18. 23 3月, 2019 5 次提交
  19. 14 3月, 2019 1 次提交
  20. 24 1月, 2019 2 次提交
  21. 15 1月, 2019 3 次提交
  22. 13 12月, 2018 1 次提交
  23. 01 11月, 2018 1 次提交
  24. 17 10月, 2018 1 次提交
  25. 15 10月, 2018 1 次提交
    • S
      drm/i915: Add CRTC output format YCBCR 4:2:0 · 33b7f3ee
      Shashank Sharma 提交于
      Currently, we are using a bool in CRTC state (state->ycbcr420),
      to indicate modeset, that the output format is YCBCR 4:2:0. Now in
      order to support other YCBCR formats, we will need more such flags.
      
      This patch adds a new enum parameter for YCBCR 4:2:0 outputs, in the
      CRTC output formats and then plugs it during the modeset.
      
      V3: Added this patch in the series, to address review comments from
          second patchset.
      V4: Added r-b from Maarten (on v3)
          Addressed review comments from Ville:
              - Change the enum name to intel_output_format.
              - Start the enum value (INVALID) from 0 instaed of 1.
              - Set the crtc's output_format to RGB in encoder's compute_config.
      V5: Broke previous patch 1 into two parts,
          - first patch to add CRTC output format in general
          - second patch (this one) to add YCBCR 4:2:0 output
            format specifically.
          - Use ARRAY_SIZE(format_str) for output format validity check (Ville)
      V6: Added a separate function to calculate crtc_state->output_format, and
          calling it from various get_config function (Fix CI build warning)
      V7: Fixed checkpatch warnings for alignment
      V8: Rebase
      V9: Rebase
      V10: Rebase
      V11: Addressed review comments from Ville:
      	- Change check for CRTC output format from > ARRAY_SIZE to >= ARRAY_SIZE.
      	- Check for values < INTEL_OUTPUT_FORMAT_RGB is unnecessary.
      	- No need to get CRTC YCBCR config, for pre-BDW functions.
          Added Ville's r-b.
      
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Reviewed-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1539325394-20788-2-git-send-email-shashank.sharma@intel.com
      33b7f3ee
  26. 09 10月, 2018 1 次提交