projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fecfc8
)
drm/amdkfd: Initialize SDMA activity counter to 0
author
Mukul Joshi
<mukul.joshi@amd.com>
Mon, 17 Aug 2020 17:46:56 +0000
(13:46 -0400)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 18 Aug 2020 22:19:57 +0000
(18:19 -0400)
To prevent reporting erroneous SDMA usage, initialize SDMA
activity counter to 0 before using.
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
index
40695d5
..
ddd192e
100644
(file)
--- a/
drivers/gpu/drm/amd/amdkfd/kfd_process.c
+++ b/
drivers/gpu/drm/amd/amdkfd/kfd_process.c
@@
-270,6
+270,7
@@
static ssize_t kfd_procfs_show(struct kobject *kobj, struct attribute *attr,
kfd_sdma_activity_worker);
sdma_activity_work_handler.pdd = pdd;
+ sdma_activity_work_handler.sdma_activity_counter = 0;
schedule_work(&sdma_activity_work_handler.sdma_activity_work);