From bb0be2ebc8d37549d1c1e5c9d133eb12bc1387b5 Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Wed, 27 Sep 2023 14:57:27 +0100 Subject: [PATCH] fixup! drm/v3d: New debugfs end-points to query GPU usage stats. --- drivers/gpu/drm/v3d/v3d_debugfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/v3d/v3d_debugfs.c b/drivers/gpu/drm/v3d/v3d_debugfs.c index e5063e98377b8b..3b93c415788693 100644 --- a/drivers/gpu/drm/v3d/v3d_debugfs.c +++ b/drivers/gpu/drm/v3d/v3d_debugfs.c @@ -205,8 +205,8 @@ static int v3d_debugfs_bo_stats(struct seq_file *m, void *unused) static int v3d_debugfs_gpu_usage(struct seq_file *m, void *unused) { - struct drm_info_node *node = (struct drm_info_node *)m->private; - struct drm_device *dev = node->minor->dev; + struct drm_debugfs_entry *entry = m->private; + struct drm_device *dev = entry->dev; struct v3d_dev *v3d = to_v3d_dev(dev); struct v3d_queue_stats *queue_stats; enum v3d_queue queue; @@ -240,8 +240,8 @@ static int v3d_debugfs_gpu_usage(struct seq_file *m, void *unused) static int v3d_debugfs_gpu_pid_usage(struct seq_file *m, void *unused) { - struct drm_info_node *node = (struct drm_info_node *)m->private; - struct drm_device *dev = node->minor->dev; + struct drm_debugfs_entry *entry = m->private; + struct drm_device *dev = entry->dev; struct v3d_dev *v3d = to_v3d_dev(dev); struct v3d_queue_stats *queue_stats; struct v3d_queue_pid_stats *cur;