• B
    drm/i915/bdw: Extract rp_state_caps logic · 3280e8b0
    Ben Widawsky 提交于
    We have a need for duplicated parsing of the RP_STATE_CAPS register (and
    the setting of the associated fields). To reuse some code, we can
    extract the function into a simple helper.
    
    This patch also addresses the fact that we missed doing this for gen8,
    something we should have done anyway.
    
    This could be two patches, one to extract, and one to add gen8, but it's
    trivial enough that I think one is fine. I will accept a request to
    split it. Please notice the fix addressed by v2 below.
    
    Valleyview is left untouched because it is different.
    
    v2: Logically rebased on top of
    commit dd0a1aa1
    Author: Jeff McGee <jeff.mcgee@intel.com>
    Date:   Tue Feb 4 11:32:31 2014 -0600
    
        drm/i915: Restore rps/rc6 on reset
    
    Note with the above change the fix for gen8 is also handled (which was
    not the case in Jeff's original patch).
    Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    3280e8b0
intel_pm.c 172.5 KB