drm/i915/guc: refactor guc_init_doorbell_hw()
authorDave Gordon <david.s.gordon@intel.com>
Tue, 9 Aug 2016 14:19:20 +0000 (15:19 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 10 Aug 2016 09:40:05 +0000 (10:40 +0100)
commit84b7f88235dfe56048c39229481a010e9754eb6f
tree6dd6e3fd22cf194d5de125c2471a3c350772b6d1
parent8888cd015458811d568a152238b0614c586df751
drm/i915/guc: refactor guc_init_doorbell_hw()

We have essentially the same code in each of two different
loops, so we can refactor it into a little helper function.

This also reduces the amount of work done during startup,
as we now only reprogram h/w found to be in a state other
than that expected, and so avoid the overhead of setting
doorbell registers to the state they're already in.

Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c
This page took 0.028731 seconds and 5 git commands to generate.