[Intel-gfx] [PATCH v2 2/3] drm/i915: Move the .global_resources() hook call into modeset_update_crtc_power_domains()

Daniel Vetter daniel at ffwll.ch
Thu Nov 6 14:10:49 CET 2014


On Thu, Nov 06, 2014 at 02:49:12PM +0200, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> We may need to access various hardware bits in the .global_resources()
> hook, so move the call to occur after enabling all the newly required
> power wells, but before disabling all the now unneeded wells. This
> should guarantee that we have all the sufficient hardware resources
> available during the .global_resources() call. And if not, any additional
> resources must be explicitly acquired by the .global_resorces() hook.
> 
> For instance on VLV/CHV we need to access the gunit mailbox so that we
> can talk to punit/cck over sideband. In addition some PFI credit
> reprogramming may need to be addes as well, which may require the disp2d
> well.
> 
> This should also make the power domain refcounts consistent on platforms
> which don't have a .global_resource() hook since now they too will
> call modeset_update_crtc_power_domains() which will drop the init power.
> Previously init power was just left enabled for such platforms.
> 
> Cc: Imre Deak <imre.deak at intel.com>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

Yeah I think that's a lot saner and hopefully allows us to unify the power
domain more. Thanks for the patch, queued for next.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list