mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
drm/i915/migrate: fix length calculation
[ Upstream commit 31d70749bf
]
No need to insert PTEs for the PTE window itself, also foreach expects a
length not an end offset, which could be gigantic here with a second
engine.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211206112539.3149779-3-matthew.auld@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7afdef0f46
commit
217e482372
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ static struct i915_address_space *migrate_vm(struct intel_gt *gt)
|
|||
goto err_vm;
|
||||
|
||||
/* Now allow the GPU to rewrite the PTE via its own ppGTT */
|
||||
vm->vm.foreach(&vm->vm, base, base + sz, insert_pte, &d);
|
||||
vm->vm.foreach(&vm->vm, base, d.offset - base, insert_pte, &d);
|
||||
}
|
||||
|
||||
return &vm->vm;
|
||||
|
|
Loading…
Add table
Reference in a new issue