@@ -90,7 +90,7 @@ struct i915_refct_sgt *i915_rsgt_from_mm_node(const struct drm_mm_node *node,
90
90
91
91
GEM_BUG_ON (!max_segment );
92
92
93
- rsgt = kmalloc (sizeof (* rsgt ), GFP_KERNEL );
93
+ rsgt = kmalloc (sizeof (* rsgt ), GFP_KERNEL | __GFP_NOWARN );
94
94
if (!rsgt )
95
95
return ERR_PTR (- ENOMEM );
96
96
@@ -104,7 +104,7 @@ struct i915_refct_sgt *i915_rsgt_from_mm_node(const struct drm_mm_node *node,
104
104
}
105
105
106
106
if (sg_alloc_table (st , DIV_ROUND_UP_ULL (node -> size , segment_pages ),
107
- GFP_KERNEL )) {
107
+ GFP_KERNEL | __GFP_NOWARN )) {
108
108
i915_refct_sgt_put (rsgt );
109
109
return ERR_PTR (- ENOMEM );
110
110
}
@@ -178,7 +178,7 @@ struct i915_refct_sgt *i915_rsgt_from_buddy_resource(struct ttm_resource *res,
178
178
GEM_BUG_ON (list_empty (blocks ));
179
179
GEM_BUG_ON (!max_segment );
180
180
181
- rsgt = kmalloc (sizeof (* rsgt ), GFP_KERNEL );
181
+ rsgt = kmalloc (sizeof (* rsgt ), GFP_KERNEL | __GFP_NOWARN );
182
182
if (!rsgt )
183
183
return ERR_PTR (- ENOMEM );
184
184
@@ -190,7 +190,7 @@ struct i915_refct_sgt *i915_rsgt_from_buddy_resource(struct ttm_resource *res,
190
190
return ERR_PTR (- E2BIG );
191
191
}
192
192
193
- if (sg_alloc_table (st , PFN_UP (res -> size ), GFP_KERNEL )) {
193
+ if (sg_alloc_table (st , PFN_UP (res -> size ), GFP_KERNEL | __GFP_NOWARN )) {
194
194
i915_refct_sgt_put (rsgt );
195
195
return ERR_PTR (- ENOMEM );
196
196
}
0 commit comments