drm/xe: Take memory ref on kernel job creation
authorMatthew Brost <matthew.brost@intel.com>
Thu, 12 Jan 2023 22:25:14 +0000 (17:25 -0500)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 12 Dec 2023 19:06:00 +0000 (14:06 -0500)
commit765b65e5bde79a9e8332c58f54a98e20fdb25fc7
treeffded2ad171d82adc5de746e5b91b47fa5956512
parente9d285ff9d4998d20790395adc8a62f283bdb72b
drm/xe: Take memory ref on kernel job creation

When a job is inflight we may access memory to read the hardware seqno.
All user jobs have VM open which has a ref but kernel jobs do not
require VM so it is possible to not have memory ref. To avoid this, take
a memory ref on kernel job creation.

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