• Daniel Vetter's avatar
    drm/i915: disable interrupts earlier in the driver unload code · fd0c0642
    Daniel Vetter authored
    Our rps code relies on the interrupts being off to prevent re-arming
    of the work items at inopportune moments.
    
    Also drop the redundant cancel_work for the main rps work,
    disable_gt_powersave already takes care of that.
    
    Finally add a WARN_ON to ensure we obey that piece of ordering
    constraint. Long term I want to lock down the setup/teardown code in a
    similar way to how we painstakingly check modeset sequence constraints
    already.
    
    v2: Disable polling after hpd handling is shut down - since Egbert's
    hpd irq storm handling the hotplug work can re-arm the polling
    handler. Spotted by Jani Nikula.
    
    Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
    Cc: Jani Nikula <jani.nikula@intel.com>
    Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    fd0c0642
intel_display.c 262 KB