• Mika Kuoppala's avatar
    drm/i915: Build workaround list in ring initialization · 7225342a
    Mika Kuoppala authored
    If we build the workaround list in ring initialization
    and decouple it from the actual writing of values, we
    gain the ability to decide where and how we want to apply
    the values.
    
    The advantage of this will become more clear when
    we need to initialize workarounds on older gens where
    it is not possible to write all the registers through ring
    LRIs.
    
    v2: rebase on newest bdw workarounds
    
    Cc: Arun Siluvery <arun.siluvery@linux.intel.com>
    Cc: Damien Lespiau <damien.lespiau@intel.com>
    Signed-off-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
    Reviewed-by: default avatarArun Siluvery <arun.siluvery@linux.intel.com>
    [danvet: Resolve tiny conflict in comments and ocd alignments a bit.]
    [danvet2: Remove bogus force_wake_get call spotted by Paulo and QA.]
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    7225342a
intel_ringbuffer.c 74.6 KB