[Intel-gfx] [PATCH 10/37] drm/i915: Specify gfpmask to use with drm_malloc_ab()

Eric Anholt eric at anholt.net
Wed Mar 17 22:27:16 CET 2010


On Wed, 10 Mar 2010 22:44:57 +0000, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> There are a couple of places where it is useful to disable the
> OOM-killer and preferentially try to reclaim pages from our own inactive
> list first. In order to do so, we need to call kmalloc with the
>  __GFP_NOWARN | __GFP_NORETRY flags. In the process of adding these
> flags where possible, we can also eliminate the specialization of
> drm_calloc_large which is just drm_malloc_ab with a __GFP_ZERO flag.

Does the retry part of __GFP_NORETRY really never work?  Because this
looks like a bunch of paths that would try hard now just fail out to the
user, and I expect nothing good will come of that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20100317/bac48fc3/attachment.sig>


More information about the Intel-gfx mailing list