Displaying 1 result from an estimated 1 matches for "suage_counter".
2015 Nov 07
1
[PATCH] drm: fix issue by messing up runpm usage_counter
I have the issue when loading nouveau with runpm=0 set, that further nouveau
loads without runpm set or runpm=1 don't put the card into sleep state.
This is caused by calling pm_runtime_get_sync in drm_device.unload when the
usage_counter isn't 0. pm_runtime_get_sync always increases the suage_counter
and so the usage_counter gets increased allthough runpm=0 is set, meaning
nouveau leaves the device with a +1 usage_counter after unload.
This patch fixes that allowing me to load nouveau later with runpm=1 so, that
the device is put into sleep state.
---
drm/nouveau/nouveau_drm.c | 3 ++-
1 fil...