]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d6886426d4781b93c44b689a8253bed4cffd964
tree961b19b871ab80f39a29039d84bada10c3177c2f
parent35f237c29293c253aa905a2ba07614c10e6c5056
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