]> Gentwo Git Trees - linux/.git/commit
drm/xe/migrate: Remove unneeded emit_pte() when copying CCS only
authorSanjay Yadav <sanjay.kumar.yadav@intel.com>
Thu, 4 Sep 2025 16:14:23 +0000 (21:44 +0530)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 5 Sep 2025 12:29:20 +0000 (13:29 +0100)
commitc4dfa0bea23df9a6870df439f2bae43ecbb73822
tree4f0dae153c50d3b3e62e184aa9b6732b56d6a846
parent2d1e962098e294330a07ab7e91ee0f35121a6964
drm/xe/migrate: Remove unneeded emit_pte() when copying CCS only

In xe_migrate_copy(), when copy_only_ccs is true, we only need two
emit_pte() calls one for the BO and one for the raw CCS storage.
However, the current implementation issues three emit_pte() calls,
resulting in an unnecessary PTE programming job.

This fix removes the redundant emit_pte() call to avoid programming
the same PTEs twice and reducing overhead during CCS-only migration.

v2: Preserve correct behavior on DG2, which requires both CCS and
page copies.

Signed-off-by: Sanjay Yadav <sanjay.kumar.yadav@intel.com>
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://lore.kernel.org/r/20250904161423.2448727-1-sanjay.kumar.yadav@intel.com
drivers/gpu/drm/xe/xe_migrate.c