]> 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)
commit1e722e68fbf1daacaedfe433d354c5917490fad9
treeecf82337e044917484aeb302d7b7b3493398a678
parent6d96372210d3dfafb4ebac37ac1cfde9de1a11c8
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