• Imre Deak's avatar
    drm/i915: vlv: fix mapping of pipestat enable to status bits · 10c59c51
    Imre Deak authored
    At least on VLV we can't get at the pipestat status bits by simply right
    shifting the corresponding enable bits. The mapping between enable and
    status bits for the sprite0,1 flip done and the PSR events don't follow
    this rule, so we need to map them separately.
    
    The PSR enable for pipe A is DPFLIPSTAT[22], but I haven't added support
    for this, since there is no user of it atm. Until support is added WARN
    if someone tries to enable PSR interrupts, or tries to enable the same
    (1 << 6) bit on pipe B, which MBZ.
    
    v2:
    - inline the status->enable mask mapping (Ville)
    - fix bogus use of status bits in enable mask (Ville)
    Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
    Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    10c59c51
i915_reg.h 223 KB