Re: [PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-23 Thread Thomas Hellstrom
Maarten Maathuis wrote: > On Tue, Feb 23, 2010 at 6:59 AM, Dave Airlie wrote: > >> On Sat, Feb 20, 2010 at 12:22 PM, Maarten Maathuis >> wrote: >> >>> - Without this change I get a general protection fault. >>> - Also use PTR_ERR where applicable. >>> >> I just want to make sure I

Re: [PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-23 Thread Maarten Maathuis
On Tue, Feb 23, 2010 at 6:59 AM, Dave Airlie wrote: > On Sat, Feb 20, 2010 at 12:22 PM, Maarten Maathuis > wrote: >> - Without this change I get a general protection fault. >> - Also use PTR_ERR where applicable. > > I just want to make sure I understand, but really the only bit of this > patch

Re: [PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-22 Thread Dave Airlie
On Sat, Feb 20, 2010 at 12:22 PM, Maarten Maathuis wrote: > - Without this change I get a general protection fault. > - Also use PTR_ERR where applicable. I just want to make sure I understand, but really the only bit of this patch that matters is: > @@ -556,9 +559,10 @@ int ttm_tt_swapout(struc

[PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-19 Thread Maarten Maathuis
- Without this change I get a general protection fault. - Also use PTR_ERR where applicable. Signed-off-by: Maarten Maathuis --- drivers/gpu/drm/ttm/ttm_tt.c | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/