diff options
author | Dave Airlie <airlied@redhat.com> | 2024-08-16 04:06:07 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2024-08-16 04:06:13 +0200 |
commit | f8e170a3dd723c29d7fedcd584c468e1fedd5e5b (patch) | |
tree | 0e8a65dd8c91bdadea921340833189fc7f96e245 /drivers/gpu/drm/xe/xe_guc_submit.c | |
parent | Merge tag 'drm-misc-fixes-2024-08-15' of https://gitlab.freedesktop.org/drm/m... (diff) | |
parent | drm/xe: Hold a PM ref when GT TLB invalidations are inflight (diff) | |
download | linux-f8e170a3dd723c29d7fedcd584c468e1fedd5e5b.tar.xz linux-f8e170a3dd723c29d7fedcd584c468e1fedd5e5b.zip |
Merge tag 'drm-xe-fixes-2024-08-15' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes
- Validate user fence during creation (Brost)
- Fix use after free when client stats are captured (Umesh)
- SRIOV fixes (Michal)
- Runtime PM fixes (Brost)
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/Zr4KWF5nM1YvnT8H@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_submit.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_guc_submit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c index 8d7e7f4bbff7..6398629e6b4e 100644 --- a/drivers/gpu/drm/xe/xe_guc_submit.c +++ b/drivers/gpu/drm/xe/xe_guc_submit.c @@ -1393,6 +1393,8 @@ static void guc_exec_queue_process_msg(struct xe_sched_msg *msg) default: XE_WARN_ON("Unknown message type"); } + + xe_pm_runtime_put(guc_to_xe(exec_queue_to_guc(msg->private_data))); } static const struct drm_sched_backend_ops drm_sched_ops = { @@ -1482,6 +1484,8 @@ static void guc_exec_queue_kill(struct xe_exec_queue *q) static void guc_exec_queue_add_msg(struct xe_exec_queue *q, struct xe_sched_msg *msg, u32 opcode) { + xe_pm_runtime_get_noresume(guc_to_xe(exec_queue_to_guc(q))); + INIT_LIST_HEAD(&msg->link); msg->opcode = opcode; msg->private_data = q; |