diff options
| author | Ville Syrjälä <[email protected]> | 2015-11-06 15:08:31 +0200 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2015-11-11 13:34:23 +0200 |
| commit | 18a04a7369b5ffe34a2f16bca8915fab68817c87 (patch) | |
| tree | c4aec93fcc03ab1287718765dfd6b89220f28fcb /tools/perf/scripts/python | |
| parent | e404ba8d06ff2a1bdb916a9e5d2c09cacd7e5ca3 (diff) | |
drm/i915: Kill intel_runtime_pm_disable()
intel_runtime_pm_disable() takes an extra rpm reference which combined
with the one we leak from intel_display_set_init_power() leaves the
usage count at <original>+1 after the driver has been unloaded.
The original ref is dropped explicitly in intel_runtime_pm_enable().
So the next time we load the driver we can no longer do runtime PM ever.
This used to work, but
commit 292b990e86ab ("drm/i915: Update power domains on readout.")
broke things by not dropping the init power domain during fbdev
teardown. Based on the comment in intel_power_domains_fini(), the
way it used to to work wasn't intentional. As in we weren't supposed
to drop the init power during driver unload. And since we no longer
do, we now leak an extra rpm reference.
So fix things by throwing intel_runtime_pm_disable() to the bin, so
that the only leaked reference comes from the init power domain.
Cc: Maarten Lankhorst <[email protected]>
Cc: Daniel Stone <[email protected]>
Cc: Jesse Barnes <[email protected]>
Fixes: 292b990e86ab ("drm/i915: Update power domains on readout.")
Signed-off-by: Ville Syrjälä <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jesse Barnes <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions