1. 31 Mar, 2023 6 commits
  2. 30 Mar, 2023 7 commits
  3. 29 Mar, 2023 1 commit
  4. 28 Mar, 2023 4 commits
  5. 27 Mar, 2023 3 commits
  6. 25 Mar, 2023 8 commits
  7. 24 Mar, 2023 9 commits
  8. 23 Mar, 2023 2 commits
    • Suraj Kandpal's avatar
      drm/i915/mtl: Add HDCP GSC interface · 88363177
      Suraj Kandpal authored
      MTL uses GSC command streamer i.e gsc cs to send HDCP/PXP commands
      to GSC f/w. It requires to keep hdcp display driver
      agnostic to content protection f/w (ME/GSC fw) in the form of
      i915_hdcp_fw_ops generic ops.
      
      Adding HDCP GSC CS interface by leveraging the i915_hdcp_fw_ops generic
      ops instead of I915_HDCP_COMPONENT as integral part of i915.
      
      Adding checks to see if GSC is loaded and proxy is setup
      
      --v6
      -dont change the license date in same patch series [Jani]
      -fix the license year {Jani]
      
      --v8
      -remove stale comment [Ankit]
      -get headers in alphabetical order [Ankit]
      -fix hdcp2_supported check [Ankit]
      
      --v9
      -remove return statement from hdcp_gsc_fini [Ankit]
      
      Cc: Tomas Winkler <tomas.winkler@intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Cc: Uma Shankar <uma.shankar@intel.com>
      Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
      Signed-off-by: default avatarAnshuman Gupta <anshuman.gupta@intel.com>
      Signed-off-by: default avatarSuraj Kandpal <suraj.kandpal@intel.com>
      Reviewed-by: default avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
      Reviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
      Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230316092927.668980-7-suraj.kandpal@intel.com
      88363177
    • Suraj Kandpal's avatar
      drm/i915/mtl: Add function to send command to GSC CS · 18fd7f8a
      Suraj Kandpal authored
      Add function that takes care of sending command to gsc cs. We start
      of with allocation of memory for our command intel_hdcp_gsc_message that
      contains gsc cs memory header as directed in specs followed by the
      actual payload hdcp message that we want to send.
      Spec states that we need to poll pending bit of response header around
      20 times each try being 50ms apart hence adding that to current
      gsc_msg_send function
      Also we use the same function to take care of both sending and receiving
      hence no separate function to get the response.
      
      --v4
      -Create common function to fill in gsc_mtl_header [Alan]
      -define host session bitmask [Alan]
      
      --v5
      -use i915 directly instead of gt->i915 [Alan]
      -No need to make fields NULL as we are already
      using kzalloc [Alan]
      
      --v8
      -change mechanism to reuse the same memory for one hdcp session[Alan]
      -fix header ordering
      -add comments to explain flags and host session mask [Alan]
      
      --v9
      -remove gem obj from hdcp message as we can use
      i915_vma_unpin_and_release [Alan]
      -move hdcp message allocation and deallocation from hdcp2_enable and
      hdcp2_disable to init and teardown of HDCP [Alan]
      
      --v10
      -remove unnecessary i915_vma_unpin [Alan]
      
      --v11
      -fix comment style [Uma]
      
      Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Alan Pervin Teres <alan.previn.teres.alexis@intel.com>
      Cc: Uma Shankar <uma.shankar@intel.com>
      Cc: Anshuman Gupta <anshuman.gupta@intel.com>
      Signed-off-by: default avatarSuraj Kandpal <suraj.kandpal@intel.com>
      Reviewed-by: default avatarAlan Previn <alan.previn.teres.alexis@intel.com>
      Reviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
      Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230316092927.668980-6-suraj.kandpal@intel.com
      18fd7f8a