diff options
author | Chris Wilson <[email protected]> | 2017-03-22 11:05:21 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2017-03-22 19:26:46 +0000 |
commit | 24f8e00a8a2eae92491f8668939dbfdc123d6e75 (patch) | |
tree | 569e718282ede95838583f3e69f5eb070c9d4de5 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 396a1200d8202f7cd154e26dcc47438e28ef6c70 (diff) |
drm/i915: Prefer to report ENOMEM rather than incur the oom for gfx allocations
Since gfx allocations tend to be large, unmovable and disposable, report
the allocation failure back to userspace as an ENOMEM rather than incur
the oomkiller. We have already tried to make room by purging our own
cached gfx objects, and the oomkiller doesn't attribute ownership of gfx
objects so will likely pick the wrong candidate. Instead, let userspace
see the ENOMEM.
Signed-off-by: Chris Wilson <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Joonas Lahtinen <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions