drm/i915: Eliminate HAS_HW_CONTEXTS
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 28 Apr 2017 07:53:37 +0000 (10:53 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 28 Apr 2017 09:11:59 +0000 (12:11 +0300)
commitf2e4d76ec2b16e8edcbcf6703f4a64c0ce8178b8
tree60d67e624213a52804cc4bb87fa50af23e27c693
parent63ffbcdadcf2b5dde2cd6db6715fc94e77cd43b6
drm/i915: Eliminate HAS_HW_CONTEXTS

HAS_HW_CONTEXTS is misleading condition for GPU reset and CCID,
replace it with Gen specific (to be updated in next patches).

HAS_HW_CONTEXTS in i915_l3_write is bogus because each HAS_L3_DPF
match also has .has_hw_contexts = 1 set.

This leads to us being able to get rid of the property completely.

v2:
- Keep the checks at Gen6 for no functional change (Ville)

Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/i915_sysfs.c