]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Store scratch page size alongside not in the common struct
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Mar 2019 13:54:27 +0000 (13:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Mar 2019 14:43:16 +0000 (14:43 +0000)
commit55e4dc79d01c4ed90c3f09d77b265413b2c7071b
tree8725bb7568ee99e414d974fc6f074ebc623cb18a
parentcc69ded0ce33f273c5d6b0d213e23bf3cd09b094
drm/i915/gtt: Store scratch page size alongside not in the common struct

As the scratch page is the only one to be allocated with variable size,
rather than keep an unused slot in all i915_page_table structs, store it
alongside the vm->scratch_page.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190305135430.4948-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h