drm/i915/gem: Make caps.scheduler static
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Aug 2019 12:42:59 +0000 (13:42 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Aug 2019 14:00:14 +0000 (15:00 +0100)
commitc29579d2fabe7448a444681d8229384249d315f9
treeeaca421c39e0fca04dd0107bf2c1a82483ab54f8
parent361f9dc2436812cbcf727fe73d0a4c11ca895fbb
drm/i915/gem: Make caps.scheduler static

We do not notify userspace when the scheduler capabilities are changed
(due to wedging the driver) and as such userspace will expect the caps
to be static and unchanging. Make it so, and so we only need to compute
our caps once during driver registration.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190806124300.24945-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_request.c