1. 04 Jul, 2018 3 commits
  2. 03 Jul, 2018 2 commits
  3. 02 Jul, 2018 6 commits
  4. 29 Jun, 2018 5 commits
  5. 28 Jun, 2018 21 commits
  6. 27 Jun, 2018 3 commits
    • Anusha Srivatsa's avatar
      drm/i915/icp: Add Interrupt Support · 31604222
      Anusha Srivatsa authored
      This patch addresses Interrupts from south display engine (SDE).
      
      ICP has two registers - SHOTPLUG_CTL_DDI and SHOTPLUG_CTL_TC.
      Introduce these registers and their intended values.
      
      Introduce icp_irq_handler().
      
      The icp_irq_postinstall() takes care of
      enabling all PCH interrupt sources, to unmask
      them as needed with SDEIMR, as is done
      done by ibx_irq_pre_postinstall() for earlier platforms.
      We do not need to explicitly call the ibx_irq_pre_postinstall().
      
      Also, while changing these,
      s/CPT/PPT/CPT-CNP comment.
      
      v2:
      - remove redundant register defines.(Lucas)
      - Change register names to be more consistent with
      previous platforms (Lucas)
      
      v3:
      -Reorder bit defines to a more appropriate location.
       Change the comments. Confirm in the commit message that
       icp_irq_postinstall() need not go to
       ibx_irq_pre_postinstall() and ibx_irq_postinstall()
       as in earlier platforms. (Paulo)
      
      Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
      Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarAnusha Srivatsa <anusha.srivatsa@intel.com>
      [Paulo: coding style bikesheds and rebases].
      Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1530046343-30649-1-git-send-email-anusha.srivatsa@intel.com
      31604222
    • Chris Wilson's avatar
      drm/i915: Wait for engines to idle before retiring · a61b47f6
      Chris Wilson authored
      In the next^W forthcoming patch, we will start to defer retiring the
      request from the engine list if it is still active on the submission
      backend. To preserve the semantics that after wait-for-idle completes
      the system is idle and fully retired, we need to therefore wait for the
      backends to idle before calling i915_retire_requests().
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180627115334.16282-1-chris@chris-wilson.co.uk
      a61b47f6
    • Imre Deak's avatar
      drm/i915/icl: Add power well support · 67ca07e7
      Imre Deak authored
      Add the definition for ICL power wells and their mapping to power
      domains. On ICL there are 3 power well control registers, we'll select
      the correct one based on higher bits of the power well ID. The offset
      for the control and status flags within this register is based on the
      lower bits of the ID as on older platforms.
      
      As the DC state programming is also the same as on old platforms we can
      reuse the corresponding helpers. For this we mark here the DC-off power
      well as shared among multiple platforms.
      
      Other than the above the delta between old platforms and ICL:
      - Pipe C has its own power well, so we can save some additional power in the
        pipe A+B and (non-eDP) pipe A configurations.
      - Power wells for port E/F DDI/AUX IO and Thunderbolt 1-4 AUX IO
      
      v2:
      - Rebase on drm-tip after prep patch for this was merged there as
        requested by Paulo.
      - Actually add the new AUX and DDI power well control regs (Rakshmi)
      
      v3:
      - Fix power well register names in code comments
      - Add TBT AUX->power well 3 dependency
      
      v4:
      - Rebase
      
      v5:
      - Detach AUX power wells from the INIT power domain. These power wells
        can only be enabled in a TC/TBT connected state and otherwise not
        needed during driver initialization.
      
      v6:
      - Use _MMIO_PORT(...) instead _MMIO(_PICK(...)) (Paulo)
        Fix checkpatch warnings.
      
      Cc: Animesh Manna <animesh.manna@intel.com>
      Cc: Rakshmi Bhatia <rakshmi.bhatia@intel.com>
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
      Reviewed-by: Animesh Manna <animesh.manna@intel.com> (v1)
      Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180626142232.22361-1-imre.deak@intel.com
      67ca07e7