summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2023-07-26 12:23:49 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:37:55 +0300
commit6aa26f6eb829fb208c569b92837a13e889891db4 (patch)
tree4e1734f530ab0a8a9f629e21204843d152b61716 /include
parent70748acb7fb4c9bba5364de0d6fe0801f2addebb (diff)
downloadlinux-6aa26f6eb829fb208c569b92837a13e889891db4.tar.xz
drm/xe/engine: add missing rpm for bind engines
Bind engines need to use the migration vm, however we don't have any rpm for such a vm, otherwise the kernel would prevent rpm suspend-resume. There are two issues here, first is the actual engine create which needs to touch the lrc, but since that is in VRAM we trigger loads of missing mem_access asserts. The second issue is when destroying the actual engine, which requires GuC CT to deregister the context. v2 (Rodrigo): - Just use ENGINE_FLAG_VM as the indicator that we need to hold an rpm ref. This also handles the case in xe_vm_create() where we create default bind engines. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/499 Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/504 Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions