drm/i915/gt: Optimize the migration and clear loop
authorRamalingam C <ramalingam.c@intel.com>
Tue, 5 Apr 2022 15:08:34 +0000 (20:38 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Thu, 14 Apr 2022 07:50:08 +0000 (13:20 +0530)
commit6e6bc8c0a81576839d1dbebbfd0a534949cb0d11
tree3f6e763735cd38ae82a954a37dff518ddc3fc74f
parenta0ed9c95cce69384862b567b3d23472770cf1648
drm/i915/gt: Optimize the migration and clear loop

Move the static calculations out of the loops for copy and clear.

v2:
  Fix the loss of proper error code on emit_pte

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Thomas Hellstrom <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220405150840.29351-4-ramalingam.c@intel.com
drivers/gpu/drm/i915/gt/intel_migrate.c