]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fca0ce4c8d98b22068cafdf6980b42af5a11270
tree4c27b8ee7ca48e9c8d820f6e6c565c5629b16ef4
parent619a0fe88e0a5ee9745a987d5437c5cd82c651c1
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