summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_huc_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_huc_debugfs.c
parent1e941c9881ec20f6d0173bcd344a605bb89cb121 (diff)
downloadlwn-5b2b3a0fbb287d862cb39469a0f4826d8073b30e.tar.gz
lwn-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_huc_debugfs.c')
-rw-r--r--drivers/gpu/drm/xe/xe_huc_debugfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_huc_debugfs.c b/drivers/gpu/drm/xe/xe_huc_debugfs.c
index 18585a7eeb9d..3a888a40188b 100644
--- a/drivers/gpu/drm/xe/xe_huc_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_huc_debugfs.c
@@ -12,6 +12,7 @@
#include "xe_gt.h"
#include "xe_huc.h"
#include "xe_macros.h"
+#include "xe_pm.h"
static struct xe_gt *
huc_to_gt(struct xe_huc *huc)
@@ -36,9 +37,9 @@ static int huc_info(struct seq_file *m, void *data)
struct xe_device *xe = huc_to_xe(huc);
struct drm_printer p = drm_seq_file_printer(m);
- xe_device_mem_access_get(xe);
+ xe_pm_runtime_get(xe);
xe_huc_print_info(huc, &p);
- xe_device_mem_access_put(xe);
+ xe_pm_runtime_put(xe);
return 0;
}