drm/amdkfd: ratelimited svm debug messages
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 5 Oct 2021 15:12:18 +0000 (11:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Oct 2021 18:15:40 +0000 (14:15 -0400)
commita273bc9937e64ddb3798ba0fd5c92b5f3fce84c4
tree4c27b8ee7ca48e9c8d820f6e6c565c5629b16ef4
parent02f8aa9f2a3249d32316d745d1e4a3afef4180e5
drm/amdkfd: ratelimited svm debug messages

No function change, use pr_debug_ratelimited to avoid per page debug
message overflowing dmesg buf and console log.

use dev_err to show error message from unexpected situation, to provide
clue to help debug without enabling dynamic debug log. Define dev_fmt to
output function name in error message.

Signed-off-by: Philip Yang <Philip.Yang@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_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c