]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915/guc: Make scratch register base and count flexible
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 10 May 2017 12:59:27 +0000 (12:59 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 11 May 2017 09:49:26 +0000 (12:49 +0300)
commita0c1fe219080d6b23270d5c7f7d773e7d753177a
tree0a117031cfdf6717c1a1f249c70b352b66d12225
parenta03aac442d6f4ca4525e526047d831efb77b436a
drm/i915/guc: Make scratch register base and count flexible

We are using some scratch registers in MMIO based send function.
Make their base and count flexible in preparation of upcoming
GuC firmware/hardware changes. While around, change cmd len
parameter verification from WARN_ON to GEM_BUG_ON as we don't
need this all the time.

v2: call out WARN/GEM_BUG change in the commit msg (Daniele)
v3: don't overqualify the ints (Chris)
v4: rebase and use proper enum

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Suggested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_uc.c
drivers/gpu/drm/i915/intel_uc.h