Lukas Wunner
19de659cb7
drm/radeon: Don't leak runtime pm ref on driver unload
...
radeon_driver_load_kms() calls pm_runtime_put_autosuspend() if
radeon_is_px(dev), but radeon_driver_unload_kms() calls
pm_runtime_get_sync() unconditionally. We therefore leak a runtime pm
ref whenever radeon is unloaded on a non-PX machine or if runpm=0. The
GPU will subsequently never runtime suspend after loading radeon again.
Fix by taking the runtime pm ref under the same condition that it was
released on driver load.
Fixes: 10ebc0bc0934 ("drm/radeon: add runtime PM support (v2)")
Cc: Dave Airlie <airlied@redhat.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/aaf71106c042126817aeca8b8e54ed468ab61ef7.1465392124.git.lukas@wunner.de
2016-06-24 08:49:27 +02:00
..
2014-02-06 12:13:52 +10:00
2016-03-16 18:08:06 -04:00
2014-11-11 17:22:26 -05:00
2016-06-13 18:38:00 +02:00
2016-05-12 15:03:39 -04:00
2016-05-03 14:50:54 -04:00
2014-11-11 17:22:26 -05:00
2015-05-26 15:09:03 +02:00
2016-03-16 18:08:06 -04:00
2014-10-13 11:34:13 -04:00
2014-02-06 12:22:46 -05:00
2015-10-21 11:35:11 -04:00
2016-03-16 18:08:06 -04:00
2015-01-22 10:38:48 -05:00
2016-03-16 18:08:06 -04:00
2015-06-03 11:31:12 +03:00
2016-02-10 14:17:15 -05:00
2016-05-02 13:08:54 -04:00
2016-05-04 20:19:43 -04:00
2014-06-02 10:25:07 -04:00
2014-06-02 10:25:07 -04:00
2013-08-30 16:30:08 -04:00
2014-06-02 10:25:07 -04:00
2016-03-16 18:08:06 -04:00
2015-06-01 23:16:22 -04:00
2016-01-27 12:48:32 -05:00
2015-10-21 11:35:11 -04:00
2016-05-04 20:30:16 -04:00
2014-11-20 13:00:16 -05:00
2016-03-16 18:08:06 -04:00
2016-04-27 12:27:08 -04:00
2014-03-06 16:46:58 -05:00
2016-05-09 13:49:56 +10:00
2016-05-04 20:19:49 -04:00
2015-12-02 12:45:54 -05:00
2016-05-16 10:25:13 -04:00
2013-09-11 11:44:38 -04:00
2013-09-11 11:44:38 -04:00
2015-12-02 12:45:54 -05:00
2014-11-20 14:45:15 +01:00
2015-01-22 11:48:03 -05:00
2016-03-16 18:08:06 -04:00
2013-07-08 17:41:11 -04:00
2016-04-06 14:57:46 -04:00
2016-05-02 13:08:54 -04:00
2015-05-26 10:31:21 -04:00
2014-11-20 13:00:10 -05:00
2014-11-20 13:00:10 -05:00
2016-05-04 20:19:03 -04:00
2014-12-03 14:26:47 -05:00
2016-05-02 13:08:54 -04:00
2014-08-18 17:09:44 -04:00
2014-06-13 12:22:30 -04:00
2014-03-06 16:46:56 -05:00
2015-10-21 11:35:11 -04:00
2013-08-30 16:29:57 -04:00
2016-03-16 18:08:06 -04:00
2016-02-10 14:17:15 -05:00
2016-03-16 18:08:06 -04:00
2014-11-20 13:00:09 -05:00
2016-03-16 18:08:06 -04:00
2016-05-02 15:25:40 -04:00
2014-10-14 09:39:08 +02:00
2015-10-14 16:16:37 -04:00
2016-02-26 14:16:58 -05:00
2015-11-30 14:44:34 -05:00
2016-05-02 13:08:53 -04:00
2016-05-04 20:19:03 -04:00
2016-03-16 18:08:06 -04:00
2016-04-18 11:26:26 -04:00
2016-01-27 12:48:32 -05:00
2016-01-27 12:48:32 -05:00
2015-02-02 11:39:35 -05:00
2015-10-14 16:16:37 -04:00
2016-02-05 16:29:28 -06:00
2016-04-14 00:26:29 -04:00
2016-05-18 19:16:24 +02:00
2016-05-17 08:47:30 +02:00
2016-05-09 13:49:56 +10:00
2016-06-13 18:38:12 +02:00
2016-05-05 11:14:18 -04:00
2016-04-06 14:58:42 -04:00
2016-05-31 13:15:57 +02:00
2015-12-02 12:45:54 -05:00
2015-10-29 11:13:18 -04:00
2014-05-06 12:19:57 +02:00
2016-03-16 18:08:06 -04:00
2016-02-10 14:17:15 -05:00
2015-07-16 12:39:37 -04:00
2016-05-17 08:47:30 +02:00
2015-01-22 10:38:51 -05:00
2016-03-16 18:08:06 -04:00
2014-06-10 09:36:17 +10:00
2016-05-21 07:03:31 +10:00
2016-02-27 22:52:40 +02:00
2016-02-27 22:52:40 +02:00
2016-06-24 08:49:27 +02:00
2016-06-13 18:38:00 +02:00
2016-03-16 18:08:06 -04:00
2016-05-23 17:04:14 -07:00
2015-12-23 14:15:26 +10:00
2016-05-04 20:21:26 -04:00
2016-05-04 20:21:21 -04:00
2016-06-06 18:05:08 +02:00
2014-10-03 09:19:17 -04:00
2015-03-27 10:17:43 -04:00
2016-02-10 14:07:44 -05:00
2016-03-16 18:08:06 -04:00
2014-11-20 13:00:17 -05:00
2015-02-02 11:39:36 -05:00
2015-04-07 12:29:23 -04:00
2016-05-09 13:49:56 +10:00
2014-08-05 08:53:22 -04:00
2014-08-05 08:53:22 -04:00
2016-05-04 20:19:43 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-06-02 08:27:41 +02:00
2015-01-22 11:46:17 -05:00
2016-05-04 20:19:03 -04:00
2015-12-18 17:29:47 -05:00
2016-03-16 18:08:06 -04:00
2013-07-17 16:47:52 -04:00
2016-03-16 18:08:06 -04:00
2014-11-06 15:42:44 -05:00
2015-11-25 11:28:42 -05:00
2016-03-16 18:08:06 -04:00
2014-11-20 13:00:16 -05:00
2016-03-16 18:08:06 -04:00
2015-01-22 10:38:58 -05:00
2013-09-11 11:44:28 -04:00
2013-09-11 11:44:28 -04:00
2016-05-04 20:19:03 -04:00
2015-05-04 15:03:56 -04:00
2015-01-22 11:48:03 -05:00
2016-04-18 11:18:35 -04:00
2015-01-22 10:38:48 -05:00
2014-08-05 08:53:23 -04:00
2016-05-04 20:23:15 -04:00
2015-12-18 17:29:46 -05:00
2014-11-20 13:00:09 -05:00
2014-11-20 13:00:10 -05:00
2013-08-30 16:30:28 -04:00
2013-08-30 16:30:28 -04:00
2016-03-16 18:08:06 -04:00
2015-01-22 10:38:57 -05:00
2014-01-07 12:55:50 -05:00
2016-03-16 18:08:06 -04:00
2013-09-11 11:44:39 -04:00
2014-01-07 12:55:57 -05:00
2016-05-04 20:19:43 -04:00
2016-05-04 20:19:43 -04:00
2013-11-15 15:56:09 -05:00
2016-05-04 20:19:43 -04:00
2016-01-22 10:50:24 -05:00
2016-03-16 18:08:06 -04:00