summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_events.c
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2017-09-20 18:10:22 -0400
committerOded Gabbay <oded.gabbay@gmail.com>2017-09-20 18:10:22 -0400
commitc986169fdec992c464c84d0a3abdbfc846ed3df9 (patch)
tree7ffa967d0b95b7ced0062aa5af7b90a96a5403d6 /drivers/gpu/drm/amd/amdkfd/kfd_events.c
parentcb1d9967461cdf3b6aac6317c8d954a14f842571 (diff)
downloadtalos-op-linux-c986169fdec992c464c84d0a3abdbfc846ed3df9.tar.gz
talos-op-linux-c986169fdec992c464c84d0a3abdbfc846ed3df9.zip
drm/amdkfd: Print event limit messages only once per process
To avoid spamming the log. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_events.c')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_events.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c b/drivers/gpu/drm/amd/amdkfd/kfd_events.c
index 5979158c3f7b..944abfad39c1 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_events.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_events.c
@@ -292,7 +292,10 @@ static int create_signal_event(struct file *devkfd,
struct kfd_event *ev)
{
if (p->signal_event_count == KFD_SIGNAL_EVENT_LIMIT) {
- pr_warn("Signal event wasn't created because limit was reached\n");
+ if (!p->signal_event_limit_reached) {
+ pr_warn("Signal event wasn't created because limit was reached\n");
+ p->signal_event_limit_reached = true;
+ }
return -ENOMEM;
}
OpenPOWER on IntegriCloud