[PATCH 03/10] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean

2012-11-20 Thread Thomas Hellstrom
On 11/19/2012 03:10 PM, Maarten Lankhorst wrote: > Op 19-11-12 14:33, Thomas Hellstrom schreef: >> On 11/12/2012 03:00 PM, Maarten Lankhorst wrote: >>> Just use the return error from ttm_mem_evict_first instead. >> Here driver need to be able to evict a memory type completely, because they >> migh

Re: [PATCH 03/10] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean

2012-11-19 Thread Thomas Hellstrom
On 11/19/2012 03:10 PM, Maarten Lankhorst wrote: Op 19-11-12 14:33, Thomas Hellstrom schreef: On 11/12/2012 03:00 PM, Maarten Lankhorst wrote: Just use the return error from ttm_mem_evict_first instead. Here driver need to be able to evict a memory type completely, because they might shut dow

[PATCH 03/10] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean

2012-11-19 Thread Maarten Lankhorst
Op 19-11-12 14:33, Thomas Hellstrom schreef: > On 11/12/2012 03:00 PM, Maarten Lankhorst wrote: >> Just use the return error from ttm_mem_evict_first instead. > > Here driver need to be able to evict a memory type completely, because they > might shut down > the memory type or clear it for some le

[PATCH 03/10] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean

2012-11-19 Thread Thomas Hellstrom
On 11/12/2012 03:00 PM, Maarten Lankhorst wrote: > Just use the return error from ttm_mem_evict_first instead. Here driver need to be able to evict a memory type completely, because they might shut down the memory type or clear it for some legacy usage, suspending or whatever, so returning 0 on

Re: [PATCH 03/10] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean

2012-11-19 Thread Maarten Lankhorst
Op 19-11-12 14:33, Thomas Hellstrom schreef: > On 11/12/2012 03:00 PM, Maarten Lankhorst wrote: >> Just use the return error from ttm_mem_evict_first instead. > > Here driver need to be able to evict a memory type completely, because they > might shut down > the memory type or clear it for some le

Re: [PATCH 03/10] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean

2012-11-19 Thread Thomas Hellstrom
On 11/12/2012 03:00 PM, Maarten Lankhorst wrote: Just use the return error from ttm_mem_evict_first instead. Here driver need to be able to evict a memory type completely, because they might shut down the memory type or clear it for some legacy usage, suspending or whatever, so returning 0 on

[PATCH 03/10] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean

2012-11-12 Thread Maarten Lankhorst
Just use the return error from ttm_mem_evict_first instead. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 74d6e7c

[PATCH 03/10] drm/ttm: do not check if list is empty in ttm_bo_force_list_clean

2012-11-12 Thread Maarten Lankhorst
Just use the return error from ttm_mem_evict_first instead. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/ttm/ttm_bo.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 74d6e7c