drm/xe: Make page-table updates using the default engine happen in order
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 29 Jun 2023 20:51:33 +0000 (22:51 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:35:07 +0000 (11:35 -0500)
commitb747411964cd9011e05f4b9f5624be9ed71532c4
tree2f95e22042a48783193eaf9098e9d8cfb593f5e6
parentc0ab10ee2ee6a2c423f95154e0842a1b19a4c13b
drm/xe: Make page-table updates using the default engine happen in order

If the default engine m->eng was used, there is no check for idle and
a cpu page-table update may thus happen in parallel with a gpu one.
Don't allow CPU page-table updates with the default engine until
the engine is idle.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230629205134.111849-2-thomas.hellstrom@linux.intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_migrate.c