Deepak Nibade
d9854e4782
gpu: nvgpu: jump to fail path if pm_runtime_get_sync() fails
...
Currently we execute pm_runtime_get_sync() and then
gk20a_scale_notify_busy() without checking return value of
pm_runtime_get_sync()
In case of shutdown of GPU is already initiate, we get
a hard hang due to this as per below sequence :
- one thread invokes GPU shutdown and then forcibly rail
gates the GPU
- another thread (unaware of shutdown) calls gk20a_busy()
- since runtime PM is disabled in shutdown path,
pm_runtime_get_sync() fails
- but we still go on running gk20a_scale_notify_busy() which
tries to access some GPU registers and hangs
Fix this by jumping to failure path in case
pm_runtime_get_sync() fails
Bug 200099940
Change-Id: I022f2dfa9408f640fb44e6f4b10a437688779c0a
Signed-off-by: Deepak Nibade <dnibade@nvidia.com >
Reviewed-on: http://git-master/r/738509
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com >
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com >
2015-05-18 11:33:38 +05:30
..
2015-05-18 11:33:19 +05:30
2015-03-18 12:11:46 -07:00
2015-04-04 19:01:53 -07:00
2015-04-04 18:59:26 -07:00
2015-04-04 18:08:17 -07:00
2015-04-04 18:08:17 -07:00
2015-05-18 11:31:39 +05:30
2015-04-04 18:59:26 -07:00
2015-05-05 13:55:35 -07:00
2015-05-05 13:55:35 -07:00
2015-05-18 11:31:55 +05:30
2015-05-18 11:31:55 +05:30
2015-05-18 11:19:43 +05:30
2015-03-18 12:11:33 -07:00
2015-04-04 18:59:26 -07:00
2015-03-18 12:11:33 -07:00
2015-04-04 19:01:35 -07:00
2015-04-04 18:07:03 -07:00
2015-04-04 19:17:37 -07:00
2015-03-18 12:11:33 -07:00
2015-04-04 19:00:45 -07:00
2015-03-18 12:10:40 -07:00
2015-04-04 19:02:55 -07:00
2015-04-04 18:59:26 -07:00
2015-05-18 11:19:37 +05:30
2015-05-12 02:46:39 -07:00
2015-03-18 12:12:01 -07:00
2015-03-18 12:11:09 -07:00
2015-04-04 19:00:15 -07:00
2015-03-18 12:12:22 -07:00
2015-05-18 11:19:27 +05:30
2015-05-18 11:33:38 +05:30
2015-05-18 11:32:40 +05:30
2015-03-18 12:08:53 -07:00
2015-03-18 12:12:01 -07:00
2015-03-18 12:08:54 -07:00
2015-05-18 11:32:40 +05:30
2015-05-18 11:32:40 +05:30
2015-03-18 12:11:57 -07:00
2015-04-04 18:08:17 -07:00
2015-03-18 12:12:06 -07:00
2015-03-18 12:12:06 -07:00
2015-03-18 12:08:53 -07:00
2015-04-04 18:03:11 -07:00
2015-03-18 12:08:53 -07:00
2015-04-04 18:02:35 -07:00
2015-03-18 12:10:49 -07:00
2015-04-04 18:58:04 -07:00
2015-04-04 18:06:37 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:11:52 -07:00
2015-04-04 19:01:35 -07:00
2015-03-18 12:11:52 -07:00
2015-04-04 18:08:03 -07:00
2015-03-18 12:10:52 -07:00
2015-04-04 18:08:02 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:11:52 -07:00
2015-03-18 12:11:52 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:11:52 -07:00
2015-03-18 12:08:53 -07:00
2015-04-04 18:58:05 -07:00
2015-03-18 12:11:52 -07:00
2015-03-18 12:10:41 -07:00
2015-03-18 12:08:53 -07:00
2015-04-04 19:02:17 -07:00
2015-05-18 11:18:54 +05:30
2015-03-18 12:12:06 -07:00
2015-04-04 19:02:58 -07:00
2015-03-18 12:12:31 -07:00
2015-05-18 11:33:31 +05:30
2015-05-18 11:33:27 +05:30
2015-04-04 18:57:41 -07:00
2015-05-18 11:32:41 +05:30
2015-05-05 13:59:01 -07:00
2015-03-18 12:11:59 -07:00
2015-05-18 11:31:38 +05:30
2015-05-18 11:31:38 +05:30
2015-05-18 11:19:43 +05:30
2015-03-18 12:08:53 -07:00
2015-04-04 18:08:16 -07:00
2015-03-18 12:11:33 -07:00
2015-05-12 02:46:39 -07:00
2015-03-18 12:11:33 -07:00
2015-03-18 12:08:53 -07:00
2015-04-04 18:57:49 -07:00
2015-03-18 12:10:40 -07:00
2015-03-18 12:11:52 -07:00
2015-03-18 12:11:33 -07:00
2015-03-18 12:12:25 -07:00
2015-03-18 12:11:50 -07:00