• D
    drm/i915: fix up ilk drps/ips locking · 9270388e
    Daniel Vetter 提交于
    We change the drps/ips sw/hw state from different callers: Our own irq
    handler, the external intel-ips module and from process context. Most
    of these callers don't take any lock at all.
    
    Protect everything by making the mchdev_lock irqsave and grabbing it in
    all relevant callsites. Note that we have to convert a few sleeps in the
    drps enable/disable code to delays, but alas, I'm not volunteering to
    restructure the code around a few work items.
    
    For paranoia add a spin_locked assert to ironlake_set_drps, too.
    
    v2: Move one access inside the lock protection. Caught by the
    dev_priv->ips mass-rename ...
    
    v3: Resolve rebase conflict.
    Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
    Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    9270388e
i915_irq.c 75.0 KB