projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5facdf
)
drm/i915: Silence allocation failure during sg_trim()
author
Chris Wilson
<
[email protected]
>
Fri, 23 Dec 2016 14:57:58 +0000
(14:57 +0000)
committer
Chris Wilson
<
[email protected]
>
Fri, 23 Dec 2016 16:07:32 +0000
(16:07 +0000)
As trimming the sg table is merely an optimisation that gracefully fails
if we cannot allocate a new table, we do not need to report the failure
either.
Fixes: 0c40ce130e38 ("drm/i915: Trim the object sg table")
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Tvrtko Ursulin <
[email protected]
>
Reviewed-by: Joonas Lahtinen <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index 82fc4d4c665e4b88c1bac7f5914039a1675a1e83..40962f61cfed8be5df19d92f2294c235a894298b 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-2326,7
+2326,7
@@
static void i915_sg_trim(struct sg_table *orig_st)
if (orig_st->nents == orig_st->orig_nents)
return;
- if (sg_alloc_table(&new_st, orig_st->nents, GFP_KERNEL))
+ if (sg_alloc_table(&new_st, orig_st->nents, GFP_KERNEL
| __GFP_NOWARN
))
return;
new_sg = new_st.sgl;