|
@@ -1303,15 +1303,6 @@ static int gen8_alloc_va_range_3lvl(struct i915_address_space *vm,
|
|
|
uint32_t pdpes = I915_PDPES_PER_PDP(dev_priv);
|
|
|
int ret;
|
|
|
|
|
|
- /* Wrap is never okay since we can only represent 48b, and we don't
|
|
|
- * actually use the other side of the canonical address space.
|
|
|
- */
|
|
|
- if (WARN_ON(start + length < start))
|
|
|
- return -ENODEV;
|
|
|
-
|
|
|
- if (WARN_ON(start + length > vm->total))
|
|
|
- return -ENODEV;
|
|
|
-
|
|
|
ret = alloc_gen8_temp_bitmaps(&new_page_dirs, &new_page_tables, pdpes);
|
|
|
if (ret)
|
|
|
return ret;
|
|
@@ -1929,9 +1920,6 @@ static int gen6_alloc_va_range(struct i915_address_space *vm,
|
|
|
uint32_t pde;
|
|
|
int ret;
|
|
|
|
|
|
- if (WARN_ON(start_in + length_in > ppgtt->base.total))
|
|
|
- return -ENODEV;
|
|
|
-
|
|
|
start = start_save = start_in;
|
|
|
length = length_save = length_in;
|
|
|
|