]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Allocate i915_fence_reg array
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Mar 2020 11:38:46 +0000 (11:38 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Mar 2020 20:28:29 +0000 (20:28 +0000)
commit0b6bc81dbd6dd2f6132c623e9c3df33fe3397e94
treeecf82337e044917484aeb302d7b7b3493398a678
parentbd9a4dbc84f509b00424f39642013c9efd0beeea
drm/i915/gt: Allocate i915_fence_reg array

Since the number of fence regs can vary dramactically between platforms,
allocate the array on demand so we don't waste as much space.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200316113846.4974-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt.c
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.h
drivers/gpu/drm/i915/gt/intel_gtt.h
drivers/gpu/drm/i915/i915_vma.h