drm/i915: Remove unused "valid" parameter from pte_encode
authorMichał Winiarski <michal.winiarski@intel.com>
Thu, 13 Oct 2016 12:02:40 +0000 (14:02 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Oct 2016 11:40:32 +0000 (12:40 +0100)
commit4fb84d991ef2172d425234391d7215978345f6cd
tree2ed34566f443c030a80d0e90505330d9dda39b7c
parent4c494a5769cd0de92638b25960ba0158c36088a6
drm/i915: Remove unused "valid" parameter from pte_encode

We never used any invalid ptes, those were put in place for
a possibility of doing gpu faults. However our batchbuffers are not
restricted in length, so everything needs to be pointing to something
and thus out-of-bounds is pointing to scratch.

Remove the valid flag as it is always true.

v2: Expand commit msg, patch reorder (Mika)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1476360162-24062-1-git-send-email-michal.winiarski@intel.com
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/i915_gpu_error.c