OSDN Git Service

drm/amdkfd: Use pr_debug to print the message of reaching event limit
authorYong Zhao <Yong.Zhao@amd.com>
Mon, 9 Mar 2020 18:20:56 +0000 (14:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Mar 2020 19:54:27 +0000 (15:54 -0400)
People are inclined to think of the previous pr_warn message as an
error, so use pre_debug instead.

Signed-off-by: Yong Zhao <Yong.Zhao@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_events.c

index 1f83655..15476fc 100644 (file)
@@ -187,7 +187,7 @@ static int create_signal_event(struct file *devkfd,
        if (p->signal_mapped_size &&
            p->signal_event_count == p->signal_mapped_size / 8) {
                if (!p->signal_event_limit_reached) {
-                       pr_warn("Signal event wasn't created because limit was reached\n");
+                       pr_debug("Signal event wasn't created because limit was reached\n");
                        p->signal_event_limit_reached = true;
                }
                return -ENOSPC;