• Daniel Vetter's avatar
    drm/i915: kill cargo-culted locking from power well code · 6b25a887
    Daniel Vetter authored
    We may not concurrently change the power wells code. Which
    is already guaranteed since modesets aren't concurrent. That
    leaves races against setup/teardown/suspend/resume, and for
    those we already (try) rather hard not to hit concurrent
    modesets.
    
    No debug WARN_ON added since that would require us to grab the
    modeset locks in init/suspend code. Which is again just cargo
    culting since just grabbing the locks in those paths isn't good
    enough, we need the right order of operations, too.
    
    Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
    Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@gmail.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    6b25a887
intel_pm.c 125 KB