• Tom O'Rourke's avatar
    drm/i915: Finish enabling rps before use by sysfs or debugfs · 5c9669ce
    Tom O'Rourke authored
    Enabling rps (turbo setup) was put in a work queue because it may
    take quite awhile.  This change flushes the work queue to initialize
    rps values before use by sysfs or debugfs.  Specifically,
    rps.delayed_resume_work is flushed before using rps.hw_max,
    rps.max_delay, rps.min_delay, or rps.cur_delay.
    
    This change fixes a problem in sysfs where show functions using
    uninitialized values show incorrect values and store functions
    using uninitialized values in range checks incorrectly fail to
    store valid input values.  This change also addresses similar use
    before initialized problems in debugfs.
    Signed-off-by: default avatarTom O'Rourke <Tom.O'Rourke@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    5c9669ce
i915_sysfs.c 16.9 KB