1. 31 1月, 2020 2 次提交
  2. 27 1月, 2020 1 次提交
  3. 23 1月, 2020 1 次提交
    • W
      drm/i915/audio: convert to struct drm_device logging macros. · 63855149
      Wambui Karuga 提交于
      Converts the printk based logging macros in i915/display/intel_audio.c
      to the struct drm_device based logging macros.
      This transformation was achieved using the following coccinelle script
      that matches the existence of the struct drm_i915_private device:
      
      @rule1@
      identifier fn, T;
      @@
      
      fn(struct drm_i915_private *T,...) {
      <+...
      (
      -DRM_INFO(
      +drm_info(&T->drm,
      ...)
      |
      -DRM_ERROR(
      +drm_err(&T->drm,
      ...)
      |
      -DRM_WARN(
      +drm_warn(&T->drm,
      ...)
      |
      -DRM_DEBUG(
      +drm_dbg(&T->drm,
      ...)
      |
      -DRM_DEBUG_DRIVER(
      +drm_dbg(&T->drm,
      ...)
      |
      -DRM_DEBUG_KMS(
      +drm_dbg_kms(&T->drm,
      ...)
      )
      ...+>
      }
      
      @rule2@
      identifier fn, T;
      @@
      
      fn(...) {
      ...
      struct drm_i915_private *T = ...;
      <+...
      (
      -DRM_INFO(
      +drm_info(&T->drm,
      ...)
      |
      -DRM_ERROR(
      +drm_err(&T->drm,
      ...)
      |
      -DRM_WARN(
      +drm_warn(&T->drm,
      ...)
      |
      -DRM_DEBUG(
      +drm_dbg(&T->drm,
      ...)
      |
      -DRM_DEBUG_KMS(
      +drm_dbg_kms(&T->drm,
      ...)
      |
      -DRM_DEBUG_DRIVER(
      +drm_dbg(&T->drm,
      ...)
      )
      ...+>
      }
      
      Checkpatch warnings were manually fixed.
      Signed-off-by: NWambui Karuga <wambui.karugax@gmail.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200121134559.17355-4-wambui.karugax@gmail.com
      63855149
  4. 14 1月, 2020 1 次提交
  5. 07 1月, 2020 1 次提交
  6. 01 11月, 2019 2 次提交
  7. 25 10月, 2019 1 次提交
    • V
      drm/i915: Rework global state locking · 1d5a95b5
      Ville Syrjälä 提交于
      So far we've sort of protected the global state under dev_priv with
      the connection_mutex. I wan to change that so that we can change the
      cdclk even for pure plane updates. To that end let's formalize the
      protection of the global state to follow what I started with the cdclk
      code already (though not entirely properly) such that any crtc mutex
      will suffice as a read lock, and all crtcs mutexes act as the write
      lock.
      
      We'll also pimp intel_atomic_state_clear() to clear the entire global
      state, so that we don't accidentally leak stale information between
      the locking retries.
      
      As a slight optimization we'll only lock the crtc mutexes to protect
      the global state, however if and when we actually have to poke the
      hw (eg. if the actual cdclk changes) we must serialize commits
      across all crtcs so that a parallel nonblocking commit can't get
      ahead of the cdclk reprogamming. We do that by adding all crtcs to
      the state.
      
      TODO: the old global state examined during commit may still
      be a problem since it always looks at the _latest_ swapped state
      in dev_priv. Need to add proper old/new state for that too I think.
      
      v2: Remeber to serialize the commits if necessary
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191015193035.25982-3-ville.syrjala@linux.intel.comReviewed-by: NStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
      1d5a95b5
  8. 04 10月, 2019 2 次提交
  9. 23 9月, 2019 1 次提交
  10. 02 9月, 2019 1 次提交
  11. 07 8月, 2019 1 次提交
  12. 04 7月, 2019 2 次提交
  13. 17 6月, 2019 1 次提交
  14. 03 5月, 2019 1 次提交
  15. 02 5月, 2019 2 次提交
  16. 08 4月, 2019 1 次提交
  17. 03 4月, 2019 1 次提交
  18. 15 2月, 2019 1 次提交
  19. 08 2月, 2019 1 次提交
    • D
      i915/snd_hdac: I915 subcomponent for the snd_hdac · 8857c7d0
      Daniel Vetter 提交于
      Since we need multiple components for I915 for different purposes
      (Audio & Mei_hdcp), we adopt the subcomponents methodology introduced
      by the previous patch (mentioned below).
      
      	Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      	Date:   Mon Jan 28 17:08:20 2019 +0530
      
      	    components: multiple components for a device
      Reviewed-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by-by: Ramalingam C <ramalinagm.c@intel.com> (commit message)
      Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> (code)
      cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      cc: Russell King <rmk+kernel@arm.linux.org.uk>
      cc: Rafael J. Wysocki <rafael@kernel.org>
      cc: Jaroslav Kysela <perex@perex.cz>
      cc: Takashi Iwai <tiwai@suse.com>
      cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      cc: Jani Nikula <jani.nikula@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190207232759.14553-4-daniel.vetter@ffwll.ch
      8857c7d0
  20. 15 1月, 2019 1 次提交
  21. 09 1月, 2019 1 次提交
  22. 13 12月, 2018 1 次提交
  23. 15 11月, 2018 1 次提交
  24. 06 11月, 2018 1 次提交
  25. 26 10月, 2018 1 次提交
  26. 25 10月, 2018 1 次提交
    • I
      drm/i915: Ensure proper HDA suspend/resume ordering with a device link · aef9f33b
      Imre Deak 提交于
      In order to ensure that our system suspend and resume callbacks are
      called in the correct order wrt. those of the HDA driver add a device
      link to the HDA driver during audio component binding time. With i915 as
      the supplier and HDA as the consumer the PM framework will guarantee
      the HDA->i915 suspend (and shutdown) and i915->HDA resume order.
      
      Atm, the lack of this ordering is not a problem, since all the i915
      suspend/resume steps that need to be ordered wrt. the HDA driver's
      suspend/resume steps are separated out to the i915
      suspend_late/resume_early hooks. That will change in a follow-up
      patchset where we'll need this ordering guarantee for steps that are in
      the i915 suspend/resume hooks (and which can't be moved to
      suspend_late/resume_early for other reasons). So this patch is a
      preparation for that follow-up patchset.
      
      The change also allows us to move towards removing the i915
      suspend_late/resume_early hooks alltogether.
      
      Since we only need to ensure the ordering during suspend/resume and not
      during driver probing create the link with DL_FLAG_STATELESS. Since the
      probe time ordering has to be optional we use the component framework
      for that.
      
      Similarly for runtime PM we depend on the audio driver getting/putting
      an i915 runtime PM reference whenever it needs it (along with the proper
      i915 display power domain) via the audio component ops get_power /
      put_power hooks. So we create the device link without
      DL_FLAG_PM_RUNTIME.
      
      v2: (Ville)
      - Add a note to the commit message about not using the device link
        runtime PM ordering.
      - Handle the error return from device_link_add().
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Lukas Wunner <lukas@wunner.de>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20181023144310.8272-1-imre.deak@intel.com
      aef9f33b
  27. 30 8月, 2018 1 次提交
  28. 20 8月, 2018 1 次提交
  29. 18 7月, 2018 1 次提交
    • T
      drm/i915: Split audio component to a generic type · ae891abe
      Takashi Iwai 提交于
      For allowing other drivers to use the DRM audio component, rename the
      i915_audio_component_* with drm_audio_component_*, and split the
      generic part into drm_audio_component.h.  The i915 specific stuff
      remains in struct i915_audio_component, which contains
      drm_audio_component as the base.
      
      The license of drm_audio_component.h is kept to MIT as same as the the
      original i915_component.h.
      
      This is a preliminary change for further development, and no
      functional changes by this patch itself, merely code-split and
      renames.
      
      v1->v2: Use SPDX for drm_audio_component.h, fix remaining i915
              argument in drm_audio_component.h
      Reviewed-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ae891abe
  30. 19 6月, 2018 2 次提交
  31. 18 6月, 2018 1 次提交
  32. 18 4月, 2018 2 次提交
  33. 06 4月, 2018 1 次提交