drm/ttm: stop warning on TT shrinker failure v2
Subsystems (3)
PATCH 1/1 drm/ttm: stop warning on TT shrinker failure v2
Don't print a warning when we fail to allocate a page for swapping things out.
v2: only stop the warning
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/ttm/ttm_tt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_tt.c +1 -1
@@ -369,7 +369,7 @@ static unsigned long ttm_tt_shrinker_scan(struct shrinker *shrink, };int ret; - ret =ttm_bo_swapout (&ctx,GFP_NOFS ); + ret =ttm_bo_swapout (&ctx,GFP_NOFS | __GFP_NOWARN);return ret <0 ?SHRINK_EMPTY : ret; }
Signature · 6 lines
2.25.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 6 lines · Christian König
Don't print a warning when we fail to allocate a page for swapping things out.
v2: only stop the warning
Signed-off-by Christian König <[email protected]>
Reviewed-by Daniel Vetter <[email protected]>
It is kinda surprising that page allocator warns here even though we explicitly asked for non-GFP_KERNEL (which is the only one where you pretty much can assume you will get memory no matter what, since worst case the OOM killer makes space for you).
But then with memalloc_no* and friends these failures could happen in unexpected places, and I think the code that warns isn't aware of the original gfp flags, so makes some sense from an implementation pov. -Daniel
Quoted 20 lines
--- drivers/gpu/drm/ttm/ttm_tt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/ttm/ttm_tt.c +1
-2@@ -369,7 +369,7 @@ static unsigned long ttm_tt_shrinker_scan(struct shrinker *shrink, };int ret; - ret =ttm_bo_swapout (&ctx,GFP_NOFS ); + ret =ttm_bo_swapout (&ctx,GFP_NOFS | __GFP_NOWARN);return ret <0 ?SHRINK_EMPTY : ret; } --2.25.1
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx