|
@@ -699,7 +699,7 @@ static int drunk_hole(struct drm_i915_private *i915,
|
|
unsigned int *order, count, n;
|
|
unsigned int *order, count, n;
|
|
struct i915_vma *vma;
|
|
struct i915_vma *vma;
|
|
u64 hole_size;
|
|
u64 hole_size;
|
|
- int err;
|
|
|
|
|
|
+ int err = -ENODEV;
|
|
|
|
|
|
hole_size = (hole_end - hole_start) >> size;
|
|
hole_size = (hole_end - hole_start) >> size;
|
|
if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32))
|
|
if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32))
|
|
@@ -958,7 +958,7 @@ static int exercise_ggtt(struct drm_i915_private *i915,
|
|
u64 hole_start, hole_end, last = 0;
|
|
u64 hole_start, hole_end, last = 0;
|
|
struct drm_mm_node *node;
|
|
struct drm_mm_node *node;
|
|
IGT_TIMEOUT(end_time);
|
|
IGT_TIMEOUT(end_time);
|
|
- int err;
|
|
|
|
|
|
+ int err = -ENODEV;
|
|
|
|
|
|
mutex_lock(&i915->drm.struct_mutex);
|
|
mutex_lock(&i915->drm.struct_mutex);
|
|
restart:
|
|
restart:
|
|
@@ -1164,7 +1164,7 @@ static int igt_gtt_reserve(void *arg)
|
|
struct drm_i915_gem_object *obj, *on;
|
|
struct drm_i915_gem_object *obj, *on;
|
|
LIST_HEAD(objects);
|
|
LIST_HEAD(objects);
|
|
u64 total;
|
|
u64 total;
|
|
- int err;
|
|
|
|
|
|
+ int err = -ENODEV;
|
|
|
|
|
|
/* i915_gem_gtt_reserve() tries to reserve the precise range
|
|
/* i915_gem_gtt_reserve() tries to reserve the precise range
|
|
* for the node, and evicts if it has to. So our test checks that
|
|
* for the node, and evicts if it has to. So our test checks that
|
|
@@ -1355,7 +1355,7 @@ static int igt_gtt_insert(void *arg)
|
|
}, *ii;
|
|
}, *ii;
|
|
LIST_HEAD(objects);
|
|
LIST_HEAD(objects);
|
|
u64 total;
|
|
u64 total;
|
|
- int err;
|
|
|
|
|
|
+ int err = -ENODEV;
|
|
|
|
|
|
/* i915_gem_gtt_insert() tries to allocate some free space in the GTT
|
|
/* i915_gem_gtt_insert() tries to allocate some free space in the GTT
|
|
* to the node, evicting if required.
|
|
* to the node, evicting if required.
|