summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_guc_debugfs.c
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2024-02-22 11:39:30 -0500
committerRodrigo Vivi <rodrigo.vivi@intel.com>2024-02-26 09:06:45 -0500
commit5b2b3a0fbb287d862cb39469a0f4826d8073b30e (patch)
treedeeeaf18dacace71ccd526cbee3254e1c2a3d348 /drivers/gpu/drm/xe/xe_guc_debugfs.c
parent1e941c9881ec20f6d0173bcd344a605bb89cb121 (diff)
downloadlinux-stable-5b2b3a0fbb287d862cb39469a0f4826d8073b30e.tar.gz
linux-stable-5b2b3a0fbb287d862cb39469a0f4826d8073b30e.tar.bz2
linux-stable-5b2b3a0fbb287d862cb39469a0f4826d8073b30e.zip
drm/xe: Runtime PM wake on every debugfs call
Let's ensure our PCI device is awaken on every debugfs call. Let's increase the runtime_pm protection and start moving that to the outer bounds. Also let's remove the mem_access_{get,put} from where they are not needed anymore. 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-7-rodrigo.vivi@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_guc_debugfs.c')
-rw-r--r--drivers/gpu/drm/xe/xe_guc_debugfs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_debugfs.c b/drivers/gpu/drm/xe/xe_guc_debugfs.c
index ffd7d53bcc42..d3822cbea273 100644
--- a/drivers/gpu/drm/xe/xe_guc_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_guc_debugfs.c
@@ -14,6 +14,7 @@
#include "xe_guc_ct.h"
#include "xe_guc_log.h"
#include "xe_macros.h"
+#include "xe_pm.h"
static struct xe_guc *node_to_guc(struct drm_info_node *node)
{
@@ -26,9 +27,9 @@ static int guc_info(struct seq_file *m, void *data)
struct xe_device *xe = guc_to_xe(guc);
struct drm_printer p = drm_seq_file_printer(m);
- xe_device_mem_access_get(xe);
+ xe_pm_runtime_get(xe);
xe_guc_print_info(guc, &p);
- xe_device_mem_access_put(xe);
+ xe_pm_runtime_put(xe);
return 0;
}
@@ -39,9 +40,9 @@ static int guc_log(struct seq_file *m, void *data)
struct xe_device *xe = guc_to_xe(guc);
struct drm_printer p = drm_seq_file_printer(m);
- xe_device_mem_access_get(xe);
+ xe_pm_runtime_get(xe);
xe_guc_log_print(&guc->log, &p);
- xe_device_mem_access_put(xe);
+ xe_pm_runtime_put(xe);
return 0;
}