• Eugeni Dodonov's avatar
    drm/i915: add RPS configuration for Haswell · 5a7dc92a
    Eugeni Dodonov authored
    Most of the RPS and RC6 enabling functionality is similar to what we had
    on Gen6/Gen7, so we preserve most of the registers.
    
    Note that Haswell only has RC6, so account for that as well. As suggested
    by Daniel Vetter, to reduce the amount of changes in the patch, we still
    write the RC6p/RC6pp thresholds, but those are ignored on Haswell.
    
    Note: Some discussion about the nature of the new tuning constants
    popped up in review - the answer is that we don't know why they've
    changed, but the guide from VPG with the magic numbers simply has
    different values now.
    
    v2: Squash fix for ?: vs | operation precende bug into this patch.
    Signed-off-by: default avatarEugeni Dodonov <eugeni.dodonov@intel.com>
    Reviewed-by: default avatarBen Widawsky <ben@bwidawsk.net>
    [danvet: Added note to commit message. Squashed fix.]
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    5a7dc92a
i915_reg.h 159 KB