summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2024-02-22 11:39:33 -0500
committerRodrigo Vivi <rodrigo.vivi@intel.com>2024-02-26 09:06:45 -0500
commitf9d9f94cfb25c9be40a6f51fbfdd1131dfc55ded (patch)
tree97196d7bcd3d585b036247c0aa0b0e136fc7ad70
parent5a2a90847450f193f681886db56c3ace5a945785 (diff)
downloadlinux-stable-f9d9f94cfb25c9be40a6f51fbfdd1131dfc55ded.tar.gz
linux-stable-f9d9f94cfb25c9be40a6f51fbfdd1131dfc55ded.tar.bz2
linux-stable-f9d9f94cfb25c9be40a6f51fbfdd1131dfc55ded.zip
drm/xe: Remove useless mem_access protection for query ioctls
Every IOCTL is already protected on its outer bounds by xe_pm_runtime_{get,put} calls, so we can now remove these. Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240222163937.138342-10-rodrigo.vivi@intel.com
-rw-r--r--drivers/gpu/drm/xe/xe_query.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
index 92bb06c0586e..f1876b556ab4 100644
--- a/drivers/gpu/drm/xe/xe_query.c
+++ b/drivers/gpu/drm/xe/xe_query.c
@@ -147,7 +147,6 @@ query_engine_cycles(struct xe_device *xe,
if (!hwe)
return -EINVAL;
- xe_device_mem_access_get(xe);
xe_force_wake_get(gt_to_fw(gt), XE_FORCEWAKE_ALL);
__read_timestamps(gt,
@@ -159,7 +158,6 @@ query_engine_cycles(struct xe_device *xe,
cpu_clock);
xe_force_wake_put(gt_to_fw(gt), XE_FORCEWAKE_ALL);
- xe_device_mem_access_put(xe);
resp.width = 36;
/* Only write to the output fields of user query */
@@ -433,9 +431,7 @@ static int query_hwconfig(struct xe_device *xe,
if (!hwconfig)
return -ENOMEM;
- xe_device_mem_access_get(xe);
xe_guc_hwconfig_copy(&gt->uc.guc, hwconfig);
- xe_device_mem_access_put(xe);
if (copy_to_user(query_ptr, hwconfig, size)) {
kfree(hwconfig);