]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Move job creation out of the struct xe_migrate::job_mutex
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 27 May 2024 13:59:12 +0000 (15:59 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 27 May 2024 19:26:07 +0000 (21:26 +0200)
commit50e52592fbe791d96ec2cb431d158cc6bc495be5
tree9ad1f1deb5b06b7fd153c5132da46413c2ef81d9
parent577b83b0f45f7b36d734708f5cad8b35e21ffb7d
drm/xe: Move job creation out of the struct xe_migrate::job_mutex

In order to be able to run gpu jobs from reclaim context,
move job creation (where allocation takes place) out of the
struct xe_migrate::job_mutex, and prime that mutex as reclaim
tainted.

Jobs that may need to run from reclaim context include
CCS metadata extraction at shrinking time.

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