drm/xe: correct the calculation of remaining size
authorFei Yang <fei.yang@intel.com>
Tue, 16 Jan 2024 22:37:09 +0000 (14:37 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 18 Jan 2024 22:43:44 +0000 (14:43 -0800)
commit43d48379c9399654059bd2af5898fc464641837c
treed96eb5ec81dbc905ef9e737e834fcb26b6389b59
parenteb08104f90fc474054211244d668d3fe1d84bccb
drm/xe: correct the calculation of remaining size

In function write_pgtable, the calculation of chunk in the do-while
loop is wrong, we should always compare against remaining size instead
of the total size update->qwords.

Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240116223709.652585-2-fei.yang@intel.com
drivers/gpu/drm/xe/xe_migrate.c