drm/xe/xe2: Update chunk size for each iteration of ccs copy
authorHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Tue, 5 Dec 2023 12:26:34 +0000 (17:56 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:46:15 +0000 (11:46 -0500)
commit09427526793384fea6a13cc33ffebadb69fdcde4
tree328532e1744c36d67d0fcf27c944c9cc99310a81
parent9116eabb6d5e26a7eceb6945327e9feb67019d41
drm/xe/xe2: Update chunk size for each iteration of ccs copy

In xe2 platform XY_CTRL_SURF_COPY_BLT can handle ccs copy for
max of 1024 main surface pages.

v2:
 - Use better logic to determine chunk size (Matt/Thomas)

v3:
 - use function instead of macro(Thomas)

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_migrate.c