1. 23 May, 2016 3 commits
    • Dave Gordon's avatar
      drm/i915/guc: add enable_guc_loading parameter · fce91f22
      Dave Gordon authored
      Split the function of "enable_guc_submission" into two separate
      options.  The new one ("enable_guc_loading") controls only the
      *fetching and loading* of the GuC firmware image. The existing
      one is redefined to control only the *use* of the GuC for batch
      submission once the firmware is loaded.
      
      In addition, the degree of control has been refined from a simple
      bool to an integer key, allowing several options:
      -1 (default)     whatever the platform default is
       0  DISABLE      don't load/use the GuC
       1  BEST EFFORT  try to load/use the GuC, fallback if not available
       2  REQUIRE      must load/use the GuC, else leave the GPU wedged
      
      The new platform default (as coded here) will be to attempt to
      load the GuC iff the device has a GuC that requires firmware,
      but not yet to use it for submission. A later patch will change
      to enable it if appropriate.
      
      v4:
          Changed some error-message levels, mostly ERROR->INFO, per
          review comments by Tvrtko Ursulin.
      
      v5:
          Dropped one more error message, disabled GuC submission on
          hypothetical firmware-free devices [Tvrtko Ursulin].
      
      v6:
          Logging tidy by Tvrtko Ursulin:
           * Do not log falling back to execlists when wedging the GPU.
           * Do not log fw load errors when load was disabled by user.
           * Pass down some error code from fw load for log message to
             make more sense.
      Signed-off-by: default avatarDave Gordon <david.s.gordon@intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> (v5)
      Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Tested-by: default avatarFiedorowicz, Lukasz <lukasz.fiedorowicz@intel.com>
      Signed-off-by: default avatarDave Gordon <david.s.gordon@intel.com>
      Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> (v5)
      Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: Nick Hoath <nicholas.hoath@intel.com> (v6)
      fce91f22
    • Dave Gordon's avatar
      drm/i915/guc: distinguish HAS_GUC() from HAS_GUC_UCODE/HAS_GUC_SCHED · 1a3d1898
      Dave Gordon authored
      For now, anything with a GuC requires uCode loading, and then supports
      command submission once loaded. But these are logically distinct from
      simply "having a GuC", so we need a separate macro for the latter. Then,
      various tests should use this new macro rather than HAS_GUC_UCODE() or
      testing enable_guc_submission.
      
      v4:
          Added a couple more uses of the new macro.
      Signed-off-by: default avatarDave Gordon <david.s.gordon@intel.com>
      Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      1a3d1898
    • Dave Gordon's avatar
      drm/i915/guc: rename loader entry points · f09d675f
      Dave Gordon authored
      The GuC initialisation code could do other things apart from loading
      firmware, so here we rename the three primary entry points to remove any
      specific reference to "ucode" (no functional changes, just renaming).
      Signed-off-by: default avatarDave Gordon <david.s.gordon@intel.com>
      Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      f09d675f
  2. 22 May, 2016 1 commit
  3. 20 May, 2016 9 commits
  4. 19 May, 2016 22 commits
  5. 18 May, 2016 1 commit
  6. 17 May, 2016 4 commits