|
@@ -1268,7 +1268,7 @@ relocate_entry(struct i915_vma *vma,
|
|
|
else if (gen >= 4)
|
|
|
len = 4;
|
|
|
else
|
|
|
- len = 3;
|
|
|
+ len = 6;
|
|
|
|
|
|
batch = reloc_gpu(eb, vma, len);
|
|
|
if (IS_ERR(batch))
|
|
@@ -1309,6 +1309,11 @@ relocate_entry(struct i915_vma *vma,
|
|
|
*batch++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL;
|
|
|
*batch++ = addr;
|
|
|
*batch++ = target_offset;
|
|
|
+
|
|
|
+ /* And again for good measure (blb/pnv) */
|
|
|
+ *batch++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL;
|
|
|
+ *batch++ = addr;
|
|
|
+ *batch++ = target_offset;
|
|
|
}
|
|
|
|
|
|
goto out;
|