drm/i915/migrate: fix offset calculation
authorMatthew Auld <matthew.auld@intel.com>
Mon, 6 Dec 2021 11:25:37 +0000 (11:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:59:07 +0000 (11:59 +0100)
commit8b25a526a5e9b7040e8faaf2e54e9c331e8047fe
tree89de5435b40277a59511792fedfee4425c204e9b
parenta3d1e6f9b67808286f09ee6a905b5a2926182729
drm/i915/migrate: fix offset calculation

[ Upstream commit 08c7c122ad90799cc3ae674e7f29f236f91063ce ]

Ensure we add the engine base only after we calculate the qword offset
into the PTE window.

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-2-matthew.auld@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/i915/gt/intel_migrate.c