John Brooks
96cf8271df
drm/amdgpu: Set/clear CPU_ACCESS flag on page fault and move to VRAM
...
When a BO is moved to VRAM, clear AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED.
This allows it to potentially later move to invisible VRAM if the CPU
does not access it again.
Setting the CPU_ACCESS flag in amdgpu_bo_fault_reserve_notify() also means
that we can remove the loop to restrict lpfn to the end of visible VRAM,
because amdgpu_ttm_placement_init() will do it for us.
v3 [Michel Dänzer]
* Use AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED instead of a new flag
(Christian König)
* Clear flag in amdgpu_bo_move instead of amdgpu_move_ram_vram
(Christian)
* Explicitly mention amdgpu_bo_fault_reserve_notify in amdgpu_bo_move
* Also clear flag in amdgpu_bo_create_restricted
Suggested-by: Michel Dänzer <michel.daenzer@amd.com >
Signed-off-by: John Brooks <john@fastquake.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2017-07-14 11:06:33 -04:00
..
2016-11-30 14:18:51 +10:00
2016-10-25 14:38:45 -04:00
2017-01-27 11:12:39 -05:00
2017-03-29 23:53:24 -04:00
2017-05-31 16:48:55 -04:00
2017-05-31 16:48:55 -04:00
2017-06-07 18:02:06 -04:00
2017-05-31 16:48:50 -04:00
2017-07-14 11:06:05 -04:00
2017-07-14 11:06:05 -04:00
2017-07-14 11:06:18 -04:00
2017-07-14 11:06:18 -04:00
2017-03-29 23:53:24 -04:00
2017-07-14 11:05:57 -04:00
2017-07-14 11:06:17 -04:00
2017-07-14 11:06:17 -04:00
2017-07-14 11:06:25 -04:00
2016-11-30 14:18:51 +10:00
2017-07-14 11:06:33 -04:00
2017-05-31 16:49:01 -04:00
2017-07-14 11:06:31 -04:00
2017-05-01 11:21:42 -04:00
2017-05-16 17:17:41 +02:00
2017-03-29 23:53:03 -04:00
2017-07-14 11:06:32 -04:00
2017-05-25 16:13:12 -04:00
2017-05-24 17:40:40 -04:00
2017-07-14 11:06:31 -04:00
2017-07-14 11:06:28 -04:00
2017-07-14 11:06:22 -04:00
2017-06-15 11:50:27 -04:00
2017-06-07 18:20:59 -04:00
2017-07-14 11:06:30 -04:00
2017-01-27 11:12:39 -05:00
2016-09-27 13:00:52 -04:00
2017-07-14 11:06:10 -04:00
2017-05-24 17:41:23 -04:00
2017-07-14 11:05:51 -04:00
2017-03-29 23:53:37 -04:00
2017-07-14 11:05:57 -04:00
2017-07-14 11:06:23 -04:00
2017-04-04 13:40:32 -04:00
2017-07-14 11:05:50 -04:00
2017-07-14 11:06:33 -04:00
2017-04-28 17:33:08 -04:00
2017-05-10 13:36:21 -04:00
2017-01-27 11:13:07 -05:00
2017-07-05 13:18:50 -04:00
2016-10-25 14:38:45 -04:00
2017-04-28 17:33:16 -04:00
2017-07-14 11:06:13 -04:00
2017-07-14 11:06:13 -04:00
2017-05-31 16:49:04 -04:00
2017-06-01 16:00:20 -04:00
2017-07-14 11:05:56 -04:00
2017-04-28 17:33:16 -04:00
2017-06-09 11:29:46 -04:00
2017-06-09 11:29:46 -04:00
2017-07-14 11:06:30 -04:00
2017-07-14 11:06:01 -04:00
2017-07-14 11:06:33 -04:00
2017-07-14 11:06:28 -04:00
2017-07-14 11:06:13 -04:00
2017-06-15 11:50:22 -04:00
2017-04-04 13:40:32 -04:00
2017-03-29 23:53:46 -04:00
2017-06-01 16:00:21 -04:00
2017-06-01 16:00:22 -04:00
2017-05-24 17:41:47 -04:00
2017-05-24 17:41:41 -04:00
2017-07-14 11:05:52 -04:00
2017-07-14 11:05:52 -04:00
2017-05-24 17:40:17 -04:00
2017-07-14 11:05:52 -04:00
2017-07-14 11:06:10 -04:00
2017-07-14 11:06:10 -04:00
2017-05-28 10:23:00 -07:00
2017-07-14 11:06:33 -04:00
2017-03-29 23:54:17 -04:00
2017-03-29 23:54:17 -04:00
2017-06-20 12:06:49 -04:00
2017-01-27 11:12:39 -05:00
2017-05-30 15:54:15 +10:00
2017-03-29 23:52:52 -04:00
2017-05-16 17:17:41 +02:00
2017-05-16 17:17:41 +02:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:55:50 -04:00
2016-10-25 14:38:45 -04:00
2017-06-16 09:56:53 +10:00
2016-10-25 14:38:45 -04:00
2017-03-29 23:53:21 -04:00
2017-03-29 23:54:30 -04:00
2017-01-27 12:20:41 -05:00
2017-05-16 17:17:41 +02:00
2016-10-25 14:38:45 -04:00
2017-07-14 11:05:50 -04:00
2016-10-25 14:38:45 -04:00
2017-07-14 11:05:50 -04:00
2016-10-25 14:38:45 -04:00
2017-07-14 11:05:50 -04:00
2016-10-25 14:38:45 -04:00
2017-07-14 11:05:50 -04:00
2016-10-25 14:38:45 -04:00
2017-07-14 11:05:50 -04:00
2016-10-25 14:38:45 -04:00
2017-06-29 12:43:49 -04:00
2016-10-25 14:38:45 -04:00
2017-06-29 12:43:49 -04:00
2017-05-31 16:48:48 -04:00
2017-07-14 11:05:54 -04:00
2017-05-31 16:48:48 -04:00
2017-07-04 10:22:26 -04:00
2017-03-29 23:54:45 -04:00
2017-07-14 11:06:30 -04:00
2017-06-06 16:58:36 -04:00
2017-07-14 11:06:30 -04:00
2016-10-25 14:38:45 -04:00
2017-07-14 11:06:30 -04:00
2016-10-25 14:38:45 -04:00
2017-07-14 11:06:30 -04:00
2016-10-25 14:38:45 -04:00
2017-07-14 11:06:30 -04:00
2017-03-29 23:54:44 -04:00
2017-05-16 17:17:41 +02:00
2016-10-25 14:38:45 -04:00
2017-06-08 10:54:37 -04:00
2017-05-16 17:17:41 +02:00
2017-05-16 17:17:41 +02:00
2017-07-14 11:05:52 -04:00
2017-07-14 11:06:30 -04:00
2017-06-29 12:43:45 -04:00
2017-04-28 17:32:57 -04:00
2017-07-14 11:05:52 -04:00
2017-07-14 11:05:52 -04:00
2017-07-14 11:05:52 -04:00
2017-07-14 11:05:52 -04:00
2017-07-14 11:06:27 -04:00
2017-07-14 11:06:27 -04:00
2017-07-14 11:06:11 -04:00
2017-05-24 17:41:16 -04:00
2016-10-25 14:38:06 -04:00
2017-03-29 23:54:48 -04:00
2017-07-14 11:06:11 -04:00
2017-04-28 17:32:46 -04:00
2017-06-29 12:43:48 -04:00
2017-05-24 17:41:19 -04:00
2017-03-29 23:55:50 -04:00
2016-10-25 14:38:45 -04:00
2017-05-24 18:18:15 -04:00
2016-10-25 14:38:45 -04:00
2017-05-31 14:16:35 -04:00
2017-03-29 23:54:45 -04:00
2017-03-29 23:55:50 -04:00
2016-10-25 14:38:45 -04:00
2017-05-16 17:17:41 +02:00
2017-02-08 17:25:02 -05:00
2017-05-16 17:17:41 +02:00
2016-10-25 14:38:45 -04:00
2017-05-16 17:17:41 +02:00
2017-06-16 09:56:53 +10:00
2016-10-25 14:38:45 -04:00
2017-01-27 12:20:41 -05:00
2016-09-28 16:13:17 -04:00
2017-07-14 11:06:10 -04:00
2017-07-14 11:06:27 -04:00
2017-05-24 17:41:17 -04:00
2017-05-24 17:40:29 -04:00
2017-05-16 17:17:41 +02:00
2016-10-25 14:38:45 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-06-15 11:50:32 -04:00
2017-03-29 23:54:47 -04:00
2017-04-04 13:40:33 -04:00
2016-10-25 14:38:45 -04:00
2017-05-31 14:16:37 -04:00
2016-10-25 14:38:45 -04:00
2017-06-01 16:00:22 -04:00
2017-03-29 23:54:47 -04:00
2017-06-15 11:50:35 -04:00
2017-05-24 17:41:27 -04:00
2017-06-16 09:56:53 +10:00
2017-03-29 23:54:46 -04:00
2017-03-29 23:54:30 -04:00
2017-01-27 11:12:43 -05:00
2017-06-16 09:56:53 +10:00
2017-03-29 23:53:31 -04:00
2017-05-24 17:40:26 -04:00