]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/migrate: fix length calculation
authorMatthew Auld <matthew.auld@intel.com>
Mon, 6 Dec 2021 11:25:38 +0000 (11:25 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 8 Dec 2021 10:25:26 +0000 (10:25 +0000)
commit81fe55a14c95eff0cda7a7e5ef0bec1266c1286f
tree69914f69784c64f69936c288f552c07d0b903033
parent9a17a76b19c148d4543e5f2cb62d63130f4d546f
drm/i915/migrate: fix length calculation

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
drivers/gpu/drm/i915/gt/intel_migrate.c