Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ec1cb6e4
Commit
ec1cb6e4
authored
Sep 01, 2020
by
Rob Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/msm/gpu: Add suspend/resume tracepoints
Signed-off-by:
Rob Clark
<
robdclark@chromium.org
>
parent
1ef7c99d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
+4
-0
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.c
+2
-0
drivers/gpu/drm/msm/msm_gpu_trace.h
drivers/gpu/drm/msm/msm_gpu_trace.h
+26
-0
No files found.
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
View file @
ec1cb6e4
...
...
@@ -931,6 +931,8 @@ static int a6xx_pm_resume(struct msm_gpu *gpu)
gpu
->
needs_hw_init
=
true
;
trace_msm_gpu_resume
(
0
);
ret
=
a6xx_gmu_resume
(
a6xx_gpu
);
if
(
ret
)
return
ret
;
...
...
@@ -945,6 +947,8 @@ static int a6xx_pm_suspend(struct msm_gpu *gpu)
struct
adreno_gpu
*
adreno_gpu
=
to_adreno_gpu
(
gpu
);
struct
a6xx_gpu
*
a6xx_gpu
=
to_a6xx_gpu
(
adreno_gpu
);
trace_msm_gpu_suspend
(
0
);
devfreq_suspend_device
(
gpu
->
devfreq
.
devfreq
);
return
a6xx_gmu_stop
(
a6xx_gpu
);
...
...
drivers/gpu/drm/msm/msm_gpu.c
View file @
ec1cb6e4
...
...
@@ -202,6 +202,7 @@ int msm_gpu_pm_resume(struct msm_gpu *gpu)
int
ret
;
DBG
(
"%s"
,
gpu
->
name
);
trace_msm_gpu_resume
(
0
);
ret
=
enable_pwrrail
(
gpu
);
if
(
ret
)
...
...
@@ -227,6 +228,7 @@ int msm_gpu_pm_suspend(struct msm_gpu *gpu)
int
ret
;
DBG
(
"%s"
,
gpu
->
name
);
trace_msm_gpu_suspend
(
0
);
devfreq_suspend_device
(
gpu
->
devfreq
.
devfreq
);
...
...
drivers/gpu/drm/msm/msm_gpu_trace.h
View file @
ec1cb6e4
...
...
@@ -140,6 +140,32 @@ TRACE_EVENT(msm_gem_purge_vmaps,
TP_printk
(
"Purging %u vmaps"
,
__entry
->
unmapped
)
);
TRACE_EVENT
(
msm_gpu_suspend
,
TP_PROTO
(
int
dummy
),
TP_ARGS
(
dummy
),
TP_STRUCT__entry
(
__field
(
u32
,
dummy
)
),
TP_fast_assign
(
__entry
->
dummy
=
dummy
;
),
TP_printk
(
"%u"
,
__entry
->
dummy
)
);
TRACE_EVENT
(
msm_gpu_resume
,
TP_PROTO
(
int
dummy
),
TP_ARGS
(
dummy
),
TP_STRUCT__entry
(
__field
(
u32
,
dummy
)
),
TP_fast_assign
(
__entry
->
dummy
=
dummy
;
),
TP_printk
(
"%u"
,
__entry
->
dummy
)
);
#endif
#undef TRACE_INCLUDE_PATH
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment