]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe: Fix potential deadlock handling page faults
authorMatthew Brost <matthew.brost@intel.com>
Mon, 20 Mar 2023 20:58:36 +0000 (13:58 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:30:21 +0000 (18:30 -0500)
commitb4eecedc75c1b75eee359c806fc964f70e0fc983
tree6ee2593d7f1a6dfc16f6b27f07159e6029bf11bd
parent59ea53eecb7154a2ac8aa39f21f16a144be3eecc
drm/xe: Fix potential deadlock handling page faults

Within a class the GuC will hault scheduling if the head of the queue
can't be scheduled the queue will block. This can lead to deadlock if
BCS0-7 all have faults and another engine on BCS0-7 is at head of the
GuC scheduling queue as the migration engine used to fix tthe fault will
be blocked. To work around this set the migration engine to the highest
priority when servicing page faults.

v2 (Maarten): Set priority to kernel once at creation

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Brian Welty <brian.welty@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_migrate.c