drm/i915: Refactor common code to load initial power context
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Mar 2019 09:36:55 +0000 (09:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Mar 2019 10:57:07 +0000 (10:57 +0000)
commit604c37d76689d6a0e5492f5ff71886ab83817208
tree961b19b871ab80f39a29039d84bada10c3177c2f
parent5861b013e2c7328b10ff691e655ae678245fd6fd
drm/i915: Refactor common code to load initial power context

We load a context (the kernel context) on both module load and resume in
order to initialise some logical state onto the GPU. We can use the same
routine for both operations, which will become more useful as we
refactor rc6/rps enabling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190308093657.8640-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c