]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Eliminate use of PAGE_SIZE as a virtual alignment
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jul 2018 09:18:55 +0000 (10:18 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jul 2018 10:05:28 +0000 (11:05 +0100)
commiteaca1add3937006a52805e40a9a6233e8e795e2e
tree6ada293e484fb5a50d854b92c19fee69b5c7a2e6
parent4f1a02a85dd76a9c7f029dab9eb570b9f63df016
drm/i915: Eliminate use of PAGE_SIZE as a virtual alignment

Using PAGE_SIZE for virtual offset alignment is superfluous as it is
equal to the minimum gtt alignment and so equivalent to 0. It is also
the wrong value to use as we stopped using physical page constructs for
the virtual GTT, i.e. it would be preferrable to use I915_GTT_PAGE_SIZE
and in these cases merely imply I915_GTT_MIN_ALIGNMENT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180727091855.1879-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_guc.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c