aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2014-11-07 15:18:45 +0200
committerDaniel Vetter <[email protected]>2014-11-14 10:29:19 +0100
commit2d72f6c7be9cd26485f88961f6a56fae3d9d17e9 (patch)
tree60b58af15ee2d193825f59262a2a367287191b94 /tools/perf/scripts/python/event_analyzing_sample.py
parent23ec0a8835f38c6e43570b54a786e058a9b9a268 (diff)
drm/i915: Skip .get_backlight() when backlight isn't enabled
On VLV/CHV when the display is off, we can't read out the current backlight level from the hardware since we have no pipe to do so. Currently we end up reading a bigus register due to passing INVALID_PIPE to VLV_BLC_PWM_CTL(). Skip the entire .get_backlight() call if the backlight isn't enabled according to backlight.enabled. This problem can be reproduced simply by reading the backlight device actual_brightness file while the display is off. Cc: Jani Nikula <[email protected]> Suggested-by: Jani Nikula <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions