1. 03 7月, 2018 1 次提交
  2. 02 7月, 2018 1 次提交
  3. 28 6月, 2018 1 次提交
    • A
      drm/i915/icp: Add Interrupt Support · 31604222
      Anusha Srivatsa 提交于
      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: NLucas De Marchi <lucas.demarchi@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NAnusha Srivatsa <anusha.srivatsa@intel.com>
      [Paulo: coding style bikesheds and rebases].
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1530046343-30649-1-git-send-email-anusha.srivatsa@intel.com
      31604222
  4. 27 6月, 2018 2 次提交
    • I
      drm/i915/icl: Add power well support · 67ca07e7
      Imre Deak 提交于
      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: NImre Deak <imre.deak@intel.com>
      Reviewed-by: Animesh Manna <animesh.manna@intel.com> (v1)
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180626142232.22361-1-imre.deak@intel.com
      67ca07e7
    • J
      drm/i915/psr: Enable CRC check in the static frame on the sink side · 00c8f194
      José Roberto de Souza 提交于
      Sink can be configured to calculate the CRC over the static frame and
      compare with the CRC calculated and transmited in the VSC SDP by
      source, if there is a mismatch sink will do a short pulse in HPD
      and set DP_PSR_LINK_CRC_ERROR in DP_PSR_ERROR_STATUS.
      
      Spec: 7723
      
      v6:
      andling DP_PSR_LINK_CRC_ERROR here and remove "bdw+" from commit
      message
      
      v4:
      patch moved to after 'drm/i915/psr: Avoid PSR exit max time timeout'
      to avoid touch in 2 patches EDP_PSR_DEBUG.
      
      v3:
      disabling PSR instead of exiting on error
      Reviewed-by: NDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: NJosé Roberto de Souza <jose.souza@intel.com>
      Signed-off-by: NDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180626201644.21932-5-jose.souza@intel.com
      00c8f194
  5. 22 6月, 2018 2 次提交
  6. 19 6月, 2018 6 次提交
  7. 18 6月, 2018 2 次提交
  8. 15 6月, 2018 2 次提交
  9. 13 6月, 2018 2 次提交
  10. 08 6月, 2018 1 次提交
  11. 02 6月, 2018 2 次提交
  12. 01 6月, 2018 3 次提交
  13. 29 5月, 2018 5 次提交
  14. 24 5月, 2018 2 次提交
    • V
      drm/i915/psr: vbt change for psr · 77312ae8
      Vathsala Nagaraju 提交于
      For psr block #9, the vbt description has moved to options [0-3] for
      TP1,TP2,TP3 Wakeup time from decimal value without any change to vbt
      structure. Since spec does not  mention from which VBT version this
      change was added to vbt.bsf file, we cannot depend on bdb->version check
      to change for all the platforms.
      
      There is RCR inplace for GOP team to  provide the version number
      to make generic change. Since Kabylake with bdb version 209 is having this
      change, limiting this change to gen9_bc and version 209+ to unblock google.
      
      Tested on skl(bdb version 203,without options) and
      kabylake(bdb version 209,212) having new options.
      
      bspec 20131
      
      v2: (Jani and Rodrigo)
          move the 165 version check to intel_bios.c
      v3: Jani
          Move the abstraction to intel_bios.
      v4: Jani
          Rename tp*_wakeup_time to have "us" suffix.
          For values outside range[0-3],default to max 2500us.
          Old decimal value was wake up time in multiples of 100us.
      v5: Jani and Rodrigo
          Handle option 2 in default condition.
          Print oustide range value.
          For negetive values default to 2500us.
      v6: Jani
          Handle default first and then fall through for case 2.
      v7: Rodrigo
          Apply this change for IS_GEN9_BC and vbt version > 209
      v8: Puthik
          Add new function vbt_psr_to_us.
      v9: Jani
          Change to v7 version as it's more readable.
          DK
          add comment /*fall through*/ after case2.
      
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Cc: Puthikorn Voravootivat <puthik@chromium.org>
      Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: José Roberto de Souza <jose.souza@intel.com>
      Signed-off-by: NMaulik V Vaghela <maulik.v.vaghela@intel.com>
      Signed-off-by: NVathsala Nagaraju <vathsala.nagaraju@intel.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1526981243-2745-1-git-send-email-vathsala.nagaraju@intel.com
      77312ae8
    • Y
      drm/i915: Implement WaProgramMgsrForL3BankSpecificMmioReads · fe864b76
      Yunwei Zhang 提交于
      L3Bank could be fused off in hardware for debug purpose, and it
      is possible that subslice is enabled while its corresponding L3Bank pairs
      are disabled. In such case, if MCR packet control register(0xFDC) is
      programed to point to a disabled bank pair, a MMIO read into L3Bank range
      will return 0 instead of correct values.
      
      However, this is not going to be the case in any production silicon.
      Therefore, we only check at initialization and issue a warning should
      this really happen.
      
      References: HSDES#1405586840
      
      v2:
       - use fls instead of find_last_bit (Chris)
       - use is_power_of_2() instead of counting bit set (Chris)
      v3:
       - rebase on latest tip
      v5:
       - Added references (Mika)
       - Move local variable into scope where they are used (Ursulin)
       - use a new local variable to reduce long line of code (Ursulin)
      v6:
       - Some coding style and use more local variables for clearer
         logic (Ursulin)
      
      Cc: Oscar Mateo <oscar.mateo@intel.com>
      Cc: Michel Thierry <michel.thierry@intel.com>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Signed-off-by: NYunwei Zhang <yunwei.zhang@intel.com>
      Reviewed-by: NOscar Mateo <oscar.mateo@intel.com>
      Signed-off-by: NMika Kuoppala <mika.kuoppala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/1526683285-24861-1-git-send-email-yunwei.zhang@intel.com
      fe864b76
  15. 23 5月, 2018 2 次提交
  16. 18 5月, 2018 5 次提交
  17. 13 5月, 2018 1 次提交